/* ============================================================
   ONFIT GOLF FITTING LAB — 카본 블랙 × 시그널 레드 퍼포먼스 랩
   ============================================================ */

:root {
  --bg: oklch(15% 0.004 260);          /* 카본 블랙 */
  --bg-2: oklch(18.5% 0.005 260);      /* 그라파이트 패널 */
  --bg-3: oklch(22% 0.006 260);
  --ink: oklch(96% 0.003 260);
  --ink-2: oklch(78% 0.005 260);
  --mut: oklch(60% 0.006 260);
  --red: oklch(58% 0.21 27);           /* 시그널 레드 */
  --red-hi: oklch(66% 0.22 27);
  --line: oklch(30% 0.005 260);
  --line-soft: oklch(24% 0.005 260);

  --disp: 'Oswald', 'Pretendard Variable', sans-serif;
  --sans: 'Pretendard Variable', Pretendard, 'Malgun Gothic', sans-serif;

  --wrap: min(1200px, calc(100% - clamp(2.5rem, 7vw, 7rem)));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.04rem;
  line-height: 1.72;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { color: var(--ink); font-weight: 800; }
.wrap { width: var(--wrap); margin-inline: auto; }

h1, h2 { font-weight: 800; letter-spacing: -0.028em; line-height: 1.22; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }

/* ---------- 마이크로 라벨 ---------- */
.overline, .kicker, .p-no, .lab-role, .v-list dt, .ro-label, .tick, .brand-tag, .top-call-label {
  font-family: var(--disp);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.kicker { font-size: 0.74rem; color: var(--red-hi); margin-bottom: 1rem; }
.kicker.light { color: var(--red-hi); }
.overline { font-size: 0.78rem; color: var(--ink-2); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-block;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95em 1.9em;
  border: 1px solid transparent;
  transition: 0.22s var(--ease);
}
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-hi); }
.btn-ghost { border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- 톱바 ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 2.2rem;
  padding: 0 clamp(1.2rem, 3.5vw, 3rem);
  height: 68px;
  border-bottom: 1px solid transparent;
  transition: 0.3s var(--ease);
}
.topbar.scrolled {
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-soft);
  height: 58px;
}
.brand { display: flex; align-items: baseline; gap: 0.7rem; }
.brand-mark {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}
.brand-mark::after { content: "."; color: var(--red); }
.brand-tag { font-size: 0.6rem; color: var(--mut); letter-spacing: 0.3em; }
.topnav { display: flex; gap: 1.6rem; margin-left: auto; font-size: 0.88rem; color: var(--ink-2); }
.topnav a:hover { color: #fff; }
.top-call {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25;
  font-family: var(--disp); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.05em;
}
.top-call-label { font-size: 0.56rem; color: var(--red-hi); }
@media (max-width: 960px) { .topnav { display: none; } .top-call { margin-left: auto; } }

/* ---------- 히어로 ---------- */
.hero { position: relative; min-height: 100svh; display: flex; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img,
.hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: 70% center;
  filter: brightness(0.34) saturate(0.8) contrast(1.05);
}
.hero-media video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-media video.playing { opacity: 1; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--bg) 92%, transparent) 25%, color-mix(in oklch, var(--bg) 42%, transparent) 58%, color-mix(in oklch, var(--bg) 14%, transparent) 82%),
    linear-gradient(to bottom, color-mix(in oklch, var(--bg) 60%, transparent), transparent 32%, color-mix(in oklch, var(--bg) 94%, transparent) 96%);
}
.hero-frame {
  position: relative; z-index: 1;
  width: var(--wrap); margin-inline: auto;
  display: flex; flex-direction: column;
  padding-top: clamp(6.5rem, 14vh, 9rem);
}
.hero-copy { max-width: 34rem; }
.hero h1 { font-size: clamp(2.4rem, 5.8vw, 4.3rem); margin: 1.1rem 0 1.3rem; }
.hero-lead { color: var(--ink-2); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }

.hero-readout {
  list-style: none;
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-soft);
  border-inline: 0;
  margin-bottom: 0;
  background: color-mix(in oklch, var(--bg) 55%, transparent);
  backdrop-filter: blur(6px);
}
.hero-readout li {
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.18rem;
}
.hero-readout li + li { border-left: 1px solid var(--line-soft); }
.ro-label {
  font-size: 0.6rem;
  color: var(--red-hi);
  display: flex; align-items: center; gap: 0.55em;
}
.ro-label::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red-hi);
  animation: roPulse 2.4s ease-in-out infinite;
}
.hero-readout li:nth-child(2) .ro-label::before { animation-delay: 0.6s; }
.hero-readout li:nth-child(3) .ro-label::before { animation-delay: 1.2s; }
.hero-readout li:nth-child(4) .ro-label::before { animation-delay: 1.8s; }
@keyframes roPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in oklch, var(--red) 55%, transparent); }
  50% { opacity: 0.45; box-shadow: 0 0 0 4px transparent; }
}
.ro-value {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.ro-sub { font-size: 0.76rem; color: var(--mut); }

/* 슬롯머신식 숫자 롤 */
.odo {
  display: inline-flex;
  overflow: hidden;
  height: 1.15em;
  vertical-align: bottom;
}
.odo-col { display: inline-block; }
.odo-strip {
  display: flex;
  flex-direction: column;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.odo-strip > span { height: 1.15em; line-height: 1.15; }
@media (prefers-reduced-motion: reduce) {
  .odo-strip { transition: none; }
}
@media (max-width: 880px) {
  .hero-readout { grid-template-columns: 1fr 1fr; }
  .hero-readout li:nth-child(3) { border-left: 0; }
  .hero-readout li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

/* ---------- 공통 섹션 ---------- */
main > section:not(.hero):not(.moi) { padding-block: clamp(4.5rem, 10vw, 8rem); }
.sec-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.sec-note { color: var(--mut); font-size: 0.9rem; margin-top: 0.6rem; }

/* ---------- Approach (스플릿) ---------- */
.approach { border-bottom: 1px solid var(--line-soft); }
.split { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: clamp(2.4rem, 6vw, 5.5rem); align-items: center; }
.split-media { position: relative; }
.split-media img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.tick {
  display: block;
  font-size: 0.62rem;
  color: var(--mut);
  letter-spacing: 0.18em;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  margin-top: 0.7rem;
}
.split-body h2 { margin-bottom: 1.2rem; }
.split-body > p { color: var(--ink-2); max-width: 36em; }
.split-body > p + p { margin-top: 1em; }
.check-list {
  list-style: none;
  margin-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}
.check-list li {
  padding: 0.8em 0 0.8em 1.6em;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0.2em; top: 1.28em;
  width: 0.55em; height: 0.55em;
  border: 1px solid var(--red);
  transform: rotate(45deg);
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split-media { max-width: 420px; } }

/* ---------- 서비스 (스펙시트 카드) ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.svc-card { background: var(--bg-2); padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; }
.svc-card.featured { background: var(--bg-3); }
.svc-card header { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.svc-code {
  font-family: var(--disp); font-weight: 600; font-size: 0.8rem;
  color: var(--red-hi);
  border: 1px solid color-mix(in oklch, var(--red) 45%, transparent);
  width: 2em; height: 2em;
  display: grid; place-content: center;
  flex-shrink: 0;
}
.svc-card h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; }
.only-badge {
  display: inline-block;
  font-family: var(--disp);
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.14em;
  color: #fff; background: var(--red);
  padding: 0.3em 0.7em;
  margin-left: 0.5em;
  vertical-align: 0.2em;
  white-space: nowrap;
}
.svc-desc { font-size: 0.88rem; color: var(--mut); line-height: 1.7; margin-bottom: 1.3rem; }
.svc-table { width: 100%; border-collapse: collapse; margin-top: auto; }
.svc-table th, .svc-table td { padding: 0.62em 0; border-top: 1px solid var(--line-soft); }
.svc-table th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: 0.94rem; }
.svc-table td {
  text-align: right;
  font-family: var(--disp);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.unit { font-size: 0.76em; color: var(--mut); margin-left: 0.35em; }
.svc-foot { margin-top: 1.3rem; font-size: 0.82rem; color: var(--mut); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- 프로세스 ---------- */
.process { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.proto {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.6rem;
  counter-reset: step;
}
.proto li { position: relative; padding-top: 1.1rem; border-top: 2px solid var(--line); }
.proto li::before {
  content: "";
  position: absolute; top: -2px; left: 0;
  width: 2.4rem; height: 2px;
  background: var(--red);
}
.step-art {
  width: 72px; height: 72px;
  color: var(--ink-2);
  display: block;
  margin-bottom: 1rem;
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}
.step-art .acc { stroke: var(--red-hi); }
.step-art .acc[fill="currentColor"] { fill: var(--red-hi); stroke: none; }
@media (hover: hover) {
  .proto li:hover .step-art { color: var(--ink); transform: translateY(-3px); }
}
.p-no { font-size: 0.62rem; color: var(--red-hi); }
.proto h3 { font-size: 1.05rem; font-weight: 800; margin: 0.35rem 0 0.4rem; }
.proto p { font-size: 0.85rem; color: var(--mut); line-height: 1.65; }
.proto-media { margin-top: clamp(2.5rem, 5vw, 4rem); }
.proto-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 35%; }
@media (max-width: 960px) { .proto { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .proto { grid-template-columns: 1fr; gap: 1.2rem; } }

/* ---------- IMPACT (+20YD) ---------- */
.hero h1 .accent { font-style: normal; color: var(--red-hi); }
.impact { border-top: 1px solid var(--line-soft); }
.impact-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.impact-num {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(5.5rem, 14vw, 11rem);
  line-height: 0.95;
  color: var(--red);
  letter-spacing: -0.02em;
  border-right: 1px solid var(--line-soft);
  padding-right: clamp(2rem, 5vw, 4.5rem);
}
.impact-num span {
  display: block;
  font-size: 0.22em;
  letter-spacing: 0.3em;
  color: var(--mut);
  margin-top: 0.3em;
}
.impact-body h2 { margin-bottom: 1rem; }
.impact-body > p { color: var(--ink-2); max-width: 34em; }
.impact-q {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink) !important;
  margin: 1.2rem 0 1.4rem;
}
.impact-src { font-size: 0.75rem; color: var(--mut) !important; margin-top: 1.1rem; letter-spacing: 0.03em; }
@media (max-width: 760px) {
  .impact-grid { grid-template-columns: 1fr; }
  .impact-num { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 0 0 1rem; }
  .impact-num span { display: inline-block; margin-left: 0.3em; }
}

/* ---------- MOI (풀블리드) ---------- */
.moi { position: relative; padding-block: clamp(5.5rem, 13vw, 10rem); overflow: hidden; }
.moi-media { position: absolute; inset: 0; }
.moi-media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.moi-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, color-mix(in oklch, var(--bg) 93%, transparent) 30%, color-mix(in oklch, var(--bg) 55%, transparent) 62%, color-mix(in oklch, var(--bg) 25%, transparent));
}
.moi-body { position: relative; z-index: 1; }
.moi h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 1.6rem; }
.moi-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); max-width: 58rem; color: var(--ink-2); margin-bottom: 2.2rem; }
@media (max-width: 760px) { .moi-cols { grid-template-columns: 1fr; } }

/* ---------- LAB ---------- */
.lab-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.9fr;
  gap: clamp(2rem, 4.5vw, 3.6rem);
  align-items: start;
}
.lab-role { font-size: 0.64rem; color: var(--red-hi); margin-bottom: 0.9rem; }
.lab-fitter h3 { font-size: 1.9rem; font-weight: 800; margin-bottom: 0.9rem; }
.cred { list-style: none; border-top: 1px solid var(--line-soft); margin-bottom: 1.4rem; }
.cred li {
  padding: 0.7em 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem;
}
.cred li span { display: block; font-size: 0.78rem; color: var(--mut); }
.cert-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.equip-list { list-style: none; border-top: 1px solid var(--line-soft); }
.equip-list li { padding: 0.85em 0; border-bottom: 1px solid var(--line-soft); }
.equip-list strong { display: block; font-size: 0.97rem; font-weight: 700; }
.equip-list span { font-size: 0.8rem; color: var(--mut); }
.brand-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.brand-list li {
  position: relative;
  font-family: var(--disp);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  padding: 0.75em 0.9em 0.65em;
  overflow: hidden;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.brand-list li::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bc), color-mix(in oklch, var(--bc) 25%, transparent));
}
.brand-list li span {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mut);
  margin-top: 0.15em;
}
@media (hover: hover) {
  .brand-list li:hover {
    color: #fff;
    border-color: color-mix(in oklch, var(--bc) 55%, var(--line));
  }
}
.brand-note { font-size: 0.85rem; color: var(--mut); line-height: 1.7; }
@media (max-width: 960px) { .lab-grid { grid-template-columns: 1fr 1fr; } .lab-brands { grid-column: 1 / -1; } }
@media (max-width: 640px) { .lab-grid { grid-template-columns: 1fr; } }

/* ---------- 사진 & 갤러리 ---------- */
.photo { position: relative; overflow: hidden; background: var(--bg-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* 호버 인터랙션 — 포인터 기기 전용 (터치는 제외) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .photo img,
  .split-media img,
  .proto-media img {
    transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
    will-change: transform;
  }
  .photo:hover img,
  .split-media:hover img { transform: scale(1.05); }
  .proto-media:hover img { transform: scale(1.03); }

  .gal-grid .photo .tick {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .gal-grid .photo:hover .tick { opacity: 1; transform: none; }
  .gal-grid .photo::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(transparent 55%, #000c);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
  }
  .gal-grid .photo:hover::after { opacity: 1; }

  .svc-card { transition: background 0.35s var(--ease), transform 0.35s var(--ease); }
  .svc-card:hover { background: oklch(25% 0.008 262); transform: translateY(-4px); }
}
.photo img.missing { display: none; }
.photo:has(img.missing) { display: none; }   /* 실제 사진 없으면 슬롯 자체 숨김 */
section[hidden] { display: none !important; }

.gallery { border-top: 1px solid var(--line-soft); }
.gal-slider {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
}
.gal-slider::before,
.gal-slider::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: clamp(2rem, 8vw, 7rem);
  z-index: 2;
  pointer-events: none;
}
.gal-slider::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.gal-slider::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.gal-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: galslide 55s linear infinite;
}
.gal-slider:hover .gal-track { animation-play-state: paused; }
@keyframes galslide {
  to { transform: translateX(calc(-50% - 5px)); }
}
.gal-track .photo {
  height: clamp(220px, 30vw, 320px);
  flex-shrink: 0;
}
.gal-track .photo img { height: 100%; width: auto; display: block; }
.gal-track .photo .tick { position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.5rem; border-top: 0; color: #fffc; text-shadow: 0 1px 6px #000c; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .gal-slider { overflow-x: auto; }
  .gal-track { animation: none; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq-list { max-width: 52rem; }
.faq-list details { border-bottom: 1px solid var(--line-soft); }
.faq-list details:first-child { border-top: 1px solid var(--line-soft); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 2.4rem 1.05rem 0;
  font-weight: 700;
  font-size: 1.02rem;
  position: relative;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 0.2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--disp);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--red-hi);
  transition: transform 0.25s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--red-hi); }
.faq-list details p {
  padding: 0 0 1.2rem;
  color: var(--ink-2);
  font-size: 0.95rem;
  max-width: 44em;
}

/* ---------- 지도 ---------- */
.map-frame {
  margin-top: 1.6rem;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-3);
}
.map-frame iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(1) invert(0.9) contrast(0.92);
}

/* ---------- VISIT ---------- */
.visit { border-top: 1px solid var(--line-soft); }
.visit-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.visit h2 { margin-bottom: 1.6rem; }
.v-list div {
  display: grid; grid-template-columns: 7.5em 1fr; gap: 1.1rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line-soft);
}
.v-list div:last-child { border-bottom: 1px solid var(--line-soft); }
.v-list dt { font-size: 0.66rem; color: var(--red-hi); padding-top: 0.5em; }
.v-list dd { color: var(--ink-2); font-size: 0.95rem; }
.v-list dd a { color: var(--ink); font-weight: 700; }
.v-list dd a:hover { color: var(--red-hi); }
.visit-cta {
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  text-align: center;
  background:
    linear-gradient(color-mix(in oklch, var(--red) 7%, transparent), transparent 45%),
    var(--bg-2);
}
.cta-line { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 0.6rem; }
.call-big {
  display: block;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: 0.04em;
  margin-bottom: 1.4rem;
  transition: color 0.2s;
}
.call-big span { color: var(--red-hi); }
.call-big:hover { color: var(--red-hi); }
.cta-links { display: grid; gap: 0.6rem; }
@media (max-width: 880px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---------- 푸터 ---------- */
.foot { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: clamp(2.2rem, 5vw, 3.2rem) 0 clamp(5rem, 8vw, 3rem); }
.foot-grid { display: grid; gap: 1.2rem; }
.foot-line { font-size: 0.85rem; color: var(--mut); margin-top: 0.3rem; }
.foot-meta { font-size: 0.8rem; color: var(--mut); line-height: 1.8; }
.foot-meta a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 모바일 고정 CTA ---------- */
.cta-bar {
  position: fixed; inset: auto 0 0 0; z-index: 70;
  display: none;
  grid-template-columns: 1.2fr 1fr;
  border-top: 1px solid var(--line);
}
.cta-bar a {
  padding: 1.02rem;
  text-align: center;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cta-call { background: var(--red); color: #fff; }
.cta-naver { background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: blur(8px); color: var(--ink); }
@media (max-width: 880px) {
  .cta-bar { display: grid; }
  body { padding-bottom: 3.5rem; }
}

/* ---------- 피팅 가이드 (메인 카드 + 글 페이지) ---------- */
.guides { border-top: 1px solid var(--line-soft); }
.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.guide-card {
  background: var(--bg-2);
  padding: clamp(1.4rem, 2.8vw, 2rem);
  display: flex; flex-direction: column; gap: 0.7rem;
  transition: background 0.3s var(--ease);
}
.guide-card:hover { background: var(--bg-3); }
.gc-no {
  font-family: var(--disp);
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--red-hi);
}
.guide-card h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.4; }
.guide-card p { font-size: 0.87rem; color: var(--mut); line-height: 1.65; flex: 1; }
.gc-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: var(--mut);
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
}
.gc-meta b { color: var(--red-hi); font-weight: 600; font-family: var(--disp); letter-spacing: 0.1em; }
.guide-card:hover .gc-meta b { color: #fff; }
@media (max-width: 860px) { .guide-cards { grid-template-columns: 1fr; } }

/* 글 페이지 */
.art-wrap { max-width: 760px; margin-inline: auto; width: calc(100% - 3rem); }
.article { padding-top: clamp(7rem, 14vh, 9.5rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.art-head { margin-bottom: clamp(2.2rem, 5vw, 3.2rem); }
.article h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin: 0.9rem 0 1.1rem; }
.art-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  font-size: 0.8rem; color: var(--mut);
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.art-body > p { color: var(--ink-2); margin-bottom: 1.25em; }
.art-body h2 {
  font-size: 1.35rem;
  margin: 2.2em 0 0.8em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line-soft);
}
.art-body h2::before {
  content: "§";
  color: var(--red-hi);
  margin-right: 0.5em;
  font-family: var(--disp);
}
.art-body ul, .art-body ol { color: var(--ink-2); margin: 0 0 1.25em 1.3em; }
.art-body li { margin-bottom: 0.4em; }
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  background: var(--bg-2);
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
  font-size: 0.93rem;
  color: var(--ink-2);
}
.callout b { color: var(--ink); }
.art-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0 1.8rem; font-size: 0.9rem; }
.art-table th {
  font-family: var(--disp);
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red-hi);
  text-align: left;
  padding: 0.6em 0.8em;
  border-bottom: 1px solid var(--line);
}
.art-table td { padding: 0.6em 0.8em; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.art-table td:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.art-fig { margin: 2rem 0 2.2rem; }
.art-fig img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.art-svg {
  width: 100%; height: auto; display: block;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  color: var(--ink-2);
}
.art-svg text { font-family: var(--sans); font-size: 16px; font-weight: 500; fill: var(--ink); stroke: none; letter-spacing: -0.01em; }
.art-svg .t-label { font-size: 15px; fill: var(--ink-2); }
.art-svg .t-num { font-family: var(--disp); font-weight: 600; font-size: 17px; letter-spacing: 0.05em; fill: var(--ink); }
.art-svg .acc { stroke: var(--red-hi); }
.art-svg .acc-f { fill: var(--red-hi); }
.art-svg .mut { stroke: color-mix(in oklch, var(--ink) 25%, transparent); }

.art-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(color-mix(in oklch, var(--red) 7%, transparent), transparent 50%),
    var(--bg-2);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
}
.art-cta p { color: var(--ink-2); margin-bottom: 1.1rem; }
.art-cta .btn { margin: 0 0.3rem 0.5rem; }
.art-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.88rem;
}
.art-nav a { color: var(--ink-2); }
.art-nav a:hover { color: var(--red-hi); }

/* 가이드 목록 */
.guide-list { list-style: none; }
.guide-list li { border-bottom: 1px solid var(--line-soft); }
.guide-list li:first-child { border-top: 1px solid var(--line-soft); }
.guide-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: baseline;
  padding: 1.5rem 0.2rem;
  transition: background 0.25s var(--ease);
}
.guide-list a:hover { background: color-mix(in oklch, var(--bg-2) 60%, transparent); }
.gl-no { font-family: var(--disp); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--red-hi); }
.gl-title { font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 800; letter-spacing: -0.02em; }
.gl-title small { display: block; font-size: 0.82rem; font-weight: 400; color: var(--mut); margin-top: 0.3em; letter-spacing: 0; }
.gl-arrow { font-family: var(--disp); color: var(--mut); }
.guide-list a:hover .gl-arrow { color: var(--red-hi); }

/* ---------- 마키 밴드 (아웃라인 타이포) ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  padding-block: 1.1rem;
  background: var(--bg);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in oklch, var(--ink) 26%, transparent);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- 인라인 용어 버튼 & 용어 사전 패널 ---------- */
.term {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--ink);
  border-bottom: 1px dashed var(--red-hi);
  cursor: help;
  transition: color 0.2s;
}
.term:hover { color: var(--red-hi); }
.nav-gloss {
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--red-hi);
  cursor: pointer;
}
.nav-gloss:hover { color: #fff; }
.faq-more { margin-top: 1.6rem; font-size: 0.92rem; color: var(--mut); }

.gloss { position: fixed; inset: 0; z-index: 90; }
.gloss[hidden] { display: none; }
.gloss-backdrop { position: absolute; inset: 0; background: #0009; backdrop-filter: blur(3px); }
.gloss-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(430px, 94vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  animation: glossIn 0.45s var(--ease);
}
@keyframes glossIn {
  from { transform: translateX(40px); opacity: 0; }
}
.gloss-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 1.6rem 1.6rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}
.gloss-head .kicker { margin-bottom: 0.3rem; }
.gloss-head h2 { font-size: 1.4rem; }
.gloss-x {
  background: none; border: 1px solid var(--line);
  color: var(--ink-2);
  width: 2.4rem; height: 2.4rem;
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
  display: grid; place-content: center;
}
.gloss-x:hover { border-color: var(--red); color: var(--red-hi); }
.gloss-list {
  overflow-y: auto;
  padding: 0.4rem 1.6rem;
  flex: 1;
  overscroll-behavior: contain;
}
.gloss-list > div { padding: 1.05rem 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 1rem; }
.gloss-list dt {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.05em;
  color: var(--red-hi);
  margin-bottom: 0.3rem;
}
.gloss-list dt span {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mut);
  letter-spacing: 0;
  margin-left: 0.5em;
}
.gloss-list dd { font-size: 0.9rem; color: var(--ink-2); line-height: 1.7; }
.gloss-list > div.flash { animation: glossFlash 1.6s var(--ease); }
@keyframes glossFlash {
  0%, 35% { background: color-mix(in oklch, var(--red) 14%, transparent); }
  100% { background: transparent; }
}
.gloss-foot {
  padding: 1.1rem 1.6rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--mut);
}
.gloss-foot a { color: var(--ink); font-weight: 700; }
body.gloss-open { overflow: hidden; }

/* ---------- 그랜드 오픈 팝업 ---------- */
.popup {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 1.2rem;
}
.popup[hidden] { display: none; }
.popup-backdrop {
  position: absolute; inset: 0;
  background: #000b;
  backdrop-filter: blur(5px);
}
.popup-card {
  position: relative;
  width: min(400px, 94vw);
  animation: popIn 0.45s var(--ease) backwards;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
}
.popup-card > a { display: block; line-height: 0; }
.popup-card img {
  width: 100%;
  max-height: calc(88svh - 3.2rem);
  object-fit: contain;
  background: #0b1024;
}
.popup-x {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 2.7rem; height: 2.7rem;
  border: 0; border-radius: 50%;
  background: #0e1b38;
  color: #fff;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  display: grid; place-content: center;
}
.popup-x:hover { background: var(--red); }
.popup-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  margin-top: 1.1rem;
}
.popup-foot button {
  position: relative;
  background: none; border: 0; padding: 0.2em 0;
  color: #fffb;
  font-family: var(--sans);
  font-size: 0.83rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-underline-offset: 5px;
  transition: color 0.2s;
}
.popup-foot button:hover { color: #fff; text-decoration: underline; }
.popup-foot button + button::before {
  content: "";
  position: absolute;
  left: -1.15rem; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 0.85em;
  background: #fff4;
}
body.popup-open { overflow: hidden; }

/* ---------- 리빌 (JS 활성 시에만) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

/* 히어로는 JS를 기다리지 않고 즉시 등장 (LCP 보호) */
.js .hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
  animation: heroIn 0.9s var(--ease) backwards;
}
.js .hero .reveal.d1 { animation-delay: 0.1s; }
.js .hero .reveal.d2 { animation-delay: 0.2s; }
.js .hero .reveal.d3 { animation-delay: 0.3s; }
.js .hero .reveal.d4 { animation-delay: 0.4s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
}
/* LCP 요소(제목·리드)는 페이드 없이 슬라이드만 — 페인트 시점을 늦추지 않음 */
.js .hero h1.reveal,
.js .hero .hero-lead.reveal {
  animation-name: heroSlide;
}
@keyframes heroSlide {
  from { transform: translateY(22px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; animation: none; }
}
