/* Theodore Montross Farm Machine – design v3 (light only)
   Colors come from the logo: barn red, field green, black and cream.
   Change them in the variables below. */

:root {
  --red: #b3261e;
  --red-dark: #8c1c16;
  --red-bright: #e0453a;
  --red-soft: #fbeceb;
  --green: #3e6a2a;
  --green-dark: #27451a;
  --green-soft: #edf3e7;
  --ink: #1b1b1b;

  --bg: #ffffff;
  --bg2: #f8f5ec;      /* cream, like the logo background */
  --card: #ffffff;
  --card2: #f6f3ea;
  --line: #ebe6da;
  --line2: #d9d2c2;
  --text: #1d2125;
  --muted: #646a70;
  --steel: #3e444a;

  /* names used by inline styles in the pages (style="--c:var(--amber)" …) */
  --accent: var(--red);
  --amber: var(--green);
  --teal: var(--green);
  --violet: var(--ink);
  --ember: var(--red-dark);

  --shadow: 0 22px 44px -26px rgba(40, 30, 10, .28);
  --shadow-sm: 0 2px 6px rgba(40, 30, 10, .06);
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Outfit', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --wrap: 1240px;
  --header-h: 90px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); } /* links to #sections stop below the fixed header */
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a, button, label, summary { -webkit-tap-highlight-color: transparent; } /* no grey/blue flash on tap (iPhone, Android) */
.lightbox, .drawer-panel, .nsel-list { overscroll-behavior: contain; } /* scrolling inside does not move the page behind */
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex-shrink: 0; }
svg:not([width]) { width: 1.25em; height: 1.25em; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
::selection { background: var(--red); color: #fff; }

.grad-text { color: var(--red); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 700 .74rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.eyebrow.amber { color: var(--green); }
.lead { font-size: 1.12rem; color: var(--steel); max-width: 640px; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 700; font-size: .96rem; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 22px -12px rgba(179, 38, 30, .7); }
@media (hover: hover) { .btn-primary:hover { background: var(--red-dark); } }
.btn-amber { background: var(--red); color: #fff; }
@media (hover: hover) { .btn-amber:hover { background: var(--red-dark); } }
.btn-green { background: var(--green); color: #fff; }
@media (hover: hover) { .btn-green:hover { background: var(--green-dark); } }
.btn-ghost { background: #fff; border-color: var(--ink); color: var(--ink); }
@media (hover: hover) { .btn-ghost:hover { background: var(--ink); color: #fff; } }
.btn-light { background: #fff; color: var(--red); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .88rem; }
.btn-lg { height: 60px; padding: 0 30px; font-size: 1.05rem; }
.btn-lg svg { width: 20px; height: 20px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: .94rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
@media (hover: hover) { .link-arrow:hover svg { transform: translateX(4px); } }

/* ---------- header ---------- */
header.site { position: fixed; inset: 0 0 auto; z-index: 60; padding: 10px 0; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: padding .3s; }
header.site.scrolled { padding: 5px 0; }
.header-row { display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand picture, .footer-logo picture, picture.pic { display: contents; } /* the <picture> wrapper (WebP + PNG) does not change the layout */
.brand img { height: 68px; width: auto; transition: height .3s; }
header.site.scrolled .brand img { height: 52px; }
nav.main { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-item > a, .nav-item > button {
  display: flex; align-items: center; gap: 5px; height: 42px; padding: 0 14px; border-radius: 8px; white-space: nowrap;
  font-size: .95rem; font-weight: 600; color: var(--ink); background: none; border: 0; cursor: pointer; transition: background .2s, color .2s;
}
.nav-item.open > button { color: var(--red); background: var(--red-soft); }
@media (hover: hover) { .nav-item > a:hover, .nav-item > button:hover { color: var(--red); background: var(--red-soft); } }
.nav-item > a.active, .nav-item > button.active { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav-item > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-item.open > button svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 280px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .22s var(--ease);
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: none; } }
@media (hover: hover) { .nav-item:hover .dropdown::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; } }
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 9px; transition: background .2s; }
@media (hover: hover) { .dropdown a:hover { background: var(--card2); } }
.dropdown a .dico { width: 36px; height: 36px; margin: 0; border-radius: 9px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.dropdown a .dico svg { width: 18px; height: 18px; }
.dropdown a b { display: block; font-size: .92rem; font-weight: 700; color: var(--ink); }
.dropdown a small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; background: #fff; border: 1px solid var(--line2); color: var(--ink); transition: .2s; }
@media (hover: hover) { .icon-btn:hover { border-color: var(--red); color: var(--red); } }
.icon-btn svg { width: 19px; height: 19px; }
.call-pill { height: 46px; padding: 0 18px; }
.menu-btn { display: none; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: .3s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); padding: 20px; overflow-y: auto; background: #fff; transform: translateX(100%); transition: transform .35s var(--ease); }
.drawer.open { pointer-events: auto; }
.drawer.open::before { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-head .brand img { height: 52px; }
.drawer nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.drawer nav a.active { color: var(--red); }
.drawer .btn { margin-top: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 60px) 0 80px; overflow: hidden; isolation: isolate; }
/* The photo fills the whole width, text on top. */
.hero-bg { position: absolute; inset: var(--header-h) 0 0; z-index: -2; overflow: hidden; background: #2a2620; }
.hero-bg .hs { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-bg .hs.on { opacity: 1; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(16, 14, 10, .7) 0%, rgba(16, 14, 10, .45) 70%, rgba(16, 14, 10, .2) 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; color: #fff; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.02em; max-width: 980px; text-shadow: 0 3px 24px rgba(0, 0, 0, .45); }
.hero h1 .grad-text { color: #fff; text-decoration: underline 0.11em var(--red); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.hero .lead { color: #f4f1ea; margin: 6px 0 34px; max-width: 560px; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px; margin-bottom: 24px; background: var(--red); color: #fff; font: 700 .76rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { background: rgba(255, 255, 255, .96); border-color: #fff; color: var(--ink); }
@media (hover: hover) { .hero .btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; } }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 40px; color: #ece8de; font-size: .94rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero-stats b { color: #fff; font: 700 1.05rem var(--display); margin-right: 6px; }
.hero-stats .live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6cc04a; margin-right: 9px; box-shadow: 0 0 0 4px rgba(108, 192, 74, .25); }
.hero-dots { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; display: flex; gap: 8px; }
.hero-dots button { width: 26px; height: 5px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; padding: 0; transition: .3s; }
.hero-dots button.on { width: 44px; background: var(--red); }
.hero-caption { position: absolute; right: 28px; bottom: 24px; font-size: .82rem; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .92); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow-sm); }
@media (hover: hover) { .hero-caption:hover { color: var(--red); } }

@media (min-width: 901px) {
  /* desktop: shade only behind the text on the left, the machine on the right stays clear */
  .hero::before { background: linear-gradient(90deg, rgba(16, 14, 10, .72) 0%, rgba(16, 14, 10, .5) 34%, rgba(16, 14, 10, .12) 62%, rgba(16, 14, 10, 0) 100%); }
  /* the photo a little "zoomed out": a 5:3 box on the right shows more of the machine than a full-width crop;
     on the left it fades into a blurred copy of the same photo, so the hero keeps its size */
  .hero-bg .hs-blur { filter: blur(26px) brightness(.85); transform: scale(1.12); }
  .hero-bg .hs-main { left: auto; right: 0; width: auto; max-width: 100%; aspect-ratio: 5 / 3;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%);
    mask-image: linear-gradient(to right, transparent 0, #000 18%); }
}
@media (max-width: 900px) { .hero-bg .hs-blur { display: none; } }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--bg2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 42px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin: 0; max-width: 560px; }
.section-head h2 { margin-bottom: 10px; }
.center-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.center-head p { color: var(--muted); }
.caps { text-transform: uppercase; letter-spacing: .01em; }

/* finder */
.finder { position: relative; padding: 70px 0 80px; background: var(--bg2); }
.finder-title { text-align: center; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 24px; }
.finder-bar { display: grid; grid-template-columns: repeat(4, 1fr) auto; padding: 8px; background: #fff; border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); }
.fd { position: relative; padding: 10px 18px; border-right: 1px solid var(--line); }
.fd:nth-child(4) { border-right: 0; }
.fd label { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.fd select { width: 100%; background: none; border: 0; outline: 0; font-weight: 600; font-size: 1rem; cursor: pointer; appearance: none; padding-right: 20px; color: var(--ink); }
.fd::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: translateY(-20%) rotate(45deg); pointer-events: none; }
.finder-bar { position: relative; z-index: 6; }
.fd.nsel-host::after { display: none; }

/* styled dropdowns (site.js niceSelects): the native select is hidden, this is drawn instead */
.nsel { position: relative; }
.nsel > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.nsel-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 50px; padding: 0 14px 0 15px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; color: var(--ink); font-weight: 600; text-align: left; cursor: pointer; outline: 0; transition: border-color .2s, box-shadow .2s; }
@media (hover: hover) { .nsel-btn:hover { border-color: #c9bfab; } }
.nsel-btn:focus-visible, .nsel.open .nsel-btn { border-color: var(--red); box-shadow: 0 0 0 4px rgba(179, 38, 30, .12); }
.nsel-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsel-chev { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.nsel.open .nsel-chev { transform: rotate(180deg); }
.nsel-list { position: absolute; left: 0; top: calc(100% + 8px); z-index: 40; min-width: 100%; max-height: 312px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line2); border-top: 3px solid var(--red); border-radius: 12px; box-shadow: 0 24px 48px -18px rgba(40, 30, 10, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .22s var(--ease), visibility 0s linear .22s; scrollbar-width: thin; }
.nsel.up .nsel-list { top: auto; bottom: calc(100% + 8px); border-top: 1px solid var(--line2); border-bottom: 3px solid var(--red); transform: translateY(6px); }
.nsel.open .nsel-list { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .22s var(--ease); }
.nsel-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; color: var(--text); white-space: nowrap; cursor: pointer; }
.nsel-list li + li { margin-top: 2px; }
.nsel-list li.act { background: var(--bg2); color: var(--ink); }
.nsel-list li.sel { color: var(--red); font-weight: 700; background: var(--red-soft); }
.nsel-tick { flex: 0 0 auto; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

/* inside the home "I'm looking for" bar the button is borderless, like plain text */
.fd .nsel { margin: 0 -10px; }
.fd .nsel-btn { height: 34px; padding: 0 10px; border-color: transparent; border-radius: 8px; font-size: 1rem; }
@media (hover: hover) { .fd .nsel-btn:hover { background: var(--bg2); border-color: transparent; } }
.fd .nsel.open .nsel-btn, .fd .nsel-btn:focus-visible { background: var(--bg2); border-color: transparent; box-shadow: none; }
.fd .nsel-list { min-width: calc(100% + 16px); }
.filters .nsel-btn { height: 46px; }
.inv-top .nsel-btn { height: 44px; min-width: 200px; }
.inv-top .nsel-list { left: auto; right: 0; }
.finder-bar .btn { height: 58px; padding: 0 30px; }
.finder-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; text-align: center; }
.finder-stats b { display: block; font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--display); margin-bottom: 8px; color: var(--red); }
.finder-stats span { color: var(--muted); font-size: .94rem; }

/* category carousel (illustrated tiles) */
.cat-carousel { position: relative; padding: 0 64px; }
.cat-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 20px) / 5); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 2px 14px; }
.cat-track::-webkit-scrollbar { display: none; }
.cat-tile { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 16px 30px; border-radius: 8px; background: #fff; border: 1px solid var(--line2); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
@media (hover: hover) { .cat-tile:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: 0 22px 36px -24px rgba(179, 38, 30, .5); } }
.cat-art { width: 100%; height: 140px; display: grid; place-items: center; margin-bottom: 20px; }
.cat-art svg, .cat-art img.own { width: 100%; height: 100%; object-fit: contain; transition: transform .45s var(--ease); }
.cat-art img:not(.own) { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
@media (hover: hover) { .cat-tile:hover .cat-art svg, .cat-tile:hover .cat-art img.own { transform: scale(1.07) translateY(-2px); } }
.cat-tile h3 { margin: 0; font-size: 1.15rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.car-btn { position: absolute; top: 50%; translate: 0 -60%; width: 50px; height: 50px; border-radius: 8px; z-index: 2; display: grid; place-items: center; cursor: pointer; border: 0; background: var(--red); color: #fff; transition: opacity .25s; }
.car-btn:disabled { opacity: .35; cursor: default; }
/* carousel and photo arrows: always solid red, no colour change on hover, tap or focus */
.car-btn, .gal-btn, .lb-btn { -webkit-tap-highlight-color: transparent; outline: 0; }
.car-btn:hover, .car-btn:active, .car-btn:focus,
.gal-btn:hover, .gal-btn:active, .gal-btn:focus,
.lb-btn:hover, .lb-btn:active, .lb-btn:focus { background: var(--red); color: #fff; outline: 0; }
.car-btn svg { width: 22px; height: 22px; }
.car-btn.prev { left: 0; }
.car-btn.next { right: 0; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.car-dots button { width: 9px; height: 9px; border-radius: 9px; border: 0; padding: 0; cursor: pointer; background: var(--line2); transition: width .3s var(--ease), background .3s; }
.car-dots button.on { width: 30px; background: var(--red); }
/* the dots stay thin, but a finger can hit them: invisible tap area around each one */
.hero-dots button, .car-dots button { position: relative; }
.hero-dots button::before, .car-dots button::before { content: ''; position: absolute; inset: -16px -4px; }

/* icon chips (used by why-cards, dropdown) */
.dico, .wico { --c: var(--red); width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 11%, #fff); color: var(--c); margin-bottom: 18px; }
.dico svg, .wico svg { width: 22px; height: 22px; }

/* unit cards */
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.unit-card { position: relative; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line2); transition: transform .35s var(--ease), box-shadow .35s; }
@media (hover: hover) { .unit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); } }
.unit-card .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--card2); }
.unit-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
@media (hover: hover) { .unit-card:hover .thumb img { transform: scale(1.05); } }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 11px; border-radius: 6px; font: 800 .68rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--red); }
.badge.amber { background: var(--ink); }
.badge.teal { background: var(--green); }
.photo-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; font-size: .76rem; font-weight: 600; background: rgba(255, 255, 255, .92); color: var(--ink); }
.photo-count svg { width: 14px; height: 14px; }
.unit-card .body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.unit-card .cat { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.unit-card h3 { margin: 6px 0 4px; font-size: 1.22rem; }
@media (hover: hover) { .unit-card h3 a:hover { color: var(--red); } }
.unit-card .sub { color: var(--muted); font-size: .86rem; margin-bottom: 14px; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.spec-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: var(--card2); font-size: .8rem; color: var(--steel); }
.spec-chips svg { width: 14px; height: 14px; color: var(--muted); }
.unit-card .price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 18px; }
.price { font: 800 1.6rem/1 var(--display); color: var(--red); }
.price small { display: block; font: 500 .76rem var(--font); color: var(--muted); margin-top: 6px; }
.card-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 16px; }

/* photo band (inner pages) */
.pband { position: relative; min-height: 420px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.pband img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; will-change: transform; }
.pband::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 14, 10, .72) 0%, rgba(16, 14, 10, .45) 40%, rgba(16, 14, 10, 0) 75%); }
.pband.right::after { background: linear-gradient(270deg, rgba(16, 14, 10, .72) 0%, rgba(16, 14, 10, .45) 40%, rgba(16, 14, 10, 0) 75%); }
.pband .wrap, .pband h2 { color: #fff; }
.pband .eyebrow { color: #fff; }
.pband.right .wrap > div { margin-left: auto; text-align: right; max-width: 620px; }
.pband.right .eyebrow { flex-direction: row-reverse; }
.pband h2 { max-width: 620px; text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.pband p { color: #f1eee6; max-width: 520px; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.pband.right p { margin-left: auto; }

/* split / steps */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--steel); }
.ticks li svg { width: 22px; height: 22px; color: var(--green); margin-top: 1px; }
.ticks b { color: var(--ink); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill-row span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line2); font-size: .88rem; font-weight: 600; }
.pill-row svg { width: 16px; height: 16px; color: var(--green); }
.steps { display: grid; gap: 14px; }
.step { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line2); transition: border-color .3s, transform .3s var(--ease); }
@media (hover: hover) { .step:hover { border-color: var(--red); transform: translateX(4px); } }
.step .num { width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; font: 800 1.25rem var(--display); background: var(--red); color: #fff; }
.step .num svg { width: 24px; height: 24px; }
.step h3 { margin: 4px 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }
.steps.row { grid-template-columns: repeat(var(--n, 3), 1fr); }
.steps.row .step { grid-template-columns: 1fr; }
@media (hover: hover) { .steps.row .step:hover { transform: translateY(-4px); } }
.note { color: var(--muted); font-size: .86rem; margin-top: 18px; }
.note a { color: var(--red); font-weight: 600; }

/* feature / why cards */
.why-grid { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 18px; }
.why-card { --c: var(--red); padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line2); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
@media (hover: hover) { .why-card:hover { transform: translateY(-5px); border-color: var(--c); box-shadow: var(--shadow); } }
.why-card h3 { margin-bottom: 8px; }
.why-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.why-grid.center .why-card { text-align: center; }
.why-grid.center .wico { margin-inline: auto; }

/* protection cards (warranty + returns) */
.protect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.protect { --c: var(--red); position: relative; padding: 36px; border-radius: 18px; background: #fff; border: 1px solid var(--line2); border-top: 5px solid var(--c); box-shadow: var(--shadow-sm); }
.protect .kicker { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.protect h3 { font-size: 1.6rem; margin: 10px 0 10px; }
.protect p { color: var(--muted); }
.protect .ticks { margin-bottom: 24px; }
.protect .ticks svg { color: var(--c); }

/* financing band */
/* financing band: the logo's black, with a red stripe on top (like the "Farm Machine" ribbon) */
.fin-band { position: relative; border-radius: 22px; overflow: hidden; padding: 56px; background: #1d1b18; border-top: 5px solid var(--red); color: #fff; }
.fin-band::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 440px; height: 440px; border-radius: 50%; border: 60px solid rgba(179, 38, 30, .16); }
.fin-band > * { position: relative; z-index: 1; }
.fin-band h2 { color: #fff; }
.fin-band .eyebrow.amber { color: var(--red-bright); }
.fin-band .lead { color: #d9d4ca; }
.fin-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0; }
.fin-perks div { padding: 22px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.fin-perks b { display: block; font: 700 1.05rem var(--display); margin-bottom: 6px; }
.fin-perks span { font-size: .92rem; color: #cfc9be; }
.fin-steps { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16); }
.fin-steps ol { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; counter-reset: f; }
.fin-steps li { counter-increment: f; display: flex; align-items: center; gap: 10px; font-size: .94rem; }
.fin-steps li::before { content: "0" counter(f); font: 800 .82rem var(--display); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; }

/* cta */
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 44px 48px; border-radius: 20px; background: var(--red); color: #fff; }
.cta-card h2 { color: #fff; margin-bottom: 6px; }
.cta-card p { margin: 0; color: #fbe3e1; }
.cta-card .btn-ghost { background: transparent; border-color: #fff; color: #fff; }
@media (hover: hover) { .cta-card .btn-ghost:hover { background: #fff; color: var(--red); } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* contact block */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line2); aspect-ratio: 4 / 3; background: var(--card2); margin-top: 22px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.info-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.info-list a, .info-list div { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line2); transition: border-color .2s; }
@media (hover: hover) { .info-list a:hover { border-color: var(--red); } }
.info-list .ii { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.info-list .ii svg { width: 19px; height: 19px; }
.info-list small { display: block; color: var(--muted); font-size: .78rem; }
.info-list b { font-weight: 600; font-size: .96rem; word-break: break-word; }

/* forms */
.form-card { padding: 32px; border-radius: 18px; background: #fff; border: 1px solid var(--line2); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--steel); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; height: 50px; padding: 0 15px; border-radius: 10px; outline: 0; background: #fff; border: 1px solid var(--line2); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { height: 120px; padding: 13px 15px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(179, 38, 30, .12); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; cursor: pointer; font-size: .92rem; font-weight: 500; margin: 0; color: var(--text); }
.seg input { accent-color: var(--red); width: 16px; height: 16px; margin: 0; }
.seg label.on { border-color: var(--red); background: var(--red-soft); } /* set by site.js (works on older iPhones too) */
.form-ok { display: none; margin: 14px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--green-soft); border: 1px solid #c3d8b4; color: var(--green-dark); font-size: .92rem; }
.form-ok.form-error { color: #842323; background: #fff3f1; border-color: #e4b5b1; }
.lead-form button:disabled { opacity: .65; cursor: default; }
.form-note { color: var(--muted); font-size: .82rem; margin-top: 12px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 64px) 0 64px; overflow: hidden; isolation: isolate; background: var(--bg2); }
.page-hero.has-img { color: #fff; background: #222; }
.page-hero.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 14, 10, .74) 0%, rgba(16, 14, 10, .5) 45%, rgba(16, 14, 10, .08) 85%); }
.page-hero.has-img h1 { color: #fff; text-shadow: 0 3px 20px rgba(0, 0, 0, .45); }
.page-hero.has-img .grad-text { color: #fff; text-decoration: underline 0.1em var(--red); text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.page-hero.has-img .lead { color: #f4f1ea; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.page-hero.has-img .eyebrow { color: #fff; }
.page-hero.has-img .crumbs { color: #eee8dc; }
.page-hero.has-img .btn-ghost { background: #fff; border-color: #fff; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); max-width: 860px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
@media (hover: hover) { .crumbs a:hover { color: var(--red); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* prose */
.prose p { color: var(--steel); }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.prose h3 { margin-top: 1.6em; }
.panel { padding: 30px; border-radius: 18px; background: #fff; border: 1px solid var(--line2); }
.panel.notice { border-color: #e9c9c6; background: var(--red-soft); }
.panel.notice h3 { color: var(--red); display: flex; align-items: center; gap: 10px; }
.panel.notice h3 svg { width: 22px; height: 22px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line2); color: var(--steel); }
.check-list li svg { width: 22px; height: 22px; color: var(--green); margin-top: 1px; }
.check-list b { color: var(--ink); }

/* ---------- inventory page ---------- */
.inv-layout { display: grid; grid-template-columns: 290px 1fr; gap: 30px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line2); display: grid; gap: 16px; }
.filters h3 { display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: 1.1rem; }
.filters h3 button { background: none; border: 0; color: var(--red); font-size: .84rem; cursor: pointer; font-weight: 700; }
.filters .field input, .filters .field select { height: 46px; }
.range-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.cat-pills button { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line2); background: #fff; cursor: pointer; font-size: .82rem; color: var(--steel); transition: .2s; }
@media (hover: hover) { .cat-pills button:hover { border-color: var(--red); color: var(--red); } }
.cat-pills button.on { background: var(--red); color: #fff; border-color: var(--red); }
.cat-pills small { opacity: .75; margin-left: 3px; }
.inv-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.inv-top .count { color: var(--muted); }
.inv-top .count b { color: var(--ink); font-family: var(--display); font-size: 1.15rem; }
.inv-top select { height: 44px; padding: 0 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line2); outline: 0; }
.filter-toggle { display: none; }
.filter-done { display: none; } /* "Show results" button: only on phone/tablet, where the filters fold away */
.inv-layout .unit-grid { grid-template-columns: repeat(2, 1fr); }
.empty { grid-column: 1 / -1; padding: 50px; text-align: center; border: 1px dashed var(--line2); border-radius: 16px; color: var(--muted); }
.empty a { color: var(--red); font-weight: 600; }

/* ---------- unit page ---------- */
.unit-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--card2); border: 1px solid var(--line2); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
/* very wide (panoramic) photos, e.g. long trailers: show them whole instead of cutting the ends off */
.gallery-main img.pano, .unit-card .thumb img.pano { object-fit: contain; }
.gal-btn { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 10px; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.gal-btn svg { width: 22px; height: 22px; }
.gal-btn.prev { left: 14px; }
.gal-btn.next { right: 14px; }
.gal-count { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 6px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .82rem; font-weight: 600; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs button { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--card2); opacity: .7; transition: .2s; }
.thumbs button.on { opacity: 1; border-color: var(--red); }
@media (hover: hover) { .thumbs button:hover { opacity: 1; border-color: var(--red); } }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.unit-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 18px; }
.unit-side h1 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 8px 0 14px; }
.price-box { margin: 4px 0 20px; padding: 16px 20px; background: var(--card2); border-left: 4px solid var(--red); border-radius: 0 8px 8px 0; }
.price-box small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price-box .price { display: block; font-size: 2.4rem; margin: 6px 0 6px; color: var(--ink); }
.price-box em { font-style: normal; font-size: .8rem; color: var(--muted); }
.side-actions { display: grid; gap: 10px; }
.side-actions .btn { height: 54px; border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
.side-actions .btn-ghost { border: 1px solid var(--line2); }
@media (hover: hover) { .side-actions .btn-ghost:hover { border-color: var(--ink); } }
.side-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.side-perks button { display: flex; align-items: flex-start; gap: 10px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.side-perks .pi { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.side-perks .pi svg { width: 19px; height: 19px; }
.side-perks b { display: block; font-size: .92rem; color: var(--ink); line-height: 1.25; }
.side-perks small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
@media (hover: hover) { .side-perks button:hover b { color: var(--red); } }
.side-phone { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .9rem; }
.side-phone a { color: var(--red); font-weight: 700; }

/* unit: spec + description cards */
.spec-card { margin-top: 24px; padding: 32px 34px 34px; background: #fff; border: 1px solid var(--line2); border-top: 3px solid var(--red); border-radius: 10px; }
.spec-card .kick { display: inline-flex; align-items: center; gap: 12px; font: 700 .76rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.spec-card .kick::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.spec-card h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 10px 0 18px; }
.spec-card h3 { font-size: 1.15rem; letter-spacing: .04em; margin: 0 0 18px; }
.key-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 26px; }
.key-grid > div { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.key-grid .ki { flex: none; width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.key-grid .ki svg { width: 20px; height: 20px; }
.key-grid small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.key-grid b { display: block; font-size: .98rem; color: var(--ink); margin-top: 3px; word-break: break-word; }
.desc-text { color: var(--muted, #5c5750); line-height: 1.7; margin: 0 0 20px; max-width: 75ch; }
.desc-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.desc-tabs .chev { display: none; }
.desc-tabs .desc-list { order: 1; width: 100%; margin-top: 4px; }
.desc-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line2); background: var(--card2); color: var(--ink); cursor: pointer; font: 700 .82rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; }
.desc-tabs button svg { width: 16px; height: 16px; color: var(--red); }
@media (hover: hover) { .desc-tabs button:hover { border-color: var(--ink); } }
.desc-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.desc-tabs button.on svg { color: #fff; }
.desc-list { list-style: none; margin: 0; padding: 14px 26px; background: var(--card2); border-left: 4px solid var(--red); }
.desc-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line2); color: var(--muted); }
.desc-list li:last-child { border-bottom: 0; }
.desc-list .di { flex: none; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.desc-list .di svg { width: 15px; height: 15px; }
.desc-list b { color: var(--ink); font-weight: 700; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 10, .96); display: none; align-items: center; justify-content: center; padding: 40px 90px; touch-action: pan-y; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; user-select: none; -webkit-user-drag: none; }
.lightbox .close { position: absolute; top: 18px; right: 18px; z-index: 2; }
.lb-btn { position: absolute; top: 50%; translate: 0 -50%; width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); z-index: 2; }
.lb-btn svg { width: 26px; height: 26px; }
.lb-btn.prev { left: 20px; }
.lb-btn.next { right: 20px; }
.lb-count { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; padding: 7px 14px; border-radius: 20px; background: rgba(255, 255, 255, .14); color: #fff; font-size: .9rem; font-weight: 600; }
@media (max-width: 640px) {
  .lightbox { padding: 70px 10px 100px; }
  .lb-btn { top: auto; bottom: 18px; translate: none; width: 60px; height: 60px; }
  .lb-btn.prev { left: 18px; }
  .lb-btn.next { right: 18px; }
  .lb-count { bottom: 36px; }
}

/* ---------- pop-up window ---------- */
.modal { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 16, 10, .55); opacity: 0; transition: opacity .2s; }
.modal[hidden] { display: none; }
.modal.open { opacity: 1; }
.modal-box { position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; overflow: hidden; padding: 0; background: #fff; border-radius: 14px; border-top: 4px solid var(--red); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); transform: translateY(14px) scale(.98); transition: transform .25s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-box.wide { width: min(940px, 100%); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; }
@media (hover: hover) { .modal-x:hover { background: var(--red); border-color: var(--red); color: #fff; } }
/* only the content scrolls, so the X stays in its corner on long forms */
.modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 36px 34px 30px; }
.modal-x { z-index: 2; background: #fff; }
.modal-body .kick { display: inline-flex; align-items: center; gap: 12px; font: 700 .76rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.modal-body .kick::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.modal-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 10px 50px 6px 0; }
.modal-body > .muted { margin-bottom: 22px; }
.modal-body .calc .panel { padding: 22px; }
.modal-body .calc-out { padding: 24px; }
@media (max-width: 640px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal-box, .modal-box.wide { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 16px 16px 0 0; }
  .modal-body { padding: 30px 18px calc(24px + env(safe-area-inset-bottom)); }
}

/* ---------- financing calc ---------- */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.calc .panel { display: grid; gap: 22px; }
.calc input[type="range"] { width: 100%; accent-color: var(--red); height: 6px; }
.range-row { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.calc-out { padding: 34px; border-radius: 18px; background: #fff; border: 2px solid var(--red); display: flex; flex-direction: column; }
.calc-out .big { font: 800 clamp(2.8rem, 6vw, 4rem)/1 var(--display); margin: 6px 0 22px; color: var(--red); }
.calc-out .big small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.calc-out dl { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line2); }
.calc-out dt { color: var(--muted); }
.calc-out dd { margin: 0; font-weight: 700; text-align: right; }
.term-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.term-pills button { flex: 1; min-width: 62px; height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; cursor: pointer; font-weight: 700; transition: .2s; }
@media (hover: hover) { .term-pills button:hover { border-color: var(--red); } }
.term-pills button.on { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- footer ---------- */
footer.site { margin-top: 40px; background: var(--ink); color: #d8d4cb; padding: 64px 0 28px; border-top: 6px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
footer.site h4 { font-size: 1rem; margin-bottom: 16px; color: #fff; }
footer.site p { color: #b9b4aa; font-size: .94rem; }
.footer-logo { display: flex; justify-content: center; align-items: center; width: 100%; background: #fff; border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.footer-logo img { width: 100%; max-width: 420px; height: auto; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer.site ul a { color: #b9b4aa; font-size: .94rem; transition: color .2s; }
@media (hover: hover) { footer.site ul a:hover { color: #fff; } }
footer.site .visit li { color: #b9b4aa; font-size: .94rem; }
.footer-grid > * { min-width: 0; }
footer.site ul a, footer.site .visit li { overflow-wrap: anywhere; } /* the long email address wraps on small phones instead of pushing the page sideways */
.footer-map { margin-top: 18px; height: 190px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); background: #2a2a2a; }
.map-open { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #fff; font-weight: 600; font-size: .9rem; }
.map-open svg { width: 16px; height: 16px; color: var(--red-bright); }
@media (hover: hover) { .map-open:hover { color: var(--red-bright); } }
.footer-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); color: #8f8a80; font-size: .84rem; }
.mobile-bar { display: none; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .08s; } .js .rv-d2 { transition-delay: .16s; } .js .rv-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .hero-bg .hs { transition: opacity .3s; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .call-pill { display: none; }
  .nav-item > a, .nav-item > button { padding: 0 11px; }
}
@media (max-width: 1280px) {
  .key-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .key-grid { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .spec-card { padding: 24px 18px; }
  .desc-tabs { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
  .desc-tabs button { order: calc(var(--i) * 2); width: 100%; height: 52px; padding: 0 16px; font-size: .8rem; }
  .desc-tabs button span { flex: 1; text-align: left; }
  .desc-tabs .chev { display: block; width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
  .desc-tabs button.on .chev { transform: rotate(180deg); color: #fff; }
  .desc-tabs .desc-list { order: calc(var(--i) * 2 + 1); margin: -4px 0 4px; padding: 6px 16px; }
}
@media (max-width: 1120px) {
  nav.main, .call-pill, .header-actions .hide-md { display: none; }
  .menu-btn { display: grid; }
  .cat-track { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
  .unit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .split, .contact-grid, .unit-layout, .calc, .protect-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-caption { display: none; }
  /* phone/tablet: the hero is tall and narrow, so a full-cover photo is cut hard. Show it in a shorter band
     (less zoom, more of the machine) that fades into a dark background at the top and bottom. */
  .hero-bg { background: #1f1c17; }
  .hero-bg img { top: 50%; bottom: auto; height: min(100%, 92vw); transform: translateY(-50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%); }
  .cat-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .finder-bar { grid-template-columns: 1fr 1fr; }
  .fd:nth-child(2) { border-right: 0; }
  .fd:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .finder-bar .btn { grid-column: 1 / -1; margin-top: 8px; }
  .finder-stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps.row { grid-template-columns: 1fr 1fr; }
  .fin-perks { grid-template-columns: 1fr; }
  .fin-band { padding: 36px 26px; }
  .inv-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
  .filter-toggle.on { background: var(--ink); border-color: var(--ink); color: #fff; }
  .filter-done { display: flex; }
  .unit-side { position: static; }
  /* unit page on phone/tablet: photos → price & buttons → specifications → description → form */
  .unit-layout { display: flex; flex-direction: column; gap: 0; }
  .unit-layout > div, .unit-layout > .unit-side { display: contents; }
  .unit-layout .gallery-main { order: 1; }
  .unit-layout > * { min-width: 0; }
  .unit-layout .buy-panel, .unit-layout #inquire, .unit-layout .spec-card { width: 100%; }
  .unit-layout .thumbs { order: 2; width: 100%; min-width: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 8px; }
  .unit-layout .thumbs::-webkit-scrollbar { display: none; }
  .unit-layout .thumbs button { flex: 0 0 86px; scroll-snap-align: start; }
  .unit-layout .buy-panel { order: 3; margin-top: 20px; }
  .unit-layout .spec-card { order: 4; }
  .unit-layout #inquire { order: 5; margin-top: 24px; }
  .pband::after, .pband.right::after { background: rgba(16, 14, 10, .55); }
  .pband.right .wrap > div { text-align: left; margin-left: 0; }
  .pband.right p { margin-left: 0; }
  .pband.right .eyebrow { flex-direction: row; }
}
@media (max-width: 640px) {
  :root { --header-h: 70px; }
  body { padding-bottom: 72px; }
  .section { padding: 70px 0; }
  .brand img { height: 50px; }
  header.site.scrolled .brand img { height: 46px; }
  .header-actions .icon-btn.hide-sm { display: none; }
  .cat-carousel { padding: 0; }
  .cat-track { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
  .cat-tile { padding: 22px 12px 20px; }
  .cat-art { height: 90px; }
  .cat-tile h3 { font-size: .98rem; }
  /* phone: arrows sit under the cards, at both ends of the dots row */
  .car-btn { top: auto; bottom: -50px; translate: none; width: 44px; height: 44px; }
  .car-btn svg { width: 20px; height: 20px; }
  .car-dots { min-height: 44px; align-items: center; margin-top: 6px; padding: 0 56px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .unit-grid, .inv-layout .unit-grid, .why-grid, .steps.row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .seg { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .seg label { padding: 0 6px; gap: 6px; justify-content: center; font-size: .88rem; min-width: 0; }
  .contact-grid > *, .split > *, .form-card, .form-grid > * { min-width: 0; }
  .cta-card { padding: 32px 24px; }
  .protect { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-grid .f-brand, .footer-grid .visit { grid-column: 1 / -1; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; position: fixed; inset: auto 0 0; z-index: 55; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line2); box-shadow: 0 -6px 20px rgba(40, 30, 10, .08); }
  .mobile-bar .btn { height: 46px; padding: 0 10px; font-size: .88rem; }
  /* keep the slide dots above the fixed bottom bar (Call / Email / Inventory) */
  .hero { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  .hero-dots { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .inv-layout > * { min-width: 0; }
  .inv-top > div { flex: 1 1 100%; min-width: 0; }
  .inv-top .nsel { flex: 1; min-width: 0; }
  .inv-top .nsel-btn { min-width: 0; }
}
/* very small phones (iPhone SE 1st gen, 320px): long button labels may go on two lines instead of sticking out */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; line-height: 1.2; height: auto; min-height: 50px; padding-top: 8px; padding-bottom: 8px; }
  .btn-sm { min-height: 40px; }
  .btn-lg { min-height: 60px; }
  .side-actions .btn { min-height: 54px; }
  .mobile-bar .btn { white-space: nowrap; height: 46px; min-height: 0; padding: 0 10px; }
}
