/* ============================================================
   products.css — styles for products.html
   ============================================================ */

/* PAGE HERO */
.page-hero {
  padding-top: calc(var(--nav-h) + 100px);
  padding-bottom: 100px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 15% 50%, color-mix(in oklab, var(--steel) 20%, transparent), transparent 60%);
  z-index: -1;
}
.page-hero .wrap { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 64px; align-items: end; }
.page-hero .breadcrumb {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 40px;
}
.page-hero .breadcrumb span + span::before { content: ' / '; margin: 0 8px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(56px, 8vw, 140px); line-height: 0.9; letter-spacing: -0.025em; }
.page-hero h1 .it { font-style: italic; color: var(--fg-muted); }
.page-hero .sub { color: var(--fg-muted); font-size: 17px; max-width: 46ch; margin-top: 24px; line-height: 1.55; }

/* SERIES SWITCHER */
.series-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  margin-bottom: 28px;
}
.series-switch button {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: background .25s, color .25s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  align-items: center;
  line-height: 1.3;
}
.series-switch button .ss-sub {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  opacity: 0.7;
}
.series-switch button[aria-selected="true"] {
  background: var(--accent);
  color: var(--bg);
}
.series-switch button[aria-selected="true"] .ss-sub { color: var(--bg); opacity: 0.75; }
.series-switch button:hover:not([aria-selected="true"]) { color: var(--fg); }

/* SERIES PANELS */
.series-panel[hidden] { display: none; }

/* Hero swappable text */
.hero-series { display: none; }
.hero-series.active { display: block; }

/* TBA state — image pending (DW Series) */
.screen-ph.tba, .model-ph.tba {
  background: var(--bg-3);
  border: 1px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: center;
}
.screen-ph.tba::after, .model-ph.tba::after { content: none; }
.tba-label {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-indent: 0.3em;
  opacity: 0.85;
}
.model-ph.tba .tba-label { font-size: 22px; }
.screen-ph.tba .lum, .model-ph.tba .lum { display: none; }

/* 16:9 / wide-panel placeholders (DW Series) */
.screen-ph.r16 { aspect-ratio: 16/9; }
.screen-ph.r1610 { aspect-ratio: 16/10; }
.screen-ph.r54 { aspect-ratio: 5/4; }
.model-ph.r16 { aspect-ratio: 16/9; }

/* Compact lineup for 7-model DW grid */
.lineup-grid.cols4 { grid-template-columns: repeat(4, 1fr); }
.model-card .model-note {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-dim);
}

/* Datasheet-on-request strip */
.ds-note {
  margin-top: 40px; padding: 28px 32px; border: 1px solid var(--line);
  background: var(--bg-2); display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: center; justify-content: space-between;
}
.ds-note p { font-size: 14px; color: var(--fg-muted); margin: 0; max-width: 60ch; }
.ds-note .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* SERIES INTRO */
.series-intro { padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 80px; align-items: start; margin-bottom: 64px; }
.intro-statement { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -0.01em; }
.intro-statement .dim { color: var(--fg-dim); }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat { background: var(--bg); padding: 32px 28px; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; transition: background .3s; }
.feat:hover { background: var(--bg-2); }
.feat .icon { font-family: var(--mono); font-size: 20px; color: var(--accent); margin-bottom: 18px; }
.feat h5 { font-family: var(--serif); font-size: 20px; letter-spacing: -0.01em; font-weight: 400; margin-bottom: 8px; }
.feat p { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }

/* MODEL LINEUP */
.lineup { padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); }
.lineup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.model-card { background: var(--bg); padding: 36px 28px; min-height: 480px; display: flex; flex-direction: column; justify-content: space-between; transition: background .3s; cursor: pointer; position: relative; }
.model-card:hover { background: var(--bg-2); }
.model-card.flagship { background: var(--bg-2); }
.model-card.flagship::before {
  content: '— Flagship';
  position: absolute; top: 18px; right: 18px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.model-id { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 16px; }
.model-sz { font-family: var(--serif); font-size: 72px; line-height: 1; letter-spacing: -0.03em; margin-bottom: 8px; }
.model-res { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--fg-muted); margin-bottom: 8px; text-transform: uppercase; }
.model-tag { font-size: 14px; color: var(--fg-muted); margin-bottom: 24px; max-width: 22ch; line-height: 1.4; }
/* Ultra-wide 32:9 screen placeholder */
.screen-ph {
  width: 100%; aspect-ratio: 32/9;
  background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--steel) 18%, transparent) 0 1px, transparent 1px 12px), linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); margin: 16px 0; position: relative; overflow: hidden;
}
.screen-ph::after { content: attr(data-r); position: absolute; right: 8px; bottom: 6px; font-family: var(--mono); font-size: 9px; color: var(--fg-dim); letter-spacing: 0.12em; }
.screen-ph .lum { position: absolute; top: 8px; left: 10px; font-family: var(--mono); font-size: 9px; color: var(--accent); letter-spacing: 0.12em; }
/* Real product photo thumbnail in lineup cards */
.screen-ph.has-photo { aspect-ratio: 16/9; background: #f3f3f1; overflow: hidden; }
.screen-ph.has-photo::after { display: none; }
.screen-ph.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screen-ph.has-photo.scaled { display: flex; align-items: center; justify-content: center; }
.screen-ph.has-photo.scaled img { width: var(--ph-scale, 80%); height: auto; object-fit: contain; }
.model-specs { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.model-specs .sr { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; }
.model-specs .sr .k { color: var(--fg-dim); text-transform: uppercase; font-size: 9px; letter-spacing: 0.12em; }
.model-specs .sr .v { color: var(--fg); }
.model-specs .sr .v.accent { color: var(--fg); }
.model-link { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--fg); margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); transition: gap .2s; }
.model-link:hover { gap: 14px; }

/* COMPARISON TABLE */
.comparison { padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.comp-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 700px; margin-top: 56px; }
.comp-table th, .comp-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.comp-table thead th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); background: var(--bg-2); white-space: nowrap; }
.comp-table thead th.model-col { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; color: var(--fg); text-transform: none; font-weight: 400; }
.comp-table thead th.model-col small { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); display: block; margin-top: 4px; }
.comp-table thead th.flagship-col { color: var(--accent); }
.comp-table .row-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); }
.comp-table td { color: var(--fg); font-family: var(--mono); font-size: 12px; }
.comp-table td.hi { color: var(--fg); font-weight: 400; }
.comp-table tbody tr:hover td { background: color-mix(in oklab, var(--bg-2) 60%, transparent); }

/* MODEL DETAIL SECTIONS */
.model-detail { padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 20px); }
.model-detail:nth-child(even) { background: var(--bg-2); }
.model-detail-head, .md-head { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: end; margin-bottom: 64px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.model-detail-head .label, .md-head .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.model-detail-head h2, .md-head h2 { font-family: var(--serif); font-size: clamp(56px, 7vw, 100px); line-height: 0.92; letter-spacing: -0.025em; }
.model-detail-head h2 .it, .md-head h2 .it { font-style: italic; color: var(--fg-muted); }
.model-detail-head .tagline, .md-head .tagline { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); text-align: right; max-width: 24ch; margin-left: auto; }
.model-detail-body, .md-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.model-ph { aspect-ratio: 32/9; width: 100%; background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--steel) 22%, transparent) 0 2px, transparent 2px 12px), linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); position: relative; }
.model-ph::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog); opacity: 0.7; }
/* Real product photo variant */
.model-ph.has-photo { aspect-ratio: auto; background: #f3f3f1; overflow: hidden; }
.model-ph.has-photo::after { display: none; }
.model-ph.has-photo img { display: block; width: 100%; height: auto; }
/* Smaller counterpart: same frame, scaled-down unit to convey physical size */
.model-ph.has-photo.scaled { aspect-ratio: 2752 / 1536; display: flex; align-items: center; justify-content: center; }
.model-ph.has-photo.scaled img { width: var(--ph-scale, 80%); }
.model-copy p, .md-copy p { color: var(--fg-muted); font-size: 15px; line-height: 1.6; max-width: 46ch; margin-bottom: 16px; }
.spec-table { border-top: 1px solid var(--line); margin-top: 28px; }
.spec-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-row .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); }
.spec-row .v { color: var(--fg); font-family: var(--mono); font-size: 13px; }
.spec-row .v.hi { color: var(--fg); font-weight: 400; }

/* DRCU-8B */
.drcu { padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.drcu-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.drcu h2 { font-family: var(--serif); font-size: clamp(48px, 6vw, 80px); line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 20px; }
.drcu h2 .it { font-style: italic; color: var(--fg-muted); }
.drcu p { color: var(--fg-muted); font-size: 15px; max-width: 44ch; margin-bottom: 14px; }
.btn-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); margin-top: 32px; font-family: var(--mono); }
.btn-table th, .btn-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.btn-table thead { background: var(--bg-3); }
.btn-table thead th { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); font-weight: 500; }
.btn-table td:first-child { color: var(--fg); font-weight: 500; font-size: 13px; }
.btn-table td:last-child { color: var(--fg-muted); font-size: 12px; }
.btn-table tr:last-child td { border-bottom: 0; }
.compat-row { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.compat-tag { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--fg-muted); }

/* ENV RELIABILITY */
.enviro { padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); }
.enviro-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.env-cell { background: var(--bg); padding: 32px 24px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; transition: background .3s; }
.env-cell:hover { background: var(--bg-2); }
.env-cell .val, .env-cell .ev { font-family: var(--serif); font-size: 36px; line-height: 1; letter-spacing: -0.02em; }
.env-cell .lbl, .env-cell .el { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }

@media (max-width: 1100px) {
  .lineup-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .enviro-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .page-hero .wrap, .intro-grid, .model-detail-head, .model-detail-body, .md-head, .md-body, .drcu-grid { grid-template-columns: 1fr; gap: 32px; }
  .lineup-grid { grid-template-columns: 1fr; }
  .comp-table { font-size: 11px; }
}
