/* ==========================================================================
   기적기획 Main — Base (공통 토큰 · 컴포넌트)
   컬러 원칙
   - 노랑은 "면"과 "강조"에만 사용 (버튼, 하이라이트, 숫자, 밴드)
   - 밝은 배경 위 노랑 글자는 쓰지 않음 → 검정 글자 + 노랑 형광 밑줄
   - 노랑 위 글자는 항상 검정
   ========================================================================== */

/* ---------- Color — Lemon Chrome (차갑고 선명한 하이콘트라스트) ----------
   새 색을 만들지 말고 아래 토큰만 쓸 것 (검정 4단 · 종이 3종 · 노랑 3종 · 투명도 단계) */
:root {
  --k: #050505; --k2: #101010; --k3: #1B1B1B; --k4: #262626;
  --y: #FFE14D; --y2: #F5D000; --y-soft: #FFF8CC;
  --paper: #F4F2EC; --paper2: #E6E6E2; --paper-warm: #ECE8DF; --white: #fff;
  --ink: #050505; --ink2: #53534F;
  --danger: #E04A3A;                                   /* 어두운 면 기준 · 밝은 면은 .tone-light에서 진하게 */

  /* 어두운 면 위 흰색 투명도: 글자는 -3 이상만 (AA 4.5:1 ↑), 선·면은 line/faint/mid */
  --w-faint: rgba(244, 242, 236, .07);
  --w-line: rgba(244, 242, 236, .13);
  --w-mid: rgba(244, 242, 236, .26);
  --on-dark-3: #908E8A;                               /* = 흰색 58% (어두운 면 기준 단색) */
  --w-strong: rgba(244, 242, 236, .88);
  /* 검정 막(스크림)·그림자 */
  --b-1: rgba(0, 0, 0, .2); --b-2: rgba(0, 0, 0, .45); --b-3: rgba(0, 0, 0, .62); --b-4: rgba(0, 0, 0, .9);
  /* 노랑 빛 번짐 */
  --y-a1: color-mix(in srgb, var(--y) 20%, transparent);
  --y-a2: color-mix(in srgb, var(--y) 45%, transparent);
  --y-a3: color-mix(in srgb, var(--y) 70%, transparent);
  --lamp: rgba(255, 238, 200, .2);                     /* 전시 조명 (따뜻한 빛) */

  /* 그림자 6단 — 이 외의 그림자는 만들지 않음 */
  --sh-sm: 0 8px 16px rgba(0, 0, 0, .4);
  --sh-md: 0 12px 32px rgba(0, 0, 0, .4);
  --sh-lg: 0 32px 64px rgba(0, 0, 0, .5);
  --sh-xl: 0 40px 96px rgba(0, 0, 0, .6);
  --sh-paper: 0 40px 96px rgba(0, 0, 0, .08);         /* 밝은 면 위 */
  --glow: 0 0 28px 6px var(--y-a2);

  /* 글자 크기 — 모듈러 스케일 (minor third ×1.2, 기준 15px). 이 단계 외의 크기는 쓰지 않음
     화면 폭에 따라 바뀌는 크기도 640·960·1280·1600px에서 한 단계씩 바뀌는 단계형 (중간값 없음) */
  --fs-2xs: 10.42px; --fs-xs: 12.5px; --fs-sm: 15px; --fs-md: 18px; --fs-lg: 21.6px; --fs-xl: 25.92px;
  --fs-2xl: 31.1px; --fs-3xl: 37.32px; --fs-4xl: 44.79px; --fs-5xl: 53.75px; --fs-6xl: 64.5px; --fs-7xl: 77.4px;
  --fs-8xl: 92.88px; --fs-9xl: 111.45px; --fs-10xl: 133.74px; --fs-11xl: 160.49px; --fs-12xl: 192.59px; --fs-13xl: 231.11px;

  /* 쌓임 순서 — 10 단위 한 줄 사다리, 숫자를 직접 쓰지 말고 토큰으로 (컴포넌트 내부 1~3은 예외) */
  --z-sticky: 10; --z-float: 20; --z-dock: 30; --z-nav: 40; --z-header: 50; --z-skip: 60;
  --z-lightbox: 70; --z-intro: 80; --z-transition: 90; --z-cursor: 100;
}

:root {
  --on-dark: #F4F2EC;
  --on-dark-2: #B1AFAB;                               /* = 흰색 72% */
  --f-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  --f-display: "Wanted Sans Variable", "Wanted Sans", var(--f-sans);
  --f-head: var(--f-sans);
  --wrap: 1360px;
  --gutter: round(clamp(20px, 4vw, 56px), 4px);
  --hd-h: 84px;
  --radius: 0px;
  --radius-btn: 0px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --logo-a: var(--on-dark);
  --logo-b: var(--y);
}

/* ---------- Tones (섹션 단위 명암) ---------- */
.tone-dark, body {
  --bg: var(--k); --bg-2: var(--k2); --bg-3: var(--k3);
  --fg: var(--on-dark); --fg-2: var(--on-dark-2); --line: var(--w-line);
  --btn-bg: var(--y); --btn-fg: var(--k);
  --accent: var(--y);                                  /* 강조 글자색: 노랑 글자는 어두운 면에서만 */
}
.tone-light {
  --bg: var(--paper); --bg-2: var(--paper2); --bg-3: var(--white);
  --fg: var(--ink); --fg-2: var(--ink2); --line: rgba(0, 0, 0, .13);
  --btn-bg: var(--k); --btn-fg: var(--paper);
  --accent: var(--ink); --danger: #C4321F;
}
.tone-yellow {
  --bg: var(--y); --bg-2: var(--y2); --bg-3: var(--y-soft);
  --fg: var(--k); --fg-2: rgba(0, 0, 0, .72); --line: rgba(0, 0, 0, .2);
  --btn-bg: var(--k); --btn-fg: var(--y);
  --accent: var(--k);
}
.tone-dark, .tone-light, .tone-yellow { background: var(--bg); color: var(--fg); }

/* 강조어: 어두운 면 → 노랑 글자 / 밝은 면 → 형광 밑줄 / 노랑 면 → 굵은 밑줄 */
.hl { font-weight: inherit; }
.tone-dark .hl { color: var(--y); }
.tone-light .hl { background: linear-gradient(transparent 60%, var(--y) 60%, var(--y) 92%, transparent 92%); }
.tone-yellow .hl { box-shadow: inset 0 -.12em 0 var(--k); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--k); color: var(--on-dark); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hd-h); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-sans); font-size: var(--fs-md); line-height: 1.7; letter-spacing: -.015em;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
::selection { background: var(--y); color: var(--k); }
:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: var(--z-skip); padding: 8px 16px; background: var(--y); color: var(--k); font-weight: 700; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: round(clamp(96px, 11vw, 168px), 4px) 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--y); }
.tone-yellow .eyebrow::before { background: var(--k); }
.h1 { font-family: var(--f-head); font-weight: 700; font-size: max(var(--fs-3xl), min(var(--fs-4xl), (100vw - 640px) * 999), min(var(--fs-6xl), (100vw - 960px) * 999), min(var(--fs-7xl), (100vw - 1280px) * 999)); line-height: 1.2; letter-spacing: -.04em; }
.h2 { font-family: var(--f-head); font-weight: 700; font-size: max(var(--fs-xl), min(var(--fs-2xl), (100vw - 640px) * 999), min(var(--fs-3xl), (100vw - 960px) * 999), min(var(--fs-4xl), (100vw - 1280px) * 999), min(var(--fs-5xl), (100vw - 1600px) * 999)); line-height: 1.3; letter-spacing: -.04em; }
.lead { font-size: max(var(--fs-md), min(var(--fs-lg), (100vw - 1600px) * 999)); line-height: 1.8; color: var(--fg-2); }
.sec-head { max-width: 760px; margin-bottom: round(clamp(48px, 6vw, 80px), 4px); }
.sec-head .lead { margin-top: 20px; }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 32px; border-radius: var(--radius-btn); overflow: hidden; isolation: isolate;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bg);
  font-size: var(--fs-sm); font-weight: 700; white-space: nowrap;
  transition: color .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn--line { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--line::before { background: var(--fg); }
.btn--sm { height: 44px; padding: 0 20px; font-size: var(--fs-sm); }
.btn--lg { height: 64px; padding: 0 40px; font-size: var(--fs-md); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius-btn); font-size: var(--fs-xs); font-weight: 500; color: var(--fg-2); }

.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter button { height: 42px; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--radius-btn); font-size: var(--fs-sm); font-weight: 600; color: var(--fg-2); transition: color .3s, border-color .3s, background .3s; }
.filter button:hover { color: var(--fg); border-color: var(--fg); }
.filter button.is-on { background: var(--y); border-color: var(--y); color: var(--k); }
.is-hidden { display: none !important; }

/* ---------- Header ---------- */
.hd {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header); height: var(--hd-h); color: var(--on-dark);
  --logo-a: var(--on-dark); --btn-bg: var(--y); --btn-fg: var(--k); --fg: var(--on-dark); --bg: var(--k);
  transition: background .4s, height .4s var(--ease), transform .5s var(--ease);
}
.hd::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--w-line); opacity: 0; transition: opacity .4s; }
.hd.is-scrolled { background: var(--k); }
.hd.is-scrolled::after { opacity: 1; }
.hd.is-tucked { transform: translateY(-100%); }               /* 공통 .is-hidden(display:none)과 이름이 겹치면 미끄러지지 않고 통째로 사라짐 */
.hd__in { height: 100%; display: flex; align-items: center; gap: 48px; }
.hd__logo { display: block; }
.hd__logo img { width: 128px; height: auto; }
.hd__logo .logo-c { display: none; }
/* 밝은 헤더 구조: 컬러 로고 + 검정 글자 (메뉴가 열리면 다시 화이트) */
[data-header="light"] .hd { color: var(--ink); --fg: var(--ink); --bg: var(--paper); --btn-bg: var(--k); --btn-fg: var(--y); }
[data-header="light"] .hd.is-scrolled { background: var(--paper); }
[data-header="light"] .hd::after { background: rgba(0, 0, 0, .13); }
[data-header="light"] .hd .logo-w { display: none; }
[data-header="light"] .hd .logo-c { display: block; }
[data-header="light"] body.menu-open .hd { color: var(--on-dark); background: var(--k); }
[data-header="light"] body.menu-open .hd .logo-w { display: block; }
[data-header="light"] body.menu-open .hd .logo-c { display: none; }
.hd__nav { display: flex; gap: 40px; flex: 1; justify-content: center;   /* 남은 폭 가운데 (auto 여백 대신 → 여백값이 격자에 맞음) */ font-size: var(--fs-sm); font-weight: 600; }
.hd__nav a { position: relative; padding: 8px 0; opacity: .88; transition: opacity .3s; }
.hd__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--y); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.hd__nav a:hover { opacity: 1; }
.hd__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hd__nav a[aria-current]::after { transform: scaleX(1); }
.hd__nav a[aria-current] { opacity: 1; }
/* 서비스 드롭다운: 아래로 접혀 있던 판이 앞으로 세워짐 (바닥에 눕혀 둔 판 = 위에서 보면 선 하나) */
.hd__item { position: relative; display: flex; align-items: center; }
.hd__drop { position: absolute; left: 50%; top: 100%; padding-top: 16px; transform: translateX(-50%); perspective: 900px; pointer-events: none; }
.hd__drop-in {
  display: grid; grid-template-columns: repeat(2, minmax(210px, 1fr)); gap: 1px; padding: 1px; background: var(--w-line); box-shadow: var(--sh-lg);
  transform-origin: 50% 0; transform: rotateX(-88deg); opacity: 0; transition: transform .55s var(--ease), opacity .3s;
}
.hd__item:is(:hover, :focus-within) .hd__drop { pointer-events: auto; }
.hd__item:is(:hover, :focus-within) .hd__drop-in { transform: none; opacity: 1; }
.hd__drop a { display: flex; gap: 16px; align-items: baseline; padding: 16px 24px; background: var(--k2); color: var(--on-dark); opacity: 1; font-size: var(--fs-sm); transition: background .3s, color .3s; }
.hd__drop a::after { display: none; }
.hd__drop a b { font-size: var(--fs-xs); color: var(--y); letter-spacing: .06em; }
.hd__drop a span { display: grid; gap: 2px; }
.hd__drop a small { font-size: var(--fs-2xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); }
.hd__drop a:hover, .hd__drop a[aria-current] { background: var(--y); color: var(--k); }
.hd__drop a[aria-current] { transition: none; }                 /* 현재 페이지 표시는 처음부터 노랑 (전환 중 어두운 면에 검정 글자가 잠깐 겹치지 않게) */
.hd__drop a:hover :is(b, small), .hd__drop a[aria-current] :is(b, small) { color: var(--k); }
.mnav { overflow-y: auto; }
.mnav__sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 8px 0 12px; border-bottom: 1px solid var(--w-line); }
.mnav nav .mnav__sub a { padding: 8px 0; border: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--on-dark-2); }
.mnav__sub b { margin-right: 8px; font-size: var(--fs-xs); color: var(--y); }
.hd__right { display: flex; align-items: center; gap: 24px; }
.hd__tel { font-size: var(--fs-sm); font-weight: 600; opacity: .88; }
.hd__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.hd__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.hd__burger span:first-child { top: 16px; } .hd__burger span:last-child { top: 26px; }
.hd__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.hd__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: var(--z-nav); padding: calc(var(--hd-h) + 24px) var(--gutter) 32px;
  background: var(--k); color: var(--on-dark); display: flex; flex-direction: column; justify-content: space-between;
  --fg: var(--on-dark); --bg: var(--k); --btn-bg: var(--y); --btn-fg: var(--k);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.mnav.is-open { opacity: 1; visibility: visible; }
.mnav nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--w-line); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.03em; }
.mnav__foot { display: grid; gap: 8px; }

/* ---------- Hero video control (공통) ---------- */
.vctrl { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 8px; border-radius: 999px; border: 1px solid var(--w-mid); color: var(--on-dark); font-size: var(--fs-xs); font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: var(--b-3); transition: border-color .3s; }
.vctrl:hover { border-color: var(--y); }
.vctrl i { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--y); }
.vctrl i::before, .vctrl i::after { content: ""; width: 3px; height: 10px; background: var(--k); position: absolute; top: 9px; }
.vctrl i::before { left: 10px; } .vctrl i::after { right: 10px; }
.vctrl.is-paused i::before { left: 11px; width: 0; height: 0; background: none; border-left: 9px solid var(--k); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.vctrl.is-paused i::after { display: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer (inc/footer.php · assets/js/footer.js) ---------- */
.ft { position: relative; overflow: hidden; padding-top: round(clamp(96px, 11vw, 180px), 4px); border-top: 1px solid var(--w-line); }
.ft a { color: inherit; }
/* 글자가 위로 굴러 노랑 글자로 바뀜 (data-t = 같은 글자) */
.ft-roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.ft-roll > span, .ft-roll::after { display: block; transition: transform .55s var(--ease); }
.ft-roll::after { content: attr(data-t); position: absolute; left: 0; top: 100%; color: var(--y); }
a:hover > .ft-roll > span, a:focus-visible > .ft-roll > span, a:hover > .ft-roll::after, a:focus-visible > .ft-roll::after { transform: translateY(-100%); }
/* ① 문의 */
.ft__cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 64px; padding-bottom: round(clamp(72px, 8vw, 120px), 4px); }
.ft__cta .eyebrow { grid-column: 1 / -1; margin: 0; }
.ft__big { display: grid; font-family: var(--f-display); font-size: max(var(--fs-4xl), min(var(--fs-6xl), (100vw - 760px) * 999), min(var(--fs-8xl), (100vw - 1280px) * 999), min(var(--fs-9xl), (100vw - 1680px) * 999)); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; }
.ft__big-l { display: block; transition: color .5s, transform .7s var(--ease); }
.ft__big-l + .ft__big-l { display: flex; align-items: center; gap: .3em; color: var(--on-dark-3); }
.ft__go { flex: none; display: grid; place-items: center; width: 1em; height: 1em; border-radius: 50%; background: var(--y); color: var(--k); transition: transform .6s var(--ease); }
.ft__go svg { width: 42%; height: 42%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.ft__big:hover .ft__big-l + .ft__big-l, .ft__big:focus-visible .ft__big-l + .ft__big-l { color: var(--on-dark); }
.ft__big:hover .ft__big-l:first-child { transform: translateX(-.15em); }
.ft__big:hover .ft__go { transform: rotate(45deg) scale(1.06); }
.ft__reach { display: grid; gap: 22px; justify-items: start; min-width: 300px; padding-left: 32px; border-left: 1px solid var(--w-line); }
.ft__tel, .ft__mail { display: grid; gap: 6px; }
.ft__reach small { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-3); }
.ft__tel .ft-roll { font-family: var(--f-display); font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ft__mail .ft-roll { font-size: var(--fs-lg); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.ft__hours { display: grid; gap: 8px; max-width: 300px; font-size: var(--fs-xs); line-height: 1.7; color: var(--on-dark-2); }
.ft__live { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark); }
.ft__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--on-dark-3); }
.ft__live.is-open i { background: var(--y); box-shadow: 0 0 0 4px var(--y-a1); animation: ft-live 1.8s ease-in-out infinite; }
@keyframes ft-live { 50% { box-shadow: 0 0 0 7px transparent; } }
/* ② 4열 */
.ft__grid { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr .85fr; gap: 40px; padding-block: 40px round(clamp(64px, 7vw, 112px), 4px); border-top: 1px solid var(--w-line); }
.ft__h { margin-bottom: 22px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-3); }
.ft__menu { display: grid; gap: 4px; }
.ft__menu a { display: grid; grid-template-columns: 28px auto 1fr; align-items: baseline; gap: 10px; padding: 3px 0; }
.ft__menu b { font-size: var(--fs-2xs); font-weight: 700; color: var(--on-dark-3); font-variant-numeric: tabular-nums; transition: color .3s; }
.ft__menu .ft-roll { font-family: var(--f-display); font-size: var(--fs-2xl); font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
.ft__menu small { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s var(--ease); }
.ft__menu a:hover b { color: var(--y); }
.ft__menu a:hover small { opacity: 1; transform: none; }
.ft__list { display: grid; gap: 2px; }
.ft__list a, .ft__map { display: inline-flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: var(--fs-md); font-weight: 600; letter-spacing: -.02em; }
.ft__list a i, .ft__map i { font-style: normal; color: var(--y); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .45s var(--ease); }
.ft__list a:hover i, .ft__map:hover i, .ft__map:focus-visible i { opacity: 1; transform: none; }
.ft__addr { display: grid; gap: 6px; font-style: normal; font-size: var(--fs-sm); line-height: 1.7; color: var(--on-dark-2); }
.ft__addr b { font-size: max(var(--fs-sm), min(var(--fs-md), (100vw - 1440px) * 999)); font-weight: 600; line-height: 1.55; color: var(--on-dark); white-space: nowrap; }   /* 주소는 한 줄 */
.ft__map { margin-top: 14px; padding-bottom: 4px; border-bottom: 1px solid var(--w-mid); font-size: var(--fs-sm); }
.ft__map i { opacity: 1; transform: none; }
.ft__biz { display: grid; gap: 12px; margin: 0; }
.ft__biz div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; font-size: var(--fs-sm); }
.ft__biz dt { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .14em; color: var(--on-dark-3); padding-top: 3px; }
.ft__biz dd { margin: 0; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
/* ③ 바닥에 눕혀 둔 MIRACLE — 일어설수록(--up 0→1) 정면이 됨, 커서 근처 글자(--hv)는 더 일어나며 노랑 */
.ft__mark { display: flex; justify-content: space-between; padding: 0 max(var(--gutter), (100vw - var(--wrap)) / 2); margin-bottom: -.12em; font-family: var(--f-display); font-size: calc((min(100vw, var(--wrap) + var(--gutter) * 2) - var(--gutter) * 2) / 4.7); font-weight: 800; line-height: .8; letter-spacing: -.04em; perspective: 900px; perspective-origin: 50% 0; user-select: none; }
.ft__mark span { --up: 1; --hv: 0; display: block; transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--up)) * 84deg)) translateY(calc(var(--hv) * -.06em)); color: color-mix(in srgb, var(--y) calc(var(--hv) * 100%), var(--k4)); transition: color .5s; will-change: transform; }
/* ④ 저작권 · 맨 위로 */
.ft__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px calc(32px + var(--dock-space, 0px)); border-top: 1px solid var(--w-line); }
.ft__copy { font-size: var(--fs-xs); color: var(--on-dark-3); }
.ft__top { display: inline-flex; align-items: center; gap: 12px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-2); cursor: pointer; transition: color .3s; }
.ft__top svg { width: 48px; height: 48px; fill: none; stroke-width: 1.2; }
.ft__top circle { stroke: var(--w-line); }
.ft__top .ft__ring { stroke: var(--y); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--sp, 0)); transform: rotate(-90deg); transform-origin: 50% 50%; }
.ft__top path { stroke: var(--on-dark); stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.ft__top:hover { color: var(--y); }
.ft__top:hover path { transform: translateY(-3px); }

/* ---------- Quick dock ---------- */
.dock { position: fixed; right: 20px; bottom: 104px;   /* 데스크톱: 장면 하단 줄(진행 표시·포트폴리오 버튼) 위에 */ z-index: var(--z-dock); display: grid; gap: 8px; }
.dock a { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--y); color: var(--k); font-size: var(--fs-xs); font-weight: 800; box-shadow: var(--sh-md); transition: transform .3s var(--ease); }
.dock a:hover { transform: translateY(-3px); }
.dock .dock__top { background: var(--k); color: var(--on-dark); border: 1px solid var(--w-mid); font-size: var(--fs-xs); }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive (공통) ---------- */
@media (max-width: 1180px) {
  .hd__nav { gap: 24px; }
  .hd__tel { display: none; }
}
@media (max-width: 960px) {
  :root { --hd-h: 64px; }
  body { font-size: var(--fs-sm); }
  .hd__nav, .hd__right { display: none; }
  .hd__burger { display: block; }
  .hd__logo img { width: 108px; }
  .ft__cta { grid-template-columns: 1fr; }
  .ft__reach { min-width: 0; padding: 28px 0 0; border-left: 0; justify-self: stretch; border-top: 1px solid var(--w-line); }
  .ft__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}
@media (max-width: 640px) {
  .sec { padding: 80px 0; }
  .actions .btn { flex: 1 1 100%; }
  .sec-head--row { flex-direction: column; align-items: flex-start; }
  .filter { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .filter button { flex: none; }
  .ft__grid { grid-template-columns: 1fr; gap: 36px; }
  .ft__menu .ft-roll { font-size: var(--fs-xl); }
  .ft__bottom { flex-direction: column-reverse; align-items: flex-start; }
  /* 모바일: 화면 맨 아래 가로 한 줄 → 본문 오른쪽을 가리지 않음 (하단 요소는 --dock-space 만큼 올림) */
  :root { --dock-space: calc(44px + 12px + env(safe-area-inset-bottom, 0px)); }
  .dock { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); grid-auto-flow: column; gap: 8px; }
  .dock a { width: 44px; height: 44px; font-size: var(--fs-xs); box-shadow: var(--sh-sm); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* 화면 밖 구역의 무한 애니메이션은 멈춤 (assets/js/site.js · perspective.js가 .is-off를 붙임) → 안 보이는 곳에서 스타일·페인트가 매 프레임 돌지 않음 */
.is-off, .is-off * { animation-play-state: paused !important; }
