/* Hardware — Figma Design › /hardware (Desktop 120:10938 · Tablet 128:6760 · Mobile 128:7188)
   제품 이미지는 판(Stage)보다 크게 두고 잘라서 보여 줌(사용자 지정). 위치·배율은 Figma 값을 %로 옮김 */

/* ───────── Hero ───────── */
.hw-hero { padding: var(--space-48) var(--layout-margin-x) var(--space-128); }
.hw-hero__frame { position: relative; height: 620px; overflow: hidden; border-radius: var(--radius-20); background: var(--color-bg-surface); box-shadow: inset 0 0 0 1px var(--color-border-subtle); }
.hw-hero__img { position: absolute; left: 0; top: -9.52%; width: 100%; height: 119.03%; }
.hw-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hw-hero__shade { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(180deg, rgb(11 11 11 / 0) 0%, rgb(11 11 11 / .9) 100%); }
.hw-hero__copy { position: absolute; left: 48px; bottom: 48px; right: 48px; display: flex; flex-direction: column; gap: var(--space-12); color: var(--color-text-strong); }
.hw-hero__copy p { color: var(--color-text-primary); }

/* ───────── Intro ───────── */
.hw-intro { display: flex; align-items: flex-end; gap: var(--space-64); padding: 0 var(--layout-margin-x) var(--space-96); }
.hw-intro h2 { flex: 0 1 808px; color: var(--color-text-strong); }
.hw-intro p { flex: 0 1 440px; color: var(--color-text-secondary); }

/* ───────── Products ───────── */
.hw-products { padding: 0 var(--layout-margin-x) var(--space-128); }
.hw-product { display: flex; align-items: center; gap: var(--space-64); padding: var(--space-64) 0; } /* 제품 사이 선 없음 — 2026-11-24 */
.hw-product--reverse .hw-stage { order: 2; }
.hw-product--camera { align-items: flex-start; }
.hw-stage { position: relative; flex: 0 0 600px; height: 480px; overflow: hidden; border-radius: var(--radius-20); background: var(--color-bg-surface); }
.hw-stage__img { position: absolute; }
.hw-stage__img img { width: 100%; height: 100%; object-fit: cover; }
.hw-product--bluebon .hw-stage__img { width: 131.25%; height: 178.13%; left: -6.05%; top: -45.04%; }
.hw-product--chouette .hw-stage__img { width: 128.28%; height: 156.98%; left: -14.13%; top: -39.83%; }
.hw-product--tetraplex .hw-stage__img { width: 148.4%; height: 201.42%; left: -18.4%; top: -45.15%; }

.hw-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-16); color: var(--color-text-strong); }
.hw-copy__text { color: var(--color-text-secondary); }
.hw-tags { display: flex; flex-wrap: wrap; gap: var(--space-8); }

.hw-specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-24); }
.hw-spec { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: var(--space-16) 0; border-top: 1px solid var(--color-border-subtle); }
.hw-spec dd { color: var(--color-text-strong); }
.hw-spec dt { color: var(--color-text-tertiary); }

/* SSA/SDA Camera: 탭 + 사양. 모든 탭 내용을 한 칸에 겹쳐 두어(보이지 않게) 탭을 바꿔도 높이가 그대로 */
.hw-stage--panels { display: grid; grid-template: 100% / 100%; } /* 칸은 무대 크기 그대로 (사진 비율로 늘어나지 않게) */
.hw-head { grid-area: 1 / 1; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: var(--space-24); } /* SSA/SDA 광학 헤드 사진(배경 투명) */
.hw-dots { position: absolute; left: 0; right: 0; bottom: var(--space-16); z-index: 1; display: flex; justify-content: center; gap: var(--space-4); }
/* 점: 캐러셀 점과 같은 모양(6px, 지금 것은 8px 브랜드 레드). 누르기 쉽게 버튼은 20×20 */
.hw-dot { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.hw-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-bg-glass-strong); transition: all .2s; }
.hw-dot.is-active::after { width: 8px; height: 8px; background: var(--color-bg-brand); }
.hw-head img { width: 100%; height: 100%; min-height: 0; object-fit: contain; scale: 1.4; } /* 렌즈 사진 140% (2026-11-24). 패럴랙스는 transform을 써서 scale과 겹치지 않음 */
.hw-head[hidden] { display: flex; visibility: hidden; opacity: 0; }
.hw-head.is-leaving[hidden] { visibility: visible; opacity: 1; transition: none; } /* 탭 바꿀 때 이전 사진이 왼쪽으로 빠지는 동안 (main.js slideHeads) */
.hw-placeholder { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--color-bg-surface-raised); }
.hw-placeholder span { font-weight: 600; font-size: 14px; line-height: 14px; text-transform: uppercase; color: var(--color-text-tertiary); }
.hw-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--color-border-subtle); overflow-x: auto; scrollbar-width: none; }
.hw-tab {
  padding: var(--space-12) 0; margin-bottom: -1px; white-space: nowrap;
  font-weight: 600; font-size: 16px; line-height: 16px; text-transform: uppercase; /* SUIT SemiBold 16/16 */
  color: var(--color-text-tertiary); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.hw-tab:hover { color: var(--color-text-primary); }
.hw-tab[aria-selected="true"] { color: var(--color-text-strong); border-bottom-color: var(--color-border-brand); }
.hw-tabpanels { display: grid; }
.hw-tabpanel, .hw-placeholder { grid-area: 1 / 1; }
.hw-tabpanel[hidden], .hw-placeholder[hidden] { display: block; visibility: hidden; }
.hw-tabpanel dd { font-variant-numeric: tabular-nums; } /* 탭 바꿀 때 수치 노이즈(스크램블) 효과 중 폭 흔들림 줄이기 (main.js swapValues) */
.hw-placeholder[hidden] { display: flex; }
.hw-note { margin-top: calc(-1 * var(--space-8)); color: var(--color-text-tertiary); }
.hw-core { display: flex; flex-direction: column; gap: var(--space-12); }
.hw-core__label { color: var(--color-text-brand); text-transform: uppercase; }

/* ───────── Tablet: 이미지 항상 위, 세로 ───────── */
@media (max-width: 1199.98px) {
  .hw-hero { padding: var(--space-40) var(--layout-margin-x) var(--space-96); }
  .hw-hero__frame { height: 420px; }
  .hw-hero__img { left: -3.03%; top: 0; width: 106.07%; height: 100%; }
  .hw-hero__copy { left: 24px; right: 24px; bottom: 24px; }
  .hw-intro { flex-direction: column; align-items: stretch; gap: var(--space-16); padding-bottom: var(--space-64); }
  .hw-intro h2, .hw-intro p { flex: none; }
  .hw-products { padding-bottom: var(--space-96); }
  .hw-product, .hw-product--reverse { flex-direction: column; align-items: stretch; gap: var(--space-64); padding: var(--space-128) 0; }
  .hw-product--reverse .hw-stage { order: 0; }
  .hw-stage { flex: none; height: 440px; }
  .hw-product--bluebon .hw-stage__img { width: 108.03%; height: 187.8%; left: 0; top: -43.89%; }
  .hw-product--chouette .hw-stage__img { width: 109.74%; height: 172.07%; left: -4.87%; top: -52.18%; }
  .hw-product--tetraplex .hw-stage__img { width: 125.21%; height: 217.66%; left: -12.6%; top: -49.2%; }
}

/* ───────── Mobile ───────── */
@media (max-width: 767.98px) {
  .hw-hero { padding: var(--space-32) var(--layout-margin-x) var(--space-80); }
  .hw-hero__frame { height: 360px; }
  .hw-hero__img { left: -47.86%; width: 195.72%; }
  .hw-hero__copy { left: 16px; right: 16px; bottom: 16px; }
  .hw-intro { padding-bottom: var(--space-48); }
  .hw-products { padding-bottom: var(--space-80); }
  .hw-product, .hw-product--reverse { padding: var(--space-80) 0; }
  .hw-stage { height: 300px; }
  .hw-product--bluebon .hw-stage__img { width: 132.4%; height: 156.9%; left: -6.51%; top: -28.43%; }
  .hw-product--chouette .hw-stage__img { width: 139.82%; height: 149.43%; left: -19.91%; top: -37.3%; }
  .hw-product--tetraplex .hw-stage__img { width: 177.74%; height: 210.6%; left: -30.09%; top: -48.73%; }
  .hw-specs { column-gap: var(--space-16); }
  .hw-tabs { gap: var(--space-16); }
}
