/* EZUP Crane Systems — site styles
   Layout: shop-floor bands. Light concrete ground, charcoal bands, crane-yellow
   used only for action and the nameplate motif taken from the bridge labels. */
/* Fonts are served from this site (SIL Open Font License), so no request leaves for a font host. */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ground: #F1F0EC;        /* sealed concrete */
  --surface: #FFFFFF;
  --ink: #1C1E21;           /* logo charcoal */
  --ink-soft: #4A4E55;
  --rule: #D8D6CF;
  --band: #1C1E21;          /* dark bands */
  --band-ink: #F1F0EC;
  --band-soft: #B9BCC2;
  --band-rule: #3A3D43;
  --yellow: #F2C200;        /* crane paint */
  --yellow-ink: #1C1E21;
  --red: #C93A3A;           /* logo Z, text-safe */
  --focus: #1F6FD1;
  --logo-light: block;
  --logo-dark: none;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Consolas", monospace;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 5vw, 3.4rem);
  --step-5: clamp(2.8rem, 7vw, 4.6rem);
  --wrap: 1180px;
  --radius: 3px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #141618; --surface: #1D2023; --ink: #ECEAE4; --ink-soft: #B3B6BC; --rule: #33373C;
    --band: #0D0E10; --band-ink: #ECEAE4; --band-soft: #A6A9AF; --band-rule: #2C2F34;
    --yellow: #F2C200; --yellow-ink: #15171A; --red: #F07070; --focus: #7FB2F0;
    --logo-light: none; --logo-dark: block; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #141618; --surface: #1D2023; --ink: #ECEAE4; --ink-soft: #B3B6BC; --rule: #33373C;
  --band: #0D0E10; --band-ink: #ECEAE4; --band-soft: #A6A9AF; --band-rule: #2C2F34;
  --yellow: #F2C200; --yellow-ink: #15171A; --red: #F07070; --focus: #7FB2F0;
  --logo-light: none; --logo-dark: block; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { margin: 0; max-width: 65ch; }
.lede { font-size: var(--step-1); color: var(--ink-soft); }
.eyebrow { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.band .eyebrow { color: var(--yellow); }

/* bands and wrappers: side gutter lives on .wrap */
.wrap {
  max-width: calc(var(--wrap) + 2 * 24px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.band { background: var(--band); color: var(--band-ink); }
.band .lede, .band p { color: var(--band-soft); }
.band h1, .band h2, .band h3 { color: var(--band-ink); }
.plain { background: var(--surface); border-block: 1px solid var(--rule); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--body);
}
.btn-primary { background: var(--yellow); color: var(--yellow-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--yellow); }

/* top bar + header */
.topbar { background: var(--band); color: var(--band-soft); font-size: 0.9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 8px; }
.topbar strong { color: var(--yellow); font-weight: 600; font-family: var(--mono); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 60px; width: auto; }
@media (max-width: 520px) { .brand img { height: 46px; } }
.hero-logo { height: clamp(72px, 10vw, 110px); width: auto; }
.brand .logo-l { display: var(--logo-light); }
.brand .logo-d { display: var(--logo-dark); }
.nav-toggle { display: none; background: none; border: 2px solid var(--rule); border-radius: var(--radius); color: var(--ink); min-height: 44px; padding: 8px 14px; font: 600 1rem var(--body); cursor: pointer; }
.nav { display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; padding: 10px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
.nav .btn { padding: 10px 18px; border-bottom: 0; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 12px; }
}

/* hero */
.hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-photo { position: relative; min-width: 0; }
.hero-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.page-hero h1 { font-size: var(--step-4); }

/* nameplate motif: the white serial label riveted to every EZUP bridge */
.nameplate {
  background: #FFFFFF; color: #15171A; border: 2px solid #15171A; border-radius: 4px;
  padding: 14px 18px; position: relative; display: flex; flex-direction: column; gap: 2px;
}
.nameplate::before, .nameplate::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #9A9DA3; top: 8px; }
.nameplate::before { left: 8px; } .nameplate::after { right: 8px; }
.nameplate .np-big { font-family: var(--display); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.nameplate .np-small { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.hero-photo .nameplate { position: absolute; left: -12px; bottom: -18px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
@media (max-width: 520px) { .hero-photo .nameplate { left: 8px; bottom: 8px; } }

/* tiers */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.tier { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tier.feature { background: var(--band); color: var(--band-ink); border-color: var(--band); }
.tier.feature p { color: var(--band-soft); }
.tier .range { font-family: var(--mono); font-size: 0.9rem; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); }
.tier.feature .range { border-top-color: var(--band-rule); color: var(--yellow); }
.tier a.textlink { align-self: flex-start; }

/* product list */
.product-group { display: flex; flex-direction: column; gap: 20px; }
.product-group + .product-group { margin-top: 56px; }
.prod { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0 24px 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-margin-top: 110px; }
.prod-img { width: calc(100% + 48px); max-width: none; margin: 0 -24px 12px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; background: #DAD8D2; }
.prod:target { outline: 3px solid var(--yellow); outline-offset: 2px; }
.grid.products { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 24px; }
@media (min-width: 760px) { .grid.products.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .products.two .prod h3 { font-size: 1.75rem; } }
.render-note { font-size: 0.95rem; color: var(--ink-soft); max-width: 70ch; }
.prod h3 { font-size: 1.5rem; }
.prod p { color: var(--ink-soft); font-size: 1rem; }
.prod ul { margin: 4px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 0.98rem; }

/* feature split with photo */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.split img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 3 / 4; }
.photo-wide { aspect-ratio: 4 / 3; }
figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
figcaption { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.band figcaption { color: var(--band-soft); }

/* advantages */
.adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px 32px; }
.adv div { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 2px solid var(--ink); }
.band .adv div { border-top-color: var(--yellow); }
.adv h3 { font-size: 1.35rem; }
.adv p { font-size: 1rem; color: var(--ink-soft); }
.band .adv p { color: var(--band-soft); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }

/* tables */
.table-box { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 1rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 0.95rem; }

/* steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--yellow); }
.steps h3 { font-size: 1.3rem; }
.steps p { font-size: 1rem; }

/* forms */
.form { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px 20px; min-width: 0; }
.form fieldset { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px 20px; }
.form legend { font-family: var(--display); font-weight: 700; font-size: 1.4rem; padding: 0; margin-bottom: 4px; grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: var(--radius); background: var(--ground); color: var(--ink); min-height: 48px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-result { grid-column: 1 / -1; border: 2px solid var(--yellow); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.form-result pre { margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: 0.85rem; background: var(--ground); padding: 12px; border-radius: var(--radius); overflow-x: auto; }
.form-error { grid-column: 1 / -1; color: var(--red); font-weight: 600; }

/* contact block */
.contact-lines { display: flex; flex-direction: column; gap: 4px; font-size: 1.05rem; }
.contact-lines .mono { font-family: var(--mono); }

/* CTA band */
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: var(--step-3); }

/* footer */
.site-footer { background: var(--band); color: var(--band-soft); font-size: 0.98rem; }
.site-footer .wrap { padding-block: 56px 28px; display: flex; flex-direction: column; gap: 32px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px; }
.foot-grid h3 { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--band-ink); font-weight: 500; margin-bottom: 10px; }
.foot-grid a { color: var(--band-ink); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot-brand img { height: 52px; width: auto; }
.legal { border-top: 1px solid var(--band-rule); padding-top: 20px; font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-logo-d { display: block; }


/* ------------------------------------------------------------------
   Home hero: a general-arrangement view of the crane. The dimension
   lines and item balloons are the drawing conventions customers see
   on the layout drawings we send them; each balloon keys to the list.
   ------------------------------------------------------------------ */
.sheet-hero { background: var(--ground); border-bottom: 1px solid var(--rule); padding-block: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 72px); overflow: hidden; }
.sheet-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: center; }
.sheet-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.sheet-copy h1 { font-size: clamp(2.9rem, 6.4vw, 5rem); line-height: 0.98; }
.ga { min-width: 0; gap: 10px; }
.ga-stage { position: relative; }
.ga-stage img { width: 100%; height: auto; }
.ga-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ga-lines path, .ga-lines line { stroke: var(--ink); stroke-width: 1.4; fill: none; vector-effect: non-scaling-stroke; }
.ga-lines .ext { stroke-width: 1; opacity: 0.55; }
.ga-lines .tick { stroke-width: 2.4; }
.dim { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-family: var(--mono); font-weight: 500;
  font-size: clamp(0.7rem, 1.25vw, 0.92rem); letter-spacing: 0.02em; color: var(--ink); background: var(--ground); padding: 1px 8px; }
.balloon { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--ground); font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 30px;
  text-align: center; box-shadow: 0 0 0 3px var(--ground); cursor: default; transition: background-color .15s, color .15s, transform .15s; }
.balloon.is-on { background: var(--yellow); color: var(--yellow-ink); transform: translate(-50%, -50%) scale(1.18); }
.sheet-hero .wrap > h2.sr { grid-column: 1 / -1; }
.ga-key { list-style: none; margin: 0; padding: 26px 0 0; border-top: 2px solid var(--ink); counter-reset: key;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px 36px; }
.ga-key li { counter-increment: key; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-content: start; border-radius: var(--radius); }
.ga-key li::before { content: counter(key); grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--ground);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 30px; text-align: center; transition: background-color .15s, color .15s; }
.ga-key li.is-on::before { background: var(--yellow); color: var(--yellow-ink); }
.ga-key h3 { font-size: 1.4rem; grid-column: 2; align-self: center; }
.ga-key p { font-size: 1rem; color: var(--ink-soft); grid-column: 2; }
.ga-note { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 560px) { .balloon { width: 22px; height: 22px; line-height: 22px; font-size: 0.85rem; box-shadow: 0 0 0 2px var(--ground); } }
@media (min-width: 980px) {
  .sheet-hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
  .ga { margin-right: clamp(-90px, -5vw, 0px); }
  .ga-key, .ga-note { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------
   Product line-up: the list of names is the control; the picture and
   the facts follow it. Below 960 px it is a swipeable row instead.
   ------------------------------------------------------------------ */
.lineup-body { margin-top: 36px; }
.lineup-list { display: none; }
.lineup-view { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: -16px; padding-inline: 16px; scrollbar-color: var(--band-rule) transparent; }
.lu { flex: 0 0 min(84vw, 420px); scroll-snap-align: center; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lu img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #DAD8D2; }
.lu-text { display: flex; flex-direction: column; gap: 10px; }
.lu-text h3 { font-size: 1.8rem; }
.lu-fam { font-family: var(--mono); font-size: 0.8rem; color: var(--yellow); letter-spacing: 0.04em; }
.lu-range { font-family: var(--mono); font-size: 0.9rem; color: var(--band-ink); }
.lu .btn-row { align-items: center; gap: 12px 22px; margin-top: 4px; }
.lu .textlink { color: var(--band-ink); }
@media (min-width: 960px) {
  .lineup-body.is-explorer { display: grid; grid-template-columns: minmax(270px, 1fr) minmax(0, 640px); gap: clamp(32px, 5vw, 72px); align-items: start; }
  .is-explorer .lineup-list { display: flex; flex-direction: column; gap: 26px; }
  .lineup-group { display: flex; flex-direction: column; gap: 2px; }
  .lineup-group h3 { font-family: var(--mono); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--band-soft); margin-bottom: 6px; }
  .lineup-list button { appearance: none; background: none; border: 0; border-left: 3px solid var(--band-rule); margin: 0; padding: 5px 0 5px 16px; text-align: left; cursor: pointer;
    font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.12; color: var(--band-soft); transition: color .12s, border-color .12s; }
  .lineup-list button:hover { color: var(--band-ink); }
  .lineup-list button[aria-selected="true"] { color: var(--band-ink); border-left-color: var(--yellow); }
  .lineup-body.is-explorer .lineup-view { display: block; overflow: visible; margin: 0; padding: 0; position: sticky; top: 104px; }
  .is-explorer .lu { display: none; }
  .is-explorer .lu.is-active { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .is-explorer .lu-text { max-width: 60ch; }
  .is-explorer .lu-fam { display: none; }
}
@media (prefers-reduced-motion: reduce) { .balloon { transition: none; } }

/* two-up comparison figures above a spec table */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.duo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #DAD8D2; }
.duo figcaption { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ink); letter-spacing: 0; }
.duo figcaption span { display: block; font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--ink-soft); }

/* renders sit on a studio backdrop; keep the box filled while they load */
.hero-photo img, .gallery img, .split img { background: #DAD8D2; }
.interest { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 14px; border: 2px solid var(--yellow); border-radius: var(--radius); font-size: 1rem; }
.interest[hidden] { display: none; }
.interest button { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.prod-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: auto; padding-top: 10px; }
.ga-lines circle { fill: var(--ink); stroke: none; }
.lu, .prod, .lineup-view { position: relative; }   /* keeps the visually hidden link text inside its scrolling row */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: var(--yellow-ink); padding: 10px 16px; font-weight: 600; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.family-hero .wrap { grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); }
.family-hero .sheet-copy h1 { font-size: var(--step-5); max-width: 18ch; }
.family-hero .ga { margin-right: 0; }
.family-hero { border-bottom: 0; padding-bottom: 0; }

/* ------------------------------------------------------------------
   Crane layout tool (EZUP Cranes page). The still picture shows until
   the 3D model is running; without WebGL it simply stays.
   ------------------------------------------------------------------ */
.layout3d { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 36px; }
.l3-view { position: relative; aspect-ratio: 4 / 3; min-width: 0; }
.l3-still { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: #DAD8D2; }
.l3-canvas { position: absolute; inset: 0; display: none; }
.l3-canvas canvas { width: 100%; height: 100%; display: block; border-radius: var(--radius); }
.l3-dim, .l3-hint { display: none; }
.is-live .l3-still { display: none; }
.is-live .l3-canvas { display: block; }
.is-live .l3-dim { display: block; position: absolute; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  font-family: var(--mono); font-weight: 500; font-size: 0.85rem; color: var(--ink); background: var(--surface); padding: 1px 7px; }
.is-live .l3-hint { display: block; position: absolute; left: 0; bottom: 0; font-size: 0.9rem; color: var(--ink-soft); pointer-events: none; }
.l3-controls { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.l3-controls[hidden] { display: none; }
.l3-seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.l3-seg legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.l3-seg label { position: relative; display: inline-flex; }
.l3-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.l3-seg span { display: inline-flex; align-items: center; justify-content: center; min-width: 68px; min-height: 46px; padding: 0 14px;
  border: 2px solid var(--rule); border-radius: var(--radius); font-weight: 600; }
.l3-seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.l3-seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.l3-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.l3-field label { font-weight: 600; }
.l3-field output { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.l3-field input[type="range"] { grid-column: 1 / -1; width: 100%; height: 34px; margin: 0; accent-color: var(--ink); }
.l3-fact { font-size: 1rem; color: var(--ink-soft); padding-top: 14px; border-top: 1px solid var(--rule); }
.l3-fact strong { color: var(--ink); font-family: var(--mono); font-weight: 500; margin-left: 8px; }
.l3-controls .btn { align-self: flex-start; }
@media (min-width: 980px) { .layout3d { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: center; } }
.door-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: #DAD8D2; margin-bottom: 8px; }
.doors .textlink { align-self: flex-start; }
.doors h2 { font-size: var(--step-3); }
.doors { gap: clamp(32px, 5vw, 64px); }

/* ------------------------------------------------------------------
   Configurator (configure.html): inputs on the left, the live drawing
   pinned on the right like a drawing sheet on the board.
   ------------------------------------------------------------------ */
.cfg-intro { padding-block: clamp(28px, 4vw, 48px) 8px; }
.cfg-intro h1 { font-size: var(--step-4); }
.cfg-intro .lede { margin-top: 10px; }
.cfg { padding-block: 20px clamp(48px, 7vw, 88px); }
.cfg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1000px) { .cfg-grid { grid-template-columns: 360px minmax(0, 1fr); gap: 40px; } .cfg-out { position: sticky; top: 96px; } }
.cfg-inputs { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.cfg-inputs fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cfg-inputs legend, .cfg-size-head label, .cfg-inputs .field label { font-weight: 600; font-size: 0.95rem; padding: 0; margin-bottom: 8px; }
.cfg-types { display: flex; flex-direction: column; gap: 6px; }
.cfg-type { position: relative; display: block; }
.cfg-type input, .cfg-segs input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cfg-type span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.cfg-type strong { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.cfg-type small { font-size: 0.9rem; color: var(--ink-soft); text-align: right; }
.cfg-type input:checked + span { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--yellow); }
.cfg-type input:focus-visible + span, .cfg-segs input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.cfg-segs { display: flex; flex-wrap: wrap; gap: 6px; }
.cfg-segs label { position: relative; display: inline-flex; }
.cfg-segs span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); font-weight: 600; }
.cfg-segs input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.cfg-jib-hint { margin-top: 8px; }
.cfg-check { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.cfg-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.cfg-check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cfg-check strong { display: block; font-weight: 700; }
.cfg-check small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.45; }
.cfg-check .cfg-rec { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 3px; background: var(--yellow); color: #1C1E21; font-size: 0.78rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; vertical-align: 2px; }
.cfg-check:has(input:checked) { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--yellow); }
.qd-loads td:last-child { font-family: var(--mono, ui-monospace, monospace); white-space: nowrap; }
.cfg-group { display: flex; flex-direction: column; gap: 18px; padding: 18px 0; border-block: 1px solid var(--rule); }
.cfg-size[hidden] { display: none; }
.cfg-size-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cfg-size-head label { margin: 0; }
.cfg-num { font-family: var(--mono); font-size: 0.95rem; white-space: nowrap; }
.cfg-num input { width: 5.2em; font: inherit; text-align: right; padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.cfg-size input[type="range"] { width: 100%; margin: 8px 0 2px; height: 30px; accent-color: var(--ink); }
.cfg-hint { font-size: 0.88rem; color: var(--ink-soft); }
.cfg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cfg-row2 .field input, .cfg-row2 .field select { min-height: 44px; padding: 8px 10px; }
.cfg-out { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cfg-viewer { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); min-width: 0; }
.cfg-viewer-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 16px 10px; border-bottom: 1px solid var(--rule); }
.cfg-kicker { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.cfg-sumline { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft); margin-top: 2px; }
.cfg-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; flex: none; }
.cfg-toggle button { appearance: none; border: 0; background: none; color: var(--ink); font: 600 0.95rem var(--body); min-height: 40px; padding: 0 14px; cursor: pointer; }
.cfg-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.cfg-drawing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 700px) { .cfg-drawing { grid-template-columns: 1fr 1fr; } .cfg-view + .cfg-view { border-left: 1px solid var(--rule); } }
.cfg-view { margin: 0; }
.cfg-view svg { display: block; width: 100%; height: auto; }
.cfg-3d { position: relative; aspect-ratio: 16 / 9; background: #F4F3EF; }
.cfg-3d canvas { width: 100%; height: 100%; display: block; }
.cfg-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 760px) { .cfg-result { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 32px; } .cfg-result > .cfg-disclaimer, .cfg-result > #cfg-get, .cfg-result > .cfg-contact { grid-column: 1 / -1; } }
.cfg-price { display: flex; flex-direction: column; gap: 4px; min-height: 92px; }
.cfg-price.is-busy { opacity: 0.45; }
.cfg-price-label { font-weight: 600; font-size: 0.95rem; }
.cfg-price-num { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.cfg-price-note { font-size: 0.95rem; color: var(--ink-soft); }
.cfg-sample { align-self: flex-start; font-family: var(--mono); font-size: 0.78rem; background: var(--yellow); color: var(--yellow-ink); padding: 2px 8px; border-radius: var(--radius); }
.cfg-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 0.95rem; }
.cfg-dl dt { color: var(--ink-soft); }
.cfg-dl dd { margin: 0; font-family: var(--mono); font-size: 0.9rem; }
.cfg-warn { margin: 12px 0 0; padding-left: 18px; font-size: 0.92rem; color: var(--ink-soft); }
.cfg-engineer { font-weight: 600; }
.cfg-disclaimer { font-size: 0.92rem; padding: 10px 12px; border-left: 4px solid var(--yellow); background: var(--surface); }
#cfg-get { justify-self: start; }
.cfg-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px 18px; padding: 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.cfg-contact[hidden] { display: none; }
.cfg-contact-lede, .cfg-contact .full, .cfg-contact .btn, .cfg-contact .form-error { grid-column: 1 / -1; }
.cfg-contact .btn { justify-self: start; }

/* the quote document: screen and print */
.quote-wrap { padding-block: 8px 72px; }
.quote-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding: 16px 0 20px; }
.quote-bar p { max-width: 70ch; font-weight: 600; }
.quote-doc { background: #fff; color: #1C1E21; border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(18px, 4vw, 48px); max-width: 960px; display: flex; flex-direction: column; gap: 22px; font-size: 0.98rem; --d-paper: #fff; }
.quote-doc h2 { font-size: 2rem; } .quote-doc h3 { font-size: 1.3rem; margin-bottom: 6px; }
.quote-doc ul { margin: 0; padding-left: 20px; }
.qd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 3px solid #1C1E21; }
.qd-head img { height: 52px; width: auto; }
.qd-id dl { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 6px 0 0; font-size: 0.92rem; }
.qd-id dt { color: #4A4E55; } .qd-id dd { margin: 0; font-family: var(--mono); }
.qd-disclaimer { background: #FFF4CC; border-left: 4px solid #F2C200; padding: 10px 14px; max-width: none; }
.qd-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.qd-sum { font-family: var(--mono); font-size: 0.92rem; }
.qd-price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 10px; max-width: none; }
.qd-price span { font-weight: 600; } .qd-price strong { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.qd-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); border: 1px solid #D8D6CF; }
.qd-views figure { margin: 0; } .qd-views figure + figure { border-left: 1px solid #D8D6CF; }
.qd-views svg { display: block; width: 100%; height: auto; }
.qd-3d { margin: 14px 0 0; } .qd-3d img { width: 100%; max-width: 640px; border: 1px solid #D8D6CF; background: #F4F3EF; }
.qd-3d figcaption { color: #4A4E55; }
.quote-doc table { border-collapse: collapse; width: 100%; min-width: 0; font-size: 0.92rem; }
.quote-doc th, .quote-doc td { padding: 6px 8px; border-bottom: 1px solid #D8D6CF; text-align: left; }
.quote-doc th { color: #4A4E55; }
.qd-small { font-size: 0.9rem; color: #4A4E55; max-width: none; }
.qd-sign { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 18px; margin-top: 30px; }
.qd-sign span { border-top: 1px solid #1C1E21; padding-top: 4px; font-size: 0.85rem; color: #4A4E55; }
.qd-foot { font-size: 0.88rem; }
@media print {
  body > *:not(main), .topbar, .site-header, .site-footer, .skip, main > section:not(.quote-wrap), .quote-bar { display: none !important; }
  body { background: #fff; }
  .quote-wrap { padding: 0; } .quote-wrap .wrap { padding: 0; max-width: none; }
  .quote-doc { border: 0; padding: 0; max-width: none; }
  .qd-figs, .qd-confirm, .quote-doc table { break-inside: avoid; }
  @page { margin: 14mm; }
}
/* phones and tablets: the drawing stays pinned above the inputs while they are filled in */
@media (max-width: 999px) {
  .cfg-out { display: contents; }
  .cfg-viewer { order: -1; position: sticky; top: 72px; z-index: 5; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
  .cfg-inputs { order: 1; }
  .cfg-result { order: 2; }
  .cfg-viewer-bar { padding: 8px 12px; align-items: center; }
  .cfg-kicker { font-size: 1.1rem; }
  .cfg-sumline { display: none; }
  .cfg-drawing { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .cfg-view { flex: 0 0 100%; scroll-snap-align: start; }
  .cfg-view svg { max-height: 34vh; margin: 0 auto; }
  .cfg-3d { aspect-ratio: auto; height: 34vh; }
  .cfg-swipe { display: block; }
}
@media (max-width: 520px) { .cfg-viewer { top: 64px; } }
.cfg-swipe { display: none; font-size: 0.8rem; color: var(--ink-soft); padding: 0 12px 6px; }
@media (min-width: 700px) and (max-width: 999px) { .cfg-drawing { display: grid; overflow: visible; } .cfg-view svg { max-height: 30vh; } .cfg-swipe { display: none; } }
.cfg-drawing[hidden], .cfg-3d[hidden] { display: none !important; }
@media print { .quote-doc > section { break-inside: avoid; } }

.cfg-approval { display: block; margin-top: 8px; padding: 8px 10px; border-left: 4px solid var(--yellow); background: var(--surface); font-weight: 700; font-size: 0.95rem; }
.qd-approval { margin: 10px 0 0; padding: 10px 12px; border: 2px solid var(--ink); font-weight: 700; }
@media print { .qd-approval { border-color: #000; } }
