/* ===== HB 디자인 토큰 =====
   night  : 무대 객석의 짙은 남색 (기존 사이트 사진 톤에서 가져옴)
   led    : 전광판 LED의 따뜻한 호박색. 버튼과 전광판에만 씀
   tally  : 방송 송출 중 표시등 빨강. '방송 중' 표시에만 씀
   paper  : 밝은 섹션 배경 (차가운 회백색)
*/
:root {
  --night: #0f1733;
  --night-2: #19244c;
  --night-line: #2a3766;
  --led: #ffbf57;
  --led-dim: #2b3560;
  --tally: #e8412f;
  --paper: #eef1f6;
  --ink: #121a33;
  --muted: #56607f;
  --muted-on-night: #a9b2d0;
  --white: #ffffff;

  --font: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 4vw, 2.6rem);
  --step-4: clamp(2.3rem, 6vw, 4.2rem);

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--led); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible { outline-color: var(--ink); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--led); color: var(--ink); padding: 8px 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 로딩 화면 ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: #0a1028; color: var(--white);
  /* 디졸브: 로고 화면이 천천히 투명해지며 뒤의 3D 첫 장면이 드러남 */
  transition: opacity 1.8s cubic-bezier(.45, 0, .25, 1), transform 1.8s cubic-bezier(.45, 0, .25, 1), visibility 0s linear 1.8s;
}
.loader.is-done { opacity: 0; transform: scale(1.06); visibility: hidden; pointer-events: none; }
.is-loading, .is-loading body { overflow: hidden; }
.loader-logo { width: min(220px, 52vw); height: auto; overflow: visible; }
.lc { animation: lc-in 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.lc-tl { --dx: -180px; --dy: -120px; }
.lc-tr { --dx: 180px;  --dy: -120px; }
.lc-bl { --dx: -180px; --dy: 120px; }
.lc-br { --dx: 180px;  --dy: 120px; }
@keyframes lc-in {
  from { transform: translate(var(--dx), var(--dy)); opacity: 0; }
  to   { transform: translate(0, 0); opacity: 1; }
}
.lhb { animation: lhb-in .7s ease-out .55s both; }
@keyframes lhb-in { from { opacity: 0; } to { opacity: 1; } }
.ldot { fill: var(--tally); animation: rec-blink 1s steps(1, end) .9s infinite; }
@keyframes rec-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.loader-text {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .3em; color: var(--muted-on-night);
  animation: lhb-in .6s ease-out 1s both;
}
.loader-bar:not(.on), .loader-pct:not(.on) { display: none; }   /* 진행률은 영상 방식일 때만 표시 */
.loader-bar { width: min(220px, 52vw); height: 2px; background: var(--night-line); border-radius: 2px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--led); transition: width .25s ease-out; }
.loader-pct { margin: 0; font-size: var(--step--1); color: var(--muted-on-night); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .lc, .lhb, .ldot, .loader-text { animation: none; }
  .loader { transition: opacity .3s ease, visibility 0s linear .3s; }
  .loader.is-done { transform: none; }
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  background: rgba(15, 23, 51, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--night-line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { height: 28px; width: auto; color: var(--white); display: block; }
.fade { position: absolute; inset: 0; background: #05081a; opacity: 0; pointer-events: none; }
.brand-ko { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-en { font-size: 0.75rem; color: var(--muted-on-night); letter-spacing: 0.08em; }
.nav { display: flex; gap: clamp(12px, 1.5vw, 24px); margin-left: auto; }
.nav a { text-decoration: none; font-size: var(--step--1); color: var(--muted-on-night); white-space: nowrap; }
.nav a[href="#quote"] { color: var(--led); font-weight: 700; }
.nav a:hover { color: var(--white); }
.top-call {
  text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--led);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: inherit; font-weight: 700; font-size: var(--step-0);
  text-decoration: none; cursor: pointer; border: 0;
}
.btn-led { background: var(--led); color: var(--ink); }
.btn-led:hover { background: #ffd083; }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: rgba(255,255,255,0.08); }

/* ---------- hero: 3D 공연장 스크롤 ---------- */
/* 장면 하나 = 560px 스크롤 (휠 5~6번). 장면 6개 → 이동 구간 5개 */
.journey { position: relative; height: calc(100vh + 5 * 560px); margin-top: -61px; }
.call-line { font-weight: 700; color: var(--led) !important; font-variant-numeric: tabular-nums; user-select: all; }
.journey-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0a1028; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* 장면마다 가리키는 장비는 그대로 밝고, 나머지는 부드럽게(페더) 어두워짐 (stage.js가 위치·크기를 매 프레임 넣음) */
.spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.journey.no-webgl .spot { display: none; }

/* 서비스 소개 사진 슬라이드 (밀어서 넘기기 + 아래 점 버튼) */
.slider { position: relative; min-width: 0; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slides::-webkit-scrollbar { display: none; }
.slides > * { flex: 0 0 100%; scroll-snap-align: center; border-radius: 0; background: var(--night-2); }
/* 섹션에 들어오면 첫 사진이 페이드인 (살짝 확대된 상태에서 제자리로) */
.js .slider .slides > :first-child { opacity: 0; transform: scale(1.06); }
.js .slider.in .slides > :first-child { opacity: 1; transform: none; transition: opacity 1.2s ease, transform 1.6s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { .js .slider .slides > :first-child { opacity: 1; transform: none; transition: none; } }
.slides img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.28); transition: width .25s, background .25s;
}
.dots button[aria-current="true"] { width: 24px; background: var(--led); }
.dots button:focus-visible { outline: 2px solid var(--led); outline-offset: 3px; }

.panel {
  position: absolute; left: var(--gutter); top: 50%;
  max-width: 27rem; padding: 28px;
  background: rgba(10, 16, 40, 0.72); backdrop-filter: blur(8px);
  border-radius: 6px; box-shadow: inset 0 0 0 1px var(--night-line);
  opacity: 0; visibility: hidden; margin-top: -120px;
}
.panel.is-on { visibility: visible; }
.panel h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
.panel h2 { font-size: var(--step-3); letter-spacing: -0.025em; color: var(--led); }
.panel p { margin-top: 12px; color: #d4daef; font-size: var(--step-1); line-height: 1.6; }
.panel ul { margin-top: 16px; border-top: 1px solid var(--night-line); }
.panel li { padding: 8px 0; border-bottom: 1px solid var(--night-line); }
.panel .hero-actions { margin-top: 24px; }
.p-intro { top: auto; bottom: 96px; margin-top: 0; max-width: 40rem; background: none; backdrop-filter: none; box-shadow: none; padding: 0; }
.p-intro h1 { text-shadow: 0 2px 24px rgba(10,16,40,0.8); }
/* "역시 HB": HB는 로고로 크게 */
.h1-brand { display: inline-flex; align-items: center; gap: 0.28em; white-space: nowrap; }
.h1-logo { height: 1.6em; width: auto; vertical-align: middle; filter: drop-shadow(0 2px 18px rgba(10,16,40,0.8)); }
.scroll-hint { font-size: var(--step--1) !important; color: var(--led) !important; margin-top: 28px !important; }
.p-right { left: auto; right: var(--gutter); }
.p-low { top: auto; bottom: 96px; margin-top: 0; }
.p-low-right { top: auto; bottom: 96px; margin-top: 0; left: auto; right: var(--gutter); }
.p-center { left: 50%; margin-left: min(-13.5rem, calc(-50vw + var(--gutter))); text-align: center; }
.p-center .hero-actions { justify-content: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.rail {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(10, 16, 40, 0.7); box-shadow: inset 0 0 0 1px var(--night-line);
}
.rail button {
  font: inherit; font-size: var(--step--1); color: var(--muted-on-night);
  background: none; border: 0; padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.rail button:hover { color: var(--white); }
.rail button[aria-current="step"] { background: var(--led); color: var(--ink); font-weight: 700; }

.rec { position: absolute; inset: 9% 5% 14%; pointer-events: none; opacity: 0; }
.rec .c { position: absolute; width: 36px; height: 36px; border: 0 solid rgba(255,255,255,0.85); }
.rec .tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.rec .tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.rec .bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.rec .br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.rec-label { position: absolute; top: 14px; left: 52px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rec-label i { width: 10px; height: 10px; border-radius: 50%; background: var(--tally); }
.rec-time { position: absolute; top: 14px; right: 52px; font-variant-numeric: tabular-nums; }

/* 3D가 안 되는 기기: 글로만 보여주기 */
.journey.no-webgl { height: auto; margin-top: 0; }
.journey.no-webgl .journey-sticky { position: static; height: auto; padding: 48px var(--gutter); display: grid; gap: 16px; }
.journey.no-webgl #stage, .journey.no-webgl .rec, .journey.no-webgl .rail { display: none; }
.journey.no-webgl .panel { position: static; opacity: 1; visibility: visible; margin: 0; max-width: 40rem; }

.stats-band { padding: 0; }
.stats {
  max-width: var(--maxw); margin: 56px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--night-line);
}
.stats > div { padding: 24px 0 40px; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--night-line); }
.stats dt { font-size: var(--step--1); color: var(--muted-on-night); }
.stats dd { margin: 4px 0 0; font-size: var(--step-3); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.onestop, .services, .quote, .works, .studio, .buyers, .cta { padding: clamp(64px, 10vw, 120px) 0; }
.paper { background: var(--paper); color: var(--ink); }
.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head h2 { font-size: var(--step-3); letter-spacing: -0.025em; }
.section-head p { margin-top: 12px; color: var(--muted-on-night); font-size: var(--step-1); }
.paper .section-head p { color: var(--muted); }

/* ---------- cuesheet ---------- */
.cuesheet { border-top: 2px solid var(--ink); }
.cuesheet li {
  display: grid; grid-template-columns: 110px 1fr 140px; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid #c9cfdd; align-items: baseline;
}
.cuesheet time { font-weight: 700; font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.cuesheet h3 { font-size: var(--step-1); }
.cuesheet p { color: var(--muted); margin-top: 4px; max-width: 40em; }
.cuesheet .who { font-size: var(--step--1); color: var(--muted); text-align: right; display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.cuesheet li.live { background: var(--night); color: var(--white); margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); border-bottom-color: var(--night); }
.cuesheet li.live p { color: var(--muted-on-night); }
.cuesheet li.live .who { color: var(--white); font-weight: 700; }
.tally { width: 10px; height: 10px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 0 4px rgba(232,65,47,0.25); animation: tally 1.6s ease-in-out infinite; }
@keyframes tally { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .tally { animation: none; } }

/* ---------- services ---------- */
.svc-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; }
.svc-group-title { font-size: var(--step--1); color: var(--led); font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--night-line); }
.svc-list li { padding: 20px 0; border-bottom: 1px solid var(--night-line); scroll-margin-top: 96px; }
/* 3D 장면에서 '자세히 알아보기'로 넘어왔을 때 해당 서비스를 잠깐 강조 */
.svc-list li:target { animation: svc-flash 2.4s ease-out; }
@keyframes svc-flash { 0%, 30% { background: rgba(255, 191, 87, 0.14); box-shadow: -12px 0 0 rgba(255, 191, 87, 0.14), 12px 0 0 rgba(255, 191, 87, 0.14); } 100% { background: transparent; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .svc-list li:target { animation: none; background: rgba(255, 191, 87, 0.1); } }

.panel .more {
  display: inline-flex; align-items: center; min-height: 40px; margin-top: 16px; padding: 0 18px;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--led);
  color: var(--led); font-weight: 700; font-size: var(--step--1); text-decoration: none;
}
.panel .more:hover { background: var(--led); color: var(--ink); }
.svc-list h4 { font-size: var(--step-1); }
.svc-list p { color: var(--muted-on-night); margin-top: 4px; }

/* ---------- 회사소개 ---------- */
.about { padding: clamp(64px, 10vw, 120px) 0 clamp(24px, 4vw, 48px); }
.about-since { color: var(--led); font-weight: 700; letter-spacing: 0.04em; font-size: var(--step--1); margin-bottom: 14px; }
.about h2 { font-size: var(--step-3); letter-spacing: -0.025em; line-height: 1.3; max-width: 22em; }
.about-lead { color: var(--muted-on-night); font-size: var(--step-1); max-width: 40em; margin-top: 18px; }

/* 회사소개 사진 콜라주: 크기가 다른 타일을 빈틈없이 채움 (화면에 들어오면 차례로 나타남) */
/* 6칸 × 7줄에 19장을 빈틈없이 배치 (n번째 사진 = photos/about/0n.jpg) */
.about-collage {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(7, clamp(80px, 9vw, 132px)); gap: 10px;
}
.tile { margin: 0; overflow: hidden; border-radius: 6px; background: var(--night-2); }
.tile:nth-child(1)  { grid-area: 1 / 1 / 3 / 3; }   /* 크게 */
.tile:nth-child(2)  { grid-area: 1 / 3 / 2 / 5; }
.tile:nth-child(3)  { grid-area: 1 / 5 / 3 / 7; }   /* 크게 */
.tile:nth-child(4)  { grid-area: 2 / 3 / 3 / 5; }
.tile:nth-child(5)  { grid-area: 3 / 1 / 4 / 2; }
.tile:nth-child(6)  { grid-area: 3 / 2 / 5 / 4; }   /* 크게 */
.tile:nth-child(7)  { grid-area: 3 / 4 / 4 / 5; }
.tile:nth-child(8)  { grid-area: 3 / 5 / 5 / 6; }   /* 세로로 길게 */
.tile:nth-child(9)  { grid-area: 3 / 6 / 4 / 7; }
.tile:nth-child(10) { grid-area: 4 / 1 / 5 / 2; }
.tile:nth-child(11) { grid-area: 4 / 4 / 5 / 5; }
.tile:nth-child(12) { grid-area: 4 / 6 / 5 / 7; }
.tile:nth-child(13) { grid-area: 5 / 1 / 7 / 3; }   /* 크게 */
.tile:nth-child(14) { grid-area: 5 / 3 / 6 / 5; }
.tile:nth-child(15) { grid-area: 5 / 5 / 7 / 7; }   /* 크게 */
.tile:nth-child(16) { grid-area: 6 / 3 / 7 / 5; }
.tile:nth-child(17) { grid-area: 7 / 1 / 8 / 3; }
.tile:nth-child(18) { grid-area: 7 / 3 / 8 / 5; }
.tile:nth-child(19) { grid-area: 7 / 5 / 8 / 7; }
.tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.92) brightness(0.88); transition: filter .4s, transform .6s cubic-bezier(.2,.7,.2,1);
}
.tile:hover img { filter: none; transform: scale(1.05); }
.js .tile { opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .about-collage.in .tile { opacity: 1; transform: none; }
/* 한 장짜리 콜라주 이미지 */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-collage-img { margin: 0; }
/* 흑백 타일 콜라주: 위치는 HTML에 %로 지정, 화면에 들어오면 무작위 순서로 한 장씩 나타남 */
.about-scatter { position: relative; width: 100%; }
.about-scatter img {
  position: absolute; height: auto; display: block;
  transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.2,.7,.2,1), filter 1.1s ease;
}
.js .about-scatter img { opacity: 0; transform: scale(0.94); filter: blur(6px); }
.js .about-scatter img.on { opacity: 1; transform: none; filter: none; }
.about-scatter img.on:hover { transform: scale(1.04); z-index: 2; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
@media (prefers-reduced-motion: reduce) { .js .about-scatter img { opacity: 1; transform: none; filter: none; transition: none; } }
.about-collage-img img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  /* 모바일: 2칸, 다섯 장마다 한 장은 가로로 크게 */
  .about-collage { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 30vw; gap: 6px; }
  .about-collage .tile { grid-area: auto; }
  .about-collage .tile:nth-child(5n+1), .about-collage .tile:last-child { grid-column: span 2; grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) { .js .tile { opacity: 1; transform: none; transition: none; } }

/* ---------- quote builder ---------- */
/* 문의 섹션: 위 서비스 소개와 구분되도록 더 깊은 남색 + 은은한 앰버 빛 */
.quote {
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(255, 191, 87, 0.10), transparent 62%),
    radial-gradient(700px 420px at 0% 100%, rgba(90, 120, 255, 0.10), transparent 60%),
    #070c1f;
  border-top: 1px solid rgba(255, 191, 87, 0.25);
}
.quote .result { background: rgba(25, 36, 76, 0.55); }
.quote .field input, .quote .field textarea { background: rgba(255, 255, 255, 0.05); }
.quote-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.quote h2 { font-size: var(--step-3); letter-spacing: -0.025em; }
.quote-intro { color: var(--muted-on-night); font-size: var(--step-1); margin: 12px 0 36px; }
.builder fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.builder legend { font-weight: 700; margin-bottom: 12px; }
.builder legend small { font-weight: 400; color: var(--muted-on-night); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--night-line); color: var(--muted-on-night);
  transition: background .15s, color .15s;
}
.chips label:hover span { color: var(--white); }
.chips input:checked + span { background: var(--led); color: var(--ink); box-shadow: none; font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid var(--led); outline-offset: 3px; }

.result {
  position: sticky; top: 96px;
  background: #0a1028; border-radius: 6px; padding: 28px;
  box-shadow: inset 0 0 0 1px var(--night-line);
}
.result h3 { font-size: var(--step-1); }
#result-list { margin: 16px 0; }
#result-list li { padding: 10px 0; border-bottom: 1px dashed var(--night-line); display: flex; justify-content: space-between; gap: 16px; }
#result-list li span:last-child { color: var(--muted-on-night); font-size: var(--step--1); text-align: right; }
#result-list li.pop { animation: pop .35s ease-out; }
@keyframes pop { from { background: rgba(255,191,87,0.18); } to { background: transparent; } }
.result-note { font-size: var(--step--1); color: var(--muted-on-night); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.copied { min-height: 1.5em; margin-top: 8px; font-size: var(--step--1); color: var(--led); }
.copied.bad { color: #ff8f7a; }
/* 문의 폼: 연락처 칸 */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: var(--step--1); color: var(--muted-on-night); margin-bottom: 6px; }
.field b { color: var(--led); font-weight: 700; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--white); background: #0a1028;
  border: 0; border-radius: 6px; padding: 12px 14px; box-shadow: inset 0 0 0 1.5px var(--night-line);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--led); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.32); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); color: var(--muted-on-night); cursor: pointer; }
.agree input { margin-top: 4px; accent-color: var(--led); width: 16px; height: 16px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.result-actions .btn[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- works ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: inherit; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 0;
  background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px #c9cfdd;
}
.filters button.on { background: var(--ink); color: var(--white); box-shadow: none; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.work-grid li.w-wide { grid-column: span 2; }
.work-grid li[hidden] { display: none; }
.work-grid h3 { font-size: var(--step-1); margin-top: 14px; }
.work-grid p { color: var(--muted); font-size: var(--step--1); }
.ph {
  aspect-ratio: 16 / 10; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #dde2ec 0 12px, #e5e9f1 12px 24px);
  color: var(--muted); font-size: var(--step--1);
}
.ph.has-photo { background: #111; overflow: hidden; }
.ph.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
a.ph:hover img { transform: scale(1.03); }
.ph-dark { background: repeating-linear-gradient(135deg, var(--night-2) 0 12px, #1d2955 12px 24px); color: var(--muted-on-night); }

/* ---------- studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
/* 서비스 제목 아래 항목 바로가기 */
.services { padding-bottom: 24px !important; }
.services .section-head { margin-bottom: 28px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--night-line);
  color: var(--white); text-decoration: none; font-weight: 500;
}
.svc-chips a:hover { background: var(--led); color: var(--ink); box-shadow: none; }
/* 서비스 소개 섹션 (스튜디오와 같은 형식). alt = 배경 번갈아, flip = 사진을 오른쪽으로 */
.feature { padding: clamp(64px, 10vw, 120px) 0; scroll-margin-top: 72px; }
.feature.alt { background: var(--night-2); }
.feature h2 { font-size: var(--step-3); }
.studio-grid.flip { grid-template-columns: 1fr 1.2fr; }
.studio-grid.flip > .ph { order: 2; }
.feature .hero-actions { margin-top: 4px; }
.feature:target .facts { animation: svc-flash 2.4s ease-out; }
.studio h2 { font-size: var(--step-3); }
.studio-grid p { color: var(--muted-on-night); margin: 16px 0 24px; font-size: var(--step-1); }
.facts { margin-bottom: 28px; border-top: 1px solid var(--night-line); }
.facts li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--night-line); }
.facts span { color: var(--muted-on-night); font-size: var(--step--1); padding-top: 2px; }

/* ---------- buyers ---------- */
.buyer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.buyer-grid > div { background: var(--white); border-radius: 6px; padding: 28px; }
.buyer-grid h3 { font-size: var(--step-1); margin-bottom: 12px; }
.docs li, .pay li { padding: 12px 0; border-bottom: 1px solid #e3e7ef; }
.docs li:last-child, .pay li:last-child { border-bottom: 0; }
.docs a { font-weight: 500; text-underline-offset: 4px; }
.docs a[aria-disabled="true"] { color: var(--muted); }
.docs a[aria-disabled="true"]::after { content: " (파일 준비 중)"; font-size: var(--step--1); }

/* ---------- cta: 블로그 하단 문의 카드와 같은 구성 ---------- */
.cta { background: linear-gradient(160deg, #0f1733 0%, #121a3a 60%, #1a1f3d 100%); }
.cta-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.cta-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--muted-on-night); }
.cta-brand .logo { height: 54px; color: var(--white); }
.cta h2 { font-size: var(--step-3); margin-top: 28px; letter-spacing: -0.025em; line-height: 1.3; }
.cta h2 em { font-style: normal; color: var(--led); }
.cta-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 32px; }
.cta-list li { position: relative; padding-left: 16px; color: #d4daef; }
.cta-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--led); }
.cta-card {
  background: rgba(255, 255, 255, 0.04); border-radius: 14px; padding: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.cta-label { color: var(--muted-on-night); }
.cta-main {
  display: block; margin-top: 4px; color: var(--led); text-decoration: none;
  font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.cta-urgent {
  display: block; margin-top: 18px; padding: 16px 20px; border-radius: 10px; text-decoration: none;
  background: rgba(232, 65, 47, 0.14); box-shadow: inset 0 0 0 1px rgba(232, 65, 47, 0.45);
}
.cta-urgent-label { display: flex; align-items: center; gap: 8px; color: #ffd0c8; font-weight: 700; font-size: var(--step--1); }
.cta-urgent-label i { width: 10px; height: 10px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 0 3px rgba(232, 65, 47, 0.3); }
.cta-urgent-num { display: block; margin-top: 4px; color: var(--white); font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.cta-urgent:hover .cta-urgent-num { text-decoration: underline; text-underline-offset: 5px; }
.cta-main:hover { text-decoration: underline; text-underline-offset: 8px; }
.cta-mail { margin-top: 18px; color: var(--muted-on-night); }
.cta-mail span { color: var(--white); user-select: all; }
.cta-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cta-badges li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 191, 87, 0.12); color: var(--led); font-weight: 700; font-size: var(--step--1); }
.cta-note { margin-top: 20px; color: #c3c9de; font-size: var(--step--1); line-height: 1.7; }
.cta-note b { color: var(--white); }
@media (max-width: 900px) {
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-card { padding: 24px; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--night-line); padding: 40px 0 120px; color: var(--muted-on-night); font-size: var(--step--1); }
.foot p + p { margin-top: 12px; }
.foot .brand { color: var(--white); display: flex; align-items: center; gap: 12px; }
.foot .logo { height: 36px; }
.foot .brand-en { display: inline; }

/* ---------- mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .nav { display: none; } .top-call { margin-left: auto; } }
@media (max-width: 900px) {
  .nav { display: none; }
  .top-call { margin-left: auto; }
  /* 모바일: 3D는 위쪽 화면, 설명은 아래 여백에 자막처럼 */
  #stage, .spot { top: 60px; bottom: auto; height: 50svh; }
  .panel, .p-intro, .p-left, .p-right, .p-low, .p-low-right, .p-center {
    left: 16px; right: 16px; top: calc(60px + 50svh + 16px); bottom: auto; margin: 0; max-width: none;
    padding: 0; background: none; backdrop-filter: none; box-shadow: none; text-align: center;
  }
  .panel h1 { font-size: 1.6rem; text-shadow: none; }
  .panel h2 { font-size: var(--step-2); }
  .panel p { font-size: 0.95rem; margin-top: 6px; line-height: 1.55; }
  .panel ul, .panel .hero-actions { display: none; }
  .scroll-hint { margin-top: 10px !important; }
  .rail { bottom: 86px; max-width: calc(100% - 32px); overflow-x: auto; }
  .rail button { padding: 6px 10px; white-space: nowrap; }
  .rec { inset: 68px 8px auto 8px; height: calc(50svh - 16px); }
  .rec .c { width: 22px; height: 22px; }
  .rec-label { left: 30px; top: 8px; } .rec-time { right: 30px; top: 8px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--night-line); }
  .stats > div { padding: 20px 0 24px; }
  .svc-cols, .quote-grid, .studio-grid, .studio-grid.flip, .buyer-grid { grid-template-columns: 1fr; gap: 40px; }
  .studio-grid.flip > .ph { order: 0; }
  .result { position: static; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .cuesheet li { grid-template-columns: 72px 1fr; gap: 4px 16px; }
  .cuesheet .who { grid-column: 2; justify-content: flex-start; text-align: left; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(15,23,51,0.95); border-top: 1px solid var(--night-line);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; text-decoration: none; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--muted-on-night); }
  .mobile-bar .mb-led { background: var(--led); color: var(--ink); box-shadow: none; }
}
@media (max-width: 560px) {
  .top-call { font-size: var(--step--1); }
  .brand-en { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid li.w-wide { grid-column: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
}
