/* ==========================================================================
   dgstand.com — site stylesheet
   Brand: STAND® / DG®-II. Colours carried over from the original site:
   black background, white text, #CCFF00 yellow-green accent.
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #111214;
  --surface: #16171a;
  --surface-2: #1e2024;
  --line: #2b2d32;
  --line-strong: #3a3d44;
  --text: #f3f4f0;
  --muted: #a4a79f;
  --faint: #6f726b;
  --accent: #ccff00;          /* original site link colour */
  --accent-soft: rgba(204, 255, 0, .12);
  --on-accent: #0b0b0c;
  --stage: radial-gradient(ellipse at 50% 40%, #2a2c31 0%, #17181b 70%);

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, Arial, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: #d7d9d2; max-width: 62ch; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font: 600 .8rem/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.accent { color: var(--accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.section-head p { margin: 0; max-width: 56ch; color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 .95rem/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  padding: 15px 22px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #e2ff5c; color: var(--on-accent); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, .88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand svg, .brand img { width: 132px; height: auto; }
.brand-tag { font: 500 .72rem/1.2 var(--font-body); letter-spacing: .08em; color: var(--accent); text-transform: uppercase; padding-left: 14px; border-left: 1px solid var(--line-strong); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font: 600 .95rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: #d9dbd4;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--on-accent); background: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px; width: 44px; height: 40px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .brand-tag { display: none; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 12px var(--gutter) 20px; }
  .nav a { padding: 14px 12px; font-size: 1.15rem; border-radius: 8px; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); padding-top: 22px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.breadcrumb a { text-decoration: none; }
.breadcrumb [aria-current] { color: var(--text); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 36px 0 56px; border-bottom: 1px solid var(--line); background:
  linear-gradient(180deg, transparent 0%, rgba(204,255,0,.035) 100%); }
.page-hero h1 { margin-top: .2em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.hero::before { /* technical grid floor, a nod to the original poster */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 0%, transparent 70%);
}
.hero::after { content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -10vw; pointer-events: none;
  background: radial-gradient(circle, rgba(204,255,0,.10) 0%, transparent 60%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero-visual { position: relative; aspect-ratio: 1 / .82; }
.hero-visual img { position: absolute; left: 50%; width: 118%; max-width: none; filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)); }
.hero-visual img:nth-child(1) { top: 6%;  transform: translateX(-50%) rotate(-14deg); }
.hero-visual img:nth-child(2) { top: 28%; transform: translateX(-47%) rotate(-14deg); }
.hero-visual img:nth-child(3) { top: 50%; transform: translateX(-44%) rotate(-14deg); }
.hero-visual img:nth-child(4) { top: 72%; transform: translateX(-41%) rotate(-14deg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 1 / .7; margin: 0 -10px; }
  .hero-visual img { width: 104%; }
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 700 2.3rem/1 var(--font-display); color: var(--accent); margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat { border-top: 1px solid var(--line); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s, transform .15s;
}
a.card { text-decoration: none; color: var(--text); }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.card-media { position: relative; background: var(--stage); aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-media img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; }
.card-media.is-photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder { position: absolute; inset: 0; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.35rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 600 .74rem/1 var(--font-body); letter-spacing: .05em; padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: #cfd1ca; border: 1px solid var(--line); white-space: nowrap; }
.chip--accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(204,255,0,.25); }

.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--faint); text-align: center; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; gap: 8px; }
.placeholder svg { width: 64%; max-width: 260px; opacity: .55; }

.family-label { display: flex; align-items: center; gap: 14px; margin: 48px 0 20px; font: 700 1.05rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.family-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.family-label:first-child { margin-top: 0; }

/* ---------- Feature tiles ---------- */
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin-bottom: 18px; }
.feature .icon svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Split / media blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.figure { margin: 0; }
.figure img { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.stage { background: var(--stage); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 36px); display: grid; place-items: center; }
.stage img { border: 0; background: none; }

.list-check { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.list-check li { padding-left: 28px; position: relative; }
.list-check li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 86px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.timeline li { display: grid; grid-template-columns: 86px 1fr; gap: 0 32px; padding: 0 0 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 81px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline time { font: 700 1.45rem/1 var(--font-display); color: var(--accent); }
.timeline h3 { font-size: 1.2rem; margin: 0 0 4px; padding-left: 8px; }
.timeline p { margin: 0; color: var(--muted); padding-left: 8px; }
@media (max-width: 560px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 28px; }
  .timeline li::before { left: 0; }
  .timeline h3, .timeline p { padding-left: 0; }
}

/* ---------- Product listing & spec tables ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(11,11,12,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; margin: 0; padding: 12px 0; scrollbar-width: thin; }
.subnav a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 999px; font-size: .85rem; text-decoration: none; border: 1px solid var(--line); color: #d0d2cb; }
.subnav a:hover { border-color: var(--accent); color: var(--accent); }

.series { padding: 48px 0; border-bottom: 1px solid var(--line); }
.series:last-child { border-bottom: 0; }
.series-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; margin-bottom: 24px; }
.series-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .3em; }
.series-head .stage { min-height: 150px; }
@media (max-width: 860px) { .series-head { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.spec-table th, .spec-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.spec-table thead th { font: 600 .74rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover { background: rgba(204,255,0,.045); }
.spec-table td:first-child { font-weight: 600; }
.spec-table td:first-child a { text-decoration: none; color: var(--text); }
.spec-table td:first-child a:hover { color: var(--accent); }
.spec-table .num { text-align: right; }
.spec-table tr[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 20px; }
.filters .label { font-size: .85rem; color: var(--muted); margin-right: 4px; }
.filter-btn { font: 600 .85rem/1 var(--font-body); padding: 10px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.search-input { font: 400 1rem var(--font-body); color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 13px 18px; width: 100%; max-width: 420px; }
.search-input::placeholder { color: var(--faint); }
.search-input:focus { outline: none; border-color: var(--accent); }
.finder-results { margin-top: 14px; }
.finder-results:empty { display: none; }
.no-results { color: var(--muted); padding: 12px 0; }

/* ---------- Product detail ---------- */
.product-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; padding-block: 32px 64px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.product-grid .stage { min-height: 280px; position: sticky; top: calc(var(--header-h) + 20px); }
.product-grid h1 { font-size: clamp(2rem, 4vw, 3rem); text-transform: none; }
.model-no { font: 700 1.05rem/1 var(--font-display); letter-spacing: .12em; color: var(--accent); }
.kv { display: grid; grid-template-columns: max-content 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.kv dt, .kv dd { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: .88rem; background: var(--surface-2); }
.kv dd { background: var(--surface); font-weight: 600; font-variant-numeric: tabular-nums; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.note { font-size: .88rem; color: var(--muted); border-left: 2px solid var(--accent); padding: 4px 0 4px 14px; }

/* ---------- Contact ---------- */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card dl { display: grid; grid-template-columns: 90px 1fr; gap: 14px 18px; margin: 0; }
.contact-card dt { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 3px; }
.contact-card dd { margin: 0; font-size: 1.08rem; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--on-accent); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 44px; }
.cta-band h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { margin: 6px 0 0; font-weight: 500; }
.cta-band .btn { background: var(--on-accent); color: var(--accent); }
.cta-band .btn:hover { background: #222; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #080809; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.footer-grid h2 { font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-brand address { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; color: var(--faint); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose p { color: #d4d6cf; }
