/* =========================================================
   마리악기 — style.css
   색: 간판의 보라(브랜드), 니스 호박색(포인트), 수리표 마닐라지(소재)
   글꼴: Song Myung(제목) + IBM Plex Sans KR(본문)
   ========================================================= */

:root {
  --violet: #4B2E93;
  --violet-strong: #3A2279;
  --on-violet: #FFFFFF;
  --night: #231544;
  --night-line: rgba(255, 255, 255, .14);
  --on-night: #F4F0FB;
  --on-night-2: #C9BFE6;
  --paper: #F5F3F9;
  --paper-2: #ECE7F4;
  --surface: #FFFFFF;
  --ink: #1C1630;
  --ink-2: #4D4664;
  --line: #DAD3E7;
  --varnish: #A95D17;
  --tag: #EADBB6;
  --tag-2: #E2CFA2;
  --tag-ink: #2C2116;
  --tag-ink-2: #5A4831;
  --tag-line: #8C7650;
  --tag-ring: #D4BE8E;
  --shadow-tag: 0 10px 16px rgba(60, 40, 10, .14);

  --font-display: "Song Myung", "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", serif;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 64px;

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --violet: #B09BF3;
    --violet-strong: #C4B4F7;
    --on-violet: #170F2C;
    --night: #211548;
    --night-line: rgba(255, 255, 255, .12);
    --on-night: #F4F0FB;
    --on-night-2: #C3B8E4;
    --paper: #120D1F;
    --paper-2: #191329;
    --surface: #1E1834;
    --ink: #EEEAF7;
    --ink-2: #B7AFCD;
    --line: #342C4E;
    --varnish: #E3A25C;
    --tag: #D9C59C;
    --tag-2: #CDB78A;
    --tag-ink: #231A10;
    --tag-ink-2: #4F402B;
    --tag-line: #BFA77A;
    --tag-ring: #C2AB7C;
    --shadow-tag: 0 10px 16px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --violet: #B09BF3;
  --violet-strong: #C4B4F7;
  --on-violet: #170F2C;
  --night: #211548;
  --night-line: rgba(255, 255, 255, .12);
  --on-night: #F4F0FB;
  --on-night-2: #C3B8E4;
  --paper: #120D1F;
  --paper-2: #191329;
  --surface: #1E1834;
  --ink: #EEEAF7;
  --ink-2: #B7AFCD;
  --line: #342C4E;
  --varnish: #E3A25C;
  --tag: #D9C59C;
  --tag-2: #CDB78A;
  --tag-ink: #231A10;
  --tag-ink-2: #4F402B;
  --tag-line: #BFA77A;
  --tag-ring: #C2AB7C;
  --shadow-tag: 0 10px 16px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--varnish); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; 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: 20px; height: 20px; flex: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.small { font-size: .875rem; color: var(--ink-2); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; text-decoration: none; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--line);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 41;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
}
.header-row { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid currentColor;
  outline: 1px solid currentColor;
  outline-offset: 2.5px;
  color: var(--violet);
  font-family: var(--font-display);
  font-size: .875rem;
  letter-spacing: .04em;
  line-height: 1;
}
.brand-name { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: .06em; line-height: 1; }
.nav { display: none; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--violet);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-call .ico { width: 18px; height: 18px; }
.header-call .num { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.menu-btn .ico { width: 24px; height: 24px; }

@media (max-width: 959px) {
  .site-header[data-menu="open"] .nav {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 4px var(--gutter) 14px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(20, 12, 40, .35);
  }
  .site-header[data-menu="open"] .nav a { padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; text-decoration: none; }
  .site-header[data-menu="open"] .nav a:last-child { border-bottom: 0; }
}
@media (min-width: 960px) {
  .nav { display: flex; gap: 26px; margin-right: 10px; }
  .nav a { padding: 6px 0; border-bottom: 1.5px solid transparent; color: var(--ink-2); font-size: .9375rem; text-decoration: none; }
  .nav a:hover { color: var(--ink); border-bottom-color: var(--violet); }
  .menu-btn { display: none; }
  .header-call .num { display: inline; }
  .header-call .short { display: none; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn .ico { width: 19px; height: 19px; }
.btn-primary { background: var(--violet); color: var(--on-violet); }
.btn-primary:hover { background: var(--violet-strong); }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-light { background: #FFFFFF; color: #231544; }
.btn-light:hover { background: #EFEAFB; }
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .6); color: #FFFFFF; }
.btn-ghost-light:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .9375rem; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(84svh, 760px);
  overflow: hidden;
  background: var(--night);
  color: #FFFFFF;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 44% 50%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 17, 60, .96) 0%, rgba(30, 17, 60, .8) 36%, rgba(30, 17, 60, .25) 68%, rgba(30, 17, 60, .05) 100%);
}
.hero-body { width: 100%; padding: 170px var(--gutter) clamp(36px, 9vw, 64px); }
.hero-text { width: 100%; max-width: 36rem; container-type: inline-size; }
.hero h1 {
  margin: 0 0 .42em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw + 1.2rem, 5.1rem);
  font-size: min(5.1rem, 13cqi); /* 첫 줄이 꺾이지 않도록 칸 너비에 맞춤 */
  line-height: 1.14;
  letter-spacing: -.01em;
}
.hero h1 .line { display: block; white-space: nowrap; }
.hero p { max-width: 27em; margin: 0 0 30px; color: rgba(255, 255, 255, .9); font-size: clamp(1.0625rem, .35vw + 1rem, 1.25rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: minmax(500px, 1fr) 1.15fr; align-items: stretch; min-height: min(84vh, 800px); }
  .hero-media { position: relative; inset: auto; grid-column: 2; grid-row: 1; z-index: auto; }
  .hero-media img { position: absolute; inset: 0; object-position: 50% 55%; }
  .hero-media::after { background: linear-gradient(90deg, rgba(35, 21, 68, .55), rgba(35, 21, 68, 0) 30%); }
  .hero-body {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    padding: 80px clamp(36px, 3vw, 56px) 80px max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-settle 1.8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > * { animation: hero-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .12s; }
  .hero-text > :nth-child(3) { animation-delay: .24s; }
  .hero-text > :nth-child(4) { animation-delay: .36s; }
}
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- 영업 정보 띠 ---------- */
.infoband { background: var(--night); color: var(--on-night); border-top: 1px solid var(--night-line); }
.infoband-row { display: grid; }
.info-item {
  display: grid;
  grid-template-columns: 5.2em 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--night-line);
  color: inherit;
  text-decoration: none;
}
.info-item:last-child { border-bottom: 0; }
.info-item .label { color: var(--on-night-2); font-size: .875rem; }
.info-item .value { font-weight: 500; line-height: 1.5; }
.info-item .value small { color: var(--on-night-2); font-size: .875rem; font-weight: 400; }
a.info-item:hover .value { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 760px) {
  .infoband-row { grid-template-columns: repeat(3, 1fr); }
  .info-item { grid-template-columns: 1fr; gap: 4px; padding: 24px 28px; border-bottom: 0; border-left: 1px solid var(--night-line); }
  .info-item:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- 섹션 공통 ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section--tint { background: var(--paper-2); }
.section--night { background: var(--night); color: var(--on-night); }
.section-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section h2 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.05rem, 2.4vw + 1.3rem, 3.15rem);
  line-height: 1.22;
  letter-spacing: -.01em;
}
.lead { max-width: 34em; margin: 0; color: var(--ink-2); font-size: clamp(1.0625rem, .3vw + 1rem, 1.1875rem); }
.section--night .lead { color: var(--on-night-2); }
.section h3 { margin: 0 0 .45em; font-size: 1.1875rem; font-weight: 600; line-height: 1.45; }

/* ---------- 소개 ---------- */
.about-grid { display: grid; gap: 44px; }
.about-text p { max-width: 33em; }
.facts { margin: 32px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); font-size: .9375rem; }
.facts dd { margin: 0; font-weight: 500; }
.about-photos { display: block; }
.about-photos .fig-main { grid-column: 1 / -1; }
.figure { margin: 0; }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.figure figcaption { margin-top: 10px; color: var(--ink-2); font-size: .875rem; line-height: 1.5; }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1fr 1.08fr; gap: clamp(48px, 6vw, 88px); align-items: start; }
  .about-photos { margin-top: 8px; }
}

/* ---------- 수리: 수리표(태그) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 38px; }
.filter {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.tags { display: grid; gap: 28px 22px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tags { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tag { position: relative; padding-left: 14px; filter: drop-shadow(var(--shadow-tag)); --tilt: -.7deg; }
.tag:nth-child(2n) { --tilt: .6deg; }
.tag:nth-child(3n) { --tilt: -.25deg; }
/* 구멍으로 들어가는 끈 */
.tag::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  top: -18px;
  width: 36px;
  height: calc(50% + 18px);
  border-left: 1.5px solid var(--tag-line);
  border-bottom: 1.5px solid var(--tag-line);
  border-bottom-left-radius: 26px;
  pointer-events: none;
}
.tag-card {
  position: relative;
  height: 100%;
  padding: 20px 20px 20px 46px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .07 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(170deg, var(--tag), var(--tag-2));
  color: var(--tag-ink);
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
  transform: rotate(var(--tilt));
  transform-origin: 20px 50%;
}
/* 펀치 구멍과 보강 링 */
.tag-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--paper-2);
  box-shadow: 0 0 0 4px var(--tag-ring), inset 0 1px 2px rgba(0, 0, 0, .3);
}
.tag-cat { display: inline-block; margin: 0 0 12px; padding: 1px 8px; border: 1px solid currentColor; border-radius: 3px; color: var(--tag-ink-2); font-size: .75rem; line-height: 1.6; }
.tag-symptom { margin: 0; text-indent: -.42em; font-family: var(--font-display); font-size: clamp(1.2rem, .5vw + 1.08rem, 1.3rem); line-height: 1.42; }
.tag-fix { margin: 16px 0 4px; padding-top: 14px; border-top: 1.5px dashed var(--tag-line); font-weight: 600; }
.tag-note { margin: 0; color: var(--tag-ink-2); font-size: .9375rem; line-height: 1.65; }
@media (prefers-reduced-motion: no-preference) {
  .tag.swing .tag-card { animation: tag-swing .75s cubic-bezier(.3, 1.5, .5, 1) both; }
}
@keyframes tag-swing { from { transform: rotate(calc(var(--tilt) - 5deg)); } to { transform: rotate(var(--tilt)); } }

/* ---------- 수리 진행 순서 ---------- */
.process { margin-top: clamp(64px, 8vw, 104px); }
.section .process-title { margin: 0 0 30px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.1rem); line-height: 1.3; }
.steps { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding-bottom: 26px; counter-increment: step; }
.step::before { content: counter(step); grid-row: 1 / span 2; color: var(--varnish); font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.step::after { content: ""; position: absolute; left: 15px; top: 48px; bottom: 10px; width: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h4 { margin: 2px 0 4px; font-size: 1.0625rem; font-weight: 600; }
.step p { margin: 0; color: var(--ink-2); font-size: .975rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .step::before { grid-row: auto; margin-bottom: 18px; }
  .step::after { left: 46px; right: -14px; top: 17px; bottom: auto; width: auto; height: 1px; }
}

.note { display: grid; gap: 18px; margin-top: clamp(40px, 5vw, 56px); padding: 24px; background: var(--surface); border-left: 3px solid var(--varnish); }
.note p { max-width: 40em; margin: 0; }
.note-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .note { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; } }

/* ---------- 악기 판매 ---------- */
.rows { display: grid; gap: clamp(48px, 7vw, 96px); }
.row { display: grid; gap: 22px; align-items: center; margin: 0; }
.row-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.row-media--type {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 3;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
  border-radius: 3px;
  background: var(--night);
  color: var(--on-night);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw + 1rem, 3.4rem);
  line-height: 1.16;
  box-shadow:
    inset 0 0 0 10px var(--night), inset 0 0 0 11px rgba(255, 248, 236, .32),
    inset 0 0 0 14px var(--night), inset 0 0 0 15px rgba(255, 248, 236, .18);
}
/* 관악기 몸통의 톤홀 */
.row-media--type::after {
  content: "";
  position: absolute;
  top: 9%;
  bottom: 9%;
  right: clamp(26px, 7%, 60px);
  width: 26px;
  background: radial-gradient(circle, rgba(255, 255, 255, .17) 0 9px, transparent 10px) center top / 26px 54px repeat-y;
}
.row-text .items { margin-bottom: .5em; color: var(--ink); font-weight: 500; }
.row-text p { max-width: 31em; color: var(--ink-2); }
.row-text p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .row { grid-template-columns: 1.12fr 1fr; gap: clamp(40px, 5vw, 72px); }
  .row:nth-child(even) .row-media { order: 2; }
}

.brands { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; margin: clamp(52px, 6vw, 76px) 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.brands-label { margin-right: 4px; color: var(--ink-2); font-size: .875rem; }
.brand-word { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .08em; }

.sizes { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.sizes summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; cursor: pointer; list-style: none; }
.sizes summary::-webkit-details-marker { display: none; }
.sizes .chev { transition: transform .2s ease; }
.sizes[open] .chev { transform: rotate(180deg); }
.sizes-body { display: grid; gap: 30px; padding: 0 22px 26px; }
.sizes-body > div > p { max-width: 36em; color: var(--ink-2); font-size: .975rem; }
.size-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.size-table caption { padding: 0 0 8px; text-align: left; font-weight: 600; }
.size-table th, .size-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.size-table th { color: var(--ink-2); font-size: .8125rem; font-weight: 500; }
.size-table td:first-child { font-family: var(--font-display); font-size: 1.125rem; }
.size-table + .small, .sizes-body .small { margin-top: 12px; }
@media (min-width: 900px) { .sizes-body { grid-template-columns: 1.35fr 1fr; gap: 48px; } }

/* ---------- 매장 사진 ---------- */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.gallery-head .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.strip-nav { display: none; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.round-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--night-line); border-radius: 50%; background: transparent; color: var(--on-night); cursor: pointer; }
.round-btn:hover { background: rgba(255, 255, 255, .08); }
.strip {
  --h: clamp(230px, 58vw, 420px);
  display: flex;
  gap: 14px;
  padding: 0 var(--gutter) 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.shot { flex: none; width: calc(var(--h) * 4 / 3); margin: 0; scroll-snap-align: start; }
.shot.portrait { width: calc(var(--h) * 3 / 4); }
.shot button { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 3px; background: none; cursor: zoom-in; }
.shot img { width: 100%; height: var(--h); object-fit: cover; }
.shot figcaption { margin-top: 10px; color: var(--on-night-2); font-size: .875rem; }
@media (min-width: 900px) {
  .strip-nav { display: flex; }
  .strip {
    padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  }
}

/* ---------- 후기 ---------- */
.reviews-grid { display: grid; gap: 40px; }
.score-block { display: grid; gap: 8px; margin-top: 26px; }
.score { margin: 0; color: var(--violet); font-family: var(--font-display); font-size: clamp(4rem, 6vw + 2rem, 6.25rem); line-height: .95; }
.stars {
  width: max-content;
  margin: 0;
  background: linear-gradient(90deg, var(--varnish) var(--pct), var(--line) var(--pct));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.375rem;
  letter-spacing: 3px;
  line-height: 1;
}
.score-meta { margin: 6px 0 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }
.themes { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.themes li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.themes p { max-width: 36em; margin: 0; color: var(--ink-2); }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (min-width: 900px) {
  .reviews-grid { grid-template-columns: .85fr 1.4fr; gap: clamp(48px, 6vw, 96px); }
  .themes { margin-top: 10px; }
}

/* ---------- 자주 묻는 질문 ---------- */
.faq-grid { display: grid; gap: 24px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 21px 48px 21px 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(currentColor, currentColor) center / 16px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 16px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.answer { padding: 0 0 22px; }
.answer p { max-width: 38em; margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.9fr; gap: clamp(48px, 6vw, 96px); align-items: start; } }

/* ---------- 오시는 길 ---------- */
.visit-grid { display: grid; gap: 40px; }
.address { margin: 0 0 12px; font-size: clamp(1.375rem, .8vw + 1.1rem, 1.75rem); font-weight: 600; line-height: 1.45; }
.wayfind { max-width: 30em; color: var(--ink-2); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 30px; }
.hours { width: 100%; max-width: 26rem; border-collapse: collapse; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.hours tr:first-child th, .hours tr:first-child td { border-top: 1px solid var(--line); }
.hours th { color: var(--ink-2); }
.hours td { font-weight: 600; text-align: right; }
.hours-note { margin: 10px 0 28px; }
.map-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 30rem; }
.map-link { display: grid; place-items: center; min-height: 52px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: .9375rem; font-weight: 600; text-align: center; text-decoration: none; }
.map-link:hover { border-color: var(--violet); color: var(--violet); }
.visit-media { display: grid; gap: 16px; }
.visit-media .figure img { aspect-ratio: auto; }
.map-embed { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 3px; background: var(--paper-2); }
@media (min-width: 960px) { .visit-grid { grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 6vw, 88px); align-items: start; } }

/* ---------- 푸터 ---------- */
.site-footer { padding: 64px 0 32px; background: var(--night); color: var(--on-night); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand .brand-mark { width: 42px; height: 42px; color: var(--on-night); font-size: 1rem; }
.footer-name { margin: 16px 0 4px; font-family: var(--font-display); font-size: 1.75rem; letter-spacing: .06em; }
.footer-tag { margin: 0; color: var(--on-night-2); font-size: .9375rem; }
.footer-info p { margin: 0 0 4px; color: var(--on-night-2); }
.footer-info a { color: var(--on-night); font-weight: 600; text-decoration: none; }
.footer-social { display: grid; gap: 18px; align-content: start; justify-items: start; }
.sns { display: flex; gap: 10px; }
.sns a { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--night-line); border-radius: 50%; color: var(--on-night); }
.sns a:hover { background: rgba(255, 255, 255, .08); }
.sns svg { width: 21px; height: 21px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--night-line); color: var(--on-night-2); font-size: .8125rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr auto; gap: 56px; } }
@media (max-width: 959px) { .site-footer { padding-bottom: 96px; } }

/* ---------- 모바일 하단 바 ---------- */
.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-top: 1px solid var(--line);
}
.actionbar a, .actionbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 60px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: .75rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.actionbar .ico { width: 22px; height: 22px; }
.actionbar .primary { color: var(--violet); font-weight: 700; }
@media (min-width: 960px) { .actionbar { display: none; } }

/* ---------- 공유·길찾기 시트 ---------- */
.sheet {
  width: 100%;
  max-width: 520px;
  max-height: 88dvh;
  margin: auto auto 0;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  color: var(--ink);
}
.sheet::backdrop { background: rgba(18, 10, 36, .5); }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 16px; } }
.sheet-inner { padding: 20px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sheet-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 10px; background: none; color: inherit; cursor: pointer; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; }
.share-grid button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; font-size: .8125rem; cursor: pointer; }
.share-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--paper-2); color: var(--ink); }
.share-ico svg { width: 24px; height: 24px; }
.s-kakao { background: #FEE500; color: #191600; }
.s-naver { background: #03C75A; color: #FFFFFF; }
.s-fb { background: #1877F2; color: #FFFFFF; }
.s-x { background: var(--ink); color: var(--paper); }
.sheet-hint { margin: 18px 0 0; color: var(--ink-2); font-size: .8125rem; }
.sheet-addr { margin: -6px 0 16px; color: var(--ink-2); }
.dir-list { display: grid; border-top: 1px solid var(--line); }
.dir-item { display: flex; align-items: center; width: 100%; min-height: 56px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font-size: 1rem; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }

/* ---------- 사진 크게 보기 ---------- */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0E0918; color: #FFFFFF; }
.lightbox::backdrop { background: #0E0918; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px 20px; color: rgba(255, 255, 255, .7); font-size: .875rem; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 8px; touch-action: pan-y; }
.lb-img { width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.lb-bottom { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 16px); }
.lb-cap { margin: 0; color: rgba(255, 255, 255, .86); font-size: .9375rem; text-align: center; }
.lightbox .round-btn { border-color: rgba(255, 255, 255, .25); color: #FFFFFF; }

/* ---------- 알림 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 84px);
  z-index: 60;
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: .9375rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 32px; } }
.nw { white-space: nowrap; }

/* =========================================================
   세부 다듬기
   ========================================================= */
::selection { background: var(--violet); color: var(--on-violet); }
p, .lead, figcaption { text-wrap: pretty; }
.hours td, .info-item .value, .score, .size-table td { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  main img { transition: opacity .6s ease; }
}
img.is-loading { opacity: 0; }

/* 헤더: 스크롤하면 그림자, 지금 보는 섹션 표시 */
.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 10px 28px -22px rgba(20, 12, 40, .55); }
@media (min-width: 960px) {
  .nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--violet); }
}

/* 퍼플링: 바이올린 가장자리의 이중 상감선(간판의 이중 테두리와 같은 모양) */
.pf { position: relative; display: block; overflow: hidden; border-radius: 3px; }
.pf img { border-radius: 0; }
.pf::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 248, 236, .55);
  outline: 1px solid rgba(255, 248, 236, .28);
  outline-offset: 3px;
  pointer-events: none;
}
.figure .pf img { aspect-ratio: auto; }

/* 히어로: 데스크톱 사진에 이중선, 위치 한 줄 */
.hero .hero-place { display: none; }
@media (min-width: 960px) {
  .hero-media::before {
    content: "";
    position: absolute;
    inset: 22px;
    z-index: 1;
    border: 1px solid rgba(255, 248, 236, .5);
    outline: 1px solid rgba(255, 248, 236, .24);
    outline-offset: 4px;
    pointer-events: none;
  }
  .hero .hero-place {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 48px 0 0;
    color: rgba(255, 255, 255, .66);
    font-size: .9375rem;
  }
  .hero .hero-place::before { content: ""; width: 32px; height: 1px; background: currentColor; }
}

/* 큰 사진 + 겹쳐 놓은 디테일 컷 */
.duo-fig { margin: 0; }
.duo { position: relative; padding-bottom: 15%; }
.duo-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.duo-inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 39%;
  padding: 6px;
  background: var(--paper);
  border-radius: 4px;
  box-shadow: 0 22px 40px -22px rgba(28, 16, 52, .6);
}
.duo-inset img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.duo-fig figcaption { max-width: 56%; margin-top: -9%; color: var(--ink-2); font-size: .875rem; line-height: 1.5; }
@media (min-width: 960px) {
  .duo-inset { right: -28px; width: 38%; padding: 8px; }
  .about-photos { margin-top: 0; }
}
.row-media.pf img { border-radius: 0; }

/* 수리: 실제 브릿지 사진 띠 */
.proof { display: grid; grid-template-columns: 1fr 1.333fr; gap: 12px; align-items: end; margin-top: clamp(56px, 7vw, 88px); }
.proof figure { margin: 0; }
.proof img { width: 100%; object-fit: cover; }
.proof-a img { aspect-ratio: 1; }
.proof-b img { aspect-ratio: 4 / 3; }
.proof-cap { grid-column: 1 / -1; margin: 4px 0 0; color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 900px) {
  .proof { grid-template-columns: 1fr 1.333fr .9fr; gap: 20px; }
  .proof-cap { grid-column: auto; max-width: 15em; padding: 0 0 6px 8px; border-left: 1px solid var(--line); padding-left: 18px; }
}

/* 사진 넘김 진행 막대 */
.strip-progress { position: relative; height: 2px; margin-top: 22px; overflow: hidden; background: var(--night-line); border-radius: 2px; }
.strip-progress span { position: absolute; top: 0; bottom: 0; left: 0; width: 20%; background: var(--on-night-2); border-radius: 2px; transition: transform .12s linear; }

/* 푸터 큰 워드마크 */
.footer-mark {
  margin-top: 56px;
  overflow: hidden;
  color: rgba(255, 255, 255, .07);
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 22vw, 15rem);
  line-height: .9;
  letter-spacing: .03em;
  white-space: nowrap;
  user-select: none;
}
.footer-mark + .footer-bottom { margin-top: 8px; }
