/* ==========================================================================
   시선 안경연구소 (SISUN OPTICAL LAB) — DREXLY 템플릿
   00-디자인보드.png 의 색(Ink #111111 / Gallery White #FAFAFA / Amber #F2A100)과
   Pretendard 단일 활자 체계를 그대로 옮겼다. 조판 원형은 「검안 차트」 —
   1px 격자·눈금·모노 숫자로 계측기 같은 인상을 만든다.
   흰 텍스트를 앰버 위에 얹지 않는다(대비 2.3:1). 앰버 면에는 잉크 글자를 쓴다.
   ========================================================================== */

:root {
  /* 색 — 디자인보드 「컬러 시스템」 */
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --ink-line: rgba(17, 17, 17, 0.14);
  --ink-hair: rgba(17, 17, 17, 0.07);
  --paper: #fafafa;
  --paper-2: #f1f0ec;
  --paper-3: #e8e6e0;
  --white: #ffffff;
  --amber: #f2a100;
  --amber-press: #d38c00;
  --amber-tint: #fff4de;
  --gray: #6e6e6e;
  --gray-2: #8d8d8d;
  --line: #e2e0da;
  --line-2: #cfccc4;

  /* 의미색 — 색만으로 상태를 전하지 않는다(글자·아이콘 병기) */
  --ok: #1c7a45;
  --ok-bg: #eaf5ee;
  --warn: #9a5b00;
  --warn-bg: #fff3e0;
  --err: #c0271f;
  --err-bg: #fdedec;

  /* 활자 */
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "Space Grotesk", "Pretendard Variable", ui-monospace, monospace;

  /* 조판 */
  --wrap: 1320px;
  --gutter: 40px;
  --section: 118px;
  --r: 3px;
  --r-lg: 6px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --head-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 18px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.008em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.34; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-ink :focus-visible, .site-footer :focus-visible { outline-color: var(--amber); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  font-size: 14px;
}
.skip:focus { left: 0; }

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

.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; }
.frame { display: block; overflow: hidden; background: var(--paper-2); }

.ico {
  width: 22px; height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-sm { width: 16px; height: 16px; stroke-width: 1.5; }
.ico-lg { width: 28px; height: 28px; stroke-width: 1.15; }

/* 계측 격자 — 이 템플릿의 바탕 무늬 */
.gridbg {
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  background-position: center top;
}

/* ------------------------------------------------------------- 활자 계층 */
.display {
  font-size: clamp(34px, 5.1vw, 60px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.display em { font-style: normal; color: var(--amber); }
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.s-index {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}
.s-index { flex-wrap: wrap; row-gap: 4px; }
.s-index b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.s-index i {
  display: block;
  width: 34px;
  height: 1px;
  background: var(--amber);
  flex: none;
}
.s-title {
  font-size: clamp(25px, 2.7vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.32;
}
.s-lead { margin-top: 16px; color: var(--gray); font-size: 16.5px; max-width: 62ch; }
.section { padding-block: calc(var(--section) / 2); }
.section-first { padding-top: var(--section); }
.section-last { padding-bottom: var(--section); }
.section-tint { background: var(--paper-2); }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; margin-inline: auto; max-width: 760px; }
.section-head.center .s-index { justify-content: center; }
.section-head.center .s-lead { margin-inline: auto; }
.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.muted { color: var(--gray); }
.tiny { font-size: 13px; line-height: 1.7; color: var(--gray); }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------- 버튼 */
.btn {
  --bg: transparent;
  --fg: var(--ink);
  --bd: var(--ink-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--bd);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  text-align: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn span[aria-hidden] { transition: transform 0.25s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] {
  color: var(--gray-2);
  border-color: var(--line);
  background: var(--paper-2);
  cursor: not-allowed;
  pointer-events: none;
}
.btn-primary { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-primary:hover { --bg: var(--amber); --fg: var(--ink); --bd: var(--amber); }
.btn-amber { --bg: var(--amber); --fg: var(--ink); --bd: var(--amber); }
.btn-amber:hover { --bg: var(--amber-press); --bd: var(--amber-press); }
.btn-line { --bg: var(--white); --fg: var(--ink); --bd: var(--line-2); }
.btn-line:hover { --bd: var(--ink); }
.btn-onink { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, 0.42); }
.btn-onink:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: gap 0.25s var(--ease), border-color 0.25s var(--ease);
}
.link-arrow:hover { gap: 14px; border-bottom-color: var(--amber); }
.link-arrow.on-dark { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.6); }
.link-arrow.on-dark:hover { border-bottom-color: var(--amber); }

/* 태그·칩 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray);
  background: var(--white);
  line-height: 1.6;
}
.tag-amber { border-color: var(--amber); background: var(--amber-tint); color: #6b4600; }
.tag-ink { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ------------------------------------------------------------- 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 250, 250, 0.9);
  border-bottom: 1px solid var(--ink-hair);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(250, 250, 250, 0.96);
  -webkit-backdrop-filter: saturate(1.15) blur(9px);
  backdrop-filter: saturate(1.15) blur(9px);
  border-bottom-color: var(--ink-line);
}
.progress {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--ink-hair);
  overflow: hidden;
}
.progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--amber);
  transform: scaleX(var(--prog, 0));
  transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .progress-bar {
    animation: progress-grow linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  height: var(--head-h);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex: none;
  color: var(--ink);
}
.brand-kr {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}
.brand-sub {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray);
  line-height: 1;
}
.navlinks { display: flex; align-items: center; gap: 34px; }
.navlinks a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 0;
}
.navlinks a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.navlinks a:hover::after, .navlinks a[aria-current="page"]::after { transform: scaleX(1); }
.navlinks a[aria-current="page"] { font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-phone .ico { color: var(--amber-press); }
.nav-phone:hover { color: var(--ink); }
.menu-btn {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--ink-line);
  border-radius: var(--r);
  cursor: pointer;
}

/* 모바일 서랍 */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(348px, 88vw);
  z-index: 95;
  background: var(--white);
  border-left: 1px solid var(--line);
  padding: 22px 24px 40px;
  transform: translateX(101%);
  transition: transform 0.38s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-close {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid var(--ink-line);
  border-radius: var(--r);
  cursor: pointer;
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 17px 2px;
  border-bottom: 1px solid var(--ink-hair);
}
.drawer nav a em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-2);
}
.drawer nav a[aria-current="page"] { color: var(--amber-press); }
.drawer nav a[aria-current="page"] em { color: var(--amber-press); }
.drawer-contact { margin-top: 24px; display: grid; gap: 9px; }
.drawer-contact .btn { justify-content: flex-start; }
.drawer-note { margin-top: 20px; font-size: 12.5px; line-height: 1.75; color: var(--gray); }
.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(17, 17, 17, 0.46);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s var(--ease), visibility 0.38s;
}
.scrim.open { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------- 히어로 */
/* 홈 — 갤러리 화이트 위 좌우 분할 */
.hero-home {
  position: relative;
  padding-top: 54px;
  padding-bottom: 0;
  overflow: hidden;
}
.hero-home-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 54px;
  align-items: end;
}
.hero-copy { padding-bottom: 58px; }
.hero-copy .display { margin-bottom: 24px; }
.hero-copy .lead {
  font-size: 17.5px;
  color: var(--gray);
  max-width: 44ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-spec {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--ink-line);
}
.hero-spec div { min-width: 0; }
.hero-spec dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 6px;
}
.hero-spec dd { margin: 0; font-size: 15px; font-weight: 600; }
.hero-media {
  position: relative;
  align-self: end;
}
.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.hero-media figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-media figcaption .ico { color: var(--amber); }

/* 내부 페이지 — 잉크 밴드 + 사진 판 */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding-block: 66px 62px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: center;
}
.page-hero .s-index { color: rgba(255, 255, 255, 0.62); margin-bottom: 18px; }
.page-hero .s-index b { color: #fff; }
.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.25;
}
.page-hero .lead {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16.5px;
  max-width: 46ch;
}
.page-hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.page-hero-meta .tag {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.86);
}
.page-hero-media { flex: none; }
.page-hero-media img {
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.page-hero-media figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------------------- 홈 */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.pillar {
  background: var(--paper);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.pillar .ico { color: var(--amber-press); }
.pillar h3 { font-size: 16px; font-weight: 700; }
.pillar p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* 3갈래 — 홈의 단일 핵심 과업 */
.routes { border-top: 1px solid var(--ink-line); }
.route {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 0.9fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px 6px;
  border-bottom: 1px solid var(--ink-line);
  transition: background 0.25s var(--ease), padding 0.25s var(--ease);
}
.route:hover { background: var(--white); padding-inline: 20px 22px; }
.route-no {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gray-2);
}
.route h3 { font-size: clamp(21px, 2.1vw, 28px); font-weight: 700; letter-spacing: -0.035em; }
.route h3 span { color: var(--gray-2); font-weight: 500; font-size: 15px; display: block; margin-top: 6px; letter-spacing: 0; }
.route p { font-size: 14.5px; color: var(--gray); }
.route-go {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  flex: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.route:hover .route-go { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* 베스트 프레임 스트립 */
.best-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto 1fr; gap: 28px 46px; align-items: start; }
/* 왼쪽에 대표 사진과 설명, 오른쪽에 목록 — 칸을 못 박아 둔다(자동 배치는 어긋난다) */
.best-figure { grid-column: 1; grid-row: 1; }
.best-note { grid-column: 1; grid-row: 2; align-self: start; }
.best-list { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.best-note h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.best-note p { font-size: 14.5px; color: var(--gray); margin-bottom: 16px; }
.best-figure { position: relative; }
.best-figure img { width: 100%; height: auto; border-radius: var(--r-lg); }
.best-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.best-list { display: grid; gap: 2px; }
.best-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.best-item + .best-item { margin-top: 8px; }
.best-thumb {
  display: block;
  background: var(--paper-2);
  border-radius: var(--r);
  padding: 6px;
}
.best-thumb img { width: 100%; height: auto; mix-blend-mode: multiply; }
.best-item h3 { font-size: 15.5px; font-weight: 700; }
.best-item .best-meta { font-size: 13px; color: var(--gray); }
.best-item .best-price { font-family: var(--mono); font-size: 15px; font-weight: 600; white-space: nowrap; }

/* 잉크 배너 */
.band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  align-items: center;
  gap: 40px;
}
.band-copy { padding: 52px 8px 52px 52px; }
.band-copy h2 { font-size: clamp(22px, 2.3vw, 32px); font-weight: 700; letter-spacing: -0.035em; }
.band-copy p { margin-top: 16px; color: rgba(255, 255, 255, 0.72); font-size: 15.5px; max-width: 46ch; }
.band-copy .band-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.band-figure { align-self: stretch; }
.band-figure img { width: 100%; height: 100%; object-fit: cover; }

/* 약속 */
.promise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.promise-figure img { width: 100%; height: auto; border-radius: var(--r-lg); }
.promise-list { display: grid; gap: 0; }
.promise-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--ink-line);
}
.promise-item:first-child { border-top: 1px solid var(--ink-line); }
.promise-item .ico { color: var(--amber-press); }
.promise-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.promise-item p { font-size: 14.5px; color: var(--gray); }

/* 매장 안내 요약 */
.shops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.shop-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shop-card img { width: 100%; height: auto; }
.shop-body { padding: 18px 18px 22px; display: grid; gap: 6px; }
.shop-body h3 { font-size: 16px; font-weight: 700; }
.shop-body p { font-size: 13.5px; color: var(--gray); line-height: 1.65; }
.shop-body .mono { font-size: 13.5px; color: var(--ink-soft); }

/* ------------------------------------------------------------- 얼굴형 가이드 */
.faceguide { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.face-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 10px; }
.face-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 12px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.face-btn svg { width: 46px; height: 52px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.face-btn b { font-size: 13.5px; font-weight: 600; }
.face-btn small { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--gray-2); text-transform: uppercase; }
.face-btn:hover { border-color: var(--ink); }
.face-btn[aria-pressed="true"] {
  border-color: var(--amber);
  background: var(--amber-tint);
  box-shadow: inset 0 0 0 1px var(--amber);
}
.face-btn[aria-pressed="true"] svg { stroke: var(--amber-press); }
.face-advice {
  margin-top: 26px;
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--r);
}
.face-advice h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.face-advice h3 .ico { color: var(--amber-press); }
.face-advice p { font-size: 14.5px; color: var(--ink-soft); }
.face-advice .face-fit { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.face-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.face-table caption { text-align: left; font-size: 13px; color: var(--gray); padding-bottom: 12px; }
.face-table th, .face-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.face-table thead th {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
  border-bottom: 1px solid var(--ink-line);
}
.face-table tbody th { font-weight: 700; white-space: nowrap; }
.face-table tbody tr.is-on { background: var(--amber-tint); }
.face-table tbody tr.is-on th { color: var(--amber-press); }

/* ------------------------------------------------------------- 프레임 탐색기 */
.fx { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 40px; align-items: start; }
.fx-side {
  position: sticky;
  top: calc(var(--head-h) + 20px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.fx-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.fx-side-head h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.fx-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
}
.fx-reset:hover { color: var(--ink); }
.fx-group { border-bottom: 1px solid var(--line); padding: 4px 18px 16px; }
.fx-group:last-child { border-bottom: 0; }
.fx-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  padding-right: 2px;
}
.fx-group > summary::-webkit-details-marker { display: none; }
.fx-group > summary .ico { color: var(--gray); transition: transform 0.25s var(--ease); }
.fx-group[open] > summary .ico { transform: rotate(180deg); }
.fx-opts { display: grid; gap: 2px; padding-top: 4px; }
.fx-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}
.fx-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.fx-box {
  width: 18px; height: 18px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--white);
  color: transparent;
}
.fx-box .ico { width: 12px; height: 12px; stroke-width: 2.4; }
.fx-opt input:checked + .fx-box { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.fx-opt input:focus-visible + .fx-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.fx-opt .fx-count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--gray-2); }
.fx-opt.is-empty { color: var(--gray-2); }
.fx-swatches { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 6px; }
.fx-swatch {
  position: relative;
  width: 38px; height: 46px;
  display: grid; place-items: center;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
.fx-swatch i {
  display: block;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.18);
}
.fx-swatch::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.fx-swatch[aria-pressed="true"]::after { border-color: var(--ink); }
.fx-swatch[aria-pressed="true"] i::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.3);
}
.fx-price-rows { display: grid; gap: 2px; padding-top: 4px; }

.fx-main { min-width: 0; }
.fx-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 24px;
}
.fx-count-live { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.fx-count-live b { font-family: var(--mono); font-size: 19px; font-weight: 700; }
.fx-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fx-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}
.fx-chip::after { content: ""; position: absolute; left: 0; right: 0; top: -6px; bottom: -6px; }
.fx-chip .ico { width: 13px; height: 13px; stroke-width: 2; color: var(--gray); }
.fx-chip:hover { background: var(--paper-2); }
.fx-sort { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--gray); }
.fx-sort select {
  min-height: 44px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--white);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e6e6e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.fx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.fx-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.fx-card:hover { border-color: var(--ink); }
.fx-card.is-active { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.fx-figure {
  display: block;
  background: var(--paper-2);
  border-radius: 2px;
  /* 높이를 확정해 둔다 — aspect-ratio 만 주면 자식의 max-height:100% 가 풀려 사진이 잘렸다 */
  height: 172px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 10px;
}
.fx-figure img {
  max-width: min(100%, 280px);
  /* 백분율 max-height 는 그리드 영역에서 풀려 버린다 — 액자 안쪽 높이를 그대로 적는다 */
  max-height: 152px;
  width: auto;
  height: auto;
  mix-blend-mode: multiply;
}
.fx-card h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em; }
.fx-brand { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-2); }
.fx-specs { display: flex; gap: 6px; flex-wrap: wrap; }
.fx-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; }
.fx-price { font-family: var(--mono); font-size: 16px; font-weight: 700; }
.fx-open {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r);
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fx-open:hover { border-color: var(--ink); background: var(--paper-2); }
html:not(.js) .fx-open { display: none; }
.fx-empty {
  display: none;
  padding: 56px 30px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--white);
}
.fx-empty .ico { color: var(--gray-2); margin: 0 auto 14px; }
.fx-empty h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.fx-empty p { font-size: 14.5px; color: var(--gray); margin-bottom: 22px; }
.fx.is-empty .fx-empty { display: block; }
.fx.is-empty .fx-grid { display: none; }

/* 상세 패널 — 카드 사진이 날아 들어오는 자리(FLIP) */
.fx-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(430px, 100vw);
  z-index: 96;
  background: var(--white);
  border-left: 1px solid var(--line);
  transform: translateX(101%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.fx-panel.open { transform: none; }
.fx-panel-head {
  position: sticky;
  top: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.fx-panel-head p { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); }
.fx-panel-close {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--ink-line);
  border-radius: var(--r);
  background: none;
  cursor: pointer;
}
.fx-panel-body { padding: 24px 26px 34px; display: grid; gap: 22px; }
.fx-panel-figure {
  background: var(--paper-2);
  border-radius: var(--r);
  padding: 22px;
  display: grid;
  place-items: center;
  min-height: 190px;
}
.fx-panel-figure img { max-width: 100%; height: auto; mix-blend-mode: multiply; }
.fx-panel h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.fx-panel-price { font-family: var(--mono); font-size: 22px; font-weight: 700; }
.fx-panel dl { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fx-panel dt {
  padding: 12px 0;
  font-size: 13px;
  color: var(--gray);
  border-bottom: 1px solid var(--line);
}
.fx-panel dd {
  margin: 0;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.fx-panel-actions { display: grid; gap: 10px; }
.fx-flyer {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* 모바일 스와이프 */
.fx-swipe-nav { display: none; }

/* 피팅 밴드 */
.fitting {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.fitting-figure img { width: 100%; height: auto; border-radius: var(--r-lg); }
.fitting-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.fitting-step {
  padding: 20px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.fitting-step .mono { font-size: 12px; color: var(--amber-press); font-weight: 700; letter-spacing: 0.16em; }
.fitting-step h3 { font-size: 15px; font-weight: 700; margin: 8px 0 6px; }
.fitting-step p { font-size: 13.5px; color: var(--gray); line-height: 1.7; }

/* ------------------------------------------------------------- 렌즈 가이드 */
.subnav {
  position: sticky;
  top: var(--head-h);
  z-index: 40;
  background: rgba(250, 250, 250, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-line);
}
.subnav ul {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.subnav a .no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--gray-2); }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--amber); }
.subnav a[aria-current="true"] .no { color: var(--amber-press); }

.lens-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lens-type {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lens-type img { width: 100%; height: auto; }
.lens-type-body { padding: 20px 20px 24px; display: grid; gap: 10px; }
.lens-type h3 { font-size: 16.5px; font-weight: 700; }
.lens-type p { font-size: 14px; color: var(--gray); line-height: 1.72; }
.lens-type .mono { font-size: 13.5px; font-weight: 600; }

/* 렌즈 단면 — 스크롤에 맞춰 층이 분해된다 */
.lens-x {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: start;
}
.lens-x-sticky { position: sticky; top: calc(var(--head-h) + 28px); }
.lens-stage {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 20px 18px;
}
.lens-stage svg { width: 100%; height: auto; display: block; }
.lens-svg .lens-axis line { stroke: var(--line-2); stroke-width: 1; }
.lens-svg .lens-axis line.dash { stroke-dasharray: 4 6; stroke: var(--line); }
.lens-svg text { font-family: var(--mono); font-size: 13px; font-weight: 600; fill: var(--gray-2); }
.lens-svg .lens-tag { font-size: 12px; letter-spacing: 0.08em; }
.lens-svg .lz { fill: none; stroke-linecap: round; }
.lens-svg .lz-1 { stroke: #9aa3a8; stroke-width: 3; }
.lens-svg .lz-2 { stroke: var(--amber); stroke-width: 4; }
.lens-svg .lz-3 { stroke: #3c4a5a; stroke-width: 3.4; stroke-dasharray: 10 7; }
.lens-svg .lz-4 { stroke: #6e6e6e; stroke-width: 3; stroke-dasharray: 2 6; }
.lens-svg .lz-6 { stroke: var(--amber); stroke-width: 3.4; stroke-dasharray: 14 6; }
.lens-svg .lens-body { fill: rgba(17, 17, 17, 0.055); stroke: var(--ink); stroke-width: 1.6; }
.lens-svg .lens-no.on-body { fill: var(--gray); }
.lens-layer.is-on text { fill: var(--ink); }
.lens-layer.is-on .lz { stroke-width: 5.4; }

/* 층 분해 — 기본값이 「펼쳐진 최종 상태」다.
   스크롤 연동을 지원하면 스크롤 진행에 맞춰 조립 → 분해로 재생하고,
   못 쓰면 화면에 들어올 때 한 번 펼친다. 모션을 끄면 그냥 펼쳐진 채로 둔다. */
.lens-layer { transform: translateX(var(--x, 0px)); transition: transform 0.9s var(--ease), stroke-width 0.3s var(--ease); }
@keyframes lens-split { from { transform: translateX(0); } to { transform: translateX(var(--x, 0px)); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1025px) {
    .lens-x { view-timeline-name: --lensx; view-timeline-axis: block; }
    .lens-layer {
      animation: lens-split linear both;
      animation-timeline: --lensx;
      animation-range: cover 16% cover 60%;
      transition: stroke-width 0.3s var(--ease);
    }
  }
}
html.no-st .lens-layer { transform: translateX(0); }
html.no-st .lens-x.is-open .lens-layer { transform: translateX(var(--x, 0px)); }
.lens-caption {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-2);
}
.lens-steps { display: grid; gap: 0; counter-reset: ls; }
.lens-step {
  padding: 26px 0 26px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  opacity: 0.55;
  transition: opacity 0.35s var(--ease);
}
.lens-step:first-child { border-top: 1px solid var(--line); }
.lens-step.is-on { opacity: 1; }
.lens-step .no {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-2);
  padding-top: 3px;
}
.lens-step.is-on .no { color: var(--amber-press); }
.lens-step h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lens-step p { font-size: 14.5px; color: var(--gray); }
.lens-step .swatch-dot {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.22);
  flex: none;
}

/* 렌즈 비교 */
.cmp-tabs { display: none; }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--white);
}
.cmp caption { caption-side: bottom; text-align: left; font-size: 12.5px; color: var(--gray); padding-top: 14px; }
.cmp th, .cmp td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
.cmp thead th { background: var(--paper-2); font-size: 15px; font-weight: 700; }
.cmp thead th.is-best { background: var(--amber-tint); border-color: var(--amber); }
.cmp thead .cmp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 2px 9px;
  background: var(--amber);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  vertical-align: middle;
}
.cmp tbody th { width: 168px; background: var(--paper); font-weight: 600; color: var(--ink-soft); font-size: 13.5px; }
.cmp td.is-best { background: #fffdf7; }
.cmp .lv { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cmp .lv-dots { display: inline-flex; gap: 3px; }
.cmp .lv-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--white);
}
.cmp .lv-dots i.on { background: var(--amber); border-color: var(--amber-press); }
.cmp .price { font-family: var(--mono); font-size: 16px; font-weight: 700; }

/* 틴트 미리보기 — color-mix */
.tint { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 46px; align-items: center; }
.tint-stage {
  position: relative;
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid;
  place-items: center;
}
.tint-lens-wrap { position: relative; width: 316px; max-width: 100%; }
.tint-lens-wrap img { width: 100%; height: auto; border-radius: var(--r); }
.tint-lens {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  background: var(--tint, #6f7376);
  opacity: calc(var(--d, 30) / 100);
  -webkit-mask-image: radial-gradient(closest-side circle at 50% 46%, #000 74%, rgba(0, 0, 0, 0.62) 92%, transparent 100%);
  mask-image: radial-gradient(closest-side circle at 50% 46%, #000 74%, rgba(0, 0, 0, 0.62) 92%, transparent 100%);
  transition: background 0.3s var(--ease), opacity 0.3s var(--ease);
  pointer-events: none;
}
@supports (background: color-mix(in srgb, red 50%, transparent)) {
  .tint-lens {
    opacity: 1;
    background: color-mix(in srgb, var(--tint, #6f7376) calc(var(--d, 30) * 1%), transparent);
  }
}
.tint-lens::after {
  content: "";
  position: absolute;
  left: 16%; top: 13%;
  width: 30%; height: 11%;
  border-radius: 50%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 72%);
  transform: rotate(-20deg);
  opacity: 0.5;
}
/* 렌즈 테두리 — 사진 위에 렌즈가 얹힌 것으로 읽히게 하는 얇은 링 */
.tint-rim {
  position: absolute;
  left: 50%; top: 46%;
  width: 100%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 30px rgba(17, 17, 17, 0.22);
  pointer-events: none;
}
.tint-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
.tint-controls { display: grid; gap: 24px; }
.tint-row h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.tint-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.tint-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.tint-btn i {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.2);
  flex: none;
}
.tint-btn:hover { border-color: var(--ink); }
.tint-btn[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-tint); box-shadow: inset 0 0 0 1px var(--amber); }
.tint-range { display: flex; align-items: center; gap: 16px; }
.tint-range input[type="range"] { flex: 1; min-width: 0; accent-color: var(--amber-press); height: 44px; }
.tint-value { font-family: var(--mono); font-size: 18px; font-weight: 700; min-width: 62px; text-align: right; }
.tint-readout {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--r);
  font-size: 14.5px;
}
.tint-readout b { display: block; margin-bottom: 4px; }
.tint-readout span { color: var(--gray); }

/* 코팅 옵션 */
.coating { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.coat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.coat-card .ico { color: var(--amber-press); }
.coat-card h3 { font-size: 15px; font-weight: 700; }
.coat-card p { font-size: 13.5px; color: var(--gray); line-height: 1.7; }
.coat-card .price { font-family: var(--mono); font-size: 14px; font-weight: 700; margin-top: 4px; }

/* ------------------------------------------------------------- 시력검사 */
.timeline { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.tl-list { position: relative; }
.tl-list::before {
  content: "";
  position: absolute;
  left: 27px; top: 12px; bottom: 12px;
  width: 1px;
  background: var(--line-2);
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 34px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}
.tl-item.is-key .tl-dot { background: var(--amber); border-color: var(--amber); }
.tl-body { padding-top: 6px; }
.tl-body h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.tl-body p { font-size: 14.5px; color: var(--gray); max-width: 54ch; }
.tl-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.tl-aside {
  position: sticky;
  top: calc(var(--head-h) + 24px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.tl-aside img { width: 100%; height: auto; }
.tl-aside-body { padding: 22px 24px 26px; display: grid; gap: 14px; }
.tl-aside h3 { font-size: 16px; font-weight: 700; }
.tl-aside dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.tl-aside dt { color: var(--gray); }
.tl-aside dd { margin: 0; font-weight: 600; text-align: right; }

.equip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.equip-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.equip-figure { background: var(--paper-2); border-radius: 2px; display: grid; place-items: center; padding: 10px; }
.equip-figure img { mix-blend-mode: multiply; height: auto; }
.equip-card h3 { font-size: 15.5px; font-weight: 700; }
.equip-card .mono { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-2); }
.equip-card p { font-size: 13.5px; color: var(--gray); line-height: 1.7; }

.notice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.notice-item { background: var(--white); padding: 26px 24px; display: grid; gap: 8px; }
.notice-item .ico { color: var(--amber-press); }
.notice-item h3 { font-size: 15.5px; font-weight: 700; }
.notice-item p { font-size: 14px; color: var(--gray); }

/* ------------------------------------------------------------- 폼 공통 */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 36px 36px;
}
.form-sec + .form-sec { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.form-sec > h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-sec > h3 .no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--amber);
  border-radius: 2px;
  padding: 2px 7px;
}
.form-sec > .hint { font-size: 13.5px; color: var(--gray); margin: -8px 0 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field .req { color: var(--err); margin-left: 2px; }
.field .opt { color: var(--gray-2); font-weight: 500; margin-left: 4px; }
.control {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.control::placeholder { color: var(--gray-2); }
.control:hover { border-color: var(--ink-line); }
.control:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1); }
.control:disabled { background: var(--paper-2); color: var(--gray-2); cursor: not-allowed; }
textarea.control { min-height: 118px; resize: vertical; line-height: 1.7; }
select.control {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e6e6e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.field.invalid .control { border-color: var(--err); box-shadow: 0 0 0 3px rgba(192, 39, 31, 0.12); }
.err {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--err);
}
.err .ico { width: 14px; height: 14px; }
.field.invalid .err { display: flex; }
.counter { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--gray-2); }

/* 선택 칩(라디오·체크) */
.choice { display: flex; flex-wrap: wrap; gap: 9px; }
.choice-item { position: relative; }
.choice-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.choice-item label:hover { border-color: var(--ink); }
.choice-item input:checked + label {
  border-color: var(--amber);
  background: var(--amber-tint);
  box-shadow: inset 0 0 0 1px var(--amber);
}
.choice-item input:checked + label::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.25);
}
.choice-item input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice-item input:disabled + label {
  color: var(--gray-2);
  background: var(--paper-2);
  border-color: var(--line);
  cursor: not-allowed;
}
.choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.choice-grid .choice-item label { justify-content: center; text-align: center; }

.agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 26px; }
.agree input { position: absolute; opacity: 0; width: 0; height: 0; }
.agree label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 14px; color: var(--ink-soft); }
.agree .box {
  width: 20px; height: 20px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--white);
  color: transparent;
}
.agree .box .ico { width: 13px; height: 13px; stroke-width: 2.4; }
.agree input:checked + label .box { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.agree input:focus-visible + label .box { outline: 2px solid var(--ink); outline-offset: 2px; }
.agree .link-more {
  font-size: 12.5px;
  color: var(--gray);
  border-bottom: 1px solid var(--line-2);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.field.invalid ~ .agree .box, .agree.invalid .box { border-color: var(--err); }

.form-status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 22px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
}
.form-status:empty { display: none; }
.form-status .ico { flex: none; }
.form-status.is-err { color: var(--err); }
.form-status.is-ok { color: var(--ok); }
.form-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.form-actions .btn { min-width: 190px; }
.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 완료 카드 */
.done {
  display: none;
  padding: 30px 32px;
  background: var(--ok-bg);
  border: 1px solid #bfe0cc;
  border-radius: var(--r-lg);
}
.done.show { display: block; }
.done-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.done-head .ico { color: var(--ok); }
.done-head h3 { font-size: 19px; font-weight: 700; color: #14653a; }
.done dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 16px; font-size: 14.5px; }
.done dt { color: #2f6b4c; }
.done dd { margin: 0; font-weight: 700; }
.done-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------- 예약 */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 34px;
}
.step {
  background: var(--white);
  padding: 18px 20px;
  display: grid;
  gap: 4px;
}
.step .no { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--gray-2); }
.step b { font-size: 14.5px; font-weight: 700; }
.step.is-on { background: var(--ink); color: #fff; }
.step.is-on .no { color: var(--amber); }
.step.is-done { background: var(--amber-tint); }
.step.is-done .no { color: var(--amber-press); }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 40px; align-items: start; }
.booking-aside {
  position: sticky;
  top: calc(var(--head-h) + 24px);
  display: grid;
  gap: 18px;
}
.summary {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 26px 26px 28px;
}
.summary h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.summary h3 .ico { color: var(--amber); }
.summary dl { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px 14px; font-size: 14px; }
.summary dt { color: rgba(255, 255, 255, 0.56); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary .summary-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 12.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.7; }
.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
}
.aside-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.aside-card p { font-size: 13.5px; color: var(--gray); line-height: 1.75; }
.aside-card .tel {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

/* 달력 */
.cal { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; }
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.cal-head b { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.cal-nav {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--ink-line);
  border-radius: var(--r);
  background: var(--white);
  cursor: pointer;
}
.cal-nav[disabled] { color: var(--gray-2); background: var(--paper-2); cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow {
  padding: 10px 0 8px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gray);
  font-family: var(--mono);
}
.cal-dow.sun { color: var(--err); }
.cal-cell { padding: 2px; }
.cal-day {
  width: 100%;
  min-height: 46px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: none;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}
.cal-day:hover:not([disabled]) { background: var(--paper-2); }
.cal-day[disabled] { color: var(--line-2); cursor: not-allowed; }
.cal-day[aria-pressed="true"] { background: var(--amber); border-color: var(--amber-press); color: var(--ink); }
.cal-day .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--amber-press);
}
.cal-day[aria-pressed="true"] .dot { background: var(--ink); }
.cal-day[disabled] .dot { display: none; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--gray); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--amber); }
.cal-legend i.off { background: var(--paper-3); }

.slots { display: grid; gap: 18px; }
.slot-group h4 { font-size: 13px; font-weight: 700; color: var(--gray); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.slot-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.slot {
  min-height: 48px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--white);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 4px;
}
.slot small { font-family: var(--sans); font-size: 10.5px; font-weight: 600; color: var(--gray); letter-spacing: -0.01em; }
.slot:hover:not([disabled]) { border-color: var(--ink); }
.slot[aria-pressed="true"] { background: var(--amber); border-color: var(--amber-press); }
.slot[aria-pressed="true"] small { color: #6b4600; }
.slot[disabled] { background: var(--paper-2); color: var(--gray-2); border-color: var(--line); cursor: not-allowed; text-decoration: line-through; }
.slot[disabled] small { text-decoration: none; }

/* FAQ 아코디언 */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 14px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
}
.acc-trigger .ico { color: var(--gray); transition: transform 0.3s var(--ease); flex: none; }
.acc-item.open .acc-trigger .ico { transform: rotate(180deg); color: var(--ink); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 4px 22px; font-size: 14.5px; color: var(--gray); max-width: 76ch; }

/* ------------------------------------------------------------- 푸터 */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 72px;
  margin-top: 0;
}
.foot-top { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 2.6fr); gap: 48px; padding-bottom: 46px; }
.brand-foot .brand-kr { color: #fff; }
.brand-foot .brand-sub { color: rgba(255, 255, 255, 0.6); }
.foot-slogan { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.foot-sns { display: flex; gap: 8px; margin-top: 22px; }
.foot-sns a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.foot-sns a:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.15fr; gap: 34px; }
.foot-col h2 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.foot-col ul { display: grid; gap: 11px; font-size: 14px; }
.foot-col ul a { color: rgba(255, 255, 255, 0.72); display: inline-flex; min-height: 26px; align-items: center; }
.foot-col ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-branch li { display: grid; gap: 2px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.56); }
.foot-branch b { color: #fff; font-size: 14px; font-weight: 700; }
.foot-branch li + li { margin-top: 12px; }
.foot-tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.foot-contact p { font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, 0.56); margin-bottom: 16px; }
.foot-contact .btn-line { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, 0.32); }
.foot-contact .btn-line:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 26px 0 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.foot-legal p { font-size: 12px; line-height: 1.85; color: rgba(255, 255, 255, 0.44); }
.foot-legal-right { display: grid; gap: 10px; justify-items: end; }
.foot-policy { display: flex; gap: 18px; font-size: 12.5px; }
.foot-policy a { color: rgba(255, 255, 255, 0.6); display: inline-flex; align-items: center; min-height: 32px; }
.foot-policy a:hover { color: #fff; }
.foot-legal small { font-family: var(--mono); font-size: 11.5px; color: rgba(255, 255, 255, 0.34); letter-spacing: 0.04em; }

/* ------------------------------------------------------------- 떠 있는 것들 */
.mbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 250, 250, 0.97);
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.mbar-btn { flex: 1; min-height: 50px; font-size: 14.5px; }
.mbar-primary { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 65;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.25s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--amber); color: var(--ink); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 120;
  transform: translate(-50%, 16px);
  min-width: 260px;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r);
  font-size: 14px;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.28);
  opacity: 0;
  visibility: hidden;
  /* 알림이 제출 버튼을 삼키지 않게 한다 */
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .ico { color: var(--amber); }

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

/* =============================================================== 반응형 */
@media (max-width: 1240px) {
  :root { --wrap: 1080px; --section: 104px; }
  .navlinks { gap: 24px; }
  .fx { grid-template-columns: 220px minmax(0, 1fr); gap: 30px; }
  .coating { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lens-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .booking-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 34px 30px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 28px; --section: 92px; --head-h: 68px; }
  .navlinks, .nav-phone { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-cta { display: none; }
  .hero-home-in { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-copy { padding-bottom: 0; }
  .hero-media { max-width: 560px; }
  .hero-spec { margin-top: 30px; gap: 26px; }
  .page-hero-in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .page-hero-media img { width: 100%; height: auto; max-width: 460px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 18px; }
  .route p { display: none; }
  .best-lead { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 26px; }
  .best-figure, .best-note, .best-list { grid-column: 1; grid-row: auto; }
  .band { grid-template-columns: minmax(0, 1fr); }
  .band-copy { padding: 40px 32px; }
  .band-figure { order: -1; max-height: 220px; }
  .promise { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .shops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faceguide { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .fx { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fx-side {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 90vw);
    z-index: 95;
    border-radius: 0;
    border: 0;
    border-left: 1px solid var(--line);
    transform: translateX(101%);
    visibility: hidden;
    transition: transform 0.38s var(--ease), visibility 0.38s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .fx-side.open { transform: none; visibility: visible; }
  .fx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-side-head { position: sticky; top: 0; background: var(--white); z-index: 2; }
  .fx-side-close { display: grid !important; }
  .fx-filter-btn { display: inline-flex !important; }
  .lens-x { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lens-x-sticky { position: static; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .tl-aside { position: static; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
  .tl-aside img { height: 100%; object-fit: cover; }
  .equip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tint { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .booking-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fitting { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notice { grid-template-columns: minmax(0, 1fr); }
  .fitting-steps { grid-template-columns: minmax(0, 1fr); }
  .booking-aside { grid-template-columns: minmax(0, 1fr); }
  .tl-aside { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --section: 76px; }
  body { padding-bottom: 74px; font-size: 15.5px; }
  .mbar { display: flex; }
  .to-top { display: none; }
  .toast { bottom: 84px; }
  .section-head { margin-bottom: 34px; }
  .display { font-size: clamp(30px, 8.4vw, 40px); }
  .hero-home { padding-top: 34px; }
  .hero-spec { gap: 20px 26px; }
  .hero-spec div { min-width: 40%; }
  .page-hero { padding-block: 40px 40px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar { padding: 20px 18px; }
  .route { grid-template-columns: minmax(0, 1fr) auto; padding: 20px 2px; gap: 4px 14px; align-items: center; }
  .route-no { grid-column: 1 / -1; font-size: 11.5px; }
  .route h3 { grid-column: 1; grid-row: 2; }
  .route-go { grid-column: 2; grid-row: 2; }
  .route:hover { padding-inline: 2px; }
  .route h3 { font-size: 19px; }
  .route-go { width: 44px; height: 44px; }
  .best-item { grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "thumb name" "thumb price"; gap: 8px 14px; padding: 12px; }
  .best-thumb { grid-area: thumb; align-self: center; }
  .best-item .best-price { grid-area: price; text-align: left; }
  .band-copy { padding: 30px 22px 34px; }
  .shops { grid-template-columns: minmax(0, 1fr); }
  .promise-item { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 20px 0; }
  .face-btn { width: calc(33.333% - 7px); }
  .fx-grid { grid-template-columns: minmax(0, 1fr); }
  /* 모바일 — 프레임을 좌우로 넘겨 본다 */
  .fx-grid.swipe {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .fx-grid.swipe::-webkit-scrollbar { display: none; }
  .fx-grid.swipe .fx-card { flex: 0 0 78%; scroll-snap-align: center; }
  .fx-swipe-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
  }
  .fx-swipe-nav .pager { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--gray); }
  .fx-swipe-btn {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid var(--ink-line);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
  }
  .fx-swipe-btn[disabled] { color: var(--line-2); background: var(--paper-2); }
  .lens-types { grid-template-columns: minmax(0, 1fr); }
  .coating { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equip { grid-template-columns: minmax(0, 1fr); }
  .cmp-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    scrollbar-width: none;
  }
  .cmp-tabs::-webkit-scrollbar { display: none; }
  html:not(.js) .cmp-tabs { display: none; }
  .cmp-tab {
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    background: var(--white);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
  }
  .cmp-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .js .cmp { min-width: 0; }
  .js .cmp-scroll { overflow-x: visible; }
  .js .cmp tbody th { width: 44%; }
  .js .cmp[data-col="1"] .c2, .js .cmp[data-col="1"] .c3, .js .cmp[data-col="1"] .c4,
  .js .cmp[data-col="2"] .c1, .js .cmp[data-col="2"] .c3, .js .cmp[data-col="2"] .c4,
  .js .cmp[data-col="3"] .c1, .js .cmp[data-col="3"] .c2, .js .cmp[data-col="3"] .c4,
  .js .cmp[data-col="4"] .c1, .js .cmp[data-col="4"] .c2, .js .cmp[data-col="4"] .c3 { display: none; }
  .form-card { padding: 24px 20px 28px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
  .form-actions .btn { width: 100%; }
  .done { padding: 22px 20px; }
  .done dl { grid-template-columns: 78px minmax(0, 1fr); }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .site-footer { padding-top: 48px; }
  .foot-legal { flex-direction: column; gap: 18px; }
  .foot-legal-right { justify-items: start; }
  .lens-step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 20px 0; }
  .tint-lens-wrap { width: 100%; max-width: 300px; }
  .fx-panel { width: 100vw; top: auto; height: 88vh; border-left: 0; border-top: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; transform: translateY(101%); }
  .fx-panel.open { transform: none; }
}

@media (max-width: 420px) {
  .face-btn { width: calc(50% - 5px); }
  .slot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-day { min-height: 44px; font-size: 13px; }
  .foot-tel { font-size: 21px; }
  .best-item { grid-template-columns: 70px minmax(0, 1fr); }
}

/* 데스크톱 전용 요소 */
.fx-side-close { display: none; }
.fx-filter-btn { display: none; }

/* 자바스크립트 유무에 따른 대체 — 본문과 링크는 JS 없이도 그대로 동작한다 */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
html:not(.js) .js-only { display: none; }
html:not(.js) .cal { display: none; }
html.js .date-native { display: none; }

/* =============================================================== 모션 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .progress { display: none; }
  .lens-step { opacity: 1; }
  /* 진행 애니메이션 대신 최종 상태(분해된 단면)를 즉시 보여 준다 */
  .lens-layer, html.no-st .lens-layer { transform: translateX(var(--x, 0px)) !important; animation: none !important; }
}

@media print {
  .site-header, .drawer, .scrim, .mbar, .to-top, .toast, .fx-side, .fx-panel { display: none !important; }
  body { background: #fff; padding: 0; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
