/* ==========================================================================
   Gnurt LED — inner pages (products, projects, news, contact, solutions, policy)
   Builds on home-1.css tokens. Every page opens on a dark "stage" hero so the
   transparent header reads the same everywhere; content below follows the theme.
   ========================================================================== */

/* ---------- Page hero (LED wall stage) ---------- */
/* Two fixed hero sizes so every page opens the same way: standard (landing / detail with image)
   and compact (reading pages). Content starts at the same top offset on every page so the
   breadcrumb / title never jump when navigating. */
.phero, .case-hero { --hero-h: 700px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; min-height: var(--hero-h); background: #05060a; }
.phero { padding: 140px 0 clamp(48px, 7vw, 88px); }
.phero-sm { --hero-h: 440px; padding-bottom: clamp(36px, 5vw, 56px); }
.phero-bg { position: absolute; inset: 0; z-index: -1; }
.phero-bg canvas, .phero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 10, .94) 0%, rgba(5, 6, 10, .72) 45%, rgba(5, 6, 10, .3) 100%),
              linear-gradient(0deg, rgba(5, 6, 10, .95) 0%, rgba(5, 6, 10, 0) 45%);
}
.phero h1 { max-width: 20ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.phero-sm h1 { font-size: clamp(2rem, 4vw, 3.25rem); max-width: 26ch; }
.phero .section-lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }
.phero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; color: var(--text); background: var(--tint-2); box-shadow: inset 0 0 0 1px var(--line);
}
.pill .icon { color: var(--ok); }
a.pill { min-height: 44px; }
a.pill:hover { background: var(--line-2); }
.phero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.phero-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 64px); margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.phero-stats strong { display: block; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.phero-stats span { font-size: .875rem; color: var(--muted); }

.crumbs ol { display: flex; flex-wrap: nowrap; gap: 6px 10px; margin-bottom: 22px; font-size: .8125rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.crumbs a:hover { color: var(--text); }
.crumbs li { flex: none; min-width: 0; }
.crumbs li:last-child { flex: 0 1 auto; overflow: hidden; }
.crumbs [aria-current] { display: block; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }

/* ---------- Generic blocks ---------- */
.section-alt { background: var(--bg-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: .875rem; font-weight: 600;
  color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .2s var(--ease), color .2s, background-color .2s;
}
.chip:hover { color: var(--text); }
.chip:active { transform: scale(.98); }
.chip[aria-pressed="true"] { color: var(--btn-fg); background: var(--btn-bg); box-shadow: none; }
.chip .count { margin-left: 6px; opacity: .6; font-weight: 500; }
[data-cat][hidden] { display: none !important; }

.prod-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.prod-price { font-size: .9375rem; font-weight: 700; }
.prod-price small { display: block; font-size: .75rem; font-weight: 500; color: var(--dim); }
.badge-soft { color: var(--muted); }

.cta-band { padding-block: clamp(56px, 7vw, 96px); }
.cta-box {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  padding: clamp(32px, 5vw, 64px); border-radius: 28px; overflow: hidden; isolation: isolate; background: #07080b;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: radial-gradient(50% 120% at 100% 0%, rgba(75, 77, 255, .4), transparent 60%),
              radial-gradient(40% 90% at 0% 100%, rgba(255, 59, 59, .24), transparent 60%),
              radial-gradient(30% 60% at 60% 120%, rgba(47, 214, 107, .18), transparent 60%);
}
.cta-box::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .5) 0 1px, transparent 1.6px); background-size: 9px 9px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 70%); mask: linear-gradient(90deg, transparent, #000 70%);
}
.cta-box h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); max-width: 22ch; }
.cta-box p { margin-top: 12px; color: var(--muted); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.tile-num { display: block; margin-bottom: 18px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: var(--dim); }
.tile h3 { font-size: 1.125rem; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: .9375rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.checks { display: grid; gap: 14px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; color: var(--muted); }
.checks li strong { color: var(--text); font-weight: 600; }
.checks .icon { flex: none; margin-top: 3px; color: var(--ok); }

.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; padding: 28px 0; border-block: 1px solid var(--line); }
.brands span { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: .08em; color: var(--dim); transition: color .2s; }
.brands span:hover { color: var(--text); }

/* ---------- Pitch finder ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.finder-panel { padding: clamp(24px, 3.5vw, 40px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.finder-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.finder-label output { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.range { width: 100%; height: 44px; margin: 10px 0 4px; accent-color: var(--text); cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--dim); }
.finder-result { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.finder-result small { display: block; font-size: .8125rem; color: var(--muted); }
.finder-result strong { display: block; margin: 4px 0 8px; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; }
.finder-result p { color: var(--muted); font-size: .9375rem; }
.finder-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.finder-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: .8125rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-2); }
.finder-links a:hover { background: var(--tint); }
.finder-links a[hidden] { display: none; }

.pixel-view {
  --p: 12px; position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #05060a;
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(75, 77, 255, .5);
}
.pixel-view::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, #ff3b3b, #ff8a1f 18%, #ffd21f 32%, #2fd66b 48%, #2e9bff 64%, #4b4dff 78%, #a33bff);
  -webkit-mask: radial-gradient(circle, #000 0 calc(var(--p) * .3), transparent calc(var(--p) * .36)) 0 0 / var(--p) var(--p);
  mask: radial-gradient(circle, #000 0 calc(var(--p) * .3), transparent calc(var(--p) * .36)) 0 0 / var(--p) var(--p);
  transition: -webkit-mask-size .3s var(--ease), mask-size .3s var(--ease);
}
.pixel-view figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; font-size: .8125rem; font-weight: 600;
  color: #f4f5f7; background: rgba(5, 6, 10, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ---------- Stock table ---------- */
.table-wrap { position: relative; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--card-shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 640px; }
.table th, .table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { white-space: nowrap; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table td strong { font-weight: 600; }
.table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table a.link-more { min-height: 0; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--ok); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ---------- Product detail ---------- */
.pd { padding: 124px 0 clamp(56px, 7vw, 96px); }
.pd .crumbs ol { margin-bottom: 20px; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pd-gallery { position: sticky; top: 100px; }
.pd-main { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #05060a; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-lens {
  position: absolute; right: 18px; bottom: 18px; width: 34%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; isolation: isolate;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 20px 50px rgba(0, 0, 0, .6); background: #05060a;
}
.pd-lens::before {
  content: ""; position: absolute; inset: 0;
  background: conic-gradient(from 200deg, #4b4dff, #a33bff, #ff3b3b, #ff8a1f, #4b4dff);
  -webkit-mask: radial-gradient(circle, #000 0 calc(var(--lens) * .3), transparent calc(var(--lens) * .38)) 0 0 / var(--lens) var(--lens);
  mask: radial-gradient(circle, #000 0 calc(var(--lens) * .3), transparent calc(var(--lens) * .38)) 0 0 / var(--lens) var(--lens);
}
.pd-lens span { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; white-space: nowrap; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(5, 6, 10, .8); }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.pd-thumbs button { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; opacity: .78; box-shadow: inset 0 0 0 1px var(--line); transition: opacity .2s; }
.pd-thumbs button[aria-pressed="true"], .pd-thumbs button:hover { opacity: 1; box-shadow: inset 0 0 0 2px var(--text); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.03em; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pd-lead { margin-top: 14px; color: var(--muted); }
.pd-price { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pd-price strong { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.pd-price small { color: var(--dim); font-size: .8125rem; font-weight: 500; letter-spacing: 0; }
.pd-price-label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 20px; border-radius: 16px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.kv div { padding: 14px 16px; background: var(--surface); }
.kv dt { font-size: .75rem; color: var(--dim); }
.kv dd { margin-top: 2px; font-weight: 700; }
.pd-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.pd-cta .btn-primary { grid-column: 1 / -1; }
.pd-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .8125rem; color: var(--dim); }
/* Non-LED products: product photos on white, contained (not cropped). */
.pd-other .pd-main { background: #fff; border: 1px solid var(--line); }
.pd-other .pd-main img { object-fit: contain; padding: 6%; }
.pd-other .pd-info h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.pd-feats { display: grid; gap: 10px; margin-top: 20px; }
.pd-feats li { display: flex; gap: 10px; font-size: .9375rem; line-height: 1.5; }
.pd-feats .icon { flex: none; margin-top: 3px; color: var(--ok); }
.pd-desc { max-width: 820px; margin-inline: auto; }
.pd-desc h2 { margin-bottom: 28px; }
.prose img { border-radius: 16px; margin-inline: auto; max-height: 640px; width: auto; }
.prose figure { max-width: 100%; margin-inline: auto; }
.prose figcaption { margin-top: 10px; text-align: center; font-size: .875rem; color: var(--dim); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }

/* Size calculator */
.calc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 20px; }
.calc-form { display: grid; gap: 16px; align-content: start; align-self: start; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.calc-form .field input { font-size: 1.25rem; font-weight: 700; }
.unit { position: relative; }
.unit::after { content: attr(data-unit); position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); font-weight: 600; pointer-events: none; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: 24px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.calc-out div { padding: 24px; background: var(--surface); }
.calc-out small { display: block; font-size: .8125rem; color: var(--dim); }
.calc-out strong { display: block; margin-top: 6px; font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-out .wide { grid-column: span 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.calc-preview { grid-column: span 3; padding: 24px; background: var(--surface); }
.calc-grid { display: grid; gap: 2px; max-width: 100%; margin-inline: auto; padding: 4px; border-radius: 10px; background: #05060a; }
.calc-grid i { min-width: 0; min-height: 0; border-radius: 2px; background: linear-gradient(135deg, #2e9bff, #4b4dff 50%, #a33bff); opacity: .9; }

.pitch-compare { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pitch-compare figure { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.pitch-compare .pixel-view { border-radius: 0; aspect-ratio: 1; box-shadow: none; }
.pitch-compare figcaption { padding: 14px 16px; font-size: .875rem; }
.pitch-compare figcaption strong { display: block; font-size: 1rem; }
.pitch-compare figcaption span { color: var(--dim); }
.pitch-compare .is-current { box-shadow: 0 0 0 2px var(--text); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 15px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; font-weight: 500; color: var(--muted); }
.spec-table td { font-weight: 600; }
.ref { margin-left: 6px; font-size: .75rem; font-weight: 500; color: var(--dim); }

/* ---------- Projects ---------- */
.proj-grid.all { grid-auto-rows: clamp(240px, 24vw, 320px); }
.proj-grid.all .proj-card:first-child { grid-column: auto; grid-row: auto; }
.proj-grid.all { grid-auto-flow: dense; }
.proj-grid.all .proj-card.is-feature { grid-column: span 2; }
.proj-grid.all .proj-card:first-child .proj-name { font-size: 1.1875rem; }
.proj-grid.all .proj-card.is-feature .proj-name { font-size: clamp(1.375rem, 2.4vw, 2rem); }
.proj-grid.pair { grid-template-columns: 1fr 1fr; }
.case-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.case-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(5, 6, 10, .82) 0%, rgba(5, 6, 10, .45) 55%, rgba(5, 6, 10, .1) 100%),
              linear-gradient(0deg, rgba(5, 6, 10, .96) 0%, rgba(5, 6, 10, .55) 45%, rgba(5, 6, 10, .2) 75%, rgba(5, 6, 10, .65) 100%);
}
.case-hero .container { padding-block: 140px clamp(48px, 7vw, 88px); }
.case-hero h1 { max-width: 20ch; font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 1px solid var(--line-2); }
.facts div { padding: 20px 20px 0 0; }
.facts dt { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 6px; font-size: 1.0625rem; font-weight: 700; }
.case-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }
.case-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.case-block + .case-block { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.case-block p { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: clamp(180px, 20vw, 280px); gap: 14px; }
.gallery figure { border-radius: 18px; overflow: hidden; background: var(--surface); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.next-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.next-link small { display: block; font-size: .8125rem; color: var(--dim); }
.next-link strong { font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: -.02em; }
.next-arrow { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); transition: transform .3s var(--ease); }
.next-link:hover .next-arrow { transform: translateX(4px); }

/* ---------- News ---------- */
.news-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border-radius: 24px; overflow: hidden; margin-bottom: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.news-feature .news-media { aspect-ratio: auto; min-height: 340px; border-radius: 0; }
.news-feature .news-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 52px); border: 0; border-radius: 0; background: none; }
.news-feature .news-title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; letter-spacing: -.02em; }
.news-feature .news-excerpt { -webkit-line-clamp: 4; font-size: 1rem; }
.news-feature .link-more { margin-top: 16px; }
.news-list { grid-template-columns: repeat(3, 1fr); }

/* ---------- Article / policy ---------- */
.progress { position: fixed; inset: 0 0 auto; z-index: 70; height: 3px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--led-spectrum)); pointer-events: none; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; font-size: .875rem; color: var(--muted); }
.article-meta .news-tag { color: #f4f5f7; background: rgba(255, 255, 255, .12); }
.article-cover { margin-top: -24px; position: relative; z-index: 1; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 1; background: var(--surface); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .6); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: clamp(32px, 6vw, 88px); padding-top: clamp(40px, 6vw, 72px); }
.toc { position: sticky; top: 108px; align-self: start; }
.toc h2 { margin-bottom: 14px; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc ol a { display: block; margin-left: -1px; padding: 8px 0 8px 16px; border-left: 2px solid transparent; font-size: .875rem; color: var(--muted); line-height: 1.4; transition: color .2s, border-color .2s; }
.toc ol a:hover { color: var(--text); }
.toc ol a.is-active { color: var(--text); border-left-color: var(--text); }
.share { display: flex; gap: 8px; margin-top: 28px; }
.share a, .share button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.share a:hover, .share button:hover { color: var(--text); background: var(--tint); }

.prose { font-size: 1.0625rem; line-height: 1.8; color: var(--quote); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.375rem, 2.2vw, 1.75rem); color: var(--text); scroll-margin-top: 100px; }
.prose h3 { margin-top: 1.8em; font-size: 1.1875rem; color: var(--text); }
.prose ul, .prose ol { display: grid; gap: .5em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--dim); }
.prose strong { color: var(--text); }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin-inline: 0; padding: 20px 24px; border-radius: 16px; border-left: 3px solid; border-image: linear-gradient(var(--led-spectrum)) 1; background: var(--surface); color: var(--text); font-size: 1.125rem; }
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: .9375rem; line-height: 1.6; }
.callout .icon { flex: none; margin-top: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--text); background: var(--surface-2); font-weight: 600; }
.depth-bars { display: grid; gap: 10px; }
.depth-bars div { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px; font-size: .8125rem; font-weight: 600; color: var(--text); }
.depth-bars i { height: 34px; border-radius: 8px; }
.author { display: flex; align-items: center; gap: 16px; margin-top: 48px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.author-mark { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: #07080b; }
.author p { font-size: .875rem; color: var(--muted); line-height: 1.5; }

/* ---------- Contact ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dept { display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.dept-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.dept h3 { font-size: 1.0625rem; }
.dept p { color: var(--muted); font-size: .9375rem; }
.dept-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; padding-top: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.dept-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.dept.is-main { background: #07080b; color: #f4f5f7; border-color: transparent; }
.dept.is-main p { color: #a3a9b4; }
.dept.is-main .dept-icon { background: rgba(255, 255, 255, .1); box-shadow: none; }
.office-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.office { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); overflow: hidden; }
.office-city { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.office h3 { font-size: 1.125rem; }
.office p { color: var(--muted); font-size: .9375rem; }
.office .link-more { margin-top: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .prod-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pitch-compare { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .phero, .case-hero { --hero-h: 600px; }
  .phero-sm { --hero-h: 400px; }
  .finder, .split, .pd-grid, .calc, .case-body, .news-feature { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
  .tiles, .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: minmax(0, 720px); }
  .news-list { grid-template-columns: repeat(2, 1fr); }
  .toc { position: static; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
  .cta-box { grid-template-columns: 1fr; }
  .news-feature .news-media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) {
  .phero, .case-hero { --hero-h: 620px; }
  .phero-sm { --hero-h: 440px; }
  /* keep mobile heroes the same height: drop secondary pills, CTAs share one row */
  .phero .phero-meta:not(.article-meta), .case-hero .phero-meta { display: none; }
  .phero-ctas { flex-wrap: nowrap; margin-top: 24px; }
  .phero-ctas .btn { flex: 1 1 0; min-width: 0; padding-inline: 14px; }
  .phero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; padding-top: 20px; }
  .phero-stats strong { font-size: 1.5rem; }
  .phero-stats span { display: block; font-size: .75rem; line-height: 1.35; }
  .phero-sm h1 { font-size: 1.75rem; }
  .phero, .case-hero .container { padding-top: 112px; }
  .phero-bg::after { background: linear-gradient(0deg, rgba(5, 6, 10, .96) 10%, rgba(5, 6, 10, .7) 100%); }
  .tiles, .dept-grid { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr 1fr; }
  .calc-out div { padding: 18px; }
  .calc-out .wide, .calc-preview { grid-column: span 2; }
  .prod-grid.grid-3 { grid-template-columns: none; }
  .proj-grid.pair { grid-template-columns: 1fr; }
  .case-hero::before { background: linear-gradient(0deg, rgba(5, 6, 10, .96) 0%, rgba(5, 6, 10, .7) 50%, rgba(5, 6, 10, .55) 100%); }
  .prod-grid.is-catalog, .news-grid.news-list { grid-template-columns: 1fr; grid-auto-flow: row; overflow: visible; margin-inline: 0; padding: 0; }
  .proj-grid.all .proj-card.is-feature { grid-column: auto; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery figure:first-child { grid-row: auto; }
  .kv { grid-template-columns: 1fr 1fr; }
  .pd { padding-top: 88px; padding-bottom: 48px; }
  .article-cover { aspect-ratio: 16 / 10; border-radius: 18px; }
  .next-arrow { width: 48px; height: 48px; }
}

/* ---------- Catalog toolbar: search, chips, status, pagination ---------- */
.catalog-search { margin-bottom: 20px; }
.catalog-search-row { display: flex; gap: 8px; }
.catalog-search-box { position: relative; flex: 1 1 auto; min-width: 0; }
.catalog-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.catalog-search input[type="search"] {
  width: 100%; min-height: 52px; padding: 14px 48px 14px 44px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.catalog-search-submit { flex: none; }
.catalog-search input[type="search"]::placeholder { color: var(--placeholder); }
.catalog-search input[type="search"]:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--tint-2); }
/* Hide the browser's own clear (x) button on type=search: the form already
   has its own clear button, otherwise two x buttons show side by side. */
.catalog-search input[type="search"]::-webkit-search-cancel-button,
.catalog-search input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.catalog-search input[type="search"]::-ms-clear { display: none; }
.catalog-search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.25rem; line-height: 1; color: var(--muted);
}
.catalog-search-clear:hover { color: var(--text); background: var(--tint); }
.catalog-search-clear[hidden] { display: none; }
.catalog-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  overflow: hidden; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); box-shadow: var(--card-shadow);
}
.catalog-suggest[hidden] { display: none; }
.catalog-suggest [role="option"] { display: block; width: 100%; padding: 12px 16px; text-align: left; cursor: pointer; }
.catalog-suggest [role="option"] strong { display: block; font-weight: 600; }
.catalog-suggest [role="option"] span { font-size: .8125rem; color: var(--muted); }
.catalog-suggest [role="option"].is-active, .catalog-suggest [role="option"]:hover { background: var(--tint); }

/* Catalog chips are links (server-side filtering). The selected chip uses the
   same filled pill as a pressed filter button. */
.chips-catalog { margin-bottom: 16px; }
/* The two chip rows are real elements for the mobile scroller; on desktop
   they vanish (display:contents) so the chips lay out in one wrapped flow. */
.chips-catalog-row { display: contents; }
.chips-catalog .chip { flex: none; }
.chips-catalog .chip[aria-current="page"] { color: var(--btn-fg); background: var(--btn-bg); box-shadow: none; }
.catalog-status { margin: 0 0 24px; font-size: .9375rem; color: var(--muted); }
.catalog-status a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.catalog-status:empty { display: none; }
/* The AJAX layer swaps the results in place; dim them briefly while a fetch
   is in flight (aria-busy on the region). */
.catalog-results { transition: opacity .2s; }
.catalog-results[aria-busy="true"] { opacity: .55; }
.catalog-empty { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.catalog-empty h3 { font-size: 1.25rem; margin-bottom: 8px; }
.catalog-empty p { color: var(--muted); }
.catalog-empty p + p { margin-top: 12px; }
.catalog-empty a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Pager: pill buttons in the chip language; the current page is filled like a
   selected chip. Disabled prev/next stay visible but dimmed. */
.catalog-pager-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 40px; }
.catalog-pager-wrap:empty { display: none; }
.catalog-pager .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.catalog-pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  font-size: .875rem; font-weight: 600; color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .2s var(--ease), color .2s, background-color .2s;
}
.catalog-pager a.page-numbers:hover { color: var(--text); }
.catalog-pager a.page-numbers:active { transform: scale(.98); }
.catalog-pager .page-numbers.current { color: var(--btn-fg); background: var(--btn-bg); box-shadow: none; }
.catalog-pager .page-numbers.dots { box-shadow: none; min-width: 0; padding: 0 2px; }
.catalog-pager .page-numbers[aria-disabled="true"] { opacity: .35; }
.catalog-top-link { font-size: .875rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.catalog-top-link:hover { color: var(--text); }

/* Desktop: the disclosure button hides the tail categories until opened. */
@media (min-width: 768px) {
  .chips-catalog:not(.is-open) .chip-extra { display: none; }
}
/* Mobile: two horizontal scroll rows (full-bleed) with a fade at the right edge;
   the disclosure button is not needed — every chip is one swipe away. */
@media (max-width: 767px) {
  .chips-catalog { display: block; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .chips-catalog-row {
    display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
  .chips-catalog-row + .chips-catalog-row { margin-top: 8px; }
  .chips-catalog-row::-webkit-scrollbar { display: none; }
  .chips-catalog .chip-more { display: none; }
}
/* Mobile compact pager: ‹ Trước | 1 … 5 6 7 … 12 | Sau ›. Only when :has() is
   supported; older browsers simply show the full number row. */
@supports selector(:has(+ *)) {
  @media (max-width: 767px) {
    .catalog-pager .nav-links .page-numbers { display: none; }
    .catalog-pager .nav-links .page-numbers.prev,
    .catalog-pager .nav-links .page-numbers.next,
    .catalog-pager .nav-links .page-numbers.current,
    .catalog-pager .nav-links .page-numbers.dots,
    .catalog-pager .nav-links .page-numbers.prev + .page-numbers,
    .catalog-pager .nav-links .page-numbers:has(+ .page-numbers.next),
    .catalog-pager .nav-links .page-numbers:has(+ .page-numbers.current),
    .catalog-pager .nav-links .page-numbers.current + .page-numbers { display: inline-flex; }
  }
}
