/* CR Heavy Equipment — visual system v2
   Light, bright, dynamic. White base, teal blocks, industrial-yellow energy.
   Motion follows emil-design-eng: custom ease-out, transform/opacity/clip-path only,
   press feedback on everything pressable, hover gated to fine pointers, reduced motion respected. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff") format("woff");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --bg: #F7F8F6;
  --mist: #E9F1EF;
  --teal: #134A4F;
  --teal-2: #1C6168;
  --teal-ink: #0F3B3F;
  --yellow: #FFC107;
  --yellow-2: #FFD54A;
  --orange: #E8732C;
  --ink: #1D2B2D;
  --ink-2: #4B5D5F;
  --ink-3: #64777A;
  --line: #DCE5E3;
  --line-2: #C4D3D1;
  --on-teal: #F4FAF9;
  --on-teal-2: #BFD8D5;
  --danger: #B42318;
  --ok: #157347;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(1.25rem, .5rem + 2.8vw, 3rem);
  --r-lg: 22px;
  --header-h: 72px;
  --shadow-1: 0 1px 2px rgba(19, 74, 79, .06), 0 4px 12px -4px rgba(19, 74, 79, .10);
  --shadow-2: 0 2px 6px rgba(19, 74, 79, .06), 0 24px 48px -20px rgba(19, 74, 79, .28);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: var(--teal) var(--mist); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--yellow); color: var(--teal-ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.t-teal :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; color: var(--teal-ink); line-height: 1.02; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
h1, h2 { font-variation-settings: "wdth" 112; }
h3 { line-height: 1.15; letter-spacing: -.01em; font-weight: 750; font-variation-settings: "wdth" 104; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.price, .num, dd, .count { font-variant-numeric: tabular-nums lining-nums; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 200; padding: .7rem 1rem; border-radius: 10px; background: var(--yellow); color: var(--teal-ink); font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform 200ms var(--ease-out); }
.skip-link:focus { transform: none; }
.label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); line-height: 1.25; }
.label .no { color: var(--orange); margin-right: .4em; }
.t-teal .label { color: var(--on-teal-2); }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 180ms var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 380ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
.letterhead { view-transition-name: site-header; }
::view-transition-group(site-header) { animation: none; }

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--teal-ink); --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .75rem 1.35rem; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sweep, var(--yellow-2)); clip-path: inset(0 100% 0 0); transition: clip-path 260ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn .icon-arrow { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { clip-path: inset(0 0 0 0); }
  .btn:hover .icon-arrow { transform: translateX(4px); }
  .btn:hover { box-shadow: 0 10px 24px -12px rgba(255, 170, 0, .8); }
  .btn-teal:hover, .btn-line:hover, .btn-ghost:hover { box-shadow: 0 10px 24px -12px rgba(19, 74, 79, .55); }
}
.btn-teal { --bg: var(--teal); --fg: var(--on-teal); --sweep: var(--teal-2); }
.btn-line { --bg: transparent; --fg: var(--teal); --bd: var(--line-2); --sweep: var(--mist); }
.btn-white { --bg: var(--white); --fg: var(--teal-ink); --sweep: var(--yellow-2); }
.btn-lg { min-height: 58px; padding-inline: 1.7rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--teal); text-decoration: none; }
.link-arrow .icon { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .icon { transform: translateX(4px); } .link-arrow:hover { text-decoration: underline; } }

/* ---------- Header ---------- */
.letterhead { position: sticky; top: 0; z-index: 100; background: rgba(247, 248, 246, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: background-color 240ms ease, box-shadow 240ms ease, border-color 240ms ease; }
.letterhead.is-scrolled { background: rgba(255, 255, 255, .92); border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(19, 74, 79, .4); }
.letterhead .wrap { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; color: var(--teal-ink); text-decoration: none; flex: none; transition: transform 200ms var(--ease-out), opacity 200ms ease; }
.wordmark img { height: 24px; width: auto; }
.wordmark:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .wordmark:hover { opacity: .85; } }
.site-footer .wordmark img { height: 22px; }
@media (max-width: 420px) { .wordmark img { height: 18px; } }
.wordmark-plate { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--teal); color: var(--yellow); font-weight: 900; font-size: 1.05rem; font-variation-settings: "wdth" 125; letter-spacing: -.02em; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .wordmark:hover .wordmark-plate { transform: rotate(-6deg) scale(1.04); } }
.wordmark-text { display: grid; line-height: 1; }
.wordmark-text b { font-size: 1rem; font-weight: 850; font-variation-settings: "wdth" 122; letter-spacing: .01em; }
.wordmark-text span { margin-top: .28rem; font-size: .66rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.site-footer .wordmark { color: var(--on-teal); }
.site-footer .wordmark-plate { background: var(--yellow); color: var(--teal-ink); }
.site-footer .wordmark-text span { color: var(--on-teal-2); }
.nav-main { position: relative; display: flex; align-items: center; gap: .15rem; margin-left: auto; padding: 4px; border-radius: 999px; background: rgba(19, 74, 79, .07); }
.nav-main a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 40px; padding: .45rem 1rem; border-radius: 999px; color: var(--teal-ink); font-weight: 600; font-size: .96rem; text-decoration: none; }
.nav-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-1); opacity: 0; transition: transform 320ms var(--ease-out), width 320ms var(--ease-out), opacity 200ms ease; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-actions .btn { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); color: var(--teal-ink); place-items: center; transition: transform 160ms var(--ease-out); }
.menu-toggle:active { transform: scale(.95); }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .nav-panel { position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem var(--gutter) 2rem; background: var(--white); overflow-y: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 380ms var(--ease-drawer), visibility 0s linear 380ms; }
  .nav-panel.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
  .nav-main { flex-direction: column; align-items: stretch; margin: 0; padding: 0; background: none; }
  .nav-main a { font-size: 1.9rem; font-weight: 800; font-variation-settings: "wdth" 112; padding: .9rem 0; border-radius: 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(12px); transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
  .nav-panel.is-open .nav-main a { opacity: 1; transform: none; }
  .nav-panel.is-open .nav-main a:nth-child(3) { transition-delay: 50ms; }
  .nav-panel.is-open .nav-main a:nth-child(4) { transition-delay: 100ms; }
  .nav-pill { display: none; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { min-height: 54px; font-size: 1.05rem; }
  body.menu-open { overflow: hidden; }
}
@media (min-width: 961px) { .nav-panel { display: contents; } }
.sample-bar { background: var(--yellow); color: var(--teal-ink); font-size: .86rem; font-weight: 600; }
.sample-bar .wrap { display: flex; gap: .55rem; align-items: center; padding-block: .45rem; }
.sample-bar .short { display: none; }
@media (max-width: 640px) { .sample-bar .long { display: none; } .sample-bar .short { display: inline; } }

/* ---------- Reveal on scroll (content visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* clip reveal runs on the child so the observed box keeps its area (a fully clipped target never "intersects") */
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > * { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1000ms var(--ease-in-out), transform 1400ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); transform: none; }
.lines > span { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lines > span > span { display: block; animation: line-up 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes line-up { from { transform: translateY(105%); } }
.fade-up { animation: fade-up 800ms var(--ease-out) both; animation-delay: var(--d, 400ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Machine drawings ---------- */
.machine { width: 100%; height: auto; overflow: visible; }
.machine .ground { stroke-dasharray: 4 7; opacity: .5; }
.draw .machine .d, .machine.draw .d { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease-in-out) forwards; animation-delay: var(--dd, 200ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(1.75rem, 3vw, 2.75rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: stretch; }
.hero h1 { font-size: clamp(2.3rem, 1rem + 3.6vw, 4.4rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.hero h1 em { font-style: normal; color: var(--teal); position: relative; z-index: 0; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .08em; height: .22em; z-index: -1; background: var(--yellow); border-radius: 4px; transform-origin: 0 50%; animation: mark 700ms var(--ease-out) 900ms both; }
@keyframes mark { from { transform: scaleX(0); } }
.hero-lede { max-width: 50ch; margin-top: 1.1rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--ink-2); }

/* Buy / Sell switch — duplicated tab list clipped by an animated inset (emil: tabs with perfect color transitions) */
.deal { margin-top: 1.6rem; max-width: 620px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: .5rem; }
.switch { position: relative; border-radius: 16px; background: var(--mist); }
.switch-list { display: grid; grid-template-columns: 1fr 1fr; }
.switch-list > * { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; border: 0; background: none; font-weight: 750; font-size: 1rem; color: var(--teal-ink); border-radius: 16px; }
.switch-list button { transition: transform 160ms var(--ease-out); }
.switch-list button:active { transform: scale(.97); }
.switch-active { position: absolute; inset: 0; pointer-events: none; background: var(--teal); color: var(--yellow); border-radius: 16px; clip-path: inset(0 50% 0 0 round 16px); transition: clip-path 380ms var(--ease-out); }
.switch-active > * { color: var(--yellow); }
.switch[data-side="sell"] .switch-active { clip-path: inset(0 0 0 50% round 16px); }
.panels { display: grid; }
.panel { grid-area: 1 / 1; padding: 1.1rem .8rem .7rem; transition: opacity 280ms ease, filter 280ms ease, transform 320ms var(--ease-out); }
.panel[aria-hidden="true"] { opacity: 0; filter: blur(4px); transform: translateY(6px); pointer-events: none; visibility: hidden; transition: opacity 160ms ease, filter 160ms ease, transform 160ms ease, visibility 0s linear 160ms; }
.panel-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.panel-foot .btn { flex: none; }
.clause { font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
.clause strong { color: var(--teal-ink); }
.clause .blank { display: inline-block; min-width: 3em; border-bottom: 1.5px dashed var(--line-2); }
@media (max-width: 520px) { .panel-fields { grid-template-columns: 1fr; } .panel-foot { flex-direction: column; align-items: stretch; } }

.stage { position: relative; min-height: 460px; border-radius: 32px; background: var(--teal); overflow: hidden; color: var(--yellow); isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 32px 32px; }
.stage-spot { position: absolute; z-index: -1; width: 520px; height: 520px; left: 0; top: 0; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 193, 7, .3), transparent); pointer-events: none; will-change: transform; }
.stage .machine { position: absolute; left: 4%; bottom: 15%; width: 118%; filter: drop-shadow(0 0 16px rgba(255, 193, 7, .25)); }
.stage .arm { transform-origin: 176px 108px; animation: dig 5.5s var(--ease-in-out) 2.4s infinite alternate; }
@keyframes dig { 0% { transform: rotate(0); } 60%, 100% { transform: rotate(-9deg); } }
.stage-tag { position: absolute; display: flex; align-items: center; gap: .55rem; padding: .55rem .9rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: var(--on-teal); font-size: .88rem; font-weight: 650; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: tag-in 600ms var(--ease-out) both; }
.stage-tag b { color: var(--yellow); }
.stage-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,193,7,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255,193,7,0); } }
@keyframes tag-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.stage-tag.t1 { top: 7%; left: 7%; animation-delay: 1.4s; }
.stage-tag.t2 { top: 7%; right: 7%; animation-delay: 1.6s; }
.stage-dim { position: absolute; left: 7%; right: 7%; bottom: 6%; display: flex; justify-content: space-between; color: rgba(255,255,255,.5); font-size: .74rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .stage { min-height: 0; aspect-ratio: 1.3 / 1; } .deal { max-width: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--white); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 1.5rem; padding: 1.1rem 1.5rem 1.1rem 0; font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem); font-weight: 800; font-variation-settings: "wdth" 118; color: var(--teal-ink); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--yellow); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section.mist { background: var(--mist); }
.t-teal { background: var(--teal); color: var(--on-teal); }
.t-teal h2, .t-teal h3 { color: var(--on-teal); }
.t-teal p { color: var(--on-teal-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.9rem); max-width: 16ch; }
.section-head p { max-width: 50ch; margin-top: .9rem; color: var(--ink-2); font-size: 1.08rem; }

/* ---------- Lot cards ---------- */
.lots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 1024px) { .lots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lots { grid-template-columns: minmax(0, 1fr); } }
.lot { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 200ms ease; }
.lot-top { position: absolute; z-index: 2; top: .85rem; left: .85rem; right: .85rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; pointer-events: none; }
.lot-top .label { padding: .35rem .65rem; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--teal-ink); }
.lot-body { display: grid; gap: .7rem; padding: 1.15rem 1.25rem 1.3rem; flex: 1; align-content: start; }
.lot-body > .label { color: var(--teal); }
.lot h3 { font-size: 1.28rem; }
.lot h3 a { color: inherit; text-decoration: none; }
.lot h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.lot-specs { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--ink-2); }
.lot-specs li { display: inline-flex; align-items: center; gap: .35rem; }
.lot-specs .icon { width: 1em; height: 1em; color: var(--teal); }
.lot-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); }
.price { font-size: 1.4rem; font-weight: 800; color: var(--teal-ink); font-variation-settings: "wdth" 110; letter-spacing: -.01em; }
.price-note { font-size: .82rem; color: var(--ink-3); }
.lot-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mist); color: var(--teal); transition: background-color 220ms ease, color 220ms ease, transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .lot:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
  .lot:hover .lot-go { background: var(--yellow); color: var(--teal-ink); transform: rotate(-45deg); }
  .lot:hover .photo img { transform: scale(1.04); }
  .lot:hover .photo-empty .machine { transform: translateX(10px); }
  .lot:hover .photo-empty .arm { transform: rotate(-8deg); }
}
.photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.photo-empty { position: absolute; inset: 0; display: grid; align-content: end; justify-items: center; padding: 3.4rem 12% 10%; color: var(--teal); background: radial-gradient(120% 80% at 50% 100%, #fff 0, var(--mist) 70%); }
.photo-empty .machine { transition: transform 600ms var(--ease-out); }
.photo-empty .arm, .cat .arm, .summary .arm, .door .arm { transform-origin: 176px 108px; transition: transform 500ms var(--ease-out); }
.photo-empty .tag { position: absolute; bottom: .7rem; right: .85rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.photo-empty .tag .icon { width: 14px; height: 14px; }
.stamp { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }
.stamp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stamp-available { background: #DDF3E6; color: var(--ok); }
.stamp-sample { background: var(--yellow); color: var(--teal-ink); }
.stamp-pending { background: var(--mist); color: var(--ink-2); }
.stamp.is-pressed { animation: pop 320ms var(--ease-out) both; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.pending { display: inline-flex; align-items: center; gap: .35em; padding: .12rem .55rem; border-radius: 999px; background: #FFF3CD; color: #6B4A00; font-size: .85em; font-weight: 650; white-space: nowrap; }
.t-teal .pending, .site-footer .pending { background: rgba(255, 193, 7, .16); color: var(--yellow); }

/* ---------- Two doors ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.door { position: relative; display: grid; align-content: space-between; gap: 2.5rem; min-height: 430px; padding: clamp(1.75rem, 3.5vw, 2.75rem); border-radius: 28px; overflow: hidden; text-decoration: none; isolation: isolate; transition: transform 300ms var(--ease-out); }
.door:active { transform: scale(.985); }
.door h3 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); letter-spacing: -.03em; font-variation-settings: "wdth" 112; }
.door p { max-width: 34ch; margin-top: .9rem; font-size: 1.06rem; }
.door .machine { position: absolute; z-index: -1; right: -6%; bottom: 4%; width: 64%; transition: transform 700ms var(--ease-out); }
.door-buy { background: var(--yellow); }
.door-buy h3, .door-buy p, .door-buy .door-cta { color: var(--teal-ink); }
.door-buy .machine { color: rgba(15, 59, 63, .45); }
.door-sell { background: var(--teal); }
.door-sell h3, .door-sell .door-cta { color: var(--on-teal); }
.door-sell p { color: var(--on-teal-2); }
.door-sell .machine { color: rgba(255, 193, 7, .65); }
.door-cta { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.08rem; }
.door-cta i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; transition: transform 320ms var(--ease-out); }
.door-buy .door-cta i { background: var(--teal-ink); color: var(--yellow); }
.door-sell .door-cta i { background: var(--yellow); color: var(--teal-ink); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -2; background: rgba(255,255,255,.16); clip-path: circle(0% at 88% 88%); transition: clip-path 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .door:hover::after { clip-path: circle(150% at 88% 88%); }
  .door:hover .machine { transform: translateX(-24px); }
  .door:hover .arm { transform: rotate(-9deg); }
  .door:hover .door-cta i { transform: translateX(6px) rotate(-45deg); }
}
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } .door { min-height: 360px; } }

/* ---------- Steps with scroll-linked progress ---------- */
.steps-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.steps-intro { position: sticky; top: calc(var(--header-h) + 2.5rem); }
.steps-intro h2 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.9rem); }
.steps-intro p { margin: 1rem 0 1.75rem; font-size: 1.08rem; max-width: 42ch; }
.steps { position: relative; display: grid; gap: 1rem; padding-left: 2.25rem; }
.steps::before, .steps-fill { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.18); }
.steps-fill { background: var(--yellow); transform-origin: 50% 0; transform: scaleY(0); }
.step { position: relative; padding: 1.6rem 1.75rem; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background-color 400ms ease, border-color 400ms ease; }
.step::before { content: ""; position: absolute; left: calc(-2.25rem + 4px); top: 1.9rem; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); border: 2px solid rgba(255,255,255,.35); transition: background-color 300ms ease, border-color 300ms ease, transform 300ms var(--ease-out); }
.step.is-on { background: rgba(255,255,255,.11); border-color: rgba(255, 193, 7, .5); }
.step.is-on::before { background: var(--yellow); border-color: var(--yellow); transform: scale(1.15); }
.step .label { color: var(--yellow); }
.step h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); margin: .55rem 0 .5rem; }
@media (max-width: 900px) { .steps-wrap { grid-template-columns: 1fr; } .steps-intro { position: static; } }

/* ---------- Category rail ---------- */
.rail-head { display: flex; gap: .6rem; }
.rail-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); color: var(--teal); transition: transform 160ms var(--ease-out), background-color 200ms ease, opacity 200ms ease; }
.rail-btn:active { transform: scale(.94); }
.rail-btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .rail-btn:not(:disabled):hover { background: var(--yellow); border-color: var(--yellow); } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 23%); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem 0 1.5rem; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }
.cat { position: relative; display: grid; gap: .8rem; padding: 1.4rem; scroll-snap-align: start; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--teal-ink); user-select: none; -webkit-user-drag: none; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), background-color 260ms ease, border-color 260ms ease; }
.cat .machine { color: var(--teal); transition: transform 500ms var(--ease-out); }
.cat b { font-size: 1.2rem; font-weight: 800; font-variation-settings: "wdth" 110; letter-spacing: -.01em; line-height: 1.2; }
.cat span { color: var(--ink-3); font-size: .92rem; }
.cat:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); background: var(--yellow); border-color: var(--yellow); }
  .cat:hover .machine { transform: translateX(8px); }
  .cat:hover .arm { transform: rotate(-8deg); }
  .cat:hover span { color: var(--teal-ink); }
}
@media (max-width: 600px) { .rail { grid-auto-columns: 78%; } }

/* ---------- Close ---------- */
.close { position: relative; overflow: hidden; background: var(--yellow); color: var(--teal-ink); }
.close .wrap { position: relative; z-index: 1; padding-block: clamp(4rem, 8vw, 6.5rem); display: grid; gap: 1.6rem; justify-items: start; }
.close h2 { font-size: clamp(2.4rem, 1.2rem + 4.2vw, 5rem); max-width: 14ch; letter-spacing: -.035em; }
.close p { max-width: 46ch; font-size: 1.12rem; color: #4A3B00; }
.close-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.close .machine { position: absolute; right: 2%; bottom: 4%; width: min(44vw, 560px); color: rgba(15, 59, 63, .2); pointer-events: none; }
@media (max-width: 760px) { .close .machine { width: 70vw; opacity: .5; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal); color: var(--on-teal); font-size: .96rem; }
.site-footer .wrap { padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem; }
.footer-grid h2 { margin-bottom: 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-teal-2); }
.footer-grid ul { display: grid; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.footer-grid li { display: flex; align-items: center; gap: .55rem; min-height: 40px; }
.footer-address { align-items: flex-start !important; }
.footer-address .icon { margin-top: .6rem; }
.footer-address a { line-height: 1.45; padding-block: .4rem; }
.footer-grid a { color: var(--on-teal); text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; background: linear-gradient(currentColor, currentColor) 0 80% / 0 1px no-repeat; transition: background-size 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer-grid a:hover { background-size: 100% 1px; } }
.footer-grid .icon { color: var(--yellow); }
.footer-blurb { max-width: 34ch; margin-top: 1rem; color: var(--on-teal-2); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: var(--on-teal-2); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Fields ---------- */
.field { display: grid; gap: .4rem; min-width: 0; }
.field > .label { display: block; }
.control { width: 100%; min-height: 50px; padding: .7rem .9rem; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); color: var(--ink); font-size: 1rem; transition: border-color 200ms ease, box-shadow 200ms ease; }
.control::placeholder { color: var(--ink-3); opacity: 1; }
.control:hover { border-color: var(--teal-2); }
.control:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(255, 193, 7, .45); }
select.control { appearance: none; padding-right: 2.6rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23134A4F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px; }
textarea.control { min-height: 140px; resize: vertical; line-height: 1.5; }
.control[aria-invalid="true"] { border-color: var(--danger); }
.field-error { display: none; align-items: center; gap: .35rem; color: var(--danger); font-size: .88rem; font-weight: 600; }
.field-error.is-shown { display: flex; animation: fade-up 240ms var(--ease-out) both; }
.req { color: var(--orange); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--teal); flex: none; }
.fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.fields-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.span-all { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields-2, .fields-3 { grid-template-columns: minmax(0, 1fr); } }
.notice { display: none; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: 14px; font-size: .97rem; }
.notice.is-shown { display: flex; animation: fade-up 300ms var(--ease-out) both; }
.notice .icon { margin-top: .2rem; }
.notice strong { display: block; }
.notice-ok { background: #DDF3E6; color: var(--ok); }
.notice-warn { background: #FFF3CD; color: #6B4A00; }
.notice-error { background: #FDE4E1; color: var(--danger); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 1.3rem; }

/* ---------- Inner page head ---------- */
.page-head { position: relative; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); background: var(--mist); overflow: hidden; }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.4rem); max-width: 18ch; }
.page-head p { max-width: 58ch; margin-top: .9rem; font-size: 1.1rem; color: var(--ink-2); }
.page-head .machine { position: absolute; right: var(--gutter); bottom: -1.5rem; width: min(30vw, 380px); color: rgba(19, 74, 79, .22); }
@media (max-width: 760px) { .page-head .machine { display: none; } }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.1rem; padding: 0; list-style: none; font-size: .9rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line-2); }
.crumbs a { color: var(--ink-2); }

/* ---------- Inventory ---------- */
.inv { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); padding-block: 2.25rem 5rem; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.filters .card-head h2 { font-size: 1.1rem; }
.filters form { display: grid; gap: 1.3rem; padding: 1.3rem 1.4rem; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .45rem; min-width: 0; }
.filters legend { padding: 0; margin-bottom: .45rem; }
.cat-list { display: grid; gap: .1rem; }
.cat-list label { display: flex; align-items: center; gap: .65rem; min-height: 40px; padding: 0 .5rem; border-radius: 10px; cursor: pointer; font-size: .97rem; transition: background-color 160ms ease; }
.cat-list label:hover { background: var(--mist); }
.cat-list input { width: 20px; height: 20px; margin: 0; accent-color: var(--teal); }
.cat-list .count { margin-left: auto; min-width: 26px; padding: .1rem .45rem; border-radius: 999px; background: var(--mist); color: var(--teal); font-size: .8rem; font-weight: 700; text-align: center; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; }
.range .to { color: var(--ink-3); font-size: .9rem; }
.filters-close, .filters-apply, .btn-filters { display: none; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.results-count { font-size: 1.05rem; color: var(--ink-2); }
.results-count strong { color: var(--teal-ink); font-size: 1.5rem; font-weight: 800; }
.results-tools { display: flex; gap: .75rem; align-items: center; }
.results-tools .control { width: auto; min-height: 46px; padding-block: .5rem; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .3rem .55rem .3rem .9rem; border: 0; border-radius: 999px; background: var(--teal); color: var(--on-teal); font-size: .9rem; font-weight: 650; animation: pop 220ms var(--ease-out) both; transition: transform 140ms var(--ease-out), background-color 200ms ease; }
.chip .icon { width: 16px; height: 16px; }
.chip:active { transform: scale(.96); }
.chip:hover { background: var(--teal-2); }
.results .lot { animation: card-in 440ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.empty-state { padding: clamp(2rem, 5vw, 3.25rem); display: grid; gap: 1rem; justify-items: start; }
.empty-state h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.empty-state p { color: var(--ink-2); max-width: 50ch; }
.empty-state .machine { width: 220px; color: var(--line-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 960px) {
  .inv { grid-template-columns: minmax(0, 1fr); }
  .btn-filters { display: inline-flex; }
  .filters { position: fixed; inset: auto 0 0 0; z-index: 130; max-height: 88vh; border-radius: 24px 24px 0 0; transform: translateY(100%); visibility: hidden; transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms; }
  .filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .filters-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--white); color: var(--teal); }
  .filters-apply { display: block; position: sticky; bottom: 0; padding: 1rem 1.4rem; background: var(--white); border-top: 1px solid var(--line); }
}
.scrim { position: fixed; inset: 0; z-index: 125; background: rgba(15, 59, 63, .35); opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s linear 300ms; }
.scrim.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }

/* ---------- Equipment detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, 1fr); gap: clamp(1.5rem, 3vw, 3rem); padding-block: 1.5rem 4rem; align-items: start; }
@media (max-width: 960px) {
  .detail { display: flex; flex-direction: column; align-items: stretch; }
  .detail > div, .detail-aside { display: contents; }
  .detail .gallery { order: 1; } .detail-title { order: 2; } .detail .detail-section { order: 3; margin-top: 1.5rem; }
  .detail .inquiry { order: 4; } .detail .contact-lines { order: 5; }
}
.gallery-main { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.gallery-main .photo { aspect-ratio: 16 / 11; animation: swap 380ms var(--ease-out) both; }
.gallery-main .photo-empty { padding: 12% 14% 10%; }
@keyframes swap { from { opacity: .3; filter: blur(6px); transform: scale(1.02); } }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; margin-top: .7rem; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; overflow: hidden; transition: border-color 200ms ease, transform 160ms var(--ease-out); }
.thumb:active { transform: scale(.96); }
.thumb[aria-current="true"] { border-color: var(--yellow); }
.thumb .photo-empty { padding: 14% 14% 24%; }
.thumb .photo-empty .tag { left: 0; right: 0; bottom: .3rem; justify-content: center; font-size: .56rem; letter-spacing: .04em; }
.thumb .photo-empty .tag .icon { display: none; }
@media (max-width: 640px) { .thumb .photo-empty .tag { display: none; } .thumb .photo-empty { padding: 14%; align-content: center; } }
.detail-title h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); margin-top: .9rem; }
.detail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .75rem; margin: 1.1rem 0 1.5rem; }
.detail-price .price { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); }
.specs { margin: 0; border-top: 2px solid var(--teal-ink); }
.specs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.specs dt { margin: 0; }
.specs dd { margin: 0; font-weight: 650; }
.detail-section { margin-top: 2.75rem; }
.detail-section h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); margin-bottom: 1.1rem; }
.detail-section > p { max-width: 68ch; color: var(--ink-2); }
.detail-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1rem; }
.inquiry form { display: grid; gap: 1rem; padding: 1.4rem; }
.contact-lines { display: grid; gap: .2rem; padding: 1.1rem 1.4rem; }
.contact-lines > a, .contact-lines > span:not(.label) { display: flex; align-items: center; gap: .6rem; min-height: 44px; }

/* ---------- Sell ---------- */
.sell { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(1.5rem, 3vw, 3rem); padding-block: 2.25rem 5rem; align-items: start; }
@media (max-width: 960px) { .sell { grid-template-columns: minmax(0, 1fr); } .summary { position: static !important; } }
.form-part { display: grid; gap: 1.25rem; padding: clamp(1.4rem, 3vw, 2.25rem); }
.form-part + .form-part { border-top: 1px solid var(--line); }
.form-part h2 { display: flex; align-items: center; gap: .8rem; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.form-part h2 .n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--teal-ink); font-size: 1rem; font-weight: 800; flex: none; }
.form-part > p { margin-top: -.6rem; color: var(--ink-2); }
.form-end { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.25rem); border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.summary { position: sticky; top: calc(var(--header-h) + 20px); overflow: hidden; }
.summary-art { padding: 1.75rem 12% .75rem; background: var(--mist); color: var(--teal); }
.summary .clause { padding: 1.25rem 1.4rem .5rem; font-size: 1.05rem; }
.summary-list { margin: 0; padding: .75rem 1.4rem 1.4rem; list-style: none; display: grid; gap: .55rem; }
.summary-list li { display: flex; gap: .6rem; align-items: center; color: var(--ink-3); font-size: .95rem; transition: color 300ms ease; }
.summary-list .tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); color: transparent; transition: background-color 300ms var(--ease-out), border-color 300ms ease, color 300ms ease, transform 300ms var(--ease-out); }
.summary-list .tick .icon { width: 14px; height: 14px; }
.summary-list li.is-done { color: var(--teal-ink); }
.summary-list li.is-done .tick { background: var(--yellow); border-color: var(--yellow); color: var(--teal-ink); transform: scale(1.06); }
.dropzone { position: relative; display: grid; place-items: center; gap: .5rem; padding: 2.2rem 1rem; text-align: center; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--bg); color: var(--ink-2); transition: border-color 200ms ease, background-color 200ms ease, transform 200ms var(--ease-out); }
.dropzone.is-over { border-color: var(--teal); background: var(--mist); transform: scale(1.01); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon { width: 32px; height: 32px; color: var(--teal); }
.dropzone:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(255,193,7,.45); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; }
.previews:empty { display: none; }
.preview { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--mist); animation: pop 260ms var(--ease-out) both; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.preview button { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--teal-ink); transition: transform 140ms var(--ease-out); }
.preview button:active { transform: scale(.92); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: 2.5rem 5rem; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-card { padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: 1.25rem; }
.contact-card h2 { font-size: 1.5rem; }
.contact-card dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-card dt { display: flex; align-items: center; gap: .5rem; }
.contact-card dt .icon { color: var(--teal); }
.contact-card dd { margin: .3rem 0 0; font-size: 1.08rem; font-weight: 600; }
.contact-form form { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2rem); }
.notfound { padding-block: clamp(4rem, 10vw, 8rem); display: grid; gap: 1.25rem; justify-items: start; }
.notfound h1 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); max-width: 14ch; }
.notfound p { max-width: 50ch; color: var(--ink-2); }
.notfound .machine { width: min(420px, 80vw); color: var(--teal); }

/* ---------- Reduced motion: still, nothing hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-reveal="clip"], .js [data-reveal="clip"] > * { opacity: 1; transform: none; clip-path: none; }
}
@media print { .letterhead, .site-footer, .sample-bar, .filters, .inquiry, .close, .progress { display: none !important; } }

/* =====================================================================
   Photography layer (client photos integrated into the design)
   ===================================================================== */
.ph { position: relative; overflow: hidden; background: var(--mist); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Hero slideshow: crossfade + slow push-in, blur masks the swap (emil: blur to mask imperfect transitions) */
.stage.slides { background: var(--teal); }
.stage.slides::before { display: none; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; filter: blur(8px); transform: scale(1.06);
  transition: opacity 900ms var(--ease-out), filter 900ms var(--ease-out), transform 7000ms linear; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.is-on { opacity: 1; filter: blur(0); transform: scale(1); }
.slide.is-leaving { opacity: 0; filter: blur(6px); transition: opacity 600ms ease, filter 600ms ease, transform 600ms ease; }
.stage.slides::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(15,59,63,.45), transparent 26%, transparent 62%, rgba(15,59,63,.72)); }
.stage.slides .stage-tag { z-index: 2; background: rgba(15,59,63,.55); }
.slide-meta { position: absolute; z-index: 2; left: 7%; right: 7%; bottom: 6%; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.slide-name { color: #fff; font-weight: 800; font-size: clamp(1.1rem, .9rem + .6vw, 1.45rem); font-variation-settings: "wdth" 110; letter-spacing: -.01em; line-height: 1.1; }
.slide-name small { display: block; margin-bottom: .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.slide-name span { display: inline-block; animation: fade-up 500ms var(--ease-out) both; animation-delay: 0ms; }
.dots { display: flex; gap: .4rem; }
.dots button { position: relative; width: 34px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.dots button::before, .dots button i { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: rgba(255,255,255,.35); }
.dots button i { background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); }
.dots button[aria-current="true"] i { animation: dot-fill var(--slide-ms, 5200ms) linear forwards; }
.dots button.is-past i { transform: scaleX(1); }
.stage.is-paused .dots button[aria-current="true"] i { animation-play-state: paused; }
@keyframes dot-fill { to { transform: scaleX(1); } }
@media (max-width: 960px) { .stage.slides { aspect-ratio: 4 / 3.4; } }

/* Photo band: an endless strip of the yard */
.band { overflow: hidden; padding-block: clamp(3rem, 6vw, 5rem) 0; }
.band-head { margin-bottom: 1.75rem; }
.band-track { display: flex; gap: 1rem; width: max-content; animation: marquee 70s linear infinite; padding-bottom: 1rem; }
.band:hover .band-track { animation-play-state: paused; }
.band-track figure { margin: 0; height: clamp(220px, 26vw, 340px); border-radius: var(--r-lg); overflow: hidden; flex: none; background: var(--mist); }
.band-track img { height: 100%; width: auto; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .band-track figure:hover img { transform: scale(1.05); } }

/* Doors with photographs */
.door { padding: 0; grid-template-rows: auto 1fr; align-content: stretch; gap: 0; min-height: 0; }
.door-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.door-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.door-body { display: grid; align-content: space-between; gap: 1.75rem; padding: clamp(1.5rem, 3vw, 2.25rem); }
@media (hover: hover) and (pointer: fine) { .door:hover .door-photo img { transform: scale(1.05); } }
.door::after { z-index: 0; pointer-events: none; }

/* Steps: photo under the intro */
.steps-photo { margin-top: 2rem; aspect-ratio: 16 / 11; border-radius: var(--r-lg); overflow: hidden; }
.steps-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Category tiles with photos */
.cat-photo { aspect-ratio: 4 / 3; margin: -1.4rem -1.4rem 0; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); pointer-events: none; }
.cat .cat-draw { aspect-ratio: 4 / 3; margin: -1.4rem -1.4rem 0; padding: 14% 12% 10%; display: grid; align-content: end; background: var(--mist); border-radius: var(--r-lg) var(--r-lg) 0 0; }
@media (hover: hover) and (pointer: fine) { .cat:hover .cat-photo img { transform: scale(1.06); } }

/* Close with photo */
.close .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; column-gap: clamp(2rem, 5vw, 4rem); }
.close .wrap > :not(.close-photo) { grid-column: 1; }
.close-photo { grid-column: 2; grid-row: 1 / span 3; aspect-ratio: 1 / .9; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(15,59,63,.55); }
.close-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .close .wrap { grid-template-columns: 1fr; } .close-photo { grid-column: 1; grid-row: auto; aspect-ratio: 16 / 10; } }

/* Inner page heads with a photo */
.page-head.has-photo .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem clamp(2rem, 4vw, 4rem); align-items: center; }
.page-head-photo { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); animation: clip-in 1000ms var(--ease-in-out) 150ms both; }
.page-head-photo img { width: 100%; height: 100%; object-fit: cover; animation: push-in 1600ms var(--ease-out) 150ms both; }
@keyframes clip-in { from { clip-path: inset(0 0 0 100% round 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }
@keyframes push-in { from { transform: scale(1.12); } }
@media (max-width: 860px) { .page-head.has-photo .wrap { grid-template-columns: 1fr; } .page-head-photo { aspect-ratio: 16 / 9; } }
@media (prefers-reduced-motion: reduce) { .band-track { animation: none; } .slide { transition: none; } }

/* ---------- Legal pages (Privacy Policy, Terms of Service) ---------- */
.legal-head h1 { max-width: 20ch; }
.legal-date { display: inline-flex !important; align-items: center; gap: .5rem; margin-top: 1.1rem !important; padding: .4rem .85rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .92rem !important; font-weight: 650; color: var(--teal-ink) !important; }
.legal-date .icon { color: var(--teal); }
.legal { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding-right: .5rem; scrollbar-width: thin; }
.legal-toc .label { margin-bottom: .8rem; }
.legal-toc ol { position: relative; margin: 0; padding: 0 0 0 1rem; list-style: none; box-shadow: inset 1px 0 0 var(--line); }
.legal-toc a { position: relative; display: flex; gap: .55rem; padding: .38rem 0; font-size: .92rem; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: color 200ms ease, transform 260ms var(--ease-out); }
.legal-toc a span { min-width: 1.4em; color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 650; }
.legal-toc a::before { content: ""; position: absolute; left: -1rem; top: .3rem; bottom: .3rem; width: 2px; border-radius: 2px; background: var(--yellow); transform: scaleY(0); transition: transform 300ms var(--ease-out); }
.legal-toc a[aria-current="true"] { color: var(--teal-ink); font-weight: 700; transform: translateX(3px); }
.legal-toc a[aria-current="true"]::before { transform: scaleY(1); }
.legal-toc a[aria-current="true"] span { color: var(--orange); }
@media (hover: hover) and (pointer: fine) { .legal-toc a:hover { color: var(--teal-ink); } }
.legal-body { max-width: 72ch; font-size: 1.04rem; color: var(--ink); }
.legal-body > p { margin: 0 0 1rem; }
.legal-body h2 { display: flex; align-items: baseline; gap: .8rem; margin: 3rem 0 1.1rem; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: clamp(1.45rem, 1.15rem + 1vw, 1.95rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body .sec-no { display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; padding: 0 .4rem; border-radius: 999px; background: var(--yellow); color: var(--teal-ink); font-size: .95rem; font-weight: 800; flex: none; transform: translateY(-.15em); }
.legal-body h3 { margin: 1.9rem 0 .7rem; font-size: 1.2rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1.2rem; padding-left: 1.3rem; display: grid; gap: .4rem; }
.legal-body li::marker { color: var(--teal); }
.legal-body strong { color: var(--teal-ink); }
.legal-body a { font-weight: 600; }
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
  .legal-toc ol { columns: 2; column-gap: 2rem; box-shadow: none; padding-left: 0; }
  .legal-toc a::before { display: none; }
}
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }

/* Consent & legal notes on forms */
.form-legal { font-size: .88rem; color: var(--ink-3); line-height: 1.5; }
.form-legal a { color: var(--ink-2); font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer-legal a { color: var(--on-teal); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer-legal a:hover { background-size: 100% 1px; } }

/* ---------- Back button ---------- */
.back { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; margin-bottom: .75rem; padding: .35rem .95rem .35rem .6rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line-2); color: var(--teal-ink); font-weight: 700; font-size: .92rem; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.back .icon { transition: transform 220ms var(--ease-out); }
.back:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .back:hover { background: var(--yellow); border-color: var(--yellow); box-shadow: 0 8px 20px -12px rgba(255,170,0,.8); } .back:hover .icon { transform: translateX(-3px); } }
.back + .crumbs { margin-top: .25rem; }

/* ---------- Owner card (Contact us) ---------- */
.contact-side { display: grid; gap: 1.25rem; }
.contact > .owner { grid-column: 1 / -1; }
.owner { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: center; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--teal); color: var(--on-teal); overflow: hidden; isolation: isolate; }
.owner::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,193,7,.28), transparent); }
.owner-photo { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--teal-2); box-shadow: 0 0 0 4px var(--yellow), 0 18px 36px -16px rgba(0,0,0,.45); }
.owner-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.owner-initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.2rem; font-weight: 850; font-variation-settings: "wdth" 118; color: var(--yellow); letter-spacing: -.03em; }
.owner-photo:not(.is-empty) .owner-initials { visibility: hidden; }
@media (hover: hover) and (pointer: fine) { .owner:hover .owner-photo img { transform: scale(1.05); } }
.owner .label { color: var(--yellow); }
.owner h2 { margin-top: .35rem; color: var(--on-teal); font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.3rem); }
.owner-title { margin-top: .3rem; color: var(--on-teal-2); font-weight: 600; }
.owner-lines { display: flex; flex-wrap: wrap; gap: .1rem 1.5rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.owner-cta { display: grid; gap: .6rem; }
.owner-lines a { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; color: var(--on-teal); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 85% / 0 1px no-repeat; transition: background-size 260ms var(--ease-out); }
.owner-lines .icon { color: var(--yellow); }
@media (hover: hover) and (pointer: fine) { .owner-lines a:hover { background-size: 100% 1px; } }
@media (max-width: 900px) { .owner { grid-template-columns: 140px minmax(0, 1fr); } .owner-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; } }
@media (max-width: 560px) { .owner { grid-template-columns: 1fr; } .owner-photo { width: 130px; } }

/* ---------- Inventory manager (admin) ---------- */
.admin-head .wrap { display: block; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.admin-import { position: relative; cursor: pointer; }
.admin-import input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.admin-import:focus-within { box-shadow: 0 0 0 4px rgba(255,193,7,.55); }
.admin { padding-block: 2rem 5rem; display: grid; gap: 1.25rem; }
.admin-status { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .96rem; color: var(--ink-2); }
.admin-status strong { color: var(--teal-ink); }
.dot-unsaved { display: inline-block; width: 8px; height: 8px; margin-right: .2rem; border-radius: 50%; background: var(--orange); animation: ping 2.4s ease-out infinite; }
.admin-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.admin-search { flex: 1 1 320px; max-width: 520px; }
.admin-search .control { border-radius: 999px; padding-left: 1.2rem; }
.admin-bar-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.admin-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: .75rem 1rem .75rem .75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  animation: card-in 380ms var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 12) * 30ms); transition: border-color 300ms ease, box-shadow 300ms ease, transform 260ms var(--ease-out); }
.admin-row.is-flash { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255,193,7,.45); }
@media (hover: hover) and (pointer: fine) { .admin-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); } }
.admin-thumb { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--mist); color: var(--teal); display: grid; place-items: center; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-thumb .machine { width: 80%; }
.admin-info h3 { font-size: 1.2rem; margin: .2rem 0 .3rem; }
.admin-info p { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; color: var(--ink-2); font-size: .93rem; }
.admin-info .price { font-size: 1rem; }
.admin-actions { display: flex; align-items: center; gap: .4rem; }
.admin-actions .btn { min-height: 44px; padding-inline: 1.1rem; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); color: var(--teal); transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--mist); border-color: var(--teal-2); } .icon-btn[data-act="del"]:hover { background: #FDE4E1; color: var(--danger); border-color: #F3B4AC; } }
@media (max-width: 720px) {
  .admin-row { grid-template-columns: 96px minmax(0, 1fr); }
  .admin-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
.admin-help { padding: 1.1rem 1.4rem; }
.admin-help summary { display: flex; align-items: center; gap: .55rem; cursor: pointer; font-weight: 750; color: var(--teal-ink); list-style: none; min-height: 32px; }
.admin-help summary::-webkit-details-marker { display: none; }
.admin-help summary .icon { color: var(--teal); }
.admin-help ol { margin: 1rem 0 .75rem; padding-left: 1.3rem; display: grid; gap: .45rem; color: var(--ink-2); }
.admin-help p { color: var(--ink-3); font-size: .93rem; }
.admin-help code { padding: .1rem .35rem; border-radius: 6px; background: var(--mist); color: var(--teal-ink); font-size: .9em; }
.btn-danger { --bg: var(--danger); --fg: #fff; --sweep: #C93A2C; }

/* Editor: a side sheet. Enters from the right, exits faster (emil: asymmetric timing). */
.editor { width: min(760px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 24px 0 0 24px; background: var(--white); color: var(--ink); box-shadow: -30px 0 60px -30px rgba(15,59,63,.45);
  transform: translateX(0); transition: transform 420ms var(--ease-drawer), overlay 420ms allow-discrete, display 420ms allow-discrete; }
.editor::backdrop { background: rgba(15, 59, 63, .38); opacity: 1; transition: opacity 300ms ease, overlay 300ms allow-discrete, display 300ms allow-discrete; }
@starting-style { .editor[open] { transform: translateX(100%); } .editor[open]::backdrop { opacity: 0; } }
.editor.is-closing { transform: translateX(100%); transition: transform 200ms var(--ease-out); }
.editor.is-closing::backdrop { opacity: 0; transition: opacity 200ms ease; }
.editor form { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem 1.1rem; border-bottom: 1px solid var(--line); }
.editor-head h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin-top: .25rem; }
.editor-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); color: var(--teal-ink); flex: none; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.editor-close:active { transform: scale(.94); }
.editor-close:hover { background: var(--mist); }
.editor-body { overflow-y: auto; padding: .5rem 1.6rem 1.5rem; overscroll-behavior: contain; }
.editor-section { display: grid; gap: .9rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.editor-section:last-child { border-bottom: 0; }
.editor-section h3 { font-size: 1.15rem; }
.editor-section .hint { margin-top: -.5rem; color: var(--ink-3); font-size: .9rem; }
.editor-foot { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: 1rem 1.6rem; border-top: 1px solid var(--line); background: var(--bg); }
.editor-foot-spacer { flex: 1; }
#ed-delete { --fg: var(--danger); --bd: #F3B4AC; --sweep: #FDE4E1; }
.ed-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; }
.ed-photos:empty { display: none; }
.ed-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--mist); animation: pop 260ms var(--ease-out) both; }
.ed-photo.is-cover { box-shadow: 0 0 0 3px var(--yellow); }
.ed-photo img { width: 100%; height: 100%; object-fit: cover; }
.ed-cover { position: absolute; top: .45rem; left: .45rem; padding: .2rem .5rem; border-radius: 999px; background: var(--yellow); color: var(--teal-ink); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ed-photo-tools { position: absolute; left: .4rem; right: .4rem; bottom: .4rem; display: flex; justify-content: flex-end; gap: .3rem; }
.ed-photo-tools button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--teal-ink); box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform 140ms var(--ease-out), opacity 200ms ease; }
.ed-photo-tools button:active { transform: scale(.9); }
.ed-photo-tools button:disabled { opacity: .35; }
.ed-photo-tools .icon { width: 16px; height: 16px; }
.ed-specs { display: grid; gap: .55rem; }
.ed-spec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: .55rem; align-items: center; animation: fade-up 220ms var(--ease-out) both; }
@media (max-width: 560px) { .editor { border-radius: 0; } .ed-spec { grid-template-columns: 1fr 44px; } .ed-spec input:nth-child(2) { grid-column: 1; } .ed-spec button { grid-row: 1 / span 2; grid-column: 2; } }

.confirm { width: min(440px, calc(100vw - 2rem)); padding: 1.75rem; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-2); color: var(--ink);
  opacity: 1; transform: scale(1); transition: opacity 200ms ease, transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete; }
@starting-style { .confirm[open] { opacity: 0; transform: scale(.96); } }
.confirm::backdrop { background: rgba(15, 59, 63, .4); }
.confirm h2 { font-size: 1.45rem; }
.confirm p { margin: .6rem 0 1.4rem; color: var(--ink-2); }
.confirm .btn-row { justify-content: flex-end; }

.toast { position: fixed; z-index: 300; left: 50%; bottom: 1.5rem; max-width: calc(100vw - 2rem); padding: .85rem 1.25rem; border-radius: 14px; background: var(--teal-ink); color: var(--on-teal); font-weight: 600; font-size: .96rem; box-shadow: var(--shadow-2);
  transform: translate(-50%, 140%); opacity: 0; transition: transform 340ms var(--ease-out), opacity 200ms ease; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Quote (no public prices) ---------- */
.lot-quote { font-weight: 800; color: var(--teal-ink); font-variation-settings: "wdth" 108; }
.detail-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 1.25rem; padding: 0; list-style: none; }
.detail-facts li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; background: var(--mist); color: var(--teal-ink); font-weight: 650; font-size: .95rem; font-variant-numeric: tabular-nums; }
.detail-facts .icon { color: var(--teal); width: 1em; height: 1em; }
.detail-quote { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.detail-quote .btn { flex: 1 1 auto; }
.inquiry.is-flash { animation: flash 1200ms var(--ease-out); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(255,193,7,.6), var(--shadow-2); } 100% { box-shadow: var(--shadow-1); } }

/* ---------- Cookie consent ---------- */
.cc { position: fixed; z-index: 400; left: 1rem; bottom: 1rem; width: min(460px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.35rem 1.4rem 1.2rem;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 60px -24px rgba(15,59,63,.45), var(--shadow-1);
  opacity: 0; transform: translateY(16px) scale(.98); transform-origin: 0 100%; transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out); }
.cc.is-in { opacity: 1; transform: none; }
.cc.is-out { opacity: 0; transform: translateY(10px); transition-duration: 180ms; }
.cc h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; }
.cc h2 .icon { color: var(--teal); }
.cc > p { margin-top: .55rem; font-size: .93rem; color: var(--ink-2); line-height: 1.5; }
.cc a { font-weight: 600; }
.cc-details { display: grid; }
.cc.is-details .cc-row { animation: fade-up 300ms var(--ease-out) both; }
.cc.is-details .cc-row:nth-child(2) { animation-delay: 40ms; }
.cc.is-details .cc-row:nth-child(3) { animation-delay: 80ms; }
.cc-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.cc-row:first-child { margin-top: .9rem; }
.cc-label { font-weight: 750; color: var(--teal-ink); font-size: .97rem; }
.cc-row p { margin-top: .15rem; font-size: .86rem; color: var(--ink-3); line-height: 1.45; }
.cc:not(.is-details) .cc-row { display: none; }
.cc-switch { position: relative; flex: none; width: 46px; height: 28px; margin-top: .1rem; }
.cc-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background-color 200ms ease; }
.cc-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 240ms var(--ease-out); }
.cc-switch input:checked + span { background: var(--teal); }
.cc-switch input:checked + span::after { transform: translateX(18px); }
.cc-switch input:disabled + span { opacity: .55; }
.cc-switch input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.cc-actions .btn { min-height: 46px; padding-inline: .9rem; font-size: .95rem; }
.cc-actions [data-cc="reject"] { order: 1; }
.cc-actions [data-cc="accept"] { order: 2; }
.cc-actions .cc-more, .cc-actions .cc-save { order: 3; grid-column: 1 / -1; }
.cc-save { display: none !important; }
.cc.is-details .cc-save { display: inline-flex !important; }
.cc.is-details .cc-more { display: none !important; }
@media (max-width: 480px) { .cc { left: .5rem; right: .5rem; bottom: .5rem; width: auto; } }

/* Legal tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: 14px; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.legal-body th, .legal-body td { padding: .8rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-body th { background: var(--mist); color: var(--teal-ink); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.legal-body tr:last-child td { border-bottom: 0; }
.legal-body code { padding: .1rem .35rem; border-radius: 6px; background: var(--mist); color: var(--teal-ink); font-size: .88em; white-space: nowrap; }
.check.consent { padding: .9rem 1rem; border-radius: 12px; background: var(--mist); color: var(--ink); }
.check.consent a { font-weight: 600; }

/* ---------- Sign-in (inventory manager) ---------- */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(120% 80% at 50% 0%, var(--mist), var(--bg) 70%); }
.login { width: min(440px, 100%); display: grid; gap: 1.5rem; justify-items: center; animation: fade-up 600ms var(--ease-out) both; animation-delay: 0ms; }
.login-logo img { height: 28px; width: auto; }
.login-card { width: 100%; display: grid; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 2.25rem); }
.login-card h1 { font-size: 1.9rem; }
.login-card > p { color: var(--ink-2); margin-top: -.5rem; }
.login-back { justify-self: center; font-size: .92rem; color: var(--ink-2); }
