/* Home page: additions to styles.css */

/* ---------- HERO: full-screen slider ---------- */
.hm { min-height: 100svh; display: flex; flex-direction: column; }
.hs { position: relative; flex: 1; min-height: 560px; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--rule);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
.hs__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.hs__slide.is-on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease); }

/* the picture: big, pushed to the right, allowed to run off the edge */
.hs__fig { position: absolute; inset: 0; display: grid; place-items: center end; pointer-events: none; }
.hs__fig .frame { width: var(--fw); flex: none; margin-right: var(--fx, 0); transform: translate(60px, var(--fy, 0)) scale(1.03); opacity: 0; transition: transform 1.4s var(--ease), opacity .9s var(--ease); }
.hs__slide.is-on .hs__fig .frame { transform: translate(0, var(--fy, 0)); opacity: 1; }
/* brake duct slide: a corrugated hose built from overlapping rings */
.hs__fig .frame--open { overflow: visible; }
.hs__hose { overflow: visible; }
.hs__hose ellipse { fill: var(--white); stroke: #3b3d41; stroke-width: 1.1; vector-effect: non-scaling-stroke; opacity: 0; }
.hs__slide.is-on .hs__hose ellipse { opacity: 1; transition: opacity .25s linear calc(.5s + var(--i) * 9ms); }
/* keep the words readable where the picture runs under them */
.hs__slide::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--white) 0%, color-mix(in srgb, var(--white) 88%, transparent) 26%, transparent 56%),
              linear-gradient(0deg, color-mix(in srgb, var(--white) 80%, transparent) 0%, transparent 34%); }

.hs__copy { position: absolute; inset: auto 0 0; z-index: 2; padding-bottom: clamp(28px, 6svh, 64px); }
.hs__copy > * { opacity: 0; transform: translateY(22px); }
.hs__slide.is-on .hs__copy > * { animation: hsUp .9s var(--ease) both; }
.hs__slide.is-on .hs__copy > :nth-child(1) { animation-delay: .15s; }
.hs__slide.is-on .hs__copy > :nth-child(2) { animation-delay: .25s; }
.hs__slide.is-on .hs__copy > :nth-child(3) { animation-delay: .38s; }
.hs__slide.is-on .hs__copy > :nth-child(4) { animation-delay: .48s; }
@keyframes hsUp { to { opacity: 1; transform: none; } }

.hs__eye { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.hs__eye i { width: 9px; height: 9px; background: var(--accent); box-shadow: 0 0 0 1px var(--ink); }
.hs__eye i::after { content: ""; display: block; width: 110px; height: 1px; background: var(--ink); margin: 4px 0 0 22px; }
.hs__eye span:first-of-type { margin-left: 124px; }
.hs__eye b { font-weight: 500; color: var(--muted); }

/* headline inside four corner marks */
.hs__title {
  display: inline-block; margin: 0 0 22px; padding: 22px 30px 20px;
  font: 800 clamp(40px, 6.4vw, 112px)/.88 var(--sans); font-variation-settings: "wdth" 118; letter-spacing: -.035em; text-transform: uppercase;
  --c: var(--ink); --l: 18px; --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--l) var(--t), linear-gradient(var(--c), var(--c)) 0 0 / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) var(--t), linear-gradient(var(--c), var(--c)) 100% 0 / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) 0 100% / var(--l) var(--t), linear-gradient(var(--c), var(--c)) 0 100% / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) var(--t), linear-gradient(var(--c), var(--c)) 100% 100% / var(--t) var(--l);
  background-repeat: no-repeat;
}
.hs__title em { font-style: normal; color: var(--accent); }
.hs__lede { margin: 0 0 26px; max-width: 46ch; font-size: 18px; color: var(--ink-2); }
.hs__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* slide numbers and pause, bottom right */
.hs__nav { position: absolute; z-index: 3; right: var(--pad); bottom: clamp(28px, 6svh, 64px); display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.hs__pause { appearance: none; width: 38px; height: 38px; display: grid; grid-auto-flow: column; place-content: center; gap: 4px; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); cursor: pointer; transition: background .25s; }
.hs__pause i { width: 3px; height: 12px; background: var(--ink); transition: all .2s; }
.hs__pause:hover { background: var(--accent); }
.hs.is-paused .hs__pause i:first-child { width: 0; height: 0; background: none; border-left: 10px solid var(--ink); border-block: 7px solid transparent; }
.hs.is-paused .hs__pause i:last-child { display: none; }
.hs__dots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hs__dots button { appearance: none; border: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--muted); font: 500 11px/1 var(--mono); letter-spacing: .1em; transition: color .3s; }
.hs__dots i { display: block; width: 28px; height: 2px; background: var(--rule); position: relative; transition: width .5s var(--ease); }
.hs__dots i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.hs__dots button:hover { color: var(--ink); }
.hs__dots button.is-on { color: var(--ink); }
.hs__dots button.is-on i { width: 64px; }
.hs__dots button.is-on i::after { animation: hsBar var(--dur, 6s) linear forwards; }
.hs.is-paused .hs__dots button.is-on i::after { animation-play-state: paused; }
@keyframes hsBar { to { transform: scaleX(1); } }

.ticker--accent { margin-top: 0; background: var(--accent); color: var(--ink); }
.ticker--accent i { color: var(--ink); opacity: .45; }

/* ---------- PRODUCT CAROUSEL: native horizontal scroll with snap, so it swipes on touch ---------- */
.section--gal { padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.section--gal .section__head--row { grid-template-columns: 1fr auto; }
.sl { --sw: min(980px, 76vw); }
.sl__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px calc(50% - var(--sw) / 2) 4px; overscroll-behavior-x: contain; outline: none; }
.sl__track::-webkit-scrollbar { display: none; }
.sl__slide { flex: 0 0 var(--sw); scroll-snap-align: center; display: block; position: relative; background: var(--white); border: 1px solid var(--rule); color: inherit; text-decoration: none; opacity: .4; transition: opacity .5s var(--ease), border-color .5s; }
.sl__slide.is-on { opacity: 1; border-color: var(--ink); }
.sl__slide .frame { aspect-ratio: 1.6; }
.sl__slide img { transition: transform 1.4s var(--ease); }
.sl__slide.is-on:hover img { transform: scale(1.04); }
.sl__cap { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; padding: 14px 18px; border-top: 1px solid var(--rule); }
.sl__cap .mono { color: var(--muted); font-size: 10px; }
.sl__cap strong { font: 800 clamp(16px, 1.8vw, 24px)/1 var(--sans); font-variation-settings: "wdth" 112; text-transform: uppercase; letter-spacing: -.01em; }
.sl__go { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .4s; }
.sl__slide.is-on .sl__go { opacity: 1; }
.sl__track:focus-visible .sl__slide.is-on { outline: 2px solid var(--accent); outline-offset: 3px; }
.sl__ctl { display: inline-flex; align-items: center; gap: 14px; }
.sl__ctl button { appearance: none; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); cursor: pointer; font: 500 18px/1 var(--mono); transition: background .25s, color .25s; }
.sl__ctl button:hover { background: var(--accent); }
.sl__ctl .mono { min-width: 62px; text-align: center; }
.sl__bar { height: 2px; background: var(--rule); margin-top: 22px; position: relative; }
.sl__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); transition: width .5s var(--ease); }
@media (max-width: 640px) {
  .sl { --sw: 86vw; }
  .sl__track { gap: 10px; }
  .sl__go { display: none; }
  .sl__cap { grid-template-columns: auto 1fr; padding: 12px 14px; }
}

/* ---------- STATEMENT ---------- */
.say { max-width: 1100px; }
.say__big { margin: 0; font: 700 clamp(28px, 4.2vw, 62px)/1.08 var(--sans); font-variation-settings: "wdth" 104; letter-spacing: -.025em; text-wrap: balance; }
.say__big mark { background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); color: inherit; }
.say__facts { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-2); }
.say__facts li { border: 1px solid var(--ink); padding: 9px 12px; font-size: 11px; }

/* ---------- CATALOGUE ---------- */
.cat { border-top: 2px solid var(--ink); }
.cat__head, .cat__row { display: grid; grid-template-columns: 96px minmax(0, 1.25fr) minmax(0, 1.25fr) 170px 40px; gap: 20px; align-items: center; padding-inline: 18px; margin-inline: -18px; }
.cat__head { padding-block: 12px; font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--rule); }
.cat__row { padding-block: 26px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; transition: background .3s; }
.cat__row > .mono { color: var(--muted); }
.cat__row strong { font: 800 clamp(22px, 2.5vw, 36px)/1 var(--sans); font-variation-settings: "wdth" 114; text-transform: uppercase; letter-spacing: -.02em; }
.cat__d { color: var(--ink-2); font-size: 15px; max-width: 46ch; }
.cat__row .pill { display: inline-flex; font-style: normal; margin: 0; }
.cat__arr { font: 500 22px/1 var(--mono); text-align: right; transition: transform .35s var(--ease); }
a.cat__row:hover, a.cat__row:focus-visible { background: var(--accent); }
a.cat__row:hover > .mono, a.cat__row:hover .cat__d { color: var(--ink); }
a.cat__row:hover .pill { border-color: var(--ink); color: var(--ink); }
a.cat__row:hover .cat__arr { transform: translateX(6px); }
.cat__row--off strong { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }

/* preview that follows the cursor over a catalogue row */
.peek { position: fixed; left: 0; top: 0; z-index: 40; width: 340px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .25s, scale .35s var(--ease); background: var(--white); border: 1px solid var(--ink); box-shadow: 0 30px 50px -24px rgba(0,0,0,.45); will-change: transform; }
.peek.is-on { opacity: 1; }
@media (hover: none) { .peek { display: none; } }

.cta h2 { max-width: 14ch; font-size: clamp(44px, 8vw, 130px); }

@media (max-width: 1000px) {
  /* picture on top, words underneath */
  .hs__fig { place-items: start center; padding-top: 110px; }
  .hs__fig .frame { width: min(118vw, 62svh * var(--ar, 1.6)); margin-right: 0; --fy: 0px; }
  .hs__slide::after { background: linear-gradient(0deg, var(--white) 0%, color-mix(in srgb, var(--white) 90%, transparent) 46%, transparent 70%); }
  .cat__head { display: none; }
  .cat__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding-block: 22px; }
  .cat__row > .mono { grid-column: 1 / -1; }
  .cat__d { grid-column: 1 / -1; }
  .cat__arr { grid-row: 2; grid-column: 2; }
}
@media (max-width: 640px) {
  .hs__title { font-size: 11.2vw; padding: 16px 18px 14px; --l: 14px; }
  .hs__eye { font-size: 10px; letter-spacing: .16em; }
  .hs__eye i::after { width: 40px; margin-left: 16px; }
  .hs__eye span:first-of-type { margin-left: 50px; }
  .hs__lede { font-size: 16px; }
  .hs__cta .btn { padding: 14px 16px; font-size: 12px; }
  .hs__dots { flex-direction: row; gap: 10px; }
  .hs__dots span { display: none; }
  .hs__dots button.is-on i { width: 44px; }
  .hs__nav { flex-direction: row-reverse; align-items: center; right: auto; left: var(--pad); bottom: auto; top: 84px; }
  .hs__pause { width: 32px; height: 32px; }
}

/* process: four steps */
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--4 li { padding-right: 22px; }
.steps--4 li + li { padding-left: 22px; }
@media (max-width: 1000px) {
  .steps--4 { grid-template-columns: 1fr 1fr; }
  .steps--4 li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .steps--4 li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .steps--4 { grid-template-columns: 1fr; }
  /* one column: every step starts at the same left edge */
  .steps--4 li, .steps--4 li + li, .steps--4 li:nth-child(odd) { padding: 26px 0 22px; border-left: 0; }
  .steps--4 li + li { border-top: 1px solid var(--rule); }
}
