/* =========================================================
   SERENITY Ltd — rental of diesel generators and SHACMAN trucks
   Palette (logo colours, restrained):
     white #FFFFFF · steel #F2F3F5 · graphite #1F2023 · slate #6B6F76
     red #E42320 (actions) · navy #25368B (small details only)
   Rule: never place large red and blue blocks next to each other.
   Type: Manrope 400–700
   ========================================================= */

:root {
  --paper: #ffffff;
  --steel: #f2f3f5;
  --graphite: #1f2023;
  --ink-2: #3a3b40;
  --slate: #6b6f76;
  --rule: #dcdde1;
  --field: #8e9197;
  --red: #e42320;
  --red-press: #c71b18;
  --navy: #25368b;
  --navy-tint: #eef0f8;
  --wa: #0e7a3c;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 60px;
  --sec: clamp(72px, 9vw, 120px);
  --r-panel: 28px;
  --r-card: 20px;
  --r-chip: 10px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--graphite); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 700; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; border-radius: 8px; }
.dark :focus-visible, .hero :focus-visible { outline-color: #fff; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--graphite); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -0.02em; max-width: 20ch; text-wrap: balance; }
.h2--light { color: #fff; }
.lead { margin-top: 16px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; color: var(--slate); max-width: 58ch; }
.lead--light { color: rgba(255, 255, 255, .78); }
.note { margin-top: 16px; font-size: 14px; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: var(--h); padding: 0 26px; border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 700; line-height: 1.25;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-press); }
.btn--outline { background: transparent; color: var(--graphite); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--graphite); }
.btn--glass { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .24); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.nav.is-scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { width: 34px; height: auto; }
.brand__word { width: 112px; height: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav__links a:hover { color: var(--red); }
.nav__actions { display: flex; align-items: center; gap: 16px; margin-left: 12px; }
.nav__phone { font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav__phone:hover { color: var(--red); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--graphite); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }
.mobile-menu { max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; display: flex; flex-direction: column; padding: 8px var(--gutter) 24px; border-top: 1px solid rgba(0, 0, 0, .06); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 0; font-size: 20px; font-weight: 700; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.mobile-menu .btn { margin-top: 20px; }
.mobile-menu__phone { text-align: center; border: 0 !important; font-size: 17px !important; color: var(--slate); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(88vh, 760px); display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 80px) 0 clamp(120px, 14vw, 180px); color: #fff; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 12, 14, .82) 0%, rgba(12, 12, 14, .55) 45%, rgba(12, 12, 14, .1) 80%), linear-gradient(0deg, rgba(12, 12, 14, .55) 0%, rgba(12, 12, 14, 0) 45%); }
.hero__inner { position: relative; }
.hero__title { font-size: clamp(30px, 4vw, 50px); line-height: 1.12; letter-spacing: -0.02em; max-width: 20ch; text-wrap: balance; }
.hero__lead { margin-top: 18px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.5; max-width: 46ch; color: rgba(255, 255, 255, .92); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Directions ---------- */
.directions { position: relative; z-index: 2; margin-top: clamp(-110px, -9vw, -70px); padding-bottom: var(--sec); }
.directions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.direction { display: grid; grid-template-columns: 42% 1fr; background: #fff; border-radius: var(--r-panel); overflow: hidden; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .3); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.direction:focus-visible { outline: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--graphite); }
.direction img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.direction__body { padding: 26px 26px 24px; display: flex; flex-direction: column; }
.direction h2 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -0.01em; }
.direction p { margin-top: 8px; color: var(--slate); font-size: 15px; }
.direction__link { margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--red); }
.direction__link::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }

.perks { list-style: none; margin: 40px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perks li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
.perk__icon { grid-row: span 2; }
.perk__icon, .use__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--navy-tint); display: grid; place-items: center; }
.perk__icon svg, .use__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.perks b { font-size: 16px; }
.perks span:not(.perk__icon) { font-size: 14px; color: var(--slate); }

/* ---------- Sections ---------- */
.section { padding: var(--sec) 0; }
.section--steel { background: var(--steel); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 56px; align-items: end; }
.section-head .lead { margin-top: 0; }

/* ---------- Cards ---------- */
.cards { margin-top: clamp(36px, 4vw, 52px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.section:not(.section--steel) .card { box-shadow: inset 0 0 0 1px var(--rule); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 19px; letter-spacing: -0.01em; }
.card__big { margin-top: 6px; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.card__big small { font-size: 15px; margin-left: 6px; letter-spacing: 0; color: var(--slate); font-weight: 500; }
.card__meta { margin-top: 6px; font-size: 14px; color: var(--slate); }
.card__text { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.card__specs { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card__specs div { display: flex; flex-direction: column-reverse; }
.card__specs dt { font-size: 13px; color: var(--slate); }
.card__specs dd { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.card__foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card__more { border: 0; background: none; min-height: 44px; padding: 10px 0; font-weight: 600; color: var(--graphite); text-decoration: underline; text-underline-offset: 4px; }
.card__more:hover { color: var(--red); }
.card--cta { background: var(--graphite); color: #fff; justify-content: flex-end; min-height: 280px; }
.card--cta .card__title { font-size: 22px; }
.card--cta .card__text { color: rgba(255, 255, 255, .8); }
.card--cta :focus-visible { outline-color: #fff; }

/* ---------- Compare ---------- */
.compare { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
.compare summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.compare[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare__table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.compare__table th, .compare__table td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.compare__table thead th { font-size: 13px; font-weight: 600; color: var(--slate); }
.compare__table tbody th { font-weight: 700; }

/* ---------- Dark (long-term terms) ---------- */
.dark { background: var(--graphite); color: #fff; padding: var(--sec) 0; }
.terms { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.term { border-top: 2px solid var(--red); padding-top: 20px; }
.term h3 { font-size: 18px; }
.term p { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .72); }

/* ---------- Barter ---------- */
.barter { background: var(--steel); padding: var(--sec) 0; }
.barter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.barter__text p { margin: 18px 0 28px; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); max-width: 46ch; }
.barter__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.barter__steps li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r-card); background: #fff; }
.barter__n { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; }
.barter__steps h3 { font-size: 17px; }
.barter__steps p { margin-top: 4px; font-size: 15px; color: var(--slate); }

/* ---------- Uses ---------- */
.uses { list-style: none; padding: 0; margin: clamp(36px, 4vw, 52px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.uses li { padding: 24px; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--rule); }
.uses h3 { margin-top: 16px; font-size: 18px; }
.uses p { margin-top: 6px; font-size: 15px; color: var(--slate); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: clamp(36px, 4vw, 52px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { counter-increment: step; padding-right: 28px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 1px; background: #c8cad0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-top: 20px; font-size: 19px; }
.steps p { margin-top: 8px; font-size: 15px; color: var(--slate); max-width: 26ch; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; background: var(--slate); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); max-width: 64ch; }

/* ---------- Request ---------- */
.request { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.direct-list { margin-top: 36px; display: grid; gap: 10px; max-width: 360px; }
.direct { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--r-card); background: var(--steel); font-size: 18px; font-weight: 700; transition: background-color .2s; }
.direct:hover { background: #e7e8ec; }
.direct small { display: block; font-size: 13px; font-weight: 500; color: var(--slate); }
.direct__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.direct__icon--wa { background: var(--wa); }
.direct__icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

.form { background: var(--steel); border-radius: var(--r-panel); padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; }
.chips { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-chip); background: #fff; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; box-shadow: inset 0 0 0 1px var(--field); transition: background-color .2s, color .2s, box-shadow .2s; }
.chips input:checked + span { background: var(--graphite); color: #fff; box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--graphite); outline-offset: 2px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; border: 0; border-radius: 14px; background: #fff; padding: 26px 18px 10px; font: inherit; font-size: 17px; color: var(--graphite); box-shadow: inset 0 0 0 1px var(--field); transition: box-shadow .2s; resize: vertical; }
.field textarea { min-height: 96px; }
.field input:focus, .field textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--graphite); }
.field label { position: absolute; left: 18px; right: 18px; top: 18px; font-size: 17px; color: var(--slate); pointer-events: none; transform-origin: left top; transition: transform .2s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.72); }
.field__hint { display: block; margin: 6px 0 0 4px; font-size: 14px; color: var(--slate); }
.field__err { display: none; font-size: 14px; color: var(--red-press); margin: 6px 0 0 4px; }
.field.is-invalid input { box-shadow: inset 0 0 0 2px var(--red); }
.field.is-invalid .field__err { display: block; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.form .btn { margin-top: 6px; }
.form__hint { font-size: 14px; color: var(--slate); text-align: center; }
.form__hint a { color: var(--graphite); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form__status:empty { display: none; }
.form__status { font-size: 14px; color: var(--ink-2); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--steel); padding: 64px 0 40px; font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.footer__brand > img { width: 44px; height: auto; }
.footer__brand div img { width: 140px; height: auto; margin-top: 8px; }
.footer__brand p { margin-top: 14px; color: var(--slate); max-width: 32ch; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__h { font-size: 14px; color: var(--slate); font-weight: 600; margin-bottom: 10px; }
.footer__cols a { display: block; padding: 6px 0; }
.footer__cols a:hover { color: var(--red); }
.footer__legal { padding-top: 24px; font-size: 13px; color: var(--slate); display: grid; gap: 6px; }

.quickbar { display: none; }

/* ---------- Dialog ---------- */
.dialog { border: 0; padding: 0; border-radius: var(--r-panel); width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); background: #fff; color: var(--graphite); box-shadow: 0 40px 120px rgba(0, 0, 0, .3); overscroll-behavior: contain; }
.dialog::backdrop { background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dialog[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.dialog__close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--steel); display: grid; place-items: center; }
.dialog__close svg { width: 18px; height: 18px; stroke: var(--graphite); stroke-width: 2; stroke-linecap: round; }
.dialog__body { padding: 36px 40px 40px; }
.dialog__body h2 { font-size: 24px; letter-spacing: -0.01em; }
.dialog__desc { margin-top: 10px; color: var(--slate); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid #ececf0; vertical-align: top; }
.spec-table th { color: var(--slate); font-weight: 500; width: 44%; padding-right: 12px; }
.spec-table td { font-weight: 600; }
.dialog__cta { margin-top: 28px; }

/* ---------- Hover only on real pointers ---------- */
@media (hover: hover) {
  .direction:hover { transform: translateY(-4px); box-shadow: 0 32px 70px -24px rgba(0, 0, 0, .4); }
  .direction:hover .direction__link::after { transform: rotate(45deg) translate(2px, -4px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .burger { display: block; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .terms { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps li:nth-child(2)::after { display: none; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .directions__grid, .barter__inner, .request, .faq-wrap, .section-head { grid-template-columns: 1fr; }
  .uses { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --sec: 56px; }
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body:has(.form :focus) .quickbar, body:has(.mobile-menu:not([hidden])) .quickbar { display: none; }
  .nav__phone, .nav__actions .btn { display: none; }
  .btn { white-space: normal; padding: 10px 20px; }
  .hero { min-height: 0; padding: calc(var(--nav-h) + 48px) 0 110px; }
  .hero::after { background: linear-gradient(0deg, rgba(12, 12, 14, .9) 0%, rgba(12, 12, 14, .7) 55%, rgba(12, 12, 14, .55) 100%); }
  .hero__lead { color: #fff; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .direction { grid-template-columns: 1fr; }
  .direction img { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
  .perks { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .perks li { grid-template-columns: 1fr; row-gap: 8px; }
  .perk__icon { grid-row: auto; }
  .cards, .uses, .terms, .footer__cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 0 60px; }
  .steps li::before { position: absolute; left: 0; top: 0; }
  .steps li::after { display: none; }
  .steps h3 { margin-top: 6px; }
  .card__specs dd { font-size: 14px; }
  .dialog { margin: auto 0 0; width: 100%; max-width: none; border-radius: var(--r-panel) var(--r-panel) 0 0; max-height: 90dvh; }
  .dialog__body { padding: 24px 22px 28px; }
  .quickbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(0, 0, 0, .08); }
  .quickbar__btn { height: 48px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; background: var(--red); color: #fff; }
  .quickbar__btn--wa { background: var(--wa); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Hero crossfade: generators ↔ SHACMAN ---------- */
.hero__bg--alt { opacity: 0; animation: heroSwap 14s ease-in-out infinite; object-position: center 55%; }
@keyframes heroSwap {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------- Living gradient mesh on the long-term block ---------- */
.dark { position: relative; overflow: hidden; isolation: isolate; }
.dark > .wrap { position: relative; z-index: 1; }
.dark::before, .dark::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(80px); opacity: .85; will-change: transform;
}
.dark::before {
  background: radial-gradient(circle at 50% 50%, rgba(228, 35, 32, .55), rgba(228, 35, 32, 0) 62%);
  top: -30vmax; right: -12vmax;
  animation: meshA 26s ease-in-out infinite alternate;
}
.dark::after {
  background: radial-gradient(circle at 50% 50%, rgba(37, 54, 139, .7), rgba(37, 54, 139, 0) 62%);
  bottom: -34vmax; left: -14vmax;
  animation: meshB 32s ease-in-out infinite alternate;
}
@keyframes meshA {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-14vw, 10vh) scale(1.15); }
  100% { transform: translate(-28vw, 4vh) scale(.95); }
}
@keyframes meshB {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(18vw, -8vh) scale(1.1); }
  100% { transform: translate(30vw, -2vh) scale(1.2); }
}

/* =========================================================
   Motion pack (ideas from 21st.dev, rewritten in plain CSS/JS)
   ========================================================= */

/* 2. Generator cards stack while scrolling (desktop) */
.card__desc { margin-top: 10px; }
@media (min-width: 861px) {
  .cards--stack { display: block; }
  .cards--stack .card--gen {
    position: sticky; top: calc(var(--nav-h) + 24px);
    display: grid; grid-template-columns: 1fr 1.05fr; min-height: min(480px, calc(100vh - var(--nav-h) - 64px));
    margin-bottom: 28px; transform-origin: center top; will-change: transform;
    box-shadow: 0 -18px 50px -30px rgba(0, 0, 0, .35), 0 1px 0 rgba(0, 0, 0, .04);
  }
  .cards--stack .card--gen:nth-child(2) { top: calc(var(--nav-h) + 36px); }
  .cards--stack .card--gen:nth-child(3) { top: calc(var(--nav-h) + 48px); }
  .cards--stack .card--gen:nth-child(4) { top: calc(var(--nav-h) + 60px); }
  .cards--stack .card--gen:nth-child(5) { top: calc(var(--nav-h) + 72px); }
  .cards--stack .card--gen .card__media { aspect-ratio: auto; height: 100%; }
  .cards--stack .card--gen .card__body { padding: clamp(28px, 3.4vw, 48px); justify-content: center; }
  .cards--stack .card--gen .card__title { font-size: 24px; }
  .cards--stack .card--gen .card__big { font-size: clamp(40px, 4vw, 56px); }
  .cards--stack .card--gen .card__desc { max-width: 46ch; }
  .cards--stack .card--gen .card__foot { margin-top: 28px; justify-content: flex-start; gap: 24px; }
  .cards--stack .card--cta { position: relative; z-index: 1; min-height: 0; }
  .cards--stack .card--cta .card__body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 32px; padding: 32px clamp(28px, 3.4vw, 48px); }
  .cards--stack .card--cta .card__text { margin-top: 0; grid-column: 1; }
  .cards--stack .card--cta .card__foot { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; }
}

/* 3. Steps: line fills red while scrolling, reached numbers turn red */
.steps li::after { background: linear-gradient(90deg, var(--red) var(--fill, 0%), #c8cad0 var(--fill, 0%)); height: 2px; top: 19px; }
.steps li::before { transition: background-color .35s var(--ease), transform .35s var(--ease); }
.steps li.is-reached::before { background: var(--red); transform: scale(1.06); }
@media (max-width: 640px) {
  .steps li:not(:last-child)::after { display: block; left: 19px; right: auto; top: 46px; bottom: -34px; width: 2px; height: auto; background: linear-gradient(180deg, var(--red) var(--fill, 0%), #c8cad0 var(--fill, 0%)); }
  .steps li:last-child::after { display: none; }
}

/* 4a. Headline fills word by word */
.fill-w { transition: opacity .25s linear; }

/* 4b. Soft light under the cursor */
.card, .direction, .uses li { position: relative; }
.card::after, .direction::after, .uses li::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(228, 35, 32, .09), transparent 70%);
}
.card--cta::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .10), transparent 70%); }
@media (hover: hover) {
  .card:hover::after, .direction:hover::after, .uses li:hover::after { opacity: 1; }
}

/* 6. Hero title: blur reveal on load */
.rv-w { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(.25em); animation: rvIn .9s var(--ease) forwards; }
@keyframes rvIn { to { opacity: 1; filter: blur(0); transform: none; } }

/* 7. FAQ opens smoothly (Chromium; others open instantly) */
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* 8. Main CTA: occasional light sweep */
.btn--shine { position: relative; overflow: hidden; isolation: isolate; }
.btn--shine::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: shine 6s ease-in-out 1.6s infinite; }
@keyframes shine { 0% { transform: translateX(-120%); } 18%, 100% { transform: translateX(120%); } }

/* 9. Machinery: text steps on the left, sticky photo on the right */
.mx { margin-top: clamp(28px, 4vw, 48px); }
.mx-step { padding: 28px 0; border-top: 1px solid var(--rule); }
.mx-step__img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-card); margin-bottom: 20px; }
.mx-step__title { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.mx-step__big { margin-top: 8px; font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--red); }
.mx-step__big small { font-size: 16px; margin-left: 10px; letter-spacing: 0; color: var(--slate); font-weight: 500; }
.mx-step__text { margin-top: 14px; color: var(--ink-2); max-width: 44ch; }
.mx-step .btn { margin-top: 22px; align-self: flex-start; }
.mx__media { display: none; }
@media (min-width: 861px) {
  .mx { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); }
  .mx-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; border-top: 0; padding: 0; opacity: .28; transition: opacity .5s var(--ease); }
  .mx-step.is-active { opacity: 1; }
  .mx-step__img { display: none; }
  .mx__media { display: block; position: sticky; top: calc(var(--nav-h) + (100vh - var(--nav-h) - min(62vh, 560px)) / 2); height: min(62vh, 560px); align-self: start; }
  .mx__frame { position: relative; height: 100%; border-radius: var(--r-panel); overflow: hidden; background: var(--steel); }
  .mx__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
  .mx__frame img.is-active { opacity: 1; transform: scale(1); }
  .mx__dots { position: absolute; left: 24px; bottom: 22px; display: flex; gap: 8px; }
  .mx__dots span { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .55); transition: width .4s var(--ease), background-color .4s var(--ease); }
  .mx__dots span.is-active { width: 28px; background: #fff; }
}

/* 10. Section headings rise from a mask */
.mw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mw > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.is-in .mw > span { transform: none; }

/* 11. Blocks appear one after another */
.js-motion .rv { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js-motion .rv.is-in { opacity: 1; transform: none; filter: none; }

/* 12. Parallax photos */
[data-parallax] { will-change: transform; }

/* 13. Smooth scroll + progress bar */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@media (hover: hover) { .js-motion .direction.rv.is-in:hover { transform: translateY(-4px); } }

/* =========================================================
   Hero: two halves (generators | SHACMAN)
   ========================================================= */
.hb + .directions { margin-top: 0; padding-top: clamp(40px, 5vw, 64px); }
.hb + .directions .directions__grid { display: none; }
.hb + .directions .perks { margin-top: 0; }

/* B. Two halves */
.hb { position: relative; background: var(--graphite); }
.hb__head { position: absolute; z-index: 2; left: 0; right: 0; top: 0; padding: calc(var(--nav-h) + 28px) 0 80px; background: linear-gradient(180deg, rgba(12, 12, 14, .78), rgba(12, 12, 14, 0)); pointer-events: none; }
.hb__head .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hb__head .btn { pointer-events: auto; flex: none; }
.hb__title { color: #fff; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.025em; max-width: 18ch; }
.hb__halves { display: flex; height: max(100vh, 640px); height: max(100svh, 640px); }
.hb__half { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: #fff; transition: flex-grow .8s var(--ease); animation: hbIn 1.1s var(--ease) both; }
.hb__half + .hb__half { border-left: 2px solid var(--graphite); animation-delay: .12s; }
.hb__half img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hb__half::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 12, 14, .85) 0%, rgba(12, 12, 14, .2) 50%, rgba(12, 12, 14, .1) 100%); }
.hb__body { position: absolute; z-index: 1; left: clamp(20px, 3vw, 48px); right: clamp(20px, 3vw, 48px); bottom: clamp(28px, 5vh, 56px); display: flex; flex-direction: column; align-items: flex-start; }
.hb__tag { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--red); }
.hb__name { margin-top: 14px; font-size: clamp(28px, 3.4vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.hb__meta { margin-top: 10px; font-size: 16px; color: rgba(255, 255, 255, .85); }
.hb__go { margin-top: 20px; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 99px; background: #fff; color: var(--graphite); font-weight: 700; font-size: 15px; transition: background-color .3s var(--ease), color .3s var(--ease); }
@keyframes hbIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (hover: hover) and (min-width: 861px) {
  .hb__half:hover { flex-grow: 1.45; }
  .hb__half:hover img { transform: scale(1.05); }
  .hb__half:hover .hb__go { background: var(--red); color: #fff; }
}
@media (max-width: 860px) {
  .hb__head { position: relative; background: var(--graphite); padding: calc(var(--nav-h) + 28px) 0 24px; }
  .hb__head .wrap { flex-direction: column; align-items: flex-start; }
  .hb__halves { flex-direction: column; height: auto; }
  .hb__half { flex: none; height: 62vh; min-height: 420px; }
  .hb__half + .hb__half { border-left: 0; border-top: 2px solid var(--graphite); }
}


/* 14. Real photos inside the spec dialog */
.dialog__live-h { margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--slate); }
.dialog__live { margin: 10px -40px 4px; padding: 0 40px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dialog__live::-webkit-scrollbar { display: none; }
.dialog__live img { flex: 0 0 72%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 14px; scroll-snap-align: start; background: var(--steel); }
@media (max-width: 640px) { .dialog__live { margin: 10px -22px 4px; padding: 0 22px; } .dialog__live img { flex-basis: 84%; } }

/* 15. Live photos: pinned strip that moves sideways while scrolling */
.live { position: relative; background: var(--graphite); color: #fff; padding: var(--sec) 0; }
.live .h2 { color: #fff; }
.live .lead { color: rgba(255, 255, 255, .72); }
.live__head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 56px; align-items: end; }
.live__viewport { margin-top: clamp(28px, 4vw, 48px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.live__viewport::-webkit-scrollbar { display: none; }
.live__track { display: flex; gap: 16px; padding: 0 var(--gutter); width: max-content; }
.live__item { margin: 0; position: relative; flex: none; width: min(78vw, 560px); aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; scroll-snap-align: center; background: #2a2b30; }
.live__item--tall { width: min(58vw, 340px); aspect-ratio: 3 / 4; }
.live__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.live__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; font-size: 14px; color: rgba(255, 255, 255, .85); background: linear-gradient(0deg, rgba(12, 12, 14, .82), rgba(12, 12, 14, 0)); }
.live__item figcaption b { display: block; font-size: 17px; color: #fff; }
@media (hover: hover) { .live__item:hover img { transform: scale(1.05); } }
@media (max-width: 860px) { .live__head { grid-template-columns: 1fr; } }

@media (min-width: 861px) {
  .js-motion .live { padding: 0; height: var(--live-h, 300vh); }
  .js-motion .live__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--nav-h); }
  .js-motion .live__viewport { overflow: visible; }
  .js-motion .live__track { will-change: transform; transform: translate3d(calc(var(--live-x, 0) * -1px), 0, 0); align-items: center; }
  .js-motion .live__item { width: auto; height: min(56vh, 520px); }
  .js-motion .live__item--tall { height: min(62vh, 580px); }
  .js-motion .live__item img { transform: scale(calc(1.12 - var(--k, 0) * .12)); }
}

/* 16. Real video: background of the long-term block and tiles in the live strip */
.dark__video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: grayscale(.2); }
.dark { background: var(--graphite); }
.dark::before, .dark::after { z-index: 0; }
.dark > .wrap { z-index: 1; }
.live__item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.live__item--video { aspect-ratio: 16 / 9; }
@media (max-width: 860px) { .live__item--video { width: min(86vw, 640px); } }

/* 17. Card kind label above model */
.card__kind { display: block; font-size: 15px; font-weight: 600; color: var(--muted, #6b6d73); letter-spacing: 0; margin-bottom: 4px; }

/* 18. Generator cards: slightly larger type */
.card--gen .card__kind { font-size: 16px; }
.card--gen .card__title { font-size: 21px; }
.card--gen .card__meta { font-size: 15px; }
.card--gen .card__text { font-size: 16.5px; }
.card--gen .card__specs dt { font-size: 14px; }
.card--gen .card__specs dd { font-size: 17px; }
@media (min-width: 861px) {
  .cards--stack .card--gen .card__kind { font-size: 17px; }
  .cards--stack .card--gen .card__title { font-size: 28px; }
}

/* 19. Hero head: centred heading over both photos */
.hb__head { position: absolute; z-index: 2; left: 0; right: 0; top: 0; padding: calc(var(--nav-h) + clamp(36px, 8vh, 96px)) 0 160px; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, rgba(12, 12, 14, .72) 0%, rgba(12, 12, 14, .45) 45%, rgba(12, 12, 14, 0) 80%); }
.hb__head .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.hb__title { color: #fff; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hb__lead { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .88); text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.hb__cta { margin-top: 28px; pointer-events: auto; }
.hb__head .btn { flex: none; }
@media (max-width: 860px) {
  .hb__head { position: absolute; padding: calc(var(--nav-h) + 32px) 0 120px; }
  .hb__head .wrap { align-items: flex-start; text-align: left; }
  .hb__title { font-size: clamp(32px, 9vw, 42px); }
  .hb__half:first-child { height: max(100svh, 640px); }
}
/* Hero heading in two lines, lighter footprint */
.hb__head { padding: calc(var(--nav-h) + clamp(24px, 5vh, 56px)) 0 120px; }
.hb__title { max-width: 27ch; font-size: clamp(30px, 3.3vw, 50px); line-height: 1.08; }
.hb__lead { margin-top: 12px; font-size: clamp(15px, 1.2vw, 17px); }
.hb__cta { margin-top: 20px; }
@media (max-width: 860px) { .hb__title { max-width: 20ch; font-size: clamp(28px, 7.6vw, 36px); } }
/* Hero: title only on top, round request button bottom right */
.hb__head { padding: calc(var(--nav-h) + clamp(28px, 6vh, 64px)) 0 110px; }
.hb__title { max-width: 26ch; font-size: clamp(34px, 3.9vw, 60px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }
.hb__round { position: absolute; z-index: 3; right: clamp(20px, 3vw, 48px); bottom: clamp(28px, 5vh, 56px); width: clamp(116px, 9vw, 144px); aspect-ratio: 1; border-radius: 50%;
  background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  font-weight: 700; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.2; box-shadow: 0 14px 40px rgba(228, 35, 32, .45);
  transition: transform .5s var(--ease), background-color .3s var(--ease); animation: hbIn 1.1s var(--ease) .5s both; }
.hb__round::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); animation: roundPulse 2.6s ease-out infinite; }
.hb__round svg { transition: transform .5s var(--ease); }
.hb__round:hover { transform: scale(1.07); background: #c81d1a; }
.hb__round:hover svg { transform: translate(2px, -2px); }
.hb__round:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
@keyframes roundPulse { 0% { transform: scale(.94); opacity: 1; } 100% { transform: scale(1.22); opacity: 0; } }
@media (max-width: 860px) {
  .hb__title { max-width: 20ch; font-size: clamp(30px, 8.4vw, 40px); }
  .hb__round { top: calc(var(--nav-h) + 220px); bottom: auto; right: 16px; width: 104px; font-size: 13px; }
}
/* Round button: keep SHACMAN text clear of it, no clipping of its shadow/ring */
.hb__round { animation: roundIn .9s var(--ease) .5s both; }
@keyframes roundIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@media (min-width: 861px) {
  .hb__half:last-child .hb__body { right: calc(clamp(116px, 9vw, 144px) + clamp(20px, 3vw, 48px) + 28px); }
}
/* Round button: smaller, lifted above the SHACMAN text block */
@media (min-width: 861px) {
  .hb__half:last-child .hb__body { right: clamp(20px, 3vw, 48px); }
  .hb__round { width: clamp(96px, 6.6vw, 116px); font-size: clamp(13px, .9vw, 14px); gap: 4px; bottom: calc(clamp(28px, 5vh, 56px) + 250px); }
  .hb__round svg { width: 18px; height: 18px; }
}
@media (min-width: 861px) { .hb__name { font-size: clamp(28px, 2.9vw, 50px); white-space: nowrap; } }
/* Nav: WhatsApp icon next to the phone */
.nav__wa { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-left: -6px; transition: transform .3s var(--ease), background-color .3s var(--ease); }
.nav__wa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.nav__wa:hover { transform: scale(1.08); background: #1ebe5a; }
.nav__wa:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; }
@media (max-width: 860px) { .nav__wa { display: none; } }
/* Hero: soft edges — side vignette and fade into the page below */
.hb::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 12, 14, .5) 0%, rgba(12, 12, 14, 0) 8%, rgba(12, 12, 14, 0) 92%, rgba(12, 12, 14, .5) 100%); }
.hb__half::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(90px, 14vh, 160px); z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 55%, var(--paper) 100%); }
.hb__body { z-index: 2; bottom: calc(clamp(90px, 14vh, 160px) - 20px); }
@media (max-width: 860px) {
  .hb::before { background: linear-gradient(90deg, rgba(12, 12, 14, .35) 0%, rgba(12, 12, 14, 0) 10%, rgba(12, 12, 14, 0) 90%, rgba(12, 12, 14, .35) 100%); }
  .hb__half::before { display: none; }
  .hb__half:last-child::before { display: block; height: 80px; }
  .hb__body { bottom: 28px; }
  .hb__half:last-child .hb__body { bottom: 64px; }
}
.hb__half::before { display: none !important; }
.hb::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(100px, 15vh, 170px); z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .6) 50%, var(--paper) 100%); }
@media (max-width: 860px) { .hb::after { height: 70px; } .hb__half:last-child .hb__body { bottom: 70px; } }
@media (min-width: 861px) {
  .hb__half::after { background: linear-gradient(0deg, rgba(12, 12, 14, .15) 0%, rgba(12, 12, 14, .8) 22%, rgba(12, 12, 14, .2) 58%, rgba(12, 12, 14, .1) 100%); }
}

/* Hero fades into a dark perks band (divider) */
.hb::after { background: linear-gradient(180deg, rgba(31, 32, 35, 0) 0%, rgba(31, 32, 35, .65) 50%, var(--graphite) 100%); }
.hb + .directions { background: var(--graphite); color: #fff; padding: clamp(12px, 2vw, 24px) 0 clamp(36px, 4.5vw, 56px); }
.hb + .directions .perks b { color: #fff; }
.hb + .directions .perks span:not(.perk__icon) { color: rgba(255, 255, 255, .62); }
.hb + .directions .perk__icon { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.hb + .directions .perk__icon svg { stroke: #fff; }
@media (min-width: 861px) {
  .hb + .directions .perks li + li { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 24px; }
}

/* Hero polish: seam fades out under the title, tighter bottom, no side vignette */
.hb::before { display: none; }
@media (min-width: 861px) {
  .hb__half + .hb__half { border-left: 2px solid transparent; border-image: linear-gradient(180deg, rgba(31, 32, 35, 0) 0%, rgba(31, 32, 35, 0) 28%, var(--graphite) 42%, var(--graphite) 100%) 1; }
  .hb::after { height: clamp(70px, 10vh, 100px); }
  .hb__body { bottom: clamp(64px, 9vh, 88px); }
  .hb + .directions { padding-top: 0; }
}

/* Manipulator: real photo thumbnails */
.kmu-thumbs { display: flex; gap: 10px; margin-top: 18px; }
.kmu-thumbs button { padding: 0; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; opacity: .65; transition: opacity .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.kmu-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kmu-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.kmu-thumbs button.is-active { opacity: 1; border-color: var(--red); }
.kmu-thumbs button:focus-visible { outline: 2px solid var(--graphite); outline-offset: 2px; }
[data-gallery-main] { transition: opacity .25s var(--ease), transform 1.2s var(--ease); }
[data-gallery-main].is-swap { opacity: 0 !important; }
@media (min-width: 861px) { .hb__name { font-size: clamp(26px, 2.3vw, 46px); } }
@media (min-width: 861px) { .hb__name { font-size: clamp(26px, 2.2vw, 44px); } }
@media (min-width: 861px) { .hb__name { font-size: clamp(28px, 2.9vw, 50px); } }
.hb__tag { font-size: clamp(15px, 1.1vw, 18px); padding: 8px 18px; letter-spacing: .01em; }
.hb__half img.hb__img--dump { object-position: 50% 68%; }

/* ===== 20. Mobile: compact layout, photos keep their proportions ===== */
@media (max-width: 860px) {
  /* Hero: title on graphite, then two photo cards in real proportions */
  .hb { background: var(--graphite); }
  .hb__head { position: relative; padding: calc(var(--nav-h) + 22px) 0 18px; background: var(--graphite); }
  .hb__head .wrap { align-items: flex-start; text-align: left; }
  .hb__title { font-size: clamp(26px, 7.2vw, 34px); max-width: 18ch; text-shadow: none; }
  .hb__halves { flex-direction: column; height: auto; gap: 10px; margin: 0; padding: 0 12px 12px; border-radius: 0; overflow: visible; }
  .hb__half, .hb__half:first-child, .hb__half:last-child { flex: none; height: auto; min-height: 0; aspect-ratio: 4 / 3; border-radius: 18px; border: 0 !important; }
  .hb__half::after { background: linear-gradient(0deg, rgba(12, 12, 14, .88) 0%, rgba(12, 12, 14, .35) 55%, rgba(12, 12, 14, .05) 100%); }
  .hb__body, .hb__half:last-child .hb__body, .hb__half:first-child .hb__body { left: 16px; right: 16px; bottom: 16px; }
  .hb__tag { font-size: 12px; padding: 5px 11px; }
  .hb__name { margin-top: 8px; font-size: 24px; white-space: normal; }
  .hb__meta { margin-top: 4px; font-size: 13px; line-height: 1.4; }
  .hb__go { margin-top: 12px; min-height: 38px; padding: 0 16px; font-size: 14px; }
  .hb::after { display: none; }
  .hb + .directions { padding: 6px 0 28px; }
  .hb + .directions .perks li + li { border-left: 0; padding-left: 0; }

  /* Generators: swipe carousel instead of a 4500px column */
  #gens.cards { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #gens.cards::-webkit-scrollbar { display: none; }
  #gens .card { flex: 0 0 86%; scroll-snap-align: start; box-shadow: inset 0 0 0 1px var(--rule); }
  #gens .card--cta { box-shadow: none; }
  .card--gen .card__media { aspect-ratio: 4 / 3; }
  .card--gen .card__body { padding: 16px 18px 18px; }
  .card--gen .card__title { font-size: 20px; }
  .card--gen .card__kind { font-size: 14px; }
  .card--gen .card__big { font-size: 28px; }
  .card--gen .card__desc { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card--gen .card__specs { margin-top: 12px; padding-top: 12px; }
  .card--gen .card__specs dd { font-size: 15px; }
  .card--gen .card__specs dt { font-size: 12px; }
  .card--gen .card__foot { margin-top: 14px; gap: 14px; flex-wrap: wrap; align-items: center; }

  /* Uses: icon left, text right, tighter */
  .uses { grid-template-columns: 1fr; gap: 10px; }
  .uses li { padding: 16px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  .uses .use__icon { grid-row: span 2; }
  .uses h3 { margin-top: 0; font-size: 17px; }
  .uses p { margin-top: 2px; font-size: 14.5px; }

  /* Machinery steps closer together */
  .mx-step { padding-bottom: 28px; }
  .mx-step__img { margin-bottom: 14px; }
  .mx-step .btn { margin-top: 16px; }
  .kmu-thumbs { margin-top: 14px; }
  .kmu-thumbs button { width: 56px; height: 56px; }
}
@media (max-width: 640px) {
  .steps li { padding-right: 0; padding-bottom: 22px; }
  .steps p { max-width: none; font-size: 14.5px; }
  .terms { gap: 22px; }
}
@media (min-width: 561px) and (max-width: 860px) {
  .hb__halves { flex-direction: row; }
  .hb__half, .hb__half:first-child, .hb__half:last-child { flex: 1 1 0 !important; aspect-ratio: 3 / 4; }
}

/* ===== 21. Audit fixes: focus, contrast, tap targets, video controls ===== */
/* Visible focus on the dark hero */
.hb :focus-visible { outline-color: #fff; }
.hb__half:focus-visible { outline: 3px solid #fff; outline-offset: -8px; border-radius: 22px; }
.hb__half:focus-visible .hb__go { background: var(--red); color: #fff; }
/* Sections focused by in-page links: no ring for mouse users */
section[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }

/* Machinery: inactive steps stay readable */
@media (min-width: 861px) {
  .mx-step { opacity: .6; }
  .mx-step:focus-within { opacity: 1; }
}

/* WhatsApp icon in the nav: same dark green as the quickbar (white icon 5.4:1) */
.nav__wa { background: var(--wa); }
.nav__wa:hover { background: #0b6532; }

/* Field and chip borders: at least 3:1 */
:root { --field: #808389; }

/* Phone error: only shown when it has text */
.field__err:empty { display: none !important; }

/* Footer links: 44px tap targets on phones */
@media (max-width: 860px) { .footer__cols a { padding: 11px 0; } }

/* Bottom-sheet dialog clears the iPhone home indicator */
@media (max-width: 640px) { .dialog__body { padding-bottom: calc(28px + env(safe-area-inset-bottom)); } }

/* Scrollable strips: visible focus ring when tabbed to */
.live__viewport:focus-visible, .dialog__live:focus-visible { outline: 2px solid var(--graphite); outline-offset: 4px; border-radius: 12px; }
.dark .live__viewport:focus-visible { outline-color: #fff; }

/* Mobile hero button: 44px */
@media (max-width: 860px) { .hb__go { min-height: 44px; } }

/* Pause / play buttons for looping videos */
.live__item--video { position: relative; }
.vid-toggle { position: absolute; z-index: 3; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(31, 32, 35, .62); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .2s; }
.vid-toggle:hover { background: rgba(31, 32, 35, .85); }
.vid-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vid-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vid-toggle .i-play { display: none; fill: currentColor; stroke-width: 1.5; }
.vid-toggle.is-paused .i-pause { display: none; }
.vid-toggle.is-paused .i-play { display: block; }
.vid-toggle--bg { top: auto; bottom: 20px; right: 20px; }
.dark { position: relative; }
