/* گروه بازرگانی پرشیا صنعت. Direction: the dark room (chosen by the client): one deep blue-black ground,
   photographs lit on it, calm type in five sizes, blue only on actions. Things we show (products, brand
   marks) sit on light plates; everything else is ground and ink. Brand colours and Vazirmatn kept. */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #0a1631;
  --ground-deep: #071025;
  --panel: #111f40;
  --panel-2: #172850;
  --field: #0a1631;
  --field-edge: #2a3d68;
  --plate: #ffffff;
  --plate-ink: #0a1631;
  --ink: #eef2f9;
  --ink-soft: #cdd6e7;
  --muted: #9eabc6;
  --accent: #2563eb;
  --accent-hover: #3b77f6;
  --accent-ink: #8fb3ff;
  --danger: #ffb4b4;

  --t1: clamp(2.125rem, 1.2rem + 3.2vw, 3.5rem);
  --t2: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --t3: clamp(1.25rem, 1.15rem + 0.35vw, 1.375rem);
  --t4: 1.0625rem;
  --t5: 0.9375rem;

  --m: max(clamp(1rem, 4.5vw, 4.5rem), calc((100vw - 1320px) / 2));
  --gap: clamp(1.25rem, 2.4vw, 2.5rem);
  --space: clamp(5.5rem, 8vw, 7.5rem);
  --radius: 1rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Vazirmatn", system-ui, sans-serif;
  font-size: var(--t4);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
/* Codes and part numbers keep Latin digits; the font would otherwise localise them on a Persian page. */
[lang="en"] { font-feature-settings: "locl" 0; }

.wrap { padding-inline: var(--m); }
.narrow { max-width: calc(36rem + 2 * var(--m)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 30;
  background: #fff; color: var(--ground); padding: 0.5rem 1rem; border-radius: 999px;
}
.skip:focus { top: 0.75rem; }

/* ---------- actions ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.75rem; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: var(--t5);
  white-space: nowrap; cursor: pointer;
  transition: background-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn-light { background: #fff; color: var(--ground); min-height: 2.875rem; padding: 0 1.375rem; }
.btn-light:hover { background: #dfe7f6; }
.btn-quiet { background: var(--panel-2); color: var(--ink); }
.btn-quiet:hover { background: #20366a; }
.btn-wide { width: 100%; }

/* icons: drawn at the size of the text beside them, in its colour */
.icon { width: 1.25em; height: 1.25em; flex: none; }
.btn .icon, .bale-float .icon { margin-inline-end: 0.5rem; }
.bar-cart .icon { width: 1.125rem; height: 1.125rem; vertical-align: -0.2em; }
.with-icon { display: flex; align-items: flex-start; gap: 0.5rem; }
.with-icon .icon { margin-top: 0.2em; color: var(--muted); }

/* offers: a small tag, and the old price struck through */
.offer-tag {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: var(--t5); font-weight: 700; font-style: normal; white-space: nowrap;
}
.offer-tag .icon { width: 1rem; height: 1rem; }
.p-photo { position: relative; }
.offer-tag-photo { position: absolute; inset-block-start: 0.75rem; inset-inline-start: 0.75rem; z-index: 1; }
.offer-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 1rem; font-size: var(--t5); color: var(--ink-soft); }
.p-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; font-size: var(--t4); }
.p-price strong { font-weight: 700; color: #fff; }
del { color: var(--muted); font-weight: 400; text-decoration-thickness: 1px; }
.buy-facts del { display: block; font-size: var(--t5); }
.buy-facts dd, .p-price strong, .p-price del { white-space: nowrap; }
.cart-price .offer-tag { margin-inline-start: 0.5rem; }
.link {
  display: inline; padding: 0; border: 0; background: none; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.45em;
  text-decoration-color: rgba(238, 242, 249, 0.35);
  transition: color 160ms var(--ease-out), text-decoration-color 160ms var(--ease-out);
}
.link:hover { color: #fff; text-decoration-color: var(--accent-ink); }
.link-quiet { color: var(--muted); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin-top: 2.5rem; }

/* ---------- header ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 1.75rem; padding-block: 1.5rem;
}
.wordmark { display: inline-flex; align-items: center; gap: 0.75rem; font-size: var(--t3); font-weight: 800; }
.wordmark img { width: auto; height: 2.875rem; flex: none; }
.bar-links { display: flex; gap: 1.75rem; margin-inline-start: auto; font-size: var(--t5); }
.bar-links a, .bar-cart { color: var(--ink-soft); transition: color 160ms var(--ease-out); }
.bar-links a:hover, .bar-links a[aria-current], .bar-cart:hover { color: #fff; }
.bar-links a[aria-current] { font-weight: 700; }
.bar-cart { font-size: var(--t5); white-space: nowrap; }
.bar-cart span {
  display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.375rem;
  margin-inline-start: 0.25rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700;
}
.menu { display: none; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 2.875rem; padding: 0 1.25rem;
  border-radius: 999px; background: var(--panel-2); font-weight: 700; font-size: var(--t5);
}
.menu summary::-webkit-details-marker { display: none; }
.menu:not([open]) .menu-shut, .menu[open] .menu-open { display: none; }
.menu-panel {
  position: absolute; inset: 100% 0 auto 0; display: grid; gap: 0.25rem;
  padding-block: 1.25rem 2rem; background: var(--ground-deep);
}
.menu:not([open]) .menu-panel { display: none; }
.menu-panel a { padding: 0.625rem 0; font-size: var(--t3); font-weight: 600; }
.menu-panel a.menu-sub { padding: 0.25rem 1.25rem 0.25rem 0; font-size: var(--t4); font-weight: 400; color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  animation: slide var(--hero-cycle, 24s) linear infinite;
}
/* Each slide's delay is written on it; the first one starts visible. A single slide just stays. */
.hero-slides img:first-child { animation-name: slide-lead; }
.hero-slides img:only-child { animation: none; opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 16, 37, 0.72); }
.hero-text { margin-block: auto; padding-top: 7rem; padding-bottom: 3rem; }
.hero h1 { font-size: var(--t1); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.hero-lead { margin-top: 1.25rem; max-width: 36rem; font-size: var(--t3); line-height: 1.85; color: var(--ink-soft); }
.hero-brands {
  display: flex; align-items: center; gap: clamp(2rem, 6vw, 6rem);
  padding-block: 1.75rem; background: rgba(7, 16, 37, 0.55);
}
.hero-brands p { flex: none; font-size: var(--t5); color: var(--muted); }
/* The four marks share the rest of the band evenly, edge to edge. */
.hero-brands ul { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.hero-brands a { display: block; opacity: 0.88; transition: opacity 200ms var(--ease-out); }
.hero-brands a:hover { opacity: 1; }
.logo {
  display: block; width: 7.5rem; height: 1.75rem; background: var(--ink);
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.logo-word { font-size: var(--t3); font-weight: 800; letter-spacing: 0.04em; }

/* ---------- inner page head ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 24rem; }
.page-head-plain { min-height: 0; background: var(--ground-deep); }
.page-head-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-head:not(.page-head-plain)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 16, 37, 0.68); }
.page-head-text { width: 100%; padding-top: 8rem; padding-bottom: 3rem; }
.page-head h1 { font-size: var(--t1); font-weight: 700; line-height: 1.35; }
.page-lead { margin-top: 1rem; max-width: 40rem; font-size: var(--t3); line-height: 1.85; color: var(--ink-soft); }
.trail { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin-bottom: 1rem; font-size: var(--t5); color: var(--muted); }
.trail a:hover { color: #fff; }
.trail a::after { content: "\2039"; margin-inline-start: 0.5rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-block: var(--space); }
.section + .section { padding-top: 0; }
.hero + .section, .page-head + .section { padding-top: var(--space); }
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 { grid-column: span 6; font-size: var(--t2); font-weight: 700; line-height: 1.4; }
.section-head p { grid-column: 8 / span 5; color: var(--muted); }
.section-head .done, .notice { color: var(--ink); font-weight: 700; }
.notice { padding: 1rem 1.25rem; margin-bottom: 1.5rem; background: var(--panel-2); border-radius: var(--radius); }
.empty { padding: 1.5rem 1.75rem; background: var(--panel); border-radius: var(--radius); color: var(--ink-soft); }
.empty-block { display: grid; gap: 1rem; justify-items: start; padding: clamp(1.5rem, 3.5vw, 3rem); }
.empty-block h2 { font-size: var(--t3); font-weight: 700; color: var(--ink); }
.hint { margin-top: 0.75rem; font-size: var(--t5); color: var(--muted); }
.panel { background: var(--panel); border-radius: calc(var(--radius) * 1.25); padding: clamp(1.5rem, 3.5vw, 3rem); }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.25rem); }
.tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; aspect-ratio: 3 / 4;
  border-radius: var(--radius); background: var(--panel);
}
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-expo); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 16, 37, 0.58); transition: background-color 400ms var(--ease-out); }
.tile:hover img { transform: scale(1.05); }
.tile:hover::after { background: rgba(7, 16, 37, 0.4); }
.tile-text { display: grid; gap: 0.375rem; align-content: start; padding: clamp(1.25rem, 2vw, 1.75rem); }
.tile-text strong { font-size: var(--t3); font-weight: 700; line-height: 1.5; }
.tile-text span { font-size: var(--t5); color: var(--ink-soft); }

/* who we are */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem; align-items: start; }
/* «چرا گروه بازرگانی پرشیا صنعت؟»: the promises stacked as rows in large type, icon at the start of each, the counted facts beside them. */
.why { grid-column: span 7; display: grid; gap: 0.75rem; }
.why li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(1.25rem, 2vw, 1.75rem); row-gap: 0.375rem; align-items: start;
  padding: clamp(1.25rem, 2.2vw, 2rem); background: var(--panel); border-radius: calc(var(--radius) * 1.25);
}
.why-icon {
  grid-row: span 2; display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
  border-radius: 50%; background: var(--panel-2); color: var(--accent-ink);
}
.why-icon .icon { width: 1.75rem; height: 1.75rem; }
.why h3 { font-size: var(--t3); font-weight: 700; line-height: 1.6; }
.why p { color: var(--ink-soft); max-width: 36rem; }
.stats { grid-column: 9 / span 4; align-self: center; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem var(--gap); }
.stats div { display: grid; }
.stats dd { font-size: var(--t1); font-weight: 700; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }
.stats dt { margin-top: 0.25rem; font-size: var(--t5); color: var(--muted); }

/* brands on light plates */
.brand-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.75rem clamp(0.75rem, 1.4vw, 1.25rem); }
.brand-tile { display: grid; gap: 0.75rem; align-content: start; }
.brand-plate {
  display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 14% 16%;
  background: var(--plate); border-radius: var(--radius); transition: transform 300ms var(--ease-out);
}
.brand-tile:hover .brand-plate { transform: translateY(-4px); }
.brand-plate img { max-width: 100%; max-height: 3.25rem; width: auto; object-fit: contain; }
.brand-word { color: var(--plate-ink); font-size: var(--t3); font-weight: 800; letter-spacing: 0.04em; }
.brand-meta { display: grid; }
.brand-meta strong { font-size: var(--t4); font-weight: 700; }
.brand-meta span { font-size: var(--t5); color: var(--muted); }
.brand-about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2rem; align-items: center; }
.brand-plate-large { grid-column: span 4; }
.brand-plate-large img { max-height: 6rem; }
.brand-about > div:last-child { grid-column: 6 / span 7; }
.brand-about h2 { font-size: var(--t2); font-weight: 700; margin-bottom: 1.5rem; }

/* product cards */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem clamp(0.75rem, 1.6vw, 1.5rem); }
.p-card { display: grid; gap: 0.875rem; align-content: start; }
.p-photo {
  display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3; padding: 8%;
  background: var(--plate); border-radius: var(--radius);
}
.p-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform 500ms var(--ease-expo); }
.p-card:hover .p-photo img { transform: scale(1.05); }
.p-code { color: var(--plate-ink); font-size: var(--t3); font-weight: 800; letter-spacing: 0.02em; text-align: center; overflow-wrap: anywhere; }
.p-card h3 { font-size: var(--t4); font-weight: 700; line-height: 1.7; }
.p-card h3 a:hover { color: var(--accent-ink); }
.p-specs { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: var(--t5); }
.p-specs div { display: flex; gap: 0.375rem; }
.p-specs dt { color: var(--muted); }
.p-specs dd { color: var(--ink-soft); }

/* search, filters, chips */
.search { max-width: 44rem; }
.search label, .reader label { display: block; font-weight: 700; margin-bottom: 0.75rem; }
.reader-row { display: flex; gap: 0.75rem; }
.reader-row input, .field input, .field select, .field textarea {
  width: 100%; min-height: 3.25rem; padding: 0 1.25rem;
  background: var(--field); border: 1px solid var(--field-edge); border-radius: 0.75rem;
  transition: border-color 160ms var(--ease-out);
}
.reader-row input { flex: 1; min-width: 0; border-radius: 999px; padding-inline: 1.5rem; font-weight: 700; }
.reader input { letter-spacing: 0.02em; text-align: left; }
.field textarea { padding-block: 0.875rem; min-height: 6rem; line-height: 1.8; resize: vertical; }
.field input[type="file"] { padding-block: 0.75rem; }
.field input[type="file"]::file-selector-button {
  margin-inline-end: 0.75rem; padding: 0.375rem 1rem; border: 0; border-radius: 999px;
  background: var(--panel-2); color: var(--ink); font: inherit; font-size: var(--t5); cursor: pointer;
}
.reader-row input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: #3a5288; }
.reader-row input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); }
.field input[aria-invalid="true"] { border-color: #ff8a8a; }
.field label, .choice legend { display: block; font-size: var(--t5); color: var(--ink-soft); margin-bottom: 0.5rem; }
.field-error { margin-top: 0.375rem; font-size: var(--t5); color: var(--danger); }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 2.5rem; }
.filters .field { flex: 1 1 12rem; max-width: 18rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chips a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px;
  background: var(--panel-2); font-size: var(--t5); transition: background-color 200ms var(--ease-out);
}
.chips a:hover { background: #20366a; }
.chips a[aria-current] { background: var(--accent); color: #fff; font-weight: 700; }
.result-count { margin: 1.75rem 0 2rem; color: var(--ink-soft); }
.pages { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 3rem; font-size: var(--t5); }
.pages a { font-weight: 700; }
.pages a:hover { color: var(--accent-ink); }
.pages span { color: var(--muted); }

/* code finder */
.reader-out { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem 1.5rem; margin-top: 2.25rem; }
.reader-out dt { font-size: var(--t5); color: var(--muted); }
.reader-out dd { font-weight: 700; }
.reader-miss { grid-column: 1 / -1; color: var(--ink-soft); }

/* industries: point at a row, its photograph comes up beside the list */
.industries { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.industries-list { grid-column: span 6; }
.industries .section-head, .order .section-head, .inquiry .section-head { grid-template-columns: 1fr; row-gap: 0.75rem; }
.industries .section-head > *, .order .section-head > *, .inquiry .section-head > * { grid-column: auto; }
.row { padding-block: 0.875rem; transition: opacity 240ms var(--ease-out); }
.row h3 { font-size: var(--t3); font-weight: 600; transition: color 200ms var(--ease-out), transform 300ms var(--ease-out); }
.row p { font-size: var(--t5); color: var(--muted); }
.row.is-active h3 { color: #fff; transform: translateX(-0.5rem); }
.industries.is-pointing .row:not(.is-active) { opacity: 0.5; }
.row-photo { display: none; }
.preview { grid-column: 8 / span 5; align-self: start; position: sticky; top: 2rem; }
.preview img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--panel);
  transition: opacity 240ms var(--ease-out);
}
.preview img.is-swapping { opacity: 0; }
.preview figcaption { margin-top: 0.875rem; font-size: var(--t5); color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem var(--gap); }
.photo-card { display: grid; gap: 0.25rem; align-content: start; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.75rem; transition: transform 500ms var(--ease-expo); }
.photo-card:hover img { transform: scale(1.02); }
.photo-card strong { font-size: var(--t3); font-weight: 700; }
.photo-card span { font-size: var(--t5); color: var(--muted); }

/* ordering */
.order { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.order-text { grid-column: span 6; order: -1; }
.order-map { grid-column: 8 / span 5; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.order-map img { width: 100%; filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95); }
.steps { display: grid; gap: 1.75rem; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.step-icon { width: 1.75rem; height: 1.75rem; margin-top: 0.375rem; color: var(--accent-ink); }
.steps h3 { font-size: var(--t3); font-weight: 600; }
.steps p { margin-top: 0.25rem; color: var(--ink-soft); }

/* articles */
.articles a {
  display: grid; grid-template-columns: 1fr auto 9rem; align-items: baseline; gap: var(--gap);
  padding: 1.5rem; margin-inline: -1.5rem; border-radius: var(--radius);
  transition: background-color 200ms var(--ease-out);
}
.articles a:hover { background: var(--panel); }
.a-title { font-size: var(--t2); font-weight: 600; line-height: 1.5; transition: transform 300ms var(--ease-out); }
.articles a:hover .a-title { transform: translateX(-0.5rem); }
.a-meta, .a-date { color: var(--muted); font-size: var(--t5); }
.a-date { text-align: left; }

.article { padding-top: 8rem; padding-bottom: var(--space); }
.article-head { max-width: 56rem; }
.article-head h1 { font-size: var(--t2); font-weight: 700; line-height: 1.5; }
.article-meta { margin-top: 1rem; font-size: var(--t5); color: var(--muted); }
.article-photo { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); margin-top: 2.5rem; }
.article-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 3rem; align-items: start; }
.toc { grid-column: span 3; position: sticky; top: 2rem; font-size: var(--t5); }
.toc h2 { font-size: var(--t5); font-weight: 700; color: var(--muted); margin-bottom: 0.75rem; }
.toc ol { display: grid; gap: 0.5rem; }
.toc a { color: var(--ink-soft); }
.toc a:hover { color: #fff; }
.article-layout .prose { grid-column: 5 / span 8; }
.article-layout > .prose:first-child { grid-column: 3 / span 8; }
.prose { max-width: 46rem; line-height: 2.05; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 3rem; font-size: var(--t3); font-weight: 700; line-height: 1.6; color: #fff; scroll-margin-top: 2rem; }
.prose h3 { margin-top: 2rem; font-size: var(--t4); font-weight: 700; color: #fff; }
.prose strong { color: #fff; font-weight: 700; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 0.4em; }
.prose a:hover { color: #fff; }
.prose ul, .prose ol { padding-inline-start: 1.5rem; display: grid; gap: 0.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img { border-radius: var(--radius); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.prose table, .spec { width: 100%; border-collapse: collapse; font-size: var(--t5); line-height: 1.8; }
.prose th, .prose td, .spec th, .spec td { padding: 0.75rem 1rem; text-align: start; vertical-align: top; }
.prose thead th { background: var(--panel-2); color: #fff; font-weight: 700; white-space: nowrap; }
.prose tbody tr:nth-child(odd), .spec tr:nth-child(odd) { background: var(--panel); }
.spec { border-radius: var(--radius); overflow: hidden; }
.spec th { width: 32%; font-weight: 400; color: var(--muted); }
.spec td { font-weight: 700; color: var(--ink); }
.faq { margin-top: 3.5rem; }
.faq details { margin-top: 0.5rem; background: var(--panel); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; color: var(--ink); }
.faq details p { padding: 0 1.25rem 1.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; }
.tags span { padding: 0.125rem 0.875rem; border-radius: 999px; background: var(--panel-2); font-size: var(--t5); color: var(--ink-soft); }

/* catalogues, videos */
.catalogs { display: grid; gap: 0.5rem; }
.catalogs li {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem; background: var(--panel); border-radius: var(--radius);
}
.catalogs h3 { font-size: var(--t4); font-weight: 700; }
.catalogs p { font-size: var(--t5); color: var(--muted); }
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem var(--gap); margin-top: 3rem; }
.videos-single { grid-template-columns: minmax(0, 44rem); margin-top: 0; }
.video-frame {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  padding: 0; border: 0; border-radius: var(--radius); background: var(--panel);
}
.video-frame img, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: relative; padding: 0.5rem 1.5rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: var(--t5); }
.video figcaption { margin-top: 0.75rem; font-weight: 600; }

/* customers strip */
.customers { padding-block: 0 var(--space); }
.customers h2 { font-size: var(--t2); font-weight: 700; margin-bottom: 2rem; }
.marquee { overflow: hidden; direction: ltr; padding-block: 1.75rem; background: var(--panel); }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: clamp(3rem, 6vw, 6rem); padding-inline-end: clamp(3rem, 6vw, 6rem); }
.marquee li { flex: none; direction: rtl; }
.marquee span { font-size: var(--t3); font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.marquee img { height: 3.5rem; width: auto; padding: 0.5rem 0.875rem; background: var(--plate); border-radius: 0.75rem; }

/* inquiry and contact */
.inquiry, .checkout, .order-page { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem; align-items: start; }
.inquiry-text { grid-column: span 5; }
.places { display: grid; gap: 1.5rem; }
.places dt { display: flex; align-items: center; gap: 0.5rem; font-size: var(--t5); color: var(--muted); }
.places dd { font-size: var(--t3); font-weight: 600; line-height: 1.6; }
.places a:hover { color: var(--accent-ink); }
.form { display: grid; gap: 1.125rem; }
.inquiry > .form, .inquiry > .visit { grid-column: 7 / span 6; }
.form h2, .summary h2, .pay h2, .visit h3 { font-size: var(--t3); font-weight: 700; }
.form .btn { margin-top: 0.5rem; }
.choice { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.choice legend { width: 100%; }
.choice label { display: inline-flex; align-items: center; gap: 0.5rem; }
.choice input { width: 1.125rem; height: 1.125rem; accent-color: var(--accent); }
.visit p { margin-top: 0.75rem; color: var(--ink-soft); }
.routes { display: grid; gap: 0.5rem; margin-bottom: 2rem; }
.routes li { display: flex; gap: 1.25rem; padding: 1.125rem 1.5rem; background: var(--panel); border-radius: var(--radius); }
.routes li { align-items: center; }
.routes strong { flex: none; min-width: 3.5rem; color: var(--accent-ink); }
.route-icon { width: 1.75rem; height: 1.75rem; color: var(--accent-ink); }
.map iframe { display: block; width: 100%; height: 28rem; border: 0; border-radius: var(--radius); background: var(--panel); }

/* product page */
.product { padding-top: 8rem; padding-bottom: var(--space); }
.product-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2rem; align-items: start; }
.product-media { grid-column: span 6; }
.p-photo-large { padding: 6%; }
.p-photo-large .p-code { font-size: var(--t2); }
.thumbs { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.thumbs button { width: 5rem; aspect-ratio: 4 / 3; padding: 0.25rem; border: 0; border-radius: 0.5rem; background: var(--plate); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info { grid-column: 8 / span 5; }
.product-info h1 { font-size: var(--t2); font-weight: 700; line-height: 1.5; }
.product-brand { margin-top: 0.5rem; color: var(--accent-ink); font-weight: 600; }
.product-brand a:hover { color: #fff; }
.product-lead { margin-top: 1rem; color: var(--ink-soft); }
.buy-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.25rem 1.5rem; margin-top: 2rem; }
.buy-facts dt { font-size: var(--t5); color: var(--muted); }
.buy-facts dd { font-weight: 700; }
.buy { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem; margin-top: 2rem; }
.field-qty { width: 8.5rem; }
.product-block { margin-top: clamp(3rem, 5vw, 4.5rem); }
.product-block > h2 { font-size: var(--t3); font-weight: 700; margin-bottom: 1.25rem; }
.ticks { display: grid; gap: 0.5rem; margin-top: 1.25rem; color: var(--ink-soft); }
.ticks li { position: relative; padding-inline-start: 1.25rem; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.8em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent-ink); }

/* cart, checkout, order */
.cart { display: grid; gap: 0.5rem; }
.cart li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 11rem auto; align-items: center; gap: 1rem 2rem;
  padding: 1.25rem 1.5rem; background: var(--panel); border-radius: var(--radius);
}
.cart-name { display: grid; }
.cart-name a { font-weight: 700; }
.cart-name a:hover { color: var(--accent-ink); }
.cart-name span { font-size: var(--t5); color: var(--muted); }
.cart-qty { display: flex; align-items: center; gap: 0.75rem; }
.cart-qty input { width: 6rem; min-height: 2.75rem; padding: 0 0.875rem; background: var(--field); border: 1px solid var(--field-edge); border-radius: 0.75rem; }
.cart-price { font-weight: 700; }
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.cart-foot p { max-width: 36rem; color: var(--ink-soft); }
.cart-foot strong { color: #fff; }
.form-wide { grid-column: span 8; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }
.field-full { grid-column: 1 / -1; }
.form-wide h2:not(:first-child) { margin-top: 1.5rem; }
.summary { grid-column: span 4; position: sticky; top: 2rem; display: grid; gap: 1.25rem; }
.summary ul, .summary-list { display: grid; gap: 0.75rem; font-size: var(--t5); }
.summary li, .summary-list li { display: flex; justify-content: space-between; gap: 1rem; }
.summary li span:last-child, .summary-list li span:last-child { flex: none; color: var(--muted); }
.status, .pay { grid-column: span 6; display: grid; gap: 1.25rem; }
.status:only-child { grid-column: span 8; }
.status h2 { font-size: var(--t2); font-weight: 700; }
.status h3 { font-size: var(--t4); font-weight: 700; margin-top: 1rem; }
.status .buy-facts, .pay .buy-facts { margin-top: 0; }
.pay .buy-facts { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
.pay .buy-facts > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding: 0.875rem 1.25rem; border-radius: 0.75rem; background: var(--ground); }
.pay .buy-facts [data-copy-source] { white-space: nowrap; }
.pay .buy-facts .link { margin-inline-start: 0.75rem; font-weight: 400; }
input[dir="auto"] { text-align: right; }
.credit-list { display: grid; gap: 1rem; text-align: left; }
.credit-list span { display: block; color: var(--muted); font-size: var(--t5); }

/* the "how do you want to ask" window, and the Bale button */
.ask {
  width: min(30rem, calc(100vw - 2rem)); padding: 2rem; border: 0; border-radius: calc(var(--radius) * 1.25);
  background: var(--panel); color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: a real overlay (modal dialog) */
}
.ask::backdrop { background: rgba(4, 9, 22, 0.72); }
.ask h2 { font-size: var(--t3); font-weight: 700; }
.ask-part { margin-top: 0.25rem; color: var(--muted); font-size: var(--t5); }
.ask-close { position: absolute; inset-block-start: 1.25rem; inset-inline-end: 1.25rem; }
.ask-close button { padding: 0.25rem 0.75rem; border: 0; border-radius: 999px; background: var(--panel-2); font-size: var(--t5); }
.ask-options { display: grid; gap: 0.5rem; margin-top: 1.5rem; }
.ask-option {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; row-gap: 0.125rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--ground);
  transition: background-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.ask-option:hover { background: var(--accent); }
.ask-option:active { transform: scale(0.98); }
.ask-option strong { font-weight: 700; }
.ask-option .icon { grid-row: span 2; align-self: center; width: 1.5rem; height: 1.5rem; color: var(--accent-ink); }
.ask-option:hover .icon { color: #fff; }
.ask-option > :not(.icon) { grid-column: 2; }
.ask-option span { font-size: var(--t5); color: var(--ink-soft); }
.ask-option span[dir="ltr"] { text-align: right; }
.ask-option:hover span { color: #fff; }
.bale-float {
  position: fixed; inset-block-end: 1.25rem; inset-inline-end: 1.25rem; z-index: 15;
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.25rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: var(--t5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); /* taste-skill-ignore: a real overlay (floats above the page) */
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.bale-float:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* footer */
.foot { background: var(--ground-deep); padding-block: clamp(4rem, 7vw, 6rem) 2rem; }
.foot-top { display: flex; flex-direction: column; align-items: center; text-align: center; }
.foot-lockup { display: inline-flex; align-items: center; gap: 1rem; text-align: right; }
.foot-lockup img { width: auto; height: 4.25rem; flex: none; }
.foot-name { display: block; font-size: var(--t3); font-weight: 800; line-height: 1.5; color: #fff; }
.foot-latin { display: block; font-size: var(--t5); color: var(--muted); text-align: right; }
.foot-tagline { margin-top: 1rem; max-width: 34rem; color: var(--muted); text-wrap: balance; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2rem; margin-top: 2.5rem; }
.foot-links a { color: var(--ink-soft); transition: color 160ms var(--ease-out); }
.foot-links a:hover { color: var(--accent-ink); }
.foot-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 2rem; margin-top: 2rem; font-size: var(--t5); color: var(--ink-soft); }
.foot-contact a:hover { color: var(--accent-ink); }
.foot-contact .with-icon { align-items: center; }
.foot-contact .icon { margin-top: 0; }
.foot-last {
  display: flex; flex-direction: column; align-items: center; gap: 0.375rem;
  margin-top: 3rem; font-size: var(--t5); color: var(--muted); text-align: center;
}
.foot-last a { transition: color 160ms var(--ease-out); }
.foot-last a:hover { color: var(--ink); }

/* ---------- motion ---------- */
@keyframes slide { 0% { opacity: 0; } 4%, 33% { opacity: 1; } 37%, 100% { opacity: 0; } }
@keyframes slide-lead { 0%, 33% { opacity: 1; } 37%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo);
  transition-delay: calc(var(--i, 0) * 70ms);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides img { animation: none; }
  .hero-slides img:first-child { opacity: 1; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; }
  .marquee ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; row-gap: 1.5rem; padding-inline: var(--m); }
  .js [data-reveal] { transform: none; }
  .js [data-reveal].is-in { transition: opacity 300ms linear; }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .bar-links, .bar-cart { display: none; }
  .bar .btn { margin-inline-start: auto; }
  .menu { display: block; }
  .section-head h2 { grid-column: 1 / -1; }
  .section-head p { grid-column: 1 / -1; margin-top: 0.75rem; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { aspect-ratio: 4 / 3; }
  .why, .stats { grid-column: 1 / -1; }
  .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-plate-large, .brand-about > div:last-child { grid-column: 1 / -1; }
  .brand-plate-large { max-width: 18rem; }
  .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reader-out { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .industries-list { grid-column: 1 / -1; }
  .preview { display: none; }
  .rows { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem var(--gap); }
  .row-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; }
  .row.is-active h3 { transform: none; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .order-text, .order-map { grid-column: 1 / -1; }
  .order-map { margin-top: 3rem; order: 0; }
  .articles a { grid-template-columns: 1fr auto; row-gap: 0.25rem; padding: 1.5rem 0; margin-inline: 0; }
  .a-title { grid-column: 1 / -1; }
  .toc { display: none; }
  .article-layout .prose, .article-layout > .prose:first-child { grid-column: 1 / -1; }
  .videos { grid-template-columns: 1fr 1fr; }
  .inquiry-text, .inquiry > .form, .inquiry > .visit, .form-wide, .summary, .status, .pay { grid-column: 1 / -1; }
  .summary { position: static; }
  .product-media, .product-info { grid-column: 1 / -1; }
  .product-media { max-width: 36rem; }
  .cart li { grid-template-columns: 1fr auto; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .bar { gap: 0.75rem; padding-block: 1.25rem; }
  .wordmark { gap: 0.5rem; font-size: var(--t4); }
  .wordmark img { height: 2.25rem; }
  .bar .btn { display: none; }
  .menu { margin-inline-start: auto; }
  .hero-text { padding-top: 6rem; }
  .hero-brands { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .hero-brands ul { gap: 1.25rem; }
  .logo { width: 4.5rem; height: 1.25rem; }
  .logo-word { font-size: var(--t5); }
  .page-head { min-height: 18rem; }
  .page-head-text { padding-top: 6.5rem; padding-bottom: 2rem; }
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 10; }
  .stats { gap: 2rem 1rem; }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.625rem; }
  .brand-grid .brand-meta { display: none; }
  .brand-plate { padding: 12%; }
  .brand-plate img { max-height: 2.25rem; }
  .brand-word { font-size: var(--t4); }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 0.75rem; }
  .reader-row { flex-direction: column; }
  .reader-out { grid-template-columns: 1fr 1fr; }
  .filters .field { max-width: none; flex-basis: 100%; }
  .rows, .photo-grid, .videos, .form-grid { grid-template-columns: 1fr; }
  .rows { gap: 1.25rem; }
  .row { display: grid; grid-template-columns: 5.5rem 1fr; column-gap: 1rem; align-items: center; padding-block: 0; }
  .row-photo { grid-row: span 2; aspect-ratio: 1; margin-bottom: 0; border-radius: 0.75rem; }
  .row h3 { align-self: end; }
  .row p { align-self: start; }
  .a-title { font-size: var(--t3); }
  .article, .product { padding-top: 6.5rem; }
  .article-photo { aspect-ratio: 16 / 10; }
  .routes li { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .map iframe { height: 22rem; }
  .cart li { grid-template-columns: 1fr; }
  .bale-float { inset-block-end: 0.75rem; inset-inline-end: 0.75rem; }
}
