/*
Theme Name: Quemadores Baltur
Description: Sitio y catálogo interactivo de Quemadores Baltur, representantes oficiales de Baltur en República Dominicana y Haití.
Version: 2.6.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: quemadores-baltur
*/

:root {
  --ink: #0f1114;
  --ink-2: #181b20;
  --ink-3: #23272e;
  --paper: #f4f2ee;
  --paper-2: #ebe7e0;
  --white: #ffffff;
  --muted: #5b616a;
  --muted-dark: #9aa1ab;
  --line: rgba(15, 17, 20, 0.12);
  --line-dark: rgba(255, 255, 255, 0.1);
  --accent: #e4461a;
  --accent-2: #ff7a1f;
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 1320px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 0.75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
p { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(228, 70, 26, 0.18); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 242, 238, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--gutter);
}
.brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--display); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.brand strong { color: var(--accent); }
.brand small { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.brand-text { line-height: 1.15; }
.brand-logo { height: 30px; width: auto; }
.brand-logo + .brand-text { padding-left: 0.75rem; border-left: 1px solid var(--line); }
.brand-mark {
  width: 30px; height: 30px; flex: none;
  border-radius: 9px;
  background: radial-gradient(circle at 50% 72%, #fff2c2 0 14%, var(--accent-2) 34%, var(--accent) 64%, #a62a0b 100%);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.18);
}
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { font-size: 0.94rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.site-nav a:hover { color: var(--ink); }
.nav-cta, .site-nav .nav-cta {
  color: var(--white);
  background: var(--ink);
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  transition: background 0.2s;
}
.site-nav .nav-cta:hover { background: var(--accent); color: var(--white); }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 10px 30px -12px rgba(228, 70, 26, 0.7); }
.btn-primary:hover { background: #cc3a12; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); }

/* Layout */
.section { padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4rem; align-items: end; }
.section-head.split > p { font-size: 1.08rem; max-width: 34rem; }
.band { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--white); }
.dark p { color: var(--muted-dark); }
.dark .eyebrow, .cta .eyebrow { color: var(--accent-2); }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 1.6rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); max-width: 38rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #b9babc, #6d6f72);
  aspect-ratio: 675 / 820;
  box-shadow: 0 40px 80px -40px rgba(15, 17, 20, 0.55);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.hero-visual:hover img { transform: scale(1.08); }
.hero-visual figcaption {
  position: absolute;
  left: 1.25rem; bottom: 1.25rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.hero-visual figcaption span { display: block; font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.hero-stats div { padding: 1.5rem 1.5rem 0 0; }
.hero-stats div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.hero-stats dt { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; }
.hero-stats dd { color: var(--muted); font-size: 0.9rem; }

/* Ticker */
.ticker { background: var(--ink); color: var(--white); overflow: hidden; padding: 1.05rem 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; padding: 0 1.6rem; display: flex; align-items: center; gap: 3.2rem; }
.ticker span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 1.6rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  min-height: 330px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.2s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(15, 17, 20, 0.35); border-color: transparent; }
.cat-num { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.cat-card img { width: 100%; height: 150px; object-fit: contain; margin: 0.75rem 0 auto; transition: transform 0.5s var(--ease); }
.cat-card:hover img { transform: scale(1.06) rotate(-1deg); }
.cat-card h3 { font-size: 1.45rem; margin-top: 1rem; }
.cat-card p { color: var(--ink); font-weight: 600; font-size: 0.95rem; margin-top: 0.3rem; }
.cat-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); margin-top: 0.4rem; }
.cat-card::after {
  content: "→";
  position: absolute; top: 1.1rem; right: 1.2rem;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: var(--paper); font-size: 0.95rem;
  transition: background 0.2s, color 0.2s, transform 0.3s var(--ease);
}
.cat-card:hover::after { background: var(--accent); color: var(--white); transform: rotate(-45deg); }

/* Catalog */
.catalog { background: var(--white); border-top: 1px solid var(--line); }
.finder {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem 1.5rem;
  align-items: end;
  padding: 1rem;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -32px rgba(15, 17, 20, 0.5);
}
.admin-bar .finder { top: 104px; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tab {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.finder-fields { display: flex; gap: 0.75rem; }
.field { display: grid; gap: 0.3rem; position: relative; }
.field > span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--white); }
.finder .field input { width: 200px; }
.field-kw input { padding-right: 2.6rem; }
.field-kw em { position: absolute; right: 0.9rem; bottom: 0.72rem; font-style: normal; font-size: 0.85rem; color: var(--muted); }
.finder-count { font-size: 0.9rem; white-space: nowrap; padding-bottom: 0.7rem; }
.finder-count strong { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }

.cat-block + .cat-block { margin-top: 4rem; }
.cat-block-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem 3rem; align-items: baseline; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.cat-block-head h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cat-block-head p { font-size: 0.98rem; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.product {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.2s, background 0.2s;
}
.product:hover { transform: translateY(-4px); background: var(--white); border-color: var(--line); box-shadow: 0 28px 50px -30px rgba(15, 17, 20, 0.35); }
.product[hidden] { display: none; }
.product-media {
  position: relative;
  background: var(--white);
  margin: 0.5rem 0.5rem 0;
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.product-media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.5s var(--ease); }
.product:hover .product-media img { transform: scale(1.05); }
.product-ph { font-family: var(--display); font-weight: 800; font-size: 2.6rem; color: var(--paper-2); letter-spacing: -0.04em; }
.product-serie {
  position: absolute; top: 0.6rem; left: 0.6rem;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--paper); color: var(--muted); padding: 0.25rem 0.55rem; border-radius: 999px;
}
.product-body { padding: 1.1rem 1.15rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.product-body h4 { font-size: 1.18rem; }
.product-kw { font-family: var(--mono); font-size: 0.82rem; color: var(--ink); margin-top: 0.35rem; }
.range { position: relative; height: 4px; background: var(--paper-2); border-radius: 4px; margin: 0.7rem 0 0.9rem; }
.range span { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 1rem; }
.chips li { font-family: var(--mono); font-size: 0.68rem; padding: 0.22rem 0.5rem; border-radius: 6px; background: var(--white); border: 1px solid var(--line); color: var(--ink-3); }
.chips .chip-more { background: var(--ink); color: var(--white); border-color: var(--ink); cursor: help; }
.product-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 0.85rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.product-foot a { font-weight: 600; color: var(--accent); font-size: 0.9rem; }
.product-foot a:hover { text-decoration: underline; }

.empty { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty p { margin: 0.6rem auto 1.6rem; max-width: 30rem; }

.legend { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.legend summary { cursor: pointer; font-weight: 600; font-family: var(--display); font-size: 1.05rem; }
.legend dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.6rem 2rem; margin-top: 1.25rem; }
.legend dl div { display: flex; gap: 0.8rem; font-size: 0.9rem; color: var(--muted); }
.legend dt { font-family: var(--mono); font-weight: 500; color: var(--accent); min-width: 4.5rem; }

.product.has-detail { cursor: pointer; }
.product-more {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; margin-bottom: 0.9rem; padding: 0.6rem 0.8rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  font-size: 0.84rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.product-more span { color: var(--accent); font-size: 1rem; }
.product-more:hover, .product.has-detail:hover .product-more { background: var(--ink); color: var(--white); border-color: var(--ink); }
.product.has-detail:hover .product-more span { color: var(--accent-2); }

/* Model detail window */
.detail {
  width: min(1080px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  border: 0;
  border-radius: 24px;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.6);
}
.detail::backdrop { background: rgba(10, 11, 13, 0.62); backdrop-filter: blur(6px); }
.detail[open] { animation: detail-in 0.35s var(--ease); }
@keyframes detail-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.detail-inner { display: flex; flex-direction: column; max-height: calc(100vh - 2rem); }
.detail-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1.6rem 1.8rem 1rem; }
.detail-head .eyebrow { margin-bottom: 0.4rem; }
.detail-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.detail-kw { font-family: var(--mono); font-size: 0.88rem; color: var(--ink); margin-top: 0.4rem; }
.detail-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background 0.2s, color 0.2s; }
.detail-close:hover { background: var(--ink); color: var(--white); }
.detail-tabs { padding: 0 1.8rem 1rem; border-bottom: 1px solid var(--line); }
.detail-tabs .tab[hidden] { display: none; }
.detail-body { overflow-y: auto; padding: 1.5rem 1.8rem; }
.pane[hidden] { display: none; }
.pane-note { font-size: 0.92rem; max-width: 52rem; margin-bottom: 1.2rem; }
.pane-title { font-size: 1.2rem; margin: 2rem 0 1rem; }
.pane-empty { padding: 1.5rem; background: var(--paper); border-radius: var(--radius-sm); }
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.charts-wide { grid-template-columns: 1fr; }
.charts a { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); transition: border-color 0.2s; }
.charts a:hover { border-color: var(--accent); }
.charts img { width: 100%; height: auto; }
.train-block + .train-block { margin-top: 1.5rem; }
.train-block h4 { font-size: 1.05rem; margin-bottom: 0.6rem; display: flex; align-items: baseline; gap: 0.6rem; }
.train-block h4 span { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.detail-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.8rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }

/* Spec tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.spec-table th { text-align: left; font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--paper); padding: 0.7rem 0.9rem; white-space: nowrap; }
.spec-table td { padding: 0.65rem 0.9rem; border-top: 1px solid var(--line); vertical-align: top; }
.spec-table tr[hidden] { display: none; }
.spec-table tbody tr:hover td { background: #fbfaf8; }
.mono { font-family: var(--mono); font-size: 0.82rem; white-space: nowrap; }
.reg-filter { margin-bottom: 1rem; }
.code-table tr:not(.first) td { border-top-style: dashed; }
.dim-drawing { display: block; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 1rem; background: var(--white); }
.dim-drawing:hover { border-color: var(--accent); }
.dim-drawing img { width: 100%; height: auto; }
.dim-table th, .dim-table td { text-align: center; padding-left: 0.55rem; padding-right: 0.55rem; }
.dim-table th:first-child, .dim-table td:first-child { text-align: left; white-space: nowrap; }
.dim-src { font-size: 0.78rem; margin: 0.5rem 0 1.75rem; }
.code-table .code { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.hz { display: inline-block; font-family: var(--mono); font-size: 0.7rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--paper); color: var(--muted); white-space: nowrap; }
.hz-60 { background: rgba(228, 70, 26, 0.12); color: var(--accent); font-weight: 500; }
.section > .table-note { font-size: 0.86rem; margin-top: 1rem; }

/* Distributors */
.distributors { background: var(--white); border-top: 1px solid var(--line); }
.dist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.dist {
  display: grid; grid-template-columns: 180px 1fr; gap: 1.75rem; align-items: center;
  padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.dist-logo { aspect-ratio: 1; display: grid; place-items: center; background: var(--white); border-radius: 16px; padding: 1.1rem; }
.dist-logo img { max-height: 100%; width: auto; object-fit: contain; }
.dist-mark { font-family: var(--display); font-weight: 800; font-size: 4rem; color: var(--accent); }
.dist h3 { font-size: 1.5rem; }
.dist p { margin: 0.5rem 0 1rem; font-size: 0.95rem; }
.dist .tag-line { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

/* Pressure converter */
.converter { background: radial-gradient(ellipse at 10% 0%, rgba(228, 70, 26, 0.28), transparent 50%), radial-gradient(ellipse at 100% 100%, rgba(255, 122, 31, 0.14), transparent 45%), var(--ink); color: var(--white); }
.converter p { color: var(--muted-dark); }
.converter .eyebrow { color: var(--accent-2); }
.conv { display: grid; grid-template-columns: 340px 1fr; gap: 1.25rem; align-items: start; }
.conv-input {
  position: sticky; top: 96px;
  padding: 1.5rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-dark);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.conv-field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.conv-field > span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dark); }
.conv-field input, .conv-field select {
  width: 100%; border-radius: 14px; border: 1px solid var(--line-dark);
  background: var(--ink-2); color: var(--white); padding: 0.85rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.conv-field input { font-family: var(--display); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.03em; padding: 0.6rem 1rem; }
.conv-field input:focus, .conv-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(228, 70, 26, 0.22); }
.conv-field select { font-size: 1rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted-dark) 50%), linear-gradient(135deg, var(--muted-dark) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.conv-hint { font-size: 0.8rem; margin: 0.4rem 0 0.6rem; }
.conv-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.conv-presets button {
  border: 1px solid var(--line-dark); background: transparent; color: rgba(255, 255, 255, 0.82);
  border-radius: 999px; padding: 0.4rem 0.75rem; font-size: 0.78rem; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.conv-presets button:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.conv-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.conv-card {
  position: relative; display: grid; gap: 0.15rem; text-align: left;
  padding: 1.1rem 1.15rem; border-radius: 16px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); color: var(--white);
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s;
  overflow: hidden;
}
.conv-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }
.conv-num { font-family: var(--mono); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.02em; word-break: break-all; }
.conv-lbl { font-family: var(--display); font-weight: 700; color: var(--accent-2); font-size: 0.95rem; }
.conv-name { font-size: 0.72rem; color: var(--muted-dark); }
.conv-card.is-source { background: linear-gradient(140deg, var(--accent), #b8320c); border-color: transparent; box-shadow: 0 18px 40px -20px rgba(228, 70, 26, 0.9); }
.conv-card.is-source .conv-lbl, .conv-card.is-source .conv-name { color: rgba(255, 255, 255, 0.85); }
.conv-copied {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(15, 17, 20, 0.88); font-weight: 600; font-size: 0.9rem;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.conv-card.is-copied .conv-copied { opacity: 1; }

/* Technology */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.tech { background: var(--ink); padding: clamp(1.75rem, 3vw, 2.5rem); transition: background 0.3s; }
.tech:hover { background: var(--ink-2); }
.tech-k { font-family: var(--mono); font-size: 0.72rem; color: var(--accent-2); letter-spacing: 0.06em; text-transform: uppercase; }
.tech h3 { font-size: 1.45rem; margin: 1.5rem 0 0.75rem; }
.tech-feature { background: linear-gradient(160deg, #2a1209, var(--ink) 70%); }
.tech-big { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 4vw, 3.6rem); letter-spacing: -0.04em; color: var(--white) !important; line-height: 1; margin-bottom: 0.9rem; }
.tech-big small { font-size: 1rem; font-weight: 600; color: var(--accent-2); letter-spacing: 0; }

/* Baltur */
.timeline {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0;
  padding-bottom: 1rem;
  margin-bottom: 3rem;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.timeline li { scroll-snap-align: start; padding: 1.4rem 1.5rem 0 0; border-top: 2px solid var(--line); position: relative; font-size: 0.92rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--ink); letter-spacing: -0.03em; margin-bottom: 0.3rem; }

.pillars { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 300px; gap: 1rem; }
.pillar { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.pillar-wide { grid-column: span 2; }
.pillar:nth-child(1) { grid-row: span 1; }
.pillar img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 1s var(--ease), opacity 0.4s; }
.pillar:hover img { transform: scale(1.05); opacity: 0.7; }
.pillar figcaption { position: absolute; inset: auto 0 0 0; padding: 1.5rem; background: linear-gradient(transparent, rgba(10, 11, 13, 0.88)); color: var(--white); }
.pillar figcaption p { color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; margin-top: 0.35rem; max-width: 30rem; }

/* Accessories */
.acc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.acc { background: var(--white); border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--line); }
.acc h3 { margin-bottom: 0.6rem; }
.acc p { font-size: 0.93rem; margin-bottom: 1.2rem; }
.acc ul { list-style: none; display: grid; gap: 0.45rem; }
.acc li { font-size: 0.86rem; padding-left: 1.1rem; position: relative; }
.acc li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }

/* Services */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.steps span { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.steps h3 { margin: 0.8rem 0 0.6rem; }
.steps p { font-size: 0.95rem; }

/* CTA */
.cta { background: radial-gradient(ellipse at 85% 0%, rgba(228, 70, 26, 0.35), transparent 55%), var(--ink); color: var(--white); }
.cta p { color: var(--muted-dark); }
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem 5rem; align-items: start; }
.cta-copy > p { max-width: 34rem; margin: 1.1rem 0 2rem; font-size: 1.05rem; }
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.quote .field:first-child { grid-column: 1 / -1; }
.quote .field > span { color: var(--muted-dark); }
.quote input, .quote select { background: var(--ink-2); border-color: var(--line-dark); color: var(--white); }
.quote input:focus, .quote select:focus { background: var(--ink-3); }
.quote .btn { grid-column: 1 / -1; justify-content: center; margin-top: 0.4rem; }
.contact-list { list-style: none; display: grid; gap: 0.75rem; }
.contact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); border-radius: 14px; }
.contact-list span { color: var(--muted-dark); font-size: 0.88rem; }
.contact-list a, .contact-list em { font-weight: 600; font-style: normal; text-align: right; }
.contact-list a:hover { color: var(--accent-2); }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); border-top: 1px solid var(--line-dark); padding: 3rem var(--gutter) 2rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer-brand { display: flex; gap: 0.9rem; }
.footer-brand p { color: var(--muted-dark); font-size: 0.92rem; }
.footer-brand strong { color: var(--white); font-family: var(--display); }
.footer-nav, .footer-contact { display: grid; gap: 0.5rem; font-size: 0.92rem; color: var(--muted-dark); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--white); }
.footer-legal { max-width: var(--max); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: 0.8rem; color: #6c727b; }

/* Generic pages and posts */
.entry { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) var(--gutter); }
.entry h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.entry-content p, .entry-content li { color: var(--ink-3); margin-bottom: 1rem; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry + .entry { border-top: 1px solid var(--line); }

/* Reveal: visible by default, animated only when JS is ready */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .acc-grid { grid-template-columns: repeat(2, 1fr); }
  .finder { grid-template-columns: 1fr; }
  .finder .field input { width: 100%; }
  .finder-fields { display: grid; grid-template-columns: 1fr 1fr; }
  .finder-count { padding-bottom: 0; }
}
@media (max-width: 960px) {
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .site-nav.is-open { max-height: 420px; }
  .site-nav a { padding: 1rem var(--gutter); border-top: 1px solid var(--line); }
  .site-nav .nav-cta { margin: 1rem var(--gutter); text-align: center; border: 0; }
  .nav-toggle { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 11; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .section-head.split, .cat-block-head, .cta-inner { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .finder { position: static; }
  .dist-grid { grid-template-columns: 1fr; }
  .conv { grid-template-columns: 1fr; }
  .conv-input { position: static; }
}
@media (max-width: 620px) {
  .cat-grid, .acc-grid, .tech-grid, .steps { grid-template-columns: 1fr; }
  .cat-card { min-height: 0; }
  .products { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .product-body { padding: 0.85rem; }
  .product-body h4 { font-size: 1rem; }
  .product-foot { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .pillars { grid-template-columns: 1fr; }
  .pillar-wide { grid-column: auto; }
  .finder-fields { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
  .contact-list li { flex-direction: column; }
  .contact-list a, .contact-list em { text-align: left; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1rem; padding: 0 1rem; scrollbar-width: none; }
  .tab { flex: none; }
  .dist { grid-template-columns: 1fr; padding: 1.4rem; }
  .conv-results { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .conv-card { padding: 0.9rem; }
  .conv-name { display: none; }
  .dist-logo { max-width: 180px; }
  .charts { grid-template-columns: 1fr; }
  .detail { width: 100vw; max-height: 100vh; border-radius: 0; }
  .detail-inner { max-height: 100vh; }
  .detail-head, .detail-body, .detail-foot { padding-left: 1.1rem; padding-right: 1.1rem; }
  .detail-tabs { padding: 0 1.1rem 0.9rem; margin: 0; }
  .detail-foot { flex-direction: column; align-items: stretch; }
  .detail-foot .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
