/* ==========================================================================
   루멘웨이 LUMENWAY — DREXLY 템플릿 (조명)
   시안 4장(2026-08-11 · 51번 묶음)의 색·활자·조판을 옮긴 단일 스타일시트.
   색 정본: 00-디자인보드.png (#0D182A #18263B #F7F5F2 #D8B275 #FF9F1C)
   ========================================================================== */

/* --------------------------------------------------- 등록 속성(빛 보간) §07 */
@property --sky1 { syntax: "<color>"; inherits: true; initial-value: #0d182a; }
@property --sky2 { syntax: "<color>"; inherits: true; initial-value: #1c2c45; }
@property --glow { syntax: "<color>"; inherits: true; initial-value: #ffa63a; }
@property --prog { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --cct  { syntax: "<color>"; inherits: true; initial-value: #ffb35c; }

:root {
  --night: #0d182a;
  --navy: #18263b;
  --navy-2: #22344f;
  --navy-3: #2c405e;
  --paper: #f7f5f2;
  --paper-2: #ebe7e1;
  --sand: #d8b275;
  --amber: #ff9f1c;

  --on-dark: #edf0f5;
  --on-dark-2: #a3b1c4;
  --on-dark-3: #71829a;
  --ink: #101b2c;
  --ink-2: #46586f;
  --ink-3: #7d8ca0;

  --line: rgba(216, 178, 117, 0.24);
  --line-soft: rgba(237, 240, 245, 0.1);
  --line-ink: rgba(16, 27, 44, 0.12);
  --line-ink-soft: rgba(16, 27, 44, 0.07);

  --ok: #63c08a;
  --warn: #ffb547;
  --err: #ff7a6b;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: 40px;
  --section: 128px;
  --r1: 8px;
  --r2: 14px;
  --r3: 22px;
  --ease: cubic-bezier(0.22, 0.72, 0.26, 1);
  --sh1: 0 1px 2px rgba(3, 8, 18, 0.3), 0 14px 40px rgba(3, 8, 18, 0.28);
  --sh2: 0 2px 6px rgba(3, 8, 18, 0.34), 0 26px 60px rgba(3, 8, 18, 0.38);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: -0.005em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.36; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--amber); color: #241503; padding: 12px 20px; font-size: 14px; font-weight: 600;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-n { max-width: 940px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 16px; height: 16px; stroke-width: 1.5; }
.ico-lg { width: 30px; height: 30px; stroke-width: 1.05; }

/* 가로로 넘치는 표는 반드시 자기 상자 안에서만 흐른다 —
   position:static 이면 문서 폭을 밀어 320px 에서 페이지가 통째로 밀린다. */
.scrollx {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* ------------------------------------------------------------- 활자 계층 */
.display {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.042em;
}
.eyebrow {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sand);
}
.stitle {
  font-size: clamp(27px, 3.1vw, 40px);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -0.038em;
}
.lead { color: var(--on-dark-2); font-size: 17px; line-height: 1.9; }
.small { font-size: 13px; line-height: 1.75; color: var(--on-dark-3); }
.num { font-variant-numeric: tabular-nums; letter-spacing: 0; }

.section { padding-block: calc(var(--section) / 2); }
.section-first { padding-top: calc(var(--section) * 0.62); }
.section-last { padding-bottom: var(--section); }
.section-navy { background: var(--navy); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-paper .lead { color: var(--ink-2); }
.section-paper .small { color: var(--ink-3); }

/* 시간 레일 — 이 벌의 표식. 구획 머리 왼쪽에 세로로 선다. */
.shead { position: relative; padding-left: 26px; margin-bottom: 52px; max-width: 780px; }
.shead::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--amber), var(--sand) 46%, rgba(216, 178, 117, 0));
}
.shead .eyebrow { margin-bottom: 14px; }
.shead .stitle + p { margin-top: 18px; color: var(--on-dark-2); font-size: 16.5px; }
.section-paper .shead .stitle + p { color: var(--ink-2); }
.shead.center { margin-inline: auto; text-align: center; padding-left: 0; }
.shead.center::before { left: 50%; top: auto; bottom: auto; height: 34px; margin-left: -1px; position: relative; display: block; margin-bottom: 20px; }

/* ------------------------------------------------------------------ 버튼 */
.btn {
  --bg: transparent; --fg: var(--on-dark); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border: 1px solid var(--bd); border-radius: var(--r1);
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 600; letter-spacing: -0.012em; cursor: pointer;
  transition: background 0.28s var(--ease), color 0.28s var(--ease),
    border-color 0.28s var(--ease), transform 0.16s var(--ease), box-shadow 0.28s var(--ease);
}
.btn span[aria-hidden] { transition: transform 0.28s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

.btn-gold { --bg: var(--sand); --fg: #21150a; --bd: var(--sand); }
.btn-gold:hover { --bg: #e8c184; --bd: #e8c184; box-shadow: 0 10px 30px rgba(216, 178, 117, 0.24); }
.btn-amber { --bg: var(--amber); --fg: #2a1802; --bd: var(--amber); }
.btn-amber:hover { --bg: #ffb144; --bd: #ffb144; box-shadow: 0 10px 30px rgba(255, 159, 28, 0.26); }
.btn-line { --bd: rgba(216, 178, 117, 0.5); }
.btn-line:hover { --bg: rgba(216, 178, 117, 0.12); --bd: var(--sand); }
.btn-ink { --bg: var(--night); --fg: #fff; --bd: var(--night); }
.btn-ink:hover { --bg: var(--navy-2); --bd: var(--navy-2); }
.btn-ghost-ink { --fg: var(--ink); --bd: var(--line-ink); }
.btn-ghost-ink:hover { --bg: rgba(16, 27, 44, 0.05); }
.btn-full { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

.tlink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 14.5px; font-weight: 600; color: var(--sand);
  border-bottom: 1px solid rgba(216, 178, 117, 0.35);
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.tlink:hover { color: var(--amber); border-color: var(--amber); }
.tlink span[aria-hidden] { transition: transform 0.24s var(--ease); }
.tlink:hover span[aria-hidden] { transform: translateX(3px); }
.section-paper .tlink { color: #9a6b16; border-color: rgba(154, 107, 22, 0.32); }
.section-paper .tlink:hover { color: #7d5610; border-color: #7d5610; }

/* ------------------------------------------------------------------ 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 70;
  background: rgba(13, 24, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(3, 8, 18, 0.4); }
.nav { display: flex; align-items: center; gap: 30px; min-height: 74px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1.1; flex: none; }
.brand b { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.brand small {
  font-family: var(--serif); font-size: 11px; font-weight: 500;
  letter-spacing: 0.36em; color: var(--sand); margin-top: 3px;
}
.navlinks { display: flex; align-items: center; gap: 30px; margin-left: 12px; }
.navlinks a {
  position: relative; font-size: 15px; font-weight: 500; color: var(--on-dark-2);
  padding: 8px 0; transition: color 0.24s var(--ease);
}
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--amber); transition: right 0.3s var(--ease);
}
.navlinks a:hover { color: var(--on-dark); }
.navlinks a:hover::after { right: 0; }
.navlinks a[aria-current="page"] { color: var(--on-dark); }
.navlinks a[aria-current="page"]::after { right: 0; background: var(--sand); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 1px solid transparent; border-radius: var(--r1);
  color: var(--on-dark-2); cursor: pointer; transition: color 0.24s, border-color 0.24s, background 0.24s;
}
.icon-btn:hover { color: var(--on-dark); border-color: var(--line-soft); background: rgba(237, 240, 245, 0.05); }
.menu-btn { display: none; }

/* 스크롤 진행 띠 — 스크롤 연동 애니메이션의 가장 작은 쓰임 */
.hbar { height: 2px; background: rgba(216, 178, 117, 0.12); overflow: clip; }
.hbar span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--sand), var(--amber));
}

/* -------------------------------------------------------------- 서랍(모바일) */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(348px, 88vw); z-index: 90;
  background: var(--navy); border-left: 1px solid var(--line-soft);
  padding: 22px 24px 40px; transform: translateX(100%);
  transition: transform 0.4s var(--ease); overflow-y: auto;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-close {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-soft); border-radius: var(--r1); cursor: pointer;
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-size: 18px; font-weight: 500; padding: 15px 2px;
  border-bottom: 1px solid var(--line-soft); color: var(--on-dark-2);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer nav a:hover, .drawer nav a[aria-current="page"] { color: var(--sand); }
.drawer nav a .ico { color: var(--on-dark-3); }
.drawer-foot { margin-top: 24px; display: grid; gap: 10px; }
.drawer-foot .btn { justify-content: flex-start; }
.drawer-note { margin-top: 20px; font-size: 12.5px; color: var(--on-dark-3); line-height: 1.7; }
.scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(4, 9, 18, 0.6);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.scrim.open { opacity: 1; visibility: visible; }

/* ============================================================ 홈 히어로 */
.hero {
  position: relative;
  overflow: clip; /* hidden 은 스크롤 컨테이너를 만들어 뷰 진행을 얼린다 */
  --sky1: #0d182a; --sky2: #1c2c45; --glow: #ffa63a; --prog: 1;
  isolation: isolate;
}
.hero-sky {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(168deg, var(--sky1) 0%, var(--sky2) 62%, var(--night) 100%);
}
.hero-sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 82% at 12% 84%, color-mix(in srgb, var(--glow) 42%, transparent) 0%, transparent 62%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 54px; align-items: center; padding-block: 84px 92px;
}
.hero-panel {
  background: rgba(11, 20, 36, 0.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(216, 178, 117, 0.2);
  border-radius: var(--r3);
  padding: 40px 42px 38px;
  box-shadow: var(--sh1);
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--sand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 8px 26px;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--on-dark-2); }
.hero-facts .ico { color: var(--sand); }

/* 하루의 빛 레일 */
.timerail { display: flex; gap: 18px; margin-bottom: 30px; }
.timerail-line { position: relative; width: 2px; flex: none; border-radius: 2px; background: rgba(237, 240, 245, 0.16); }
.timerail-fill {
  position: absolute; left: 0; right: 0; top: 0; border-radius: 2px;
  background: linear-gradient(180deg, var(--sand), var(--amber));
  height: 100%; transform-origin: 50% 0; transform: scaleY(var(--prog));
}
.timerail-dot {
  position: absolute; left: 50%; top: calc(var(--prog) * 100%); width: 12px; height: 12px;
  margin: -6px 0 0 -6px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 0 5px rgba(255, 159, 28, 0.18);
}
.timerail ol { display: grid; gap: 14px; }
.timerail li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.timerail b { font-family: var(--serif); font-size: 13px; letter-spacing: 0.2em; color: var(--sand); font-weight: 600; }
.timerail span { font-size: 13.5px; color: var(--on-dark-2); }
.timerail time { display: block; font-size: 11px; letter-spacing: 0.12em; color: var(--on-dark-3); }

.hero-shot { position: relative; margin: 0; border-radius: var(--r3); overflow: clip; box-shadow: var(--sh2); }
.hero-shot img { width: 100%; height: auto; }
.hero-shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(58% 42% at 62% 40%, color-mix(in srgb, var(--glow) 34%, transparent), transparent 70%);
  mix-blend-mode: screen;
}
.hero-cap {
  position: absolute; left: 18px; bottom: 18px; right: 18px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(9, 16, 29, 0.72); border: 1px solid var(--line-soft);
  border-radius: var(--r2); padding: 11px 15px; font-size: 12.5px; color: var(--on-dark-2);
}
.hero-cap .ico { color: var(--amber); }

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero { animation: daycycle linear both; animation-timeline: scroll(root block); animation-range: 0 84vh; }
    .hbar span { animation: barrun linear both; animation-timeline: scroll(root block); }
  }
}
@keyframes daycycle {
  0%   { --sky1: #93b6dc; --sky2: #f0d0a6; --glow: #fff2d8; --prog: 0; }
  46%  { --sky1: #56688b; --sky2: #dd9c58; --glow: #ffc879; --prog: 0.5; }
  100% { --sky1: #0d182a; --sky2: #1c2c45; --glow: #ffa63a; --prog: 1; }
}
@keyframes barrun { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============================================================ 지표 3칸 */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.metric {
  background: var(--navy); border: 1px solid var(--line-soft); border-radius: var(--r3);
  padding: 30px 28px 28px; transition: border-color 0.28s var(--ease), transform 0.28s var(--ease);
}
.metric:hover { border-color: var(--line); transform: translateY(-3px); }
.metric-k {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--serif); font-size: 42px; font-weight: 500; color: var(--sand); line-height: 1;
}
.metric-k i { font-style: normal; font-family: var(--sans); font-size: 15px; font-weight: 600; }
.metric h3 { margin: 16px 0 8px; font-size: 18px; font-weight: 600; }
.metric p { font-size: 14.5px; color: var(--on-dark-2); }

/* ============================================================ 3단계 */
.steps-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 56px; align-items: center; }
.steps { display: grid; gap: 12px; }
.step {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px;
  padding: 20px 22px; border: 1px solid var(--line-ink-soft); border-radius: var(--r2);
  background: #fff;
}
.step-n {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--night); color: var(--sand); font-family: var(--serif); font-size: 19px; font-weight: 600;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink-2); }
.steps-fig { margin: 0; }
.steps-fig img { width: 100%; height: auto; border-radius: var(--r3); }
.steps-fig figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* ============================================================ 색온도 */
.cct { display: grid; gap: 26px; }
.cct > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cct-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cct-pick label {
  display: grid; gap: 3px; align-content: center; justify-items: start;
  min-height: 72px; padding: 12px 16px; cursor: pointer;
  border: 1px solid var(--line-soft); border-radius: var(--r2);
  background: rgba(237, 240, 245, 0.03);
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
}
.cct-pick b { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cct-pick b .ico { opacity: 0; color: var(--amber); }
.cct-pick i { font-style: normal; font-size: 13px; color: var(--on-dark-3); }
.cct-pick label:hover { border-color: var(--line); }
.cct-swatch { width: 100%; height: 6px; border-radius: 4px; margin-top: 4px; }
#cct-27:checked ~ .cct-pick label[for="cct-27"],
#cct-40:checked ~ .cct-pick label[for="cct-40"],
#cct-65:checked ~ .cct-pick label[for="cct-65"] {
  border-color: var(--amber); background: rgba(255, 159, 28, 0.1);
}
#cct-27:checked ~ .cct-pick label[for="cct-27"] b .ico,
#cct-40:checked ~ .cct-pick label[for="cct-40"] b .ico,
#cct-65:checked ~ .cct-pick label[for="cct-65"] b .ico { opacity: 1; }

.cct-stage { position: relative; border-radius: var(--r3); overflow: clip; margin: 0; }
.cct-stage img { width: 100%; height: auto; }
.cct-wash {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--cct); mix-blend-mode: soft-light; opacity: 0.92;
  transition: --cct 0.5s var(--ease);
}
.cct-wash2 {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 40% at 30% 34%, color-mix(in srgb, var(--cct) 58%, transparent), transparent 72%);
  mix-blend-mode: screen; transition: --cct 0.5s var(--ease);
}
.cct-tag {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  background: rgba(9, 16, 29, 0.76); border: 1px solid var(--line-soft);
  border-radius: 99px; padding: 7px 15px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
}
#cct-27:checked ~ .cct-stage { --cct: #ff9a3c; }
#cct-40:checked ~ .cct-stage { --cct: #ffe9cc; }
#cct-65:checked ~ .cct-stage { --cct: #cfe2ff; }
.cct-note { display: none; }
#cct-27:checked ~ .cct-notes .cct-note[data-k="27"],
#cct-40:checked ~ .cct-notes .cct-note[data-k="40"],
#cct-65:checked ~ .cct-notes .cct-note[data-k="65"] { display: block; }
.cct-notes {
  border: 1px solid var(--line-soft); border-radius: var(--r2); padding: 22px 24px;
  background: rgba(237, 240, 245, 0.03);
}
.cct-note h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.cct-note p { font-size: 14.5px; color: var(--on-dark-2); }
.cct-note p + p { margin-top: 8px; }
.cct-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 26px; align-items: start; }

/* ============================================================ 계산기 */
.calc { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 26px; align-items: start; }
.calc-in, .calc-out { background: #fff; border: 1px solid var(--line-ink-soft); border-radius: var(--r3); padding: 28px 28px 30px; }
.calc-in { display: grid; gap: 18px; align-content: start; }
.calc-row { display: grid; gap: 8px; }
.calc-row > label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.ctrl {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid var(--line-ink); border-radius: var(--r1);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 15px;
}
select.ctrl {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346586f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  padding-right: 40px;
}
.ctrl:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.unit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.unit { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.calc-range { width: 100%; accent-color: var(--amber); height: 30px; }
.calc-range-caps { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }

.calc-out { background: var(--night); color: var(--on-dark); border-color: rgba(216, 178, 117, 0.22); }
.calc-out h3 { font-size: 15px; font-weight: 600; color: var(--sand); letter-spacing: 0.02em; margin-bottom: 16px; }
.calc-hero { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.calc-hero b { font-family: var(--serif); font-size: 54px; font-weight: 500; line-height: 1; color: var(--on-dark); }
.calc-hero i { font-style: normal; font-size: 17px; font-weight: 600; color: var(--sand); }
.calc-formula {
  margin-top: 14px; padding: 12px 14px; border-radius: var(--r1);
  background: rgba(237, 240, 245, 0.05); font-size: 13.5px; color: var(--on-dark-2);
}
.calc-mix { margin-top: 18px; display: grid; gap: 10px; }
.mixrow { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.mixrow b { font-weight: 600; color: var(--on-dark); }
.mixbar { height: 8px; border-radius: 6px; background: rgba(237, 240, 245, 0.1); overflow: clip; }
.mixbar span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--sand), var(--amber)); }
.mixrow em { font-style: normal; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.calc-picks { margin-top: 20px; border-top: 1px solid var(--line-soft); padding-top: 18px; display: grid; gap: 12px; }
.pick { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.pick-ic { width: 44px; height: 44px; border-radius: var(--r1); display: grid; place-items: center; background: rgba(216, 178, 117, 0.14); color: var(--sand); }
.pick b { display: block; font-size: 14.5px; font-weight: 600; }
.pick span { font-size: 12.5px; color: var(--on-dark-3); }
.pick em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--sand); font-variant-numeric: tabular-nums; }
.calc-total {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: baseline; font-size: 14px;
}
.calc-total b { font-size: 20px; font-weight: 600; color: var(--sand); font-variant-numeric: tabular-nums; }
.calc-note { margin-top: 14px; font-size: 12.5px; color: var(--on-dark-3); line-height: 1.75; }

/* ============================================================ 조도 표 */
.ltable { min-width: 660px; font-size: 14.5px; }
.ltable caption { text-align: left; font-size: 13px; color: var(--ink-3); padding-bottom: 12px; }
.ltable th, .ltable td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-ink-soft); }
.ltable thead th { font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: var(--paper-2); white-space: nowrap; }
.ltable tbody th { font-weight: 600; }
.ltable td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ltable tbody tr:hover { background: rgba(216, 178, 117, 0.1); }

/* ============================================================ 조합 3층 */
.mix3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.layer {
  position: relative; border: 1px solid var(--line-soft); border-radius: var(--r3);
  padding: 26px 26px 28px; background: var(--navy); overflow: clip;
}
.layer::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 160px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 159, 28, 0.28), transparent 70%);
}
.layer-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(216, 178, 117, 0.16); color: var(--sand); position: relative; }
.layer h3 { margin: 16px 0 6px; font-size: 18px; font-weight: 600; position: relative; }
.layer .share { font-family: var(--serif); font-size: 15px; letter-spacing: 0.12em; color: var(--amber); position: relative; }
.layer p { margin-top: 10px; font-size: 14.5px; color: var(--on-dark-2); position: relative; }

/* ============================================================ 공간 탭 */
.tabs > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tablist { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line-ink-soft); margin-bottom: 30px; }
.tablist label {
  min-height: 52px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px;
  cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.tablist label:hover { color: var(--ink-2); }
.tabpanel { display: none; }
#sp-1:checked ~ .tabbody .tabpanel[data-sp="1"],
#sp-2:checked ~ .tabbody .tabpanel[data-sp="2"],
#sp-3:checked ~ .tabbody .tabpanel[data-sp="3"],
#sp-4:checked ~ .tabbody .tabpanel[data-sp="4"],
#sp-5:checked ~ .tabbody .tabpanel[data-sp="5"] { display: block; }
#sp-1:checked ~ .tablist label[for="sp-1"],
#sp-2:checked ~ .tablist label[for="sp-2"],
#sp-3:checked ~ .tablist label[for="sp-3"],
#sp-4:checked ~ .tablist label[for="sp-4"],
#sp-5:checked ~ .tablist label[for="sp-5"] { color: var(--ink); border-bottom-color: var(--amber); }
/* JS 가 없으면 전부 펼쳐 무JS 완성본을 보장한다 */
html:not(.js) .tabpanel { display: block; margin-bottom: 34px; }
html:not(.js) .tablist { display: none; }

.spacecard { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.spacecard figure { margin: 0; border-radius: var(--r3); overflow: clip; background: var(--navy); }
.spacecard figure img { width: 100%; height: auto; }
.spacecard h3 { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.spacecard .lux { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #8a5f10; background: rgba(216, 178, 117, 0.25); border-radius: 99px; padding: 6px 14px; margin-bottom: 14px; }
.recipe { margin-top: 18px; display: grid; gap: 10px; }
.recipe li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.recipe .ico { color: #9a6b16; margin-top: 4px; }
.recipe b { color: var(--ink); font-weight: 600; }
.caution {
  margin-top: 18px; display: flex; gap: 10px; align-items: flex-start;
  border-left: 3px solid var(--amber); background: rgba(255, 159, 28, 0.09);
  border-radius: 0 var(--r1) var(--r1) 0; padding: 12px 16px; font-size: 13.5px; color: var(--ink-2);
}
.caution .ico { color: #b46f04; flex: none; margin-top: 3px; }

/* ============================================================ 상품 카드 */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pcard {
  display: flex; flex-direction: column;
  background: var(--navy); border: 1px solid var(--line-soft); border-radius: var(--r3);
  overflow: clip; transition: border-color 0.28s var(--ease), transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.pcard:hover { border-color: var(--line); transform: translateY(-4px); box-shadow: var(--sh2); }
.pcard-fig { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--navy-2); }
.pcard-fig img { width: 100%; height: 100%; object-fit: cover; }
.pcard-fig.is-cut { background: var(--paper); display: grid; place-items: center; padding: 14px; }
.pcard-fig.is-cut img { width: auto; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pbadge {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px;
  border-radius: 99px; padding: 6px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(9, 16, 29, 0.82); color: var(--on-dark); border: 1px solid var(--line-soft);
}
.pbadge.wire { color: #ffd9a0; border-color: rgba(255, 159, 28, 0.5); }
.pbadge.plug { color: #b7e8cd; border-color: rgba(99, 192, 138, 0.45); }
.pcard-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard-body h3 { font-size: 18px; font-weight: 600; }
.pcard-body .desc { font-size: 14px; color: var(--on-dark-2); }
.pspec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pspec li {
  font-size: 12px; font-variant-numeric: tabular-nums; color: var(--on-dark-2);
  border: 1px solid var(--line-soft); border-radius: 99px; padding: 4px 10px;
}
.pcard-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); }
.price { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price small { font-size: 12px; font-weight: 500; color: var(--on-dark-3); margin-left: 4px; }

/* ============================================================ 비교표 */
.ctable { min-width: 720px; font-size: 14.5px; }
.ctable th, .ctable td { padding: 15px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.ctable thead th { vertical-align: bottom; }
.ctable tbody th { font-weight: 600; color: var(--on-dark-2); font-size: 13.5px; white-space: nowrap; width: 148px; }
.ctable td { font-variant-numeric: tabular-nums; }
.ctable .col-head { display: grid; gap: 8px; justify-items: start; }
.ctable .col-head .thumb { width: 96px; height: 96px; border-radius: var(--r2); background: var(--paper); display: grid; place-items: center; padding: 8px; }
.ctable .col-head .thumb img { width: auto; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ctable .col-head b { font-size: 16px; font-weight: 600; }
.ctable .col-head em { font-style: normal; font-size: 15px; color: var(--sand); font-weight: 600; }
.ctable .best { color: var(--amber); font-weight: 600; }
.ctable tbody tr:hover td, .ctable tbody tr:hover th { background: rgba(237, 240, 245, 0.04); }

/* ============================================================ 상품 상세 */
.pdp { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 48px; align-items: start; }
.gal { display: grid; gap: 12px; }
.gal-main { margin: 0; border-radius: var(--r3); overflow: clip; background: var(--paper); display: grid; place-items: center; padding: 24px; }
.gal-main img { width: auto; max-height: 460px; object-fit: contain; }
.gal-main.dark { background: var(--navy-2); }
.gal-thumbs { display: flex; gap: 10px; }
.gal-thumbs button {
  width: 78px; height: 78px; padding: 6px; border-radius: var(--r1); cursor: pointer;
  background: var(--paper); border: 1px solid transparent; display: grid; place-items: center;
}
.gal-thumbs button img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.gal-thumbs button[aria-current="true"] { border-color: var(--amber); }
.gal-thumbs button.dark { background: var(--navy-2); }

.buy { display: grid; gap: 20px; align-content: start; }
.buy h1 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 300; letter-spacing: -0.04em; }
.buy .kicker { font-family: var(--serif); font-size: 14px; letter-spacing: 0.26em; color: var(--sand); text-transform: uppercase; }
.buy-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy-price b { font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-price span { font-size: 13px; color: var(--on-dark-3); }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.stock.ok { color: var(--ok); }
.stock.soon { color: var(--warn); }
.opt { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.opt > label, .opt > .opt-label { font-size: 13.5px; font-weight: 600; color: var(--on-dark-2); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.swatches label {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 15px;
  border: 1px solid var(--line-soft); border-radius: var(--r1); cursor: pointer; font-size: 14px;
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
}
.swatches label i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(237, 240, 245, 0.28); }
.swatches input:checked + label { border-color: var(--amber); background: rgba(255, 159, 28, 0.1); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-soft); border-radius: var(--r1); overflow: clip; }
.qty button { width: 48px; height: 48px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: rgba(237, 240, 245, 0.06); }
.qty output { min-width: 54px; text-align: center; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-actions { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 10px; }
.wish { width: 56px; height: 56px; display: grid; place-items: center; background: none; border: 1px solid var(--line-soft); border-radius: var(--r1); cursor: pointer; }
.wish[aria-pressed="true"] { color: var(--amber); border-color: rgba(255, 159, 28, 0.5); }
.buy-chips { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.buy-chips li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark-2); }
.buy-chips .ico { color: var(--sand); }

.wirewarn {
  border: 1px solid rgba(255, 159, 28, 0.42); background: rgba(255, 159, 28, 0.08);
  border-radius: var(--r2); padding: 18px 20px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px;
}
.wirewarn .ico { color: var(--amber); margin-top: 2px; }
.wirewarn b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.wirewarn p { font-size: 13.5px; color: var(--on-dark-2); }
.wirewarn a { color: var(--amber); border-bottom: 1px solid rgba(255, 159, 28, 0.4); }

/* 사양표 */
.spec { width: 100%; font-size: 14.5px; }
.spec th, .spec td { padding: 13px 4px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.spec th { width: 168px; font-weight: 600; color: var(--on-dark-2); font-size: 13.5px; }
.spec td { font-variant-numeric: tabular-nums; }
.spec-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 46px; }

/* 장바구니 요약 */
.cartbox { background: var(--navy); border: 1px solid var(--line-soft); border-radius: var(--r3); padding: 26px 28px; }
.cartbox h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.cart-list { display: grid; gap: 12px; margin: 18px 0; }
.cart-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.cart-row .th { width: 56px; height: 56px; border-radius: var(--r1); background: var(--paper); display: grid; place-items: center; padding: 5px; }
.cart-row .th img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-row b { display: block; font-size: 14.5px; font-weight: 600; }
.cart-row span { font-size: 12.5px; color: var(--on-dark-3); }
.cart-row em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-empty { font-size: 14px; color: var(--on-dark-3); padding: 14px 0 4px; }
.cart-sum { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.cart-sum div { display: flex; justify-content: space-between; }
.cart-sum .tot { font-size: 17px; font-weight: 600; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.cart-sum .tot b { color: var(--sand); font-variant-numeric: tabular-nums; }

/* 모바일 구매 Dock */
.dock { display: none; }

/* ============================================================ 안전·설치 */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.wcard {
  background: #fff; border: 1px solid var(--line-ink-soft); border-radius: var(--r3);
  padding: 28px 28px 30px; display: grid; gap: 12px; align-content: start;
}
.wcard .tagline { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; border-radius: 99px; padding: 6px 13px; }
.wcard.plug .tagline { background: rgba(99, 192, 138, 0.16); color: #1c6b41; }
.wcard.wire .tagline { background: rgba(255, 159, 28, 0.18); color: #8c5100; }
.wcard h3 { font-size: 21px; font-weight: 600; }
.wcard p { font-size: 14.5px; color: var(--ink-2); }
.wcard ul { display: grid; gap: 8px; margin-top: 4px; }
.wcard li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 14px; color: var(--ink-2); }
.wcard li .ico { margin-top: 4px; color: #9a6b16; }

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rule {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px;
  background: var(--navy); border: 1px solid var(--line-soft); border-radius: var(--r2); padding: 22px 24px;
}
.rule-n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 159, 28, 0.14); color: var(--amber); }
.rule h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.rule p { font-size: 14px; color: var(--on-dark-2); }

.iptable { min-width: 620px; font-size: 14.5px; }
.iptable th, .iptable td { padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.iptable thead th { font-size: 12.5px; font-weight: 700; color: var(--sand); background: rgba(216, 178, 117, 0.08); white-space: nowrap; }
.iptable tbody th { font-weight: 700; color: var(--on-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.iptable td { color: var(--on-dark-2); }

.fee { display: grid; gap: 0; }
.fee-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-ink-soft); }
.fee-row b { font-size: 15.5px; font-weight: 600; }
.fee-row span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.fee-row em { font-style: normal; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============================================================ 아코디언 */
.accordion { border-top: 1px solid var(--line-soft); }
.acc-item { border-bottom: 1px solid var(--line-soft); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 21px 4px; min-height: 60px; background: none; border: 0; text-align: left;
  font-size: 15.5px; font-weight: 500; cursor: pointer; transition: color 0.24s var(--ease);
}
.acc-trigger:hover { color: var(--sand); }
.acc-trigger .ico { color: var(--on-dark-3); transition: transform 0.38s var(--ease), color 0.24s var(--ease); }
.acc-trigger[aria-expanded="true"] { color: var(--sand); }
.acc-trigger[aria-expanded="true"] .ico { transform: rotate(180deg); color: var(--sand); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { padding: 0 4px 22px; font-size: 14.5px; color: var(--on-dark-2); line-height: 1.9; }
.acc-panel p + p { padding-top: 0; }
html:not(.js) .acc-panel { grid-template-rows: 1fr; }
.section-paper .accordion, .section-paper .acc-item { border-color: var(--line-ink-soft); }
.section-paper .acc-panel p { color: var(--ink-2); }
.section-paper .acc-trigger:hover, .section-paper .acc-trigger[aria-expanded="true"] { color: #9a6b16; }
.section-paper .acc-trigger .ico { color: var(--ink-3); }

/* ============================================================ 폼 */
.formcard { background: var(--navy); border: 1px solid var(--line-soft); border-radius: var(--r3); padding: 32px 34px 34px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field > label { font-size: 13.5px; font-weight: 600; color: var(--on-dark-2); }
.field .req { color: var(--amber); }
.field .control {
  width: 100%; min-height: 52px; padding: 13px 15px;
  border: 1px solid var(--line-soft); border-radius: var(--r1);
  background: rgba(237, 240, 245, 0.04); color: var(--on-dark); font: inherit; font-size: 15px;
}
.field textarea.control { min-height: 132px; resize: vertical; line-height: 1.8; }
.field select.control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3b1c4' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px;
}
.field .control::placeholder { color: var(--on-dark-3); }
.field .control:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: transparent; }
.field.filled .control { background: rgba(237, 240, 245, 0.07); }
.field.invalid .control { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255, 122, 107, 0.16); }
.field .err { display: none; align-items: center; gap: 6px; font-size: 12.5px; color: var(--err); }
.field.invalid .err { display: flex; }
.agree { grid-column: 1 / -1; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.agree input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--amber); }
.agree label { font-size: 13.5px; color: var(--on-dark-2); line-height: 1.7; }
.agree a { color: var(--sand); border-bottom: 1px solid rgba(216, 178, 117, 0.36); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 4px; }
.counter { font-size: 12.5px; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ 안내 띠 */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--navy); border: 1px solid var(--line-soft); border-radius: var(--r3); overflow: clip; }
.trust li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 24px 26px; border-left: 1px solid var(--line-soft); }
.trust li:first-child { border-left: 0; }
.trust .ico { color: var(--sand); }
.trust b { display: block; font-size: 14.5px; font-weight: 600; }
.trust span { font-size: 12.5px; color: var(--on-dark-3); }

.callout {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  background: linear-gradient(120deg, var(--navy-2), var(--navy)); border: 1px solid var(--line);
  border-radius: var(--r3); padding: 34px 36px;
}
.callout h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 300; letter-spacing: -0.035em; margin-bottom: 10px; }
.callout p { font-size: 15px; color: var(--on-dark-2); }

.notebox {
  border: 1px dashed rgba(216, 178, 117, 0.4); border-radius: var(--r2);
  padding: 18px 22px; font-size: 13.5px; color: var(--on-dark-2); line-height: 1.85;
}
.section-paper .notebox { border-color: rgba(16, 27, 44, 0.18); color: var(--ink-2); }
.notebox b { color: var(--on-dark); }
.section-paper .notebox b { color: var(--ink); }

.mats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mat { border-radius: var(--r2); overflow: clip; background: var(--navy-2); }
.mat img { width: 100%; height: 122px; object-fit: cover; }
.mat figcaption { padding: 12px 14px; font-size: 13px; color: var(--on-dark-2); }
.mat figcaption b { display: block; color: var(--on-dark); font-size: 14px; font-weight: 600; margin-bottom: 2px; }

.moods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mood { margin: 0; border-radius: var(--r3); overflow: clip; background: var(--navy-2); }
.mood img { width: 100%; height: auto; }
.mood figcaption { padding: 14px 16px 16px; font-size: 13px; color: var(--on-dark-2); }
.mood figcaption b { display: block; font-size: 14.5px; color: var(--on-dark); font-weight: 600; margin-bottom: 3px; }
.mood:nth-child(2) { margin-top: 30px; }
.mood:nth-child(3) { margin-top: 60px; }
.mood:nth-child(4) { margin-top: 14px; }

/* ============================================================ 푸터 */
.site-footer { background: #08111f; border-top: 1px solid var(--line-soft); padding-top: 66px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 38px; padding-bottom: 46px; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: var(--on-dark-3); line-height: 1.85; }
.footer-col h3 { font-family: var(--serif); font-size: 13px; letter-spacing: 0.24em; color: var(--sand); text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 4px; }
.footer-col li a { display: inline-block; padding: 6px 0; font-size: 14px; color: var(--on-dark-2); transition: color 0.24s var(--ease); }
.footer-col li a:hover { color: var(--sand); }
.footer-biz div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 10px; font-size: 12.5px; color: var(--on-dark-3); padding: 3px 0; }
.footer-biz b { font-weight: 600; color: var(--on-dark-2); }
.footer-biz a { border-bottom: 1px solid rgba(163, 177, 196, 0.3); }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding: 22px 0 30px;
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 12.5px; color: var(--on-dark-3); }
.footer-bottom nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.footer-bottom nav a { font-size: 12.5px; color: var(--on-dark-3); padding: 8px 10px; display: inline-flex; align-items: center; min-height: 40px; }
.footer-bottom nav a:hover { color: var(--sand); }

/* ============================================================ 떠 있는 것들 */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--navy-2); color: var(--on-dark); border: 1px solid var(--line-soft);
  border-radius: 50%; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 120;
  transform: translate(-50%, 18px); min-width: 280px; max-width: calc(100vw - 36px);
  display: flex; align-items: center; gap: 12px; padding: 15px 22px;
  background: var(--paper); color: var(--ink); border-radius: var(--r1);
  font-size: 14px; font-weight: 500; box-shadow: 0 16px 44px rgba(3, 8, 18, 0.5);
  opacity: 0; visibility: hidden;
  pointer-events: none; /* 폭 전체 제출 버튼을 덮어 클릭을 삼키지 않게 */
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { color: #9a6b16; }

/* ============================================================ 등장 */
.js .reveal { opacity: 0; transform: translateY(15px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================ 반응형 */
@media (max-width: 1180px) {
  :root { --wrap: 1024px; --gutter: 32px; --section: 108px; }
  .navlinks { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 980px) {
  :root { --section: 96px; }
  .navlinks { display: none; }
  .menu-btn { display: grid; }
  .nav-actions .btn { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 52px 62px; }
  .hero-panel { padding: 30px 26px 28px; }
  .steps-wrap, .calc, .cct-cols, .spacecard, .pdp, .callout { grid-template-columns: minmax(0, 1fr); }
  .callout { gap: 20px; }
  .metrics, .mix3, .pgrid, .two, .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mood:nth-child(n) { margin-top: 0; }
  .spec-2 { grid-template-columns: minmax(0, 1fr); }
  .mats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  /* 모바일 구매 Dock — 1과업 1화면 */
  .dock {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    background: rgba(11, 20, 36, 0.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-soft); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .dock .dock-price { display: grid; }
  .dock .dock-price b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .dock .dock-price span { font-size: 11.5px; color: var(--on-dark-3); }
  .dock .btn { min-height: 52px; }
  body.has-dock { padding-bottom: 88px; }
  .to-top { bottom: 96px; }
  .toast { bottom: 100px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --section: 82px; }
  .display { font-size: clamp(31px, 8.4vw, 42px); }
  .metrics, .mix3, .pgrid, .two, .rules, .trust, .fgrid, .mats { grid-template-columns: minmax(0, 1fr); }
  .trust li { border-left: 0; border-top: 1px solid var(--line-soft); }
  .trust li:first-child { border-top: 0; }
  .moods { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .cct-pick { grid-template-columns: minmax(0, 1fr); }
  .hero-panel { padding: 26px 20px 24px; }
  .formcard { padding: 24px 20px 26px; }
  .calc-in, .calc-out, .wcard, .cartbox { padding: 22px 20px 24px; }
  .buy-actions { grid-template-columns: minmax(0, 1fr) 52px; }
  .wish { width: 52px; height: 52px; }
  .timerail li { grid-template-columns: 64px minmax(0, 1fr); }
  .gal-main { padding: 16px; }
  .gal-main img { max-height: 320px; }
  .layer, .metric, .rule { padding: 22px 20px 24px; }
  .callout { padding: 26px 22px; }
  .spec th { width: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hbar span { transform: scaleX(1); }
}

@media print {
  .site-header, .drawer, .scrim, .to-top, .toast, .dock { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ══════════════════════════════════════════════════════════════════════
   보강 — 5면을 실제로 조립하며 필요해진 것들. 위 토큰을 그대로 쓴다.
   (반응형 층이 이 아래에 다시 오는 이유: 앞의 @media 보다 뒤에 와야 이긴다)
   ══════════════════════════════════════════════════════════════════════ */

/* JS 전용 조작기 — 없으면 「눌러도 반응 없는 단추」가 남는다 */
html:not(.js) .js-only { display: none !important; }

/* 라디오·체크박스를 감춘 상자는 스스로 기준점을 가져야 한다
   (position:static 이면 1px 입력이 문서 맨 위로 튀어 초점 이동 시 화면이 흔들린다) */
.cct, .tabs, .swatches, .chips { position: relative; }

/* 감춘 입력이 초점을 받으면 짝이 되는 라벨에 테두리를 그린다 */
.tabs > input:focus-visible ~ .tablist label[for],
.cct > input:focus-visible ~ .cct-pick label[for],
.swatches input:focus-visible + label,
.chips input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 2px; }
.tabs > #sp-1:focus-visible ~ .tablist label:not([for="sp-1"]),
.tabs > #sp-2:focus-visible ~ .tablist label:not([for="sp-2"]),
.tabs > #sp-3:focus-visible ~ .tablist label:not([for="sp-3"]),
.tabs > #sp-4:focus-visible ~ .tablist label:not([for="sp-4"]),
.tabs > #sp-5:focus-visible ~ .tablist label:not([for="sp-5"]),
.cct > #cct-27:focus-visible ~ .cct-pick label:not([for="cct-27"]),
.cct > #cct-40:focus-visible ~ .cct-pick label:not([for="cct-40"]),
.cct > #cct-65:focus-visible ~ .cct-pick label:not([for="cct-65"]) { outline: 0; }

/* 히어로 뒤에 깔리는 해질녘 사진 — 시안의 왼쪽 절반 */
.hero-photo { position: absolute; inset: 0; z-index: -1; overflow: clip; pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 18% 60%; opacity: 0.42; }

/* 동의 칸 오류 문구 — .field 와 달리 2열 그리드라 자리를 따로 잡는다 */
.agree .err { display: none; grid-column: 2; align-items: center; gap: 6px; font-size: 12.5px; color: var(--err); }
.agree.invalid .err { display: flex; }
.agree.invalid label { color: var(--err); }

/* 빵부스러기 */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 13px; color: var(--on-dark-3); }
.crumbs a { padding: 6px 0; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--sand); border-color: rgba(216, 178, 117, 0.4); }

/* 구획 안쪽 소제목 */
.subhead { margin: 54px 0 20px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.section-paper .subhead { color: var(--ink); }

/* 검색줄 */
.searchbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; margin-bottom: 20px; }
.searchbar-in {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r1);
  background: rgba(237, 240, 245, 0.04);
}
.searchbar-in .ico { color: var(--sand); }
.searchbar-in .ctrl {
  min-height: 54px; padding: 0; border: 0; background: none; color: var(--on-dark); font-size: 15.5px;
}
.searchbar-in .ctrl:focus { outline: 0; }
.searchbar-in:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 159, 28, 0.14); }
.searchbar .btn { min-height: 54px; }

/* 패싯 필터 */
.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px;
  padding: 18px 20px; margin-bottom: 26px;
  border: 1px solid var(--line-soft); border-radius: var(--r2); background: rgba(237, 240, 245, 0.03);
}
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; margin: 0; padding: 0; }
.chips legend { float: left; margin-right: 12px; padding: 0; font-size: 12.5px; font-weight: 700; color: var(--sand); letter-spacing: 0.06em; line-height: 40px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chips label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; cursor: pointer;
  border: 1px solid var(--line-soft); border-radius: 99px; font-size: 13.5px; color: var(--on-dark-2);
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease), color 0.24s var(--ease);
}
.chips label:hover { border-color: var(--line); color: var(--on-dark); }
.chips input:checked + label { border-color: var(--amber); background: rgba(255, 159, 28, 0.12); color: var(--on-dark); font-weight: 600; }
.filter-count { margin-left: auto; font-size: 13.5px; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.filter-count span { font-weight: 700; color: var(--sand); }

.empty {
  margin-top: 26px; padding: 30px 24px; text-align: center;
  border: 1px dashed rgba(216, 178, 117, 0.4); border-radius: var(--r2);
  font-size: 14.5px; color: var(--on-dark-2);
}
.pcard[hidden] { display: none; }

/* 플래너 — 질문 번호와 평면 미리보기 */
.calc-n {
  display: inline-grid; place-items: center; width: 26px; height: 20px; margin-right: 8px;
  border-radius: 4px; background: var(--night); color: var(--sand);
  font-family: var(--serif); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  vertical-align: 1px;
}
.calc-out .plan { margin: 0 0 22px; border-radius: var(--r2); overflow: clip; background: var(--navy-2); }
.calc-out .plan img { width: 100%; height: auto; }
.calc-note.is-over { color: #ffc18a; }
.calc-out .hero-actions { margin-top: 18px; }

/* 규칙 카드는 밝은 면 위에 얹힌다 — 어두운 상자를 그대로 쓰되 간격만 준다 */
.rules-wrap { margin-top: 22px; }

/* 재입고 예정 배지 — 색만으로 알리지 않는다(글자로도 적는다) */
.pbadge:not(.wire):not(.plug) { color: #ffd9a0; border-color: rgba(255, 159, 28, 0.42); }

/* 하단 구매 Dock 은 상세 면에서만 자리를 비운다 */
body.has-dock { padding-bottom: 0; }

@media (max-width: 980px) {
  .searchbar { grid-template-columns: minmax(0, 1fr); }
  .filter-count { margin-left: 0; width: 100%; }
}

@media (max-width: 820px) {
  body.has-dock { padding-bottom: 92px; }
}

@media (max-width: 720px) {
  .crumbs { margin-bottom: 18px; }
  .subhead { margin: 40px 0 16px; }
  .filters { padding: 16px 14px; }
  .chips legend { line-height: 1.4; float: none; width: 100%; margin: 0 0 2px; }
  .hero-photo img { object-position: 30% 60%; }
}

/* 320px — 상표 + 아이콘 4개가 한 줄에 안 들어간다.
   마이페이지는 서랍 안에서도 갈 수 있으므로 좁은 폭에서만 접는다. */
@media (max-width: 760px) {
  .nav { gap: 10px; }
  .nav-actions { gap: 0; }
  .nav-actions [aria-label="마이페이지"] { display: none; }
  .brand small { letter-spacing: 0.24em; }
}

/* 카드 사진이 4:3 을 지키게 한다.
   세로 열 flex 항목의 `min-height:auto` 는 안쪽 사진의 본디 높이를 최소값으로 삼아
   aspect-ratio 를 무시한다 — 세로로 긴 사진만 카드가 두 배로 늘어났다. */
.pcard-fig { min-height: 0; }

/* 색온도 무대 — 시안이 366px 짜리라 폭을 다 주면 3배로 늘어나 뭉갠다.
   두 칸으로 나눠 확대율을 1.8배 안쪽으로 묶는다. */
@media (min-width: 981px) {
  .cct { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); align-items: start; }
  .cct-pick { grid-column: 1 / -1; }
  .cct-notes { align-self: stretch; }
}

/* 방수 등급표는 밝은 면 위에 놓인다 — 어두운 면 색을 그대로 쓰면 글이 읽히지 않는다 */
.section-paper .iptable th,
.section-paper .iptable td { border-bottom-color: var(--line-ink-soft); }
.section-paper .iptable thead th { color: #7d5610; background: rgba(216, 178, 117, 0.18); }
.section-paper .iptable tbody th { color: var(--ink); }
.section-paper .iptable td { color: var(--ink-2); }

/* 질문 번호 — 흰 카드 위에서 읽히도록 조금 키운다 */
.calc-n { width: 30px; height: 22px; font-size: 13px; }

/* 밝은 면 위에 얹힌 어두운 카드는 글자색을 스스로 정해야 한다
   (안 그러면 .section-paper 의 ink 색을 물려받아 남색 위 남색 글이 된다) */
.rule { color: var(--on-dark); }

/* 배송비 표는 밝은 면 기준으로 짜여 있다 — 어두운 면에 놓일 때를 되돌린다 */
.fee-row { border-bottom-color: var(--line-soft); }
.fee-row span { color: var(--on-dark-3); }
.section-paper .fee-row { border-bottom-color: var(--line-ink-soft); }
.section-paper .fee-row span { color: var(--ink-3); }

@media (max-width: 720px) {
  /* 「EVENING」 이 두 줄로 갈라진다 — 칸을 넓히고 자간을 줄인다 */
  .timerail li { grid-template-columns: 82px minmax(0, 1fr); }
  .timerail b { font-size: 12px; letter-spacing: 0.13em; }
}

/* 시간 레일 라벨 칸 — 「EVENING」 이 74px 을 넘겨 두 줄로 갈라졌다 */
.timerail li { grid-template-columns: 88px minmax(0, 1fr); }
@media (max-width: 720px) {
  .timerail li { grid-template-columns: 82px minmax(0, 1fr); }
}
