:root {
  --ink: #161616;
  --paper: #f7f4ee;
  --white: #fff;
  --brand: #ff701f;
  --brand-dark: #d9560d;
  --muted: #65635f;
  --line: #d8d5ce;
  --green: #238356;
  --shadow: 0 18px 48px rgba(20, 20, 20, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1320px, calc(100% - 40px)); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar-grid { min-height: 92px; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 28px; }
.brand { display: block; width: 200px; height: 62px; text-decoration: none; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
nav ul { display: flex; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
nav a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 99px; font-size: .91rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
nav a:hover, nav a.active { background: var(--ink); color: var(--brand); }
.header-cta, .button, .details, .load-more { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 18px; border: 0; background: var(--brand); color: #111; font-weight: 950; text-decoration: none; cursor: pointer; }
.header-cta:hover, .button:hover, .details:hover, .load-more:hover { background: var(--brand-dark); color: #fff; }
.menu-toggle { display: none; }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-size: .78rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.hub-hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; background: #111 url('brand/1world-hero-machinery.jpg') center/cover no-repeat; color: #fff; }
.hub-hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.45) 62%, rgba(0,0,0,.62)); }
.hub-hero { min-height: 630px; display: grid; align-items: center; }
.hub-hero-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 60px; padding-block: 90px; }
.hub-hero h1, .page-hero h1 { margin: 0; max-width: 850px; font-size: clamp(2.8rem, 6.4vw, 6.7rem); line-height: .92; }
.hub-hero p, .page-hero p { max-width: 720px; color: #e9e9e7; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.55; }
.hero-brand-lockup { justify-self: center; width: min(420px, 80vw); aspect-ratio: 500 / 440; overflow: hidden; background: #fff; border: 8px solid rgba(255,255,255,.18); box-shadow: 22px 24px 0 rgba(255,112,31,.78); }
.hero-brand-lockup img { display: block; width: 100%; height: 100%; object-fit: contain; }
.price-promise { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.38); background: rgba(0,0,0,.38); font-weight: 900; }
.price-promise::before { content: "●"; color: var(--brand); }
.hub-section { padding: 76px 0 90px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); }
.section-heading p { max-width: 620px; margin: 0; color: var(--muted); line-height: 1.55; }
.hub-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.hub-card { min-height: 260px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: end; grid-column: span 4; padding: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.hub-card:first-child, .hub-card:nth-child(2) { grid-column: span 6; }
.hub-card::before { content: attr(data-mark); position: absolute; right: 18px; top: -18px; color: #f0efec; font-size: 9rem; font-weight: 1000; line-height: 1; }
.hub-card:not(.pending):hover { transform: translateY(-5px); border-color: var(--brand); }
.hub-card small { color: var(--brand); font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.hub-card h3 { position: relative; margin: 9px 0 7px; font-size: 1.75rem; }
.hub-card p { position: relative; margin: 0; color: var(--muted); line-height: 1.45; }
.hub-card.external { background: var(--ink); color: #fff; }
.hub-card.external::before { color: #282828; }
.hub-card.external p { color: #cfcfcb; }
.hub-card.pending { border-style: dashed; }
.used-preview { padding: 76px 0 90px; background: #ebe8e1; }
.used-preview-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 26px; }
.used-preview-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); }
.used-preview-heading p:not(.eyebrow) { max-width: 640px; margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.used-preview-heading .button { flex: none; }
.used-preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.used-preview-grid .vip-card-grid { display: contents; }
.used-preview-grid .vip-card-title { font-size: 1.2rem; }
.used-preview-grid .vip-card-photo { aspect-ratio: 16 / 10; }
.used-preview-grid .vip-card-specs > div:nth-child(n+4) { display: none; }
.used-preview-skeleton { min-height: 365px; border: 1px solid var(--line); background: linear-gradient(105deg, #fff 35%, #f4f2ed 45%, #fff 55%) 0 0 / 220% 100%; animation: preview-pulse 1.4s ease-in-out infinite; }
.used-preview-empty { grid-column: 1 / -1; padding: 30px; background: #fff; border: 1px solid var(--line); }
.used-preview-empty h3 { margin: 0 0 8px; font-size: 1.45rem; }
.used-preview-empty p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
@keyframes preview-pulse { to { background-position: -220% 0; } }
.outbound { padding: 28px 0; background: var(--brand); color: #111; }
.outbound .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.outbound h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.5rem); }
.outbound a { flex: none; background: #fff; color: var(--ink); }
.page-hero { padding: 88px 0 76px; }
.page-hero h1 { font-size: clamp(2.7rem, 5.5vw, 5.2rem); }
.brand-strip { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.brand-strip span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.36); background: rgba(0,0,0,.36); font-weight: 850; }
.brand-strip .tentative { opacity: .72; border-style: dashed; }
.catalog-section { padding: 58px 0 90px; }
.catalog-login { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(340px, auto); gap: 24px; align-items: center; margin-bottom: 24px; padding: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.catalog-login[hidden] { display: none; }
.catalog-login h2 { margin: 0 0 5px; font-size: 1.35rem; }
.catalog-login p { margin: 0; color: var(--muted); }
.catalog-login form { display: flex; gap: 8px; }
.catalog-access { display: grid; gap: 12px; }
.registration-option { display: flex; align-items: center; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: .88rem; font-weight: 800; }
.registration-link { color: var(--brand-dark); font-weight: 950; text-underline-offset: 3px; }
.registration-link:hover { color: var(--ink); }
input, select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; }
.catalog-login input { width: min(340px, 46vw); }
.account { margin-bottom: 9px; font-weight: 850; }
.vip-status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .9rem; font-weight: 850; }
.vip-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #d18b21; }
.vip-status[data-state="live"]::before { background: var(--green); }
.vip-status[data-state="loading"]::before { background: #2579a5; }
.vip-terms { margin: 0 0 18px; padding: 12px 14px; background: var(--ink); color: #fff; font-weight: 850; }
.vip-brand-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; margin-bottom: 18px; }
.vip-brand-tiles[hidden], .vip-facets[hidden], .vip-view-toggle[hidden], [hidden] { display: none; }
.brand-tile { min-height: 84px; display: grid; place-items: center; gap: 3px; padding: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 900; }
.brand-tile.active { border-color: var(--brand); box-shadow: inset 0 -4px var(--brand); }
.brand-tile-logo { max-width: 96px; max-height: 34px; object-fit: contain; }
.brand-tile-count { color: var(--muted); font-size: .78rem; }
.vip-catalog { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 22px; align-items: start; }
.vip-facets { position: sticky; top: 96px; max-height: calc(100vh - 115px); overflow: auto; padding: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.facet-search label, .sort-control { display: grid; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 900; }
.facet-search input, .sort-control select { width: 100%; }
.facet-dd { border-bottom: 1px solid var(--line); }
.facet-legend { display: flex; align-items: center; gap: 8px; padding: 15px 0; cursor: pointer; font-weight: 950; list-style: none; }
.facet-label { flex: 1; }
.facet-badge { min-width: 22px; padding: 2px 6px; border-radius: 20px; background: var(--brand); color: #111; text-align: center; font-size: .72rem; }
.facet-dd[open] .facet-caret { transform: rotate(90deg); }
.facet-options { display: grid; gap: 8px; padding-bottom: 14px; }
.check, .toggle { display: flex; align-items: center; gap: 7px; font-size: .86rem; }
.check input, .toggle input { min-height: 0; }
.facet-count { margin-left: auto; color: var(--muted); }
.clear-filters { width: 100%; margin-top: 14px; padding: 10px; border: 1px solid var(--line); background: transparent; font-weight: 850; cursor: pointer; }
.vip-results { min-width: 0; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; }
.result-count { margin: 0; color: var(--muted); font-weight: 850; }
.toolbar-actions { display: flex; align-items: end; gap: 10px; }
.vip-view-toggle { display: inline-flex; border: 1px solid var(--line); }
.vip-view-toggle button { min-height: 44px; padding: 0 14px; border: 0; border-left: 1px solid var(--line); background: #fff; font-weight: 900; cursor: pointer; }
.vip-view-toggle button:first-child { border-left: 0; }
.vip-view-toggle button.active { background: var(--ink); color: #fff; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.filter-chip { padding: 6px 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.vip-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 18px; }
.vip-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.vip-card-photo { aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; background: #eae9e5; }
.vip-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.vip-card-noimg { color: var(--muted); font-size: 1.1rem; font-weight: 950; text-transform: uppercase; }
.vip-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.vip-card-brand { align-self: flex-start; padding: 4px 7px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 950; text-transform: uppercase; }
.vip-card-title { margin: 0; font-size: 1.1rem; }
.vip-card-specs { display: grid; gap: 4px; margin: 0; font-size: .84rem; }
.vip-card-specs > div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 3px; border-bottom: 1px dashed var(--line); }
.vip-card-specs dt { color: var(--muted); font-weight: 800; }
.vip-card-specs dd { margin: 0; text-align: right; font-weight: 850; }
.vip-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.vip-card-price { font-weight: 950; }
.gated-price { color: var(--brand-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.details.compact { min-height: 36px; padding: 0 12px; }
.vip-table-shell { overflow: auto; max-height: 72vh; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.vip-table { width: 100%; min-width: 1260px; border-collapse: collapse; font-size: .84rem; }
.vip-table th, .vip-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.vip-table th { position: sticky; top: 0; z-index: 1; background: var(--ink); color: #fff; text-transform: uppercase; }
.vip-table th.sortable { cursor: pointer; }
.vip-table th[aria-sort="ascending"], .vip-table th[aria-sort="descending"] { background: var(--brand-dark); }
.vip-table .model-cell, .vip-table .price-cell { font-weight: 950; }
.vip-table .ref-cell { max-width: 96px; overflow-wrap: anywhere; color: var(--brand-dark); font-weight: 850; }
.empty-inventory { padding: 38px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.empty-inventory h3 { margin-top: 0; font-size: 1.5rem; }
.empty-inventory p { color: var(--muted); }
.load-more { margin: 22px auto 0; }
footer { padding: 54px 0 0; background: #111; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 42px; padding-bottom: 44px; }
.foot-grid img { display: block; width: 230px; height: auto; background: #fff; }
.foot-grid p, .foot-grid li { color: #bdbdb8; line-height: 1.55; }
.foot-grid h3 { margin-top: 0; }
.foot-grid ul { list-style: none; padding: 0; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--brand); }
.foot-bottom { padding: 18px 0; border-top: 1px solid #333; color: #aaa; font-size: .86rem; }
@media (max-width: 980px) {
  .topbar-grid { grid-template-columns: 210px auto; }
  .menu-toggle { display: block; justify-self: end; padding: 10px 12px; border: 1px solid var(--line); background: #fff; font-weight: 850; }
  .topbar nav, .header-cta { display: none; }
  .topbar.nav-open nav { display: block; grid-column: 1/-1; padding-bottom: 14px; }
  nav ul { display: grid; }
  .hub-hero-grid { grid-template-columns: 1fr; }
  .hero-brand-lockup { display: none; }
  .hub-card, .hub-card:first-child, .hub-card:nth-child(2) { grid-column: span 6; }
  .used-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vip-catalog, .foot-grid { grid-template-columns: 1fr; }
  .vip-facets { position: static; max-height: none; }
}
@media (max-width: 650px) {
  .wrap { width: min(100% - 26px, 1320px); }
  .topbar-grid { grid-template-columns: 170px auto; gap: 14px; }
  .brand { width: 165px; height: 54px; }
  .hub-hero { min-height: 540px; }
  .hub-card, .hub-card:first-child, .hub-card:nth-child(2) { grid-column: 1/-1; min-height: 220px; }
  .section-heading, .used-preview-heading, .outbound .wrap, .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .used-preview-grid { grid-template-columns: 1fr; }
  .catalog-login { grid-template-columns: 1fr; }
  .catalog-login form { display: grid; }
  .registration-option { justify-content: flex-start; flex-wrap: wrap; }
  .catalog-login input { width: 100%; }
  .toolbar-actions { align-items: stretch; flex-direction: column; }
  .vip-view-toggle { align-self: start; }
}
