/* ==========================================================================
   LUXART KOREA — 소등 후의 전시장 (walkthrough cut)
   토큰은 DESIGN.md 프론트매터에서 그대로 가져왔습니다. 그림자는 이 파일에 없습니다.
   깊이는 명도 반 단계(0.015~0.03 L)와 1px 선으로만 만듭니다.
   ========================================================================== */

:root {
  /* 어둠 — 전시장 바닥에서 진열면까지 */
  --bg:            oklch(0.16  0.006 264);
  --bg-deep:       oklch(0.12  0.005 264);
  --plate:         oklch(0.175 0.006 264);
  --plate-lit:     oklch(0.205 0.007 264);
  --panel:         oklch(0.185 0.006 264);

  /* 텍스트 — 명도만 내려가는 단일 색상 램프 */
  --heading:       oklch(0.98  0.004 264);
  --heading-2:     oklch(0.97  0.005 264);
  --text:          oklch(0.94  0.006 264);
  --muted-90:      oklch(0.9   0.006 264);
  --muted-82:      oklch(0.82  0.006 264);
  --muted-78:      oklch(0.78  0.006 264);
  --muted-65:      oklch(0.65  0.006 264);
  --muted-6:       oklch(0.6   0.006 264);

  /* 1px 선 4단 */
  --rule:          oklch(0.5   0.01  264);
  --rule-soft:     oklch(0.3   0.008 264);
  --rule-card:     oklch(0.26  0.008 264);
  --rule-hair:     oklch(0.225 0.006 264);

  /* 유일한 다른 색상 */
  --accent:        oklch(0.72  0.155 52);
  --accent-ink:    oklch(0.16  0.005 264);

  --font-kr: 'IBM Plex Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font: 'Gill Sans', 'Gill Sans MT', 'Gill Sans Nova', GillSans, Cabin, var(--font-kr);

  --plan-w: 196px;
  --gutter: 72px;
  --measure: 1180px;

  /* 조명이 켜지는 곡선. 램프가 예열되듯 뒤로 갈수록 느려집니다. */
  --lamp: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  /* 한글은 기본값으로 글자 단위에서 끊겨 낱말이 두 줄로 갈라진다. keep-all 로 어절을 붙여 둔다.
     그러면 띄어쓰기 없는 긴 토막(모델명·URL)이 칸을 넘치므로 그것만 break-word 로 푼다. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--font); font-weight: 600; color: var(--heading); margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   벽 명판 — 이 시스템의 유일한 키커. 섹션마다 아이브로우를 얹는 대신
   전시실에 번호를 매기는 하나의 문법으로 통일했습니다.
   ========================================================================== */
.plaque {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.plaque .p-no {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.plaque .p-rule {
  width: 40px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
}
.plaque .p-name { color: var(--muted-6); letter-spacing: 0.16em; }
.plaque-lg { font-size: 12.5px; margin-bottom: 30px; }

/* ==========================================================================
   전시 도면 — 좌측 고정 레일
   ========================================================================== */
.plan {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: var(--plan-w);
  height: 100vh;
  padding: 30px 0 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  background: var(--bg-deep);
  border-right: 1px solid var(--rule-soft);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.plan-top { display: flex; align-items: center; justify-content: space-between; padding-right: 28px; }
.plan-brand { line-height: 0; }
.plan-brand img { width: 104px; height: auto; opacity: 0.9; }

.plan-toggle { display: none; }

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plan-list a {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 11.5px;
  letter-spacing: 0.13em;
  color: var(--muted-65);
  transition: color 0.25s ease;
}
.plan-list i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted-6);
  opacity: 0.7;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.plan-list span { text-transform: uppercase; }
.plan-list a:hover { color: var(--heading-2); }
.plan-list a:hover i { opacity: 1; }

/* 현재 서 있는 전시실 */
.plan-list a.is-here { color: var(--accent); }
.plan-list a.is-here i { color: var(--accent); opacity: 1; }

.hall { margin-left: var(--plan-w); }

/* ==========================================================================
   입구 — 조명이 켜지는 첫 화면
   ========================================================================== */
.entrance {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 200px;
  overflow: hidden;
}
.entrance-bg {
  position: absolute;
  inset: 0;
  background: url('assets/hero-bg.jpg') center / cover no-repeat;
  /* 소등 상태에서 시작해 점등된다. 글은 처음부터 읽히므로 이미지만 어둡다. */
  filter: brightness(0.22) saturate(0.55);
  transform: scale(1.04);
  transition: filter 2s var(--lamp), transform 2.4s var(--lamp);
}
body.lights-on .entrance-bg {
  filter: brightness(0.62) saturate(0.9);
  transform: scale(1);
}
.entrance-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      oklch(0.12 0.005 264 / 0.72) 0%,
      oklch(0.12 0.005 264 / 0.42) 42%,
      oklch(0.16 0.006 264 / 0.96) 100%),
    linear-gradient(90deg,
      oklch(0.12 0.005 264 / 0.6) 0%,
      oklch(0.12 0.005 264 / 0) 62%);
}
.entrance-body { position: relative; max-width: 760px; }
.entrance h1 {
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: 1.03;
  letter-spacing: -0.015em;
}
.entrance-lead {
  margin: 30px 0 0;
  max-width: 44ch;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--muted-82);
}
.cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  padding: 13px 26px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heading-2);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.cue svg { transition: transform 0.35s var(--lamp); }
.cue:hover { border-color: var(--accent); color: var(--accent); }
.cue:hover svg { transform: translateY(3px); }

/* 전시 정보 — 입구 벽에 붙은 라벨 */
.show-info {
  position: absolute;
  left: var(--gutter);
  bottom: 56px;
  margin: 0;
  display: grid;
  gap: 7px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  max-width: 520px;
}
.show-info > div { display: grid; grid-template-columns: 52px 1fr; gap: 16px; }
.show-info dt {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted-6);
  text-transform: uppercase;
  padding-top: 2px;
}
.show-info dd { margin: 0; font-size: 12.5px; color: var(--muted-78); letter-spacing: 0.01em; }

/* ==========================================================================
   전시실
   ========================================================================== */
.room {
  padding: 108px var(--gutter);
  border-top: 1px solid var(--rule-soft);
}
.room-head { max-width: 640px; margin-bottom: 56px; }
.room-head h2 {
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.room-note {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted-78);
  max-width: 52ch;
}

/* ---------- 진열대 ---------- */
/* 한 줄에 넉 점을 같은 크기로 건다. 예전에는 방마다 v-solo/duo/trio/quad/bleed 로
   칸 너비가 달라 대표 한 점만 크고 나머지는 곁다리로 보였다.
   칸 수를 4로 못박는다. 점 수에 맞춰 균등 분할(auto-flow:column)하면 3종뿐인
   OPTIC 만 사진이 298px 로 커져 다른 방(206px)과 어긋난다 — 크기 통일이 먼저다.
   OPTIC 은 넷째 칸이 비지만, 줄이 짧아 보일 뿐 사진 크기는 어디서나 같다. */
/* 3열이다. 4열일 때는 사진이 176px 밖에 안 나와 제품이 잘 안 보였다.
   전시실 폭(965px)은 왼쪽 목차 레일에 눌려 더 넓힐 수 없으므로, 사진을 키우는
   길은 칸을 줄이는 것뿐이다 — 3열이면 사진이 260px 로 약 1.5배가 된다. */
.vitrine {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 26px;
  max-width: var(--measure);
}
/* 진열은 방마다 3점이다 — 3열에 딱 맞아 둘째 줄로 내려가는 것이 없다. */

/* 카드 하나가 통째로 링크다 — 사진을 누르면 그 제품의 상세 페이지로 간다.
   모델명에만 링크를 걸고 ::after 로 늘이는 방법은 못 쓴다. .label 의 점등 연출이
   transform 이라 그게 절대위치의 기준틀이 되어 덮개가 라벨 높이(74px)까지만
   잡히고 사진은 안 덮였다. */
.exhibit {
  display: block;
  margin: 0;
  color: inherit;
  text-decoration: none;
}
.exhibit:hover .l-name { color: var(--accent); }
.l-name { transition: color 0.25s ease; }
.exhibit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 2px;
}

/* 진열면 — 카드가 아니라 면이다. 제품 PNG는 배경이 투명해 이 면이 그대로 비친다. */
.plate {
  display: block;
  background: var(--plate);
  border: 1px solid var(--rule-card);
  border-radius: 2px;
  padding: 22px;
  transition: background-color 0.9s var(--lamp), border-color 0.5s ease;
}
.plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  /* 소등 상태. 조명이 들어오면 제품만 밝아진다. */
  opacity: 0.5;
  filter: brightness(0.6) saturate(0.75);
  transition: opacity 1.1s var(--lamp), filter 1.1s var(--lamp);
}
.room.is-lit .plate { background: var(--plate-lit); }
.room.is-lit .plate img { opacity: 1; filter: none; }

.exhibit:hover .plate { border-color: var(--accent); }

/* ---------- 벽 라벨 — 이 시스템의 시그니처 ---------- */
.label {
  display: block;
  padding: 20px 2px 0;
  opacity: 0.42;
  transform: translateY(8px);
  transition: opacity 0.8s var(--lamp), transform 0.8s var(--lamp);
}
.room.is-lit .label { opacity: 1; transform: none; }

.l-name {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--heading);
}
.l-medium {
  display: block;
  margin-top: 7px;
  max-width: 46ch;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted-65);
}
/* 사양표(.l-spec)와 카탈로그 링크(.l-src)는 걷어냈다. 첫 페이지 카드는 사진 +
   모델명 + 한 줄이면 충분하고, 상세 사양은 방 아래 "전 모델 상세 사양 →" 이
   products.html 로 데려간다. 대표 한 점에만 붙던 것이라 카드 크기도 들쭉날쭉했다. */

/* ---------- 전시 목록 ---------- */
.roster {
  max-width: var(--measure);
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
}
.roster-head {
  margin: 0 0 16px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-6);
}
.roster-head span { color: var(--accent); margin-left: 10px; }
.roster ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.roster li {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted-65);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.roster-more {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}
.roster-more span { transition: transform 0.3s var(--lamp); }
.roster-more:hover span { transform: translateX(5px); }

/* ==========================================================================
   상설관 — 완성된 공간들
   ========================================================================== */
.room-permanent { border-top: none; }
.wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--measure);
}
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  height: 250px;
}
.frame-lead { grid-column: span 2; grid-row: span 2; height: 520px; }
.frame-img {
  display: block;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* 상설관에도 조명이 들어온다 */
  filter: brightness(0.48) saturate(0.7);
  transform: scale(1.02);
  transition: filter 1.2s var(--lamp), transform 0.6s var(--lamp);
}
.room.is-lit .frame-img { filter: brightness(0.94) saturate(1); transform: scale(1); }
.frame:hover .frame-img { transform: scale(1.045); }

.frame-label {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 5px;
  padding: 22px;
  background: linear-gradient(180deg, transparent, oklch(0.1 0.005 264 / 0.82));
}
.frame-label b {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.frame-label em {
  font-style: normal;
  font-size: 16px;
  color: var(--heading);
  letter-spacing: 0.01em;
}
.frame-lead .frame-label em { font-size: 21px; }

/* ==========================================================================
   자료실
   ========================================================================== */
.archive {
  padding: 96px var(--gutter);
  border-top: 1px solid var(--rule-soft);
  background: var(--panel);
}
.archive-inner { max-width: 720px; }
.archive h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.archive-note {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted-78);
  max-width: 50ch;
}
.archive-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.archive-fine {
  margin: 22px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted-6);
}

/* ---------- 버튼 — 누를 수 있는 것은 예외 없이 필 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 999px;
  font-family: var(--font);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.btn-outline {
  padding: 15px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn-outline:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost {
  padding: 15px 26px;
  border: 1px solid var(--rule);
  color: var(--heading-2);
  font-size: 13.5px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary {
  padding: 19px 38px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.btn-primary:hover { opacity: 0.86; }

/* ==========================================================================
   문의 — 가장 깊은 어둠
   ========================================================================== */
.contact {
  padding: 108px var(--gutter) 76px;
  background: var(--bg-deep);
  border-top: 1px solid var(--rule-soft);
}
.contact-inner { max-width: var(--measure); }
.contact h2 {
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.tagline {
  margin: 22px 0 0;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  color: var(--muted-6);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
  margin-top: 58px;
}
.contact-lines { display: flex; flex-wrap: wrap; gap: 44px; margin: 0; }
.contact-lines dt {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted-6);
  text-transform: uppercase;
  margin-bottom: 9px;
}
.contact-lines dd { margin: 0; font-size: 20px; color: var(--heading-2); letter-spacing: 0.01em; }
.contact-lines a { transition: color 0.25s ease; }
.contact-lines a:hover { color: var(--accent); }
.sns { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; }
.sns svg { flex-shrink: 0; }

.imprint {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-soft);
  font-style: normal;
  display: grid;
  gap: 11px;
  max-width: 860px;
}
.imprint > div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  font-size: 13px;
  color: var(--muted-78);
}
.imprint > div > span:first-child {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted-6);
  text-transform: uppercase;
  padding-top: 3px;
}
.imprint a { color: var(--muted-82); transition: color 0.25s ease; }
.imprint a:hover { color: var(--accent); }

.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 56px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--rule-soft);
  font-size: 12px;
  color: var(--muted-6);
}
.colophon img { width: 104px; height: auto; opacity: 0.72; }

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 1280px) {
  :root { --gutter: 52px; }
}

@media (max-width: 1080px) {
  :root { --plan-w: 0px; --gutter: 40px; }

  /* 도면이 상단 바로 접힌다 */
  .plan {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 0;
    gap: 0;
    border-right: none;
    border-bottom: 1px solid var(--rule-soft);
    background: color-mix(in oklab, var(--bg-deep) 92%, transparent);
    backdrop-filter: blur(8px);
    overflow: visible;
  }
  .plan-top { padding: 16px var(--gutter); }
  .plan-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 18px;
    background: none;
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: var(--heading-2);
    font-family: var(--font);
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .plan-toggle b { display: grid; gap: 4px; }
  .plan-toggle i { display: block; width: 16px; height: 1px; background: currentColor; }

  .plan-list {
    display: none;
    padding: 6px var(--gutter) 22px;
    border-top: 1px solid var(--rule-soft);
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 2px 20px;
  }
  .plan-list.open { display: grid; }

  .hall { margin-left: 0; }

  .room, .archive, .contact { scroll-margin-top: 68px; }
  .entrance { min-height: 88vh; padding: 96px var(--gutter) 190px; }

  /* 넷을 나란히 두기엔 좁다 — 두 줄로 접는다 */
  .vitrine { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .wall { grid-template-columns: repeat(2, 1fr); }
  .frame-lead { grid-column: span 2; grid-row: auto; height: 340px; }
}

@media (max-width: 720px) {
  :root { --gutter: 22px; }

  .room { padding: 68px var(--gutter); }
  .room-head { margin-bottom: 36px; }
  .entrance { padding: 76px var(--gutter) 216px; }
  .entrance h1 { font-size: clamp(34px, 10vw, 52px); }
  .entrance-lead { font-size: 16px; margin-top: 24px; }
  .show-info { left: var(--gutter); right: var(--gutter); bottom: 40px; }
  .show-info > div { grid-template-columns: 44px 1fr; gap: 12px; }
  .show-info dd { font-size: 11.5px; }

  .plate { padding: 16px; }
  .vitrine { grid-template-columns: 1fr; gap: 34px; }

  .wall { grid-template-columns: 1fr; }
  .frame, .frame-lead { grid-column: auto; height: 230px; }

  .archive { padding-top: 64px; padding-bottom: 64px; }
  .contact { padding-top: 72px; }
  .btn { width: 100%; justify-content: center; }
  .contact-grid { align-items: flex-start; gap: 34px; }
  .contact-lines { gap: 26px; }
  .contact-lines dd { font-size: 18px; }
  .imprint > div { grid-template-columns: 1fr; gap: 3px; }
  .imprint > div > span:first-child { padding-top: 0; }
}

@media (max-width: 480px) {
  .plan-list { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   모션 축소 — 조명 연출을 끄고 처음부터 켜진 상태로 둔다
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entrance-bg,
  .plate, .plate img, .label, .frame-img,
  .cue svg, .roster-more span {
    transition: none !important;
    transform: none !important;
  }
  .entrance-bg { filter: brightness(0.62) saturate(0.9); }
  .plate img { opacity: 1; filter: none; }
  .label { opacity: 1; }
  .frame-img { filter: brightness(0.94) saturate(1); }
}

/* 스크립트가 죽어도 전시실은 켜져 있어야 한다 */
.no-js .plate img { opacity: 1; filter: none; }
.no-js .label { opacity: 1; transform: none; }
.no-js .frame-img { filter: brightness(0.94) saturate(1); }
.no-js .entrance-bg { filter: brightness(0.62) saturate(0.9); transform: none; }
