/* Yesha Engineering: site styles
   Palette: steel paper, graphite ink, machine-frame blue, melt orange (heat only). */

:root {
  --steel: #e8ebee;
  --steel-2: #d6dbe1;
  --paper: #f5f6f7;
  --hair: #b4bcc6;
  --ink: #121417;
  --ink-2: #2a2f36;
  --mute: #5a626c;
  --blue: #1b45d6;
  --blue-ink: #1236a8;
  --melt: #ff5a1f;
  --melt-2: #ff8a3d;

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 3vw, 40px);
  --max: 1440px;
  --nav-h: 64px;
  --r: 4px;
  --r-lg: 8px;
  --ease: cubic-bezier(.625, .05, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blue); color: #fff; }

/* ---------- type ---------- */
.display, h1, h2, h3 { font-family: var(--f-display); font-stretch: 112%; margin: 0; }
h1, .h1 { font-size: clamp(2.5rem, 6vw, 5.75rem); font-weight: 700; line-height: .96; letter-spacing: -.035em; }
h2, .h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
h3, .h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; font-stretch: 106%; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.125rem, 1.4vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.mono, .label {
  font-family: var(--f-mono); font-size: .75rem; line-height: 1.4;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
}
.label { color: var(--mute); display: inline-flex; align-items: center; gap: .6em; }
.label::before { content: ""; width: 8px; height: 8px; background: var(--blue); flex: none; }
.label--plain::before { display: none; }
.muted { color: var(--mute); }
.split-line { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 5fr 7fr; align-items: end; }
  .section-head .lead { justify-self: end; }
}
.section-head .label { margin-bottom: 20px; }
.dark { background: var(--ink); color: var(--steel); }
.dark .label, .dark .muted { color: #9aa3ad; }
.dark .lead { color: #c9cfd6; }
.blueprint-grid {
  background-image:
    linear-gradient(var(--steel-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-2) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: -1px -1px;
}

/* ---------- buttons & links ---------- */
.btn {
  --bg: var(--ink); --fg: var(--steel);
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 20px; border-radius: var(--r);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bg);
  font: 500 .9375rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.btn--blue { --bg: var(--blue); --fg: #fff; }
.btn--blue:hover { --bg: var(--blue-ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--hair); }
.btn--ghost:hover { border-color: var(--ink); }
.dark .btn--ghost { --fg: var(--steel); border-color: #3a4048; }
.dark .btn--ghost:hover { border-color: var(--steel); }
.btn--light { --bg: var(--steel); --fg: var(--ink); }
.btn--sm { height: 40px; padding: 0 16px; font-size: .875rem; }
.btn__roll { display: inline-block; overflow: hidden; height: 1.2em; line-height: 1.2em; }
.btn__roll span { display: block; transition: transform .55s var(--ease); }
.btn:hover .btn__roll span { transform: translateY(-100%); }
.btn__arrow { width: 14px; height: 14px; flex: none; transition: transform .55s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.link {
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease); padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; }
.link--under { background-size: 100% 1px; }
.link--under:hover { animation: relink .7s var(--ease); }
@keyframes relink { 0% { background-position: 100% 100%; background-size: 100% 1px; } 50% { background-position: 100% 100%; background-size: 0 1px; } 51% { background-position: 0 100%; } 100% { background-size: 100% 1px; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 12px var(--gutter) auto; z-index: 50; max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto;
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(calc(-100% - 20px)); }
.nav__bar {
  height: var(--nav-h); display: flex; align-items: center; gap: 8px;
  background: rgba(245, 246, 247, .88); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(18, 20, 23, .08); border-radius: var(--r-lg); padding: 0 8px 0 18px;
}
.nav__logo { display: block; margin-right: auto; }
.nav__logo img { height: 32px; width: auto; }
.nav__links { display: none; align-items: center; gap: 2px; margin-right: 8px; }
.nav__link {
  background: none; border: 0; padding: 10px 14px; border-radius: var(--r);
  font: 500 .9375rem/1 var(--f-body); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: background .3s var(--ease);
}
.nav__link { transition: color .3s var(--ease), background .3s var(--ease); }
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--blue); }
.nav__link.is-current { color: var(--blue); }
.nav__dd { position: relative; }
.dd {
  position: absolute; top: calc(100% + 14px); left: -8px; min-width: 300px; z-index: 2;
  background: var(--paper); border: 1px solid rgba(18, 20, 23, .08); border-radius: var(--r-lg); padding: 8px;
  box-shadow: 0 30px 60px -30px rgba(18, 20, 23, .35);
  clip-path: inset(0 0 100% 0 round 8px); visibility: hidden; opacity: 0;
}
.dd--right { left: auto; right: -8px; }
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dd__head { color: var(--mute); padding: 8px 12px 6px; margin: 0; }
.dd a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r); text-decoration: none; font-size: .95rem; transition: background .25s, color .25s; }
.dd a small { color: var(--mute); font-size: .72rem; }
.dd a:hover { background: var(--steel); color: var(--blue); }
.dd__all { color: var(--blue); margin-top: 4px; border-top: 1px solid var(--steel-2); border-radius: 0 0 var(--r) var(--r) !important; }
.nav__link svg { width: 10px; transition: transform .4s var(--ease); }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__cta { display: none; }
.nav__burger {
  width: 48px; height: 48px; border: 0; background: var(--ink); color: var(--steel); border-radius: var(--r);
  display: grid; place-items: center;
}
.nav__burger span { width: 18px; height: 1.5px; background: currentColor; display: block; position: relative; transition: transform .4s var(--ease); }
.nav__burger span::after { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span::before { content: ""; position: absolute; left: 0; top: -6px; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__burger span::after { top: 0; transform: rotate(-45deg); }
@media (min-width: 1000px) {
  .nav__links, .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

/* mega menu */
.mega {
  position: absolute; top: calc(var(--nav-h) + 8px); left: 0; right: 0;
  background: var(--paper); border: 1px solid rgba(18, 20, 23, .08); border-radius: var(--r-lg);
  display: grid; grid-template-columns: 300px 1fr 280px; min-height: 420px; overflow: hidden;
  clip-path: inset(0 0 100% 0 round 8px); visibility: hidden;
  box-shadow: 0 30px 60px -30px rgba(18, 20, 23, .35);
}
.mega.is-open { visibility: visible; }
.mega [hidden] { display: none !important; }
.mega__cats { position: relative; padding: 16px; border-right: 1px solid var(--steel-2); }
.mega__hl { position: absolute; left: 16px; right: 16px; top: 0; height: 0; background: var(--steel); border-radius: var(--r); pointer-events: none; }
.mega__cat {
  position: relative; display: flex; justify-content: space-between; align-items: baseline; width: 100%;
  padding: 12px 14px; border: 0; background: none; text-align: left; border-radius: var(--r);
  font: 500 1rem/1.2 var(--f-body); text-decoration: none;
}
.mega__cat small { font-family: var(--f-mono); font-size: .7rem; color: var(--mute); }
.mega__cat.is-active { color: var(--blue); }
.mega__list { padding: 28px 32px; columns: 2; column-gap: 32px; align-content: start; }
.mega__list a { display: block; break-inside: avoid; padding: 7px 0; text-decoration: none; font-size: .9375rem; color: var(--ink-2); }
.mega__list a:hover { color: var(--blue); }
.mega__desc { column-span: all; margin-bottom: 16px; color: var(--mute); font-size: .9375rem; max-width: 36em; }
.mega__feature { background: var(--steel); padding: 16px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.mega__feature img { aspect-ratio: 4/3; object-fit: contain; width: 100%; mix-blend-mode: multiply; }
.mega__feature .h3 { font-size: 1.05rem; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--steel);
  padding: calc(var(--nav-h) + 48px) var(--gutter) 32px; display: flex; flex-direction: column; gap: 24px;
  clip-path: inset(0 0 100% 0); visibility: hidden; overflow-y: auto;
}
.mobile-menu.is-open { visibility: visible; }
.mobile-menu a.big { font: 700 clamp(2.25rem, 9vw, 3.5rem)/1.05 var(--f-display); font-stretch: 112%; letter-spacing: -.03em; text-decoration: none; display: block; overflow: hidden; }
.mobile-menu a.big span { display: inline-block; }
.mobile-menu .mm-foot { margin-top: auto; display: grid; gap: 8px; color: #9aa3ad; }
.mobile-menu .mm-foot a { text-decoration: none; color: var(--steel); }

/* ---------- page transition ---------- */
.shutter { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: repeat(6, 1fr); pointer-events: none; }
.shutter div { background: var(--blue); transform-origin: top; border-right: 1px solid rgba(255, 255, 255, .12); }
.shutter__mark { position: fixed; inset: 0; z-index: 101; display: grid; place-items: center; pointer-events: none; color: #fff; }
html.is-loading body { overflow: hidden; }
html:not(.js) .shutter, html:not(.js) .shutter__mark { display: none; }

/* ---------- RUN: hero + live extrusion line ---------- */
.run { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.run__sheet {
  position: absolute; inset: calc(var(--nav-h) + 24px) var(--gutter) var(--gutter);
  border: 1px solid var(--hair); display: grid; grid-template-rows: auto 1fr auto auto; max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto;
}
.run__top { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--hair); color: var(--mute); }
.run__top .stage-now { color: var(--ink); }
.run__head { position: relative; padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px) 0; }
.run__intro { display: grid; gap: 16px 48px; }
.run__intro h1 { max-width: 13ch; font-size: clamp(2.4rem, 4.6vw, 4.6rem); }
.run__intro .lead { margin: 0 0 16px; max-width: 34em; }
@media (min-width: 1000px) {
  .run__intro { grid-template-columns: 7fr 5fr; align-items: end; }
  .run__intro h1 { grid-row: span 2; }
  .run .step { display: grid; grid-template-columns: 7fr 5fr; gap: 0 48px; max-width: none; right: 0; align-items: end; }
  .run .step .label { grid-column: 1 / -1; }
  .run .step h2 { margin: 0; max-width: 14ch; }
  .run .step p { margin: 0; }
}
.run__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.run__hint { display: inline-flex; gap: 10px; align-items: center; margin-left: 12px; color: var(--mute); }
.run__hint i { width: 1px; height: 28px; background: var(--hair); position: relative; overflow: hidden; }
.run__hint i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.run__steps { position: absolute; inset: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px) auto; pointer-events: none; }
.step { position: absolute; inset: 0 auto auto 0; max-width: 34em; opacity: 0; visibility: hidden; }
.step .label { margin-bottom: 14px; }
.step h2 { font-size: clamp(1.9rem, 3.6vw, 3.25rem); margin-bottom: 14px; }
.step p { color: var(--ink-2); max-width: 30em; }
.step .label::before { background: var(--melt); }
.run__diagram { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 0; }
.run__svg { width: 100%; height: auto; max-height: 100%; display: block; flex: none; }
@media (max-width: 899px) {
  .run__svg { width: 820px; max-width: none; max-height: none; }
  .run__intro h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .run__intro .lead { font-size: .95rem; margin-bottom: 4px; }
  .run__actions .btn--ghost, .run__hint { display: none; }
  .run__top span:first-child { display: none; }
  .step h2 { font-size: 1.75rem; }
  .step p { font-size: .95rem; }
}
.run__block { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--hair); }
.run__block > div { padding: 8px 14px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); min-width: 0; }
.run__block > div:nth-child(2n) { border-right: 0; }
.run__block dt { color: var(--mute); }
.run__block dd { margin: 2px 0 0; font: 500 clamp(.95rem, 1.3vw, 1.2rem)/1.2 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run__block dd.hot { color: var(--melt); }
@media (min-width: 900px) {
  .run__block { grid-template-columns: 1.6fr repeat(5, 1fr); }
  .run__block > div { border-bottom: 0; }
  .run__block > div:nth-child(2n) { border-right: 1px solid var(--hair); }
  .run__block > div:last-child { border-right: 0; }
}
@media (max-width: 899px) { .run__block > div:nth-child(n+5) { display: none; } }
.run__progress { height: 3px; background: var(--steel-2); }
.run__progress i { display: block; height: 100%; width: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* svg drawing */
.ln { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ln-thin { fill: none; stroke: var(--hair); stroke-width: 1.2; }
.ln-dash { fill: none; stroke: var(--hair); stroke-width: 1.2; stroke-dasharray: 5 5; }
.fill-paper { fill: var(--paper); }
.fill-steel2 { fill: var(--steel-2); }
.fill-blue { fill: var(--blue); }
.svg-t { font-family: var(--f-mono); font-size: 15px; letter-spacing: .04em; fill: var(--mute); text-transform: uppercase; }
.svg-t.big { font-size: 17px; fill: var(--ink); font-weight: 500; text-transform: none; }
.svg-tag { font-family: var(--f-mono); font-size: 17px; letter-spacing: .06em; fill: var(--mute); text-transform: uppercase; transition: fill .3s; }
.svg-tag.is-on { fill: var(--blue); font-weight: 600; }
.heater { fill: var(--steel-2); stroke: var(--ink); stroke-width: 1.6; }

/* ---------- from drawing to steel (parts assemble into a line) ---------- */
.build { position: relative; }
.build__pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); padding: calc(var(--nav-h) + 32px) 0 40px; overflow: hidden; }
.build__head { display: grid; gap: 16px; align-items: end; }
@media (min-width: 900px) { .build__head { grid-template-columns: 7fr 5fr; } .build__note { justify-self: end; text-align: right; } }
.build__note { max-width: 30em; margin: 0; }
.build__stage { position: relative; min-height: clamp(320px, 54vh, 620px); display: grid; align-items: center; }
.build__parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.part { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.part__img { aspect-ratio: 4 / 3; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; }
.part__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10px; }
.part figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid var(--hair); padding-top: 10px; }
.part__tag { color: var(--blue); }
.build__line { position: absolute; inset: 0 var(--gutter); margin: 0; display: flex; flex-direction: column; gap: 12px; visibility: hidden; }
.build__line img { flex: 1; min-height: 0; width: 100%; object-fit: contain; background: var(--paper); border-radius: var(--r-lg); mix-blend-mode: multiply; padding: clamp(8px, 2vw, 24px); }
.build__line figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mute); border-top: 1px solid var(--hair); padding-top: 10px; }
@media (max-width: 899px) {
  .build__parts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .part figcaption { flex-direction: column; gap: 2px; }
  .part .h3 { font-size: 1.05rem; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; display: flex; user-select: none; border-block: 1px solid var(--hair); }
.marquee__track { display: flex; flex: none; gap: 0; animation: marquee var(--dur, 40s) linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee--words .marquee__track span {
  font: 700 clamp(2rem, 5vw, 4.5rem)/1 var(--f-display); font-stretch: 125%; letter-spacing: -.02em;
  padding: 24px 0; display: inline-flex; align-items: center;
}
.marquee--words .marquee__track span::after { content: ""; width: .32em; height: .32em; background: var(--blue); margin: 0 .6em; display: inline-block; }
.marquee--words .marquee__track span.is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee--logos { border: 0; }
.marquee--logos .marquee__track { gap: 16px; padding-right: 16px; }
.logo-tile { width: 180px; height: 104px; flex: none; background: #fff; border-radius: var(--r-lg); display: grid; place-items: center; padding: 18px 26px; }
.logo-tile img { max-height: 64px; width: auto; object-fit: contain; transition: transform .5s var(--ease); }
.logo-tile:hover img { transform: scale(1.05); }

/* ---------- applications drag slider ---------- */
.apps { overflow: hidden; }
.apps__track { display: flex; gap: 16px; padding: 0 var(--gutter); width: max-content; cursor: grab; touch-action: pan-y; }
.apps__track:active { cursor: grabbing; }
.app {
  width: clamp(260px, 30vw, 420px); flex: none; text-decoration: none; display: flex; flex-direction: column; gap: 14px;
  user-select: none; -webkit-user-drag: none;
}
.app__img { aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: var(--steel-2); }
.app__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); pointer-events: none; }
.app:hover .app__img img { transform: scale(1.05); }
.app__meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.app__meta .mono { color: var(--mute); text-align: right; }
.apps__bar { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.apps__progress { flex: 1; height: 1px; background: var(--hair); position: relative; }
.apps__progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(.1); }
.cursor-drag {
  position: fixed; left: 0; top: 0; z-index: 60; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; pointer-events: none; transform: scale(0);
  font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
}
@media (hover: none) { .cursor-drag { display: none; } }

/* ---------- families index ---------- */
.families { border-top: 1px solid var(--hair); }
.family {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--hair);
  text-decoration: none; position: relative;
}
.family__name { font: 700 clamp(1.6rem, 3.4vw, 3rem)/1 var(--f-display); font-stretch: 112%; letter-spacing: -.03em; transition: transform .6s var(--ease), color .4s; }
.family__desc { grid-column: 1 / -1; color: var(--mute); max-width: 40em; font-size: .975rem; }
.family__count { font-family: var(--f-mono); font-size: .8rem; color: var(--mute); display: flex; gap: 14px; align-items: center; }
.family__count svg { width: 18px; transition: transform .5s var(--ease); }
.family:hover .family__name { transform: translateX(14px); color: var(--blue); }
.family:hover .family__count svg { transform: rotate(-45deg); }
@media (min-width: 900px) {
  .family { grid-template-columns: 1.3fr 1fr auto; }
  .family__desc { grid-column: auto; }
}
.family-peek {
  position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 4/3; pointer-events: none; border-radius: var(--r-lg);
  overflow: hidden; background: var(--paper); opacity: 0; transform: scale(.6);
  box-shadow: 0 30px 60px -20px rgba(18, 20, 23, .35);
}
.family-peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10px; opacity: 0; }
@media (hover: none) { .family-peek { display: none; } }

/* ---------- numbers (odometer) ---------- */
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #2c3138; }
.number { padding: 28px 20px 28px 0; border-bottom: 1px solid #2c3138; }
.number + .number { padding-left: 20px; border-left: 1px solid #2c3138; }
.number:nth-child(3) { border-left: 0; padding-left: 0; }
@media (min-width: 900px) {
  .numbers { grid-template-columns: repeat(4, 1fr); }
  .number:nth-child(3) { border-left: 1px solid #2c3138; padding-left: 20px; }
}
.number__v { font: 700 clamp(3rem, 7vw, 6.5rem)/1 var(--f-display); font-stretch: 112%; letter-spacing: -.04em; display: flex; align-items: flex-start; font-variant-numeric: tabular-nums; }
.number__v sup { font-size: .4em; color: var(--melt); margin-left: .08em; top: 0; line-height: 1.4; }
.number p { margin: 12px 0 0; color: #9aa3ad; max-width: 18em; font-size: .95rem; }
.odo { display: inline-flex; align-items: flex-start; overflow: hidden; height: 1em; line-height: 1; }
.odo__d { display: inline-flex; flex-direction: column; flex: none; }
.odo__d span { height: 1em; display: block; }
.odo__sep { display: inline-block; }

/* ---------- why: stacking cards ---------- */
.stack { display: grid; gap: 16px; }
.card-stack {
  position: sticky; top: calc(var(--nav-h) + 32px + var(--i, 0) * 16px);
  background: var(--paper); border: 1px solid var(--steel-2); border-radius: var(--r-lg);
  display: grid; gap: 24px; padding: clamp(24px, 3vw, 44px); min-height: 360px; transform-origin: center top;
}
@media (min-width: 900px) { .card-stack { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.card-stack__media { border-radius: var(--r); overflow: hidden; background: var(--steel); min-height: 220px; }
.card-stack__media img { width: 100%; height: 100%; object-fit: cover; }
.card-stack__media.contain img { object-fit: contain; mix-blend-mode: multiply; padding: 16px; }
.card-stack__body { display: flex; flex-direction: column; gap: 16px; }
.card-stack__body .big { font: 700 clamp(3rem, 6vw, 5.5rem)/1 var(--f-display); font-stretch: 112%; letter-spacing: -.04em; color: var(--blue); margin-top: auto; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--hair); }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__q {
  width: 100%; background: none; border: 0; text-align: left; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  font: 600 clamp(1.1rem, 1.6vw, 1.35rem)/1.25 var(--f-display); font-stretch: 106%;
}
.faq__icon { width: 28px; height: 28px; flex: none; border: 1px solid var(--hair); border-radius: 50%; position: relative; transition: background .4s var(--ease), border-color .4s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--ink); color: var(--steel); border-color: var(--ink); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { height: 0; overflow: hidden; }
.faq__a > div { padding: 0 0 24px; color: var(--ink-2); max-width: 46em; }

/* ---------- CTA + footer ---------- */
.cta { padding-top: clamp(96px, 12vw, 180px); padding-bottom: clamp(56px, 6vw, 80px); }
.cta h2 { font-size: clamp(2.6rem, 7vw, 6.5rem); max-width: 12ch; line-height: .95; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.cta__grid { display: grid; gap: 48px; align-items: end; }
@media (min-width: 1000px) { .cta__grid { grid-template-columns: 7fr 5fr; } }

/* contact cards: hairline list, blue edge on hover */
.contact-strip { display: grid; border-top: 1px solid var(--f-line); }
.contact-strip > a {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 18px 4px 18px 18px; border-bottom: 1px solid var(--f-line); text-decoration: none;
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.contact-strip > a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--f-accent); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.contact-strip > a:hover { background: var(--f-panel); padding-left: 24px; }
.contact-strip > a:hover::before { transform: scaleY(1); }
.contact-strip .label { grid-column: 1; }
.contact-strip strong { grid-column: 1; font-weight: 500; font-size: 1.05rem; color: var(--steel); word-break: break-word; }
.contact-strip .btn__arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--f-soft); }
.contact-strip > a:hover .btn__arrow { color: var(--f-accent); transform: translateX(3px); }

/* footer sheet: the last sheet of the drawing set */
.site-foot {
  --f-line: #262b33; --f-panel: #171a1f; --f-soft: #8b95a3; --f-text: #c3cad3;
  --f-accent: #7f9cff; --f-accent-2: #a9bcff;
}
.site-foot .label::before { background: var(--f-accent); }
.foot-wrap { padding-bottom: 20px; }
.foot-sheet {
  border: 1px solid var(--f-line); border-radius: var(--r-lg); background: var(--f-panel);
  background-image: linear-gradient(rgba(232, 235, 238, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 235, 238, .035) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; overflow: hidden;
}
.foot-sheet__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--f-line); color: var(--f-soft); }
.foot-top {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r);
  background: transparent; border: 1px solid var(--f-line); color: var(--f-text);
  font: 500 .75rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; transition: border-color .3s, color .3s;
}
.foot-top svg { width: 12px; transition: transform .45s var(--ease); }
.foot-top:hover { border-color: var(--f-accent); color: #fff; }
.foot-top:hover svg { transform: translateY(-3px); }

.foot-grid { display: grid; gap: 36px 24px; padding: clamp(28px, 4vw, 48px) clamp(18px, 3vw, 40px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; padding-right: 24px; } }
.foot-brand__logo { display: inline-block; width: fit-content; }
.foot-brand__logo img { height: 44px; width: auto; }
.foot-sheet__id { display: inline-flex; align-items: center; gap: 10px; }
.foot-sheet__id img { height: 18px; width: auto; }

/* rotating badge around the Yesha mark */
.cta__side { display: grid; gap: 28px; }
.badge { position: relative; width: clamp(120px, 12vw, 160px); aspect-ratio: 1; justify-self: end; display: grid; place-items: center; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 28s linear infinite; }
.badge__ring text { font: 500 12.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; fill: var(--f-soft); }
.badge::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 1px solid var(--f-line); background: radial-gradient(circle, rgba(127, 156, 255, .16), transparent 70%); }
.badge__mark { position: relative; width: 44%; height: auto; transition: transform .8s var(--ease); }
.badge:hover .badge__mark { transform: rotate(-12deg) scale(1.08); }
.badge:hover .badge__ring { animation-duration: 8s; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 999px) { .badge { justify-self: start; } }
.foot-brand p { color: var(--f-soft); max-width: 28em; font-size: .95rem; margin: 0; }
.foot-brand address { font-style: normal; color: var(--f-soft); line-height: 1.7; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.foot-social a {
  height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 20px; border: 1px solid var(--f-line);
  color: var(--f-text); text-decoration: none; font-size: .875rem; transition: border-color .3s, color .3s, background .3s;
}
.foot-social a:hover { border-color: var(--f-accent); color: #fff; background: rgba(127, 156, 255, .08); }
.foot-col h4 { font: 500 .75rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--f-accent); margin: 0 0 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot-col a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 0; text-decoration: none; color: var(--f-text); font-size: .95rem;
  transition: color .3s, transform .45s var(--ease);
}
.foot-col a::before { content: "→"; width: 0; overflow: hidden; color: var(--f-accent); transition: width .45s var(--ease); }
.foot-col a:hover { color: #fff; }
.foot-col a:hover::before { width: 1.1em; }

/* wordmark: outline, calm blue fill on scroll, and a soft light that follows the cursor */
.footer__mark { position: relative; margin: 0 clamp(18px, 3vw, 40px); padding-top: 8px; border-top: 1px solid var(--f-line); overflow: hidden; }
/* --fw is set by JS so the word always fits the frame; the clamp is only a pre-JS fallback */
.footer__word { font: 800 var(--fw, clamp(3rem, 17vw, 16rem))/.86 var(--f-display); font-stretch: 125%; letter-spacing: -.05em; white-space: nowrap; padding: .04em 0; text-align: center; }
.footer__word--line { color: transparent; -webkit-text-stroke: 1px rgba(169, 188, 255, .16); }
.footer__word--fill, .footer__word--glow { position: absolute; left: 0; right: 0; top: 8px; -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__word--fill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, transparent 50%),
    linear-gradient(90deg, #2d4aa6 0%, #3d63d6 30%, #6283ea 52%, #4466d4 74%, #2f4dab 100%);
  -webkit-background-clip: text; background-clip: text;
  clip-path: inset(0 100% 0 0);
}
.footer__word--glow {
  --mx: -400; --my: -400; opacity: 0; pointer-events: none;
  background: radial-gradient(260px circle at calc(var(--mx) * 1px) calc(var(--my) * 1px), rgba(200, 214, 255, .75), rgba(200, 214, 255, 0) 70%);
  -webkit-background-clip: text; background-clip: text;
}
.footer__dim { display: flex; align-items: center; gap: 14px; margin: 10px 0 22px; color: var(--f-soft); }
.footer__dim i { flex: 1; height: 1px; background: rgba(127, 156, 255, .35); position: relative; }
.footer__dim i::before, .footer__dim i::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: rgba(127, 156, 255, .6); }
.footer__dim i::before { left: 0; }
.footer__dim i::after { right: 0; }

/* title block, like the corner of a drawing sheet */
.foot-block { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border-top: 1px solid var(--f-line); }
.foot-block > div { padding: 10px 18px; border-right: 1px solid var(--f-line); border-bottom: 1px solid var(--f-line); }
.foot-block > div:nth-child(2n) { border-right: 0; }
.foot-block > div:nth-last-child(-n+2) { border-bottom: 0; }
.foot-block dt { color: var(--f-soft); }
.foot-block dd { margin: 3px 0 0; color: var(--f-text); font-size: .8rem; }
@media (min-width: 900px) {
  .foot-block { grid-template-columns: repeat(4, 1fr); }
  .foot-block > div { border-bottom: 0; }
  .foot-block > div:nth-child(2n) { border-right: 1px solid var(--f-line); }
  .foot-block > div:last-child { border-right: 0; }
}

/* floating whatsapp */
.wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; height: 52px; padding: 0 18px 0 14px; border-radius: 26px;
  background: #1f8f4e; color: #fff; display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 500 .9rem/1 var(--f-body); box-shadow: 0 12px 30px -10px rgba(18, 20, 23, .45);
  transition: transform .5s var(--ease);
}
.wa:hover { transform: translateY(-3px); }
.wa svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .wa span { display: none; } .wa { padding: 0; width: 52px; justify-content: center; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(64px, 10vw, 140px)) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 { max-width: 16ch; }
@media (min-width: 900px) { .page-hero .section-head { grid-template-columns: 7fr 5fr; } }
.page-hero .lead { margin-top: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--mute); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---------- machines grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 32px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--hair); background: transparent;
  font: 500 .875rem/1 var(--f-body); display: inline-flex; align-items: center; gap: 8px; transition: background .3s, color .3s, border-color .3s;
}
.chip small { font-family: var(--f-mono); font-size: .7rem; color: var(--mute); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--steel); border-color: var(--ink); }
.chip.is-active small { color: #9aa3ad; }
.search { margin-left: auto; position: relative; }
.search input {
  height: 40px; width: min(280px, 70vw); border-radius: 20px; border: 1px solid var(--hair); background: var(--paper);
  padding: 0 16px 0 38px; font: 400 .9rem var(--f-body);
}
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 14px; color: var(--mute); }
@media (max-width: 700px) { .search { margin-left: 0; width: 100%; } .search input { width: 100%; } }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mcard {
  background: var(--paper); border-radius: var(--r-lg); text-decoration: none; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid transparent; transition: border-color .4s var(--ease);
}
.mcard:hover { border-color: var(--hair); }
.mcard__img { aspect-ratio: 4/3; background: var(--steel); position: relative; overflow: hidden; }
.mcard__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 14px; transition: transform .9s var(--ease); }
.mcard:hover .mcard__img img { transform: scale(1.06); }
.mcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.mcard__cat { color: var(--mute); }
.mcard__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.spec-chip { font: 500 .7rem/1 var(--f-mono); letter-spacing: .04em; padding: 6px 8px; border-radius: 3px; background: var(--steel); color: var(--ink-2); }
.empty { padding: 64px 0; color: var(--mute); }

/* ---------- machine detail ---------- */
.mhero { padding: calc(var(--nav-h) + 64px) 0 40px; }
.mhero__grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .mhero__grid { grid-template-columns: 1.1fr .9fr; align-items: end; } }
.mhero h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); max-width: 14ch; }
.mhero .lead { margin-top: 20px; }
.readout { border: 1px solid var(--hair); border-radius: var(--r); background: var(--paper); }
.readout__head { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--hair); color: var(--mute); }
.readout dl { margin: 0; display: grid; }
.readout dl > div { display: grid; grid-template-columns: minmax(120px, 1fr) 1.4fr; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--steel-2); }
.readout dl > div:last-child { border-bottom: 0; }
.readout dt { color: var(--mute); }
.readout dd { margin: 0; font: 500 .9rem/1.4 var(--f-mono); }
.mstage { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; display: flex; justify-content: center; align-items: center; padding: clamp(12px, 3vw, 40px); }
.mstage img { width: auto; height: auto; max-width: 100%; max-height: min(72vh, 760px); object-fit: contain; mix-blend-mode: multiply; border-radius: var(--r); cursor: zoom-in; }
.mbody { display: grid; gap: 48px; }
@media (min-width: 1000px) { .mbody { grid-template-columns: 280px 1fr; } }
.mbody aside { position: relative; }
.mbody aside .sticky { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 16px; }
.prose { max-width: 46em; color: var(--ink-2); }
.prose h3 { margin: 2em 0 .6em; color: var(--ink); }
.prose h4 { font: 500 .8rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); margin: 2em 0 .8em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--blue); }
.prose table, .spec-table { width: 100%; border-collapse: collapse; font: 400 .85rem/1.4 var(--f-mono); margin: 1.5em 0; display: block; overflow-x: auto; }
.prose th, .prose td, .spec-table th, .spec-table td { border-bottom: 1px solid var(--steel-2); padding: 10px 14px 10px 0; text-align: left; white-space: nowrap; }
.prose th, .spec-table th { color: var(--mute); font-weight: 500; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; }
.gallery { overflow: hidden; }
.gallery .apps__track .app { width: clamp(240px, 26vw, 360px); }
.gallery .app__img { aspect-ratio: 1; background: var(--paper); }
.gallery .app__img img { object-fit: contain; mix-blend-mode: multiply; padding: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(18, 20, 23, .92); display: none; place-items: center; padding: var(--gutter); }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 86vh; width: auto; border-radius: var(--r); background: var(--paper); }
.lightbox button { position: absolute; top: 16px; right: 16px; }

/* ---------- about ---------- */
.founder { display: grid; gap: 40px; }
@media (min-width: 900px) { .founder { grid-template-columns: 5fr 7fr; align-items: center; } }
.founder__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--steel-2); }
.founder__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.quote { font: 600 clamp(1.5rem, 2.8vw, 2.4rem)/1.15 var(--f-display); font-stretch: 106%; letter-spacing: -.02em; margin: 0 0 24px; }
.quote::before { content: "“"; color: var(--blue); }
.quote::after { content: "”"; color: var(--blue); }
.timeline { display: grid; gap: 0; }
@media (min-width: 900px) { .timeline { grid-template-columns: 5fr 7fr; gap: 48px; } }
.timeline__year { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.timeline__year .odo { font: 800 clamp(5rem, 14vw, 12rem)/1 var(--f-display); font-stretch: 112%; letter-spacing: -.05em; height: 1em; color: var(--blue); }
@media (max-width: 899px) { .timeline__year { top: calc(var(--nav-h) + 20px); background: var(--steel); z-index: 2; padding: 8px 0; } .timeline__year .odo { font-size: 4.5rem; } }
.milestone { padding: 40px 0; border-top: 1px solid var(--hair); min-height: 46vh; display: grid; align-content: start; gap: 14px; opacity: .35; transition: opacity .5s var(--ease); }
.milestone.is-active { opacity: 1; }
.milestone .mono { color: var(--blue); }
.milestone p { max-width: 30em; color: var(--ink-2); }
.tri { display: grid; gap: 16px; }
@media (min-width: 900px) { .tri { grid-template-columns: repeat(3, 1fr); } }
.tri > div { background: var(--paper); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; align-content: start; }
.tri > div p { color: var(--ink-2); margin: 0; }
.photo-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .photo-row { grid-template-columns: 2fr 1fr 1fr; } }
.photo-row figure { margin: 0; display: grid; gap: 10px; }
.photo-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg); }
.photo-row figcaption { color: var(--mute); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.checks li { padding: 18px 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.checks li svg { width: 18px; color: var(--blue); margin-top: 4px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 7fr 5fr; } }
.form { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font: 500 .75rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--hair); background: var(--paper); border-radius: var(--r);
  padding: 12px 14px; font: 400 1rem/1.4 var(--f-body); color: var(--ink); transition: border-color .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 69, 214, .15); }
.field .err { color: #b3261e; font-size: .85rem; display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3261e; }
.field.is-invalid .err { display: block; }
.form-note { color: var(--mute); font-size: .9rem; }
.form-done { display: none; background: var(--paper); border-left: 3px solid var(--blue); padding: 20px; border-radius: var(--r); }
.info-list { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.info-list > div { padding: 18px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 6px; }
.info-list a { text-decoration: none; }
.map { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--steel-2); margin-top: 24px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- reveal defaults ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-split] { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-split] { visibility: visible; }
  .build__line { position: relative; visibility: visible; margin-top: 24px; }
  .card-stack { position: relative; top: 0; }
}

/* ---------- mobile optimisation ---------- */
/* grid/flex children must be allowed to shrink, or wide tables push the page sideways */
.mbody > *, .contact-grid > *, .founder > *, .section-head > *, .mhero__grid > *, .timeline > * { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { padding: 10px 0; margin: -10px 0; }
.info-list a { display: inline-block; padding: 6px 0; }
.spec-chip, .chip small, .mega__cat small { font-size: .75rem; }
.prose th, .spec-table th { font-size: .75rem; }

@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .nav { inset: 8px 10px auto; }
  .nav__bar { padding: 0 6px 0 14px; }
  .nav__logo img { height: 28px; }
  .nav__burger { width: 44px; height: 44px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .lead { font-size: 1.05rem; }

  /* catalogue: two compact columns and a swipeable filter row */
  .filters { gap: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; height: 44px; }
  .search { order: -1; }
  .search input { height: 44px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mcard__body { padding: 12px; gap: 8px; }
  .mcard .h3 { font-size: .98rem; }
  .mcard__cat { font-size: .75rem; }
  .mcard__specs .spec-chip:nth-child(n+2) { display: none; }
  .mcard__specs .spec-chip { white-space: normal; }

  /* machine detail */
  .mhero { padding-top: calc(var(--nav-h) + 40px); }
  .readout dl > div { grid-template-columns: 1fr 1.3fr; gap: 10px; }
  .mbody { gap: 24px; }
  .mbody aside .sticky { position: static; }
  .cta__row .btn, .run__actions .btn { flex: 1 1 auto; justify-content: center; }

  /* numbers */
  .number { padding: 22px 12px 22px 0; }
  .number + .number { padding-left: 12px; }
  .number:nth-child(3) { padding-left: 0; }
  .number__v { font-size: clamp(2.3rem, 11vw, 3rem); }

  /* stacking cards become a simple list */
  .card-stack { position: relative; top: 0; min-height: 0; padding: 20px; }
  .card-stack__media { min-height: 200px; order: -1; }
  .card-stack__body .big { margin-top: 8px; }

  /* timeline: year lives in each milestone */
  .timeline__year { display: none; }
  .milestone { opacity: 1; min-height: 0; padding: 28px 0; }
  .milestone .h2 { font-size: 1.6rem; }

  /* family rows */
  .family { padding: 20px 0; }
  .family__count { grid-row: 1; grid-column: 2; }

  /* footer */
  .footer__dim span:last-child { display: none; }
  .cta h2 { font-size: clamp(2.4rem, 11vw, 3.2rem); }

  .wa.is-tucked { transform: translateY(140%); }
  .apps__track .app { width: 72vw; }
}
@media (max-width: 330px) {
  .grid { grid-template-columns: 1fr; }
}
