@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("./assets/fonts/PretendardVariable.subset.woff2") format("woff2-variations");
}

/* 언어 전환 (헤더 우측) */
.lang-switch { display: inline-flex; align-items: center; gap: 10px; margin-left: 16px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.22); }
.lang-switch a { font-size: 0.82rem; font-weight: 600; opacity: 0.72; letter-spacing: 0.01em; }
.lang-switch a:hover, .lang-switch a:focus-visible { opacity: 1; }
@media (max-width: 720px) { .lang-switch { margin-left: 10px; padding-left: 10px; gap: 8px; } .lang-switch a { font-size: 0.76rem; } }

/* 중문 페이지: 간체/번체 중국어 폰트 우선(프리텐다드엔 중문 한자 부족) */
html[lang="zh-Hans"] { --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Pretendard Variable", -apple-system, sans-serif; }
html[lang="zh-Hant"] { --font-main: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Pretendard Variable", -apple-system, sans-serif; }

:root {
  --ink: #10151b;
  --paper: #fbfaf5;
  --cream: #f4efe3;
  --line: #dbe3e5;
  --muted: #66717a;
  --green: #0f7f62;
  --green-dark: #0d3e31;
  --navy: #132238;
  --blue: #226bd8;
  --gold: #c6924e;
  --white: #fffdf8;
  --shadow: 0 18px 48px rgba(16, 21, 27, 0.14);
  --font-main: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Spacing scale (8pt 기반) ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;
  --space-11: 96px;
  --space-12: 120px;

  /* ── Radius scale ── */
  --radius-xs: 2px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* ── Type scale (clamp 반응형) ── */
  --fs-display: clamp(3rem, 5.4vw, 4.4rem);
  --fs-h1: clamp(2.4rem, 3.4vw, 3.4rem);
  --fs-h2: clamp(2rem, 2.6vw, 2.6rem);
  --fs-h3: clamp(1.3rem, 1.6vw, 1.55rem);
  --fs-lead: clamp(1.05rem, 1.3vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;

  /* ── Shadow elevation ── */
  --shadow-sm: 0 4px 14px rgba(16, 21, 27, 0.08);
  --shadow-md: 0 14px 36px rgba(16, 21, 27, 0.12);
  --shadow-lg: 0 24px 60px rgba(16, 21, 27, 0.18);
  --shadow-overlay: 0 30px 90px rgba(0, 0, 0, 0.5);

  /* ── Tracking ── */
  --tracking-wide: 0.18em;
  --tracking-tight: -0.02em;

  /* ── Layout ── */
  --container: 1120px;
  --gutter: var(--space-5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(15, 127, 98, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--green);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: 104px 1fr;
  justify-items: center;
  align-items: center;
  min-height: 206px;
  padding: calc(26px + env(safe-area-inset-top)) 44px 18px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(180deg, rgba(5, 9, 12, 0.72), rgba(5, 9, 12, 0.16));
  transition: background 180ms ease, box-shadow 180ms ease;
}

/* 메인 히어로월: topbar 배경·경계선 제거로 상단 검은 박스 없앰(스크롤 시 is-scrolled가 다시 배경). nav 가독성은 텍스트 그림자로. */
.topbar--wall { background: none; border-bottom-color: transparent; }
.topbar--wall .brand span,
.topbar--wall .nav a { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.78); }

.topbar.is-scrolled {
  background: rgba(5, 9, 12, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 1.12rem;
  line-height: 1;
  font-weight: 860;
  font-variation-settings: "wght" 860;
}

/* <picture> 래퍼가 레이아웃에서 사라져 기존 `.container img` 규칙 유지 */
picture {
  display: contents;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  width: min(980px, calc(100vw - 220px));
  overflow-x: auto;
  padding-bottom: 0;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 780;
  font-variation-settings: "wght" 780;
  white-space: nowrap;
  background: transparent;
}


.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #111;
}

.hero video,
.hero .hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 13, 20, 0.82) 0%, rgba(6, 13, 20, 0.62) 42%, rgba(6, 13, 20, 0.22) 100%),
    linear-gradient(0deg, rgba(6, 13, 20, 0.55), rgba(6, 13, 20, 0.12));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 82px;
}

.route-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero h1 {
  max-width: 880px;
  margin: 24px 0 18px;
  font-size: clamp(4rem, 4.6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  font-weight: 880;
  font-variation-settings: "wght" 880;
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.22rem, 1.5vw, 1.38rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.editorial-actions {
  margin-top: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero.editorial {
  min-height: 100vh;
  align-items: flex-start;
  background:
    radial-gradient(circle at 84% 18%, rgba(15, 127, 98, 0.28), transparent 30%),
    linear-gradient(135deg, #071210 0%, #10151b 56%, #0b1f19 100%);
}

.hero.editorial video {
  opacity: 0.34;
  filter: saturate(0.78) contrast(1.08) brightness(0.78);
}

.hero.editorial::after {
  background:
    linear-gradient(90deg, rgba(5, 9, 12, 0.86) 0%, rgba(5, 9, 12, 0.84) 38%, rgba(5, 9, 12, 0.34) 74%, rgba(5, 9, 12, 0.1) 100%),
    radial-gradient(circle at 26% 66%, rgba(15, 127, 98, 0.12), transparent 32%),
    linear-gradient(0deg, rgba(5, 9, 12, 0.78), rgba(5, 9, 12, 0.08));
}

.hero.editorial .hero-inner {
  width: min(1248px, calc(100% - 80px));
  margin-left: max(40px, 6.6vw);
  margin-right: auto;
  padding-top: 0;
  padding-bottom: var(--space-9);
  transform: translateY(150px);
}

/* ===== 히어로 A/B 변형 (대표님 검토용: ?hero=mood / ?hero=hybrid) — 기본값 미영향 ===== */
/* 무드형: 풀블리드 시네마틱 영상 + 중앙 확신 한 줄, 콜라주·설명문단 제거 */
.hero.editorial.hero-mood { align-items: center; }
.hero.editorial.hero-mood video { opacity: 0.6; filter: saturate(0.92) contrast(1.05) brightness(0.66); }
.hero.editorial.hero-mood::after {
  background:
    linear-gradient(0deg, rgba(5,9,12,0.84) 0%, rgba(5,9,12,0.26) 48%, rgba(5,9,12,0.52) 100%),
    radial-gradient(circle at 50% 42%, rgba(15,127,98,0.10), transparent 42%);
}
.hero.editorial.hero-mood .hero-inner {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
  transform: none;
  padding-bottom: 0;
}
.hero.editorial.hero-mood .hero-kicker { margin-left: auto; margin-right: auto; }
.hero.editorial.hero-mood h1 {
  max-width: 17ch;
  margin: 8px auto 0;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 1.06;
}
.hero.editorial.hero-mood .hero-actions { justify-content: center; }
.hero.editorial.hero-mood .hero-scrollhint { text-align: center; }

/* 하이브리드형: 현재 구조 유지 + 첫 화면 설명문단만 제거, 헤드라인 약간 키움 */
.hero.editorial.hero-hybrid .hero-inner { transform: translateY(132px); }
.hero.editorial.hero-hybrid h1 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); }

/* 스크롤 힌트: 첫 화면에서 뺀 핵심 포지셔닝(제주·AI숏폼)을 조용히 유지 */
.hero-scrollhint {
  margin-top: 22px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

.hero-watermark {
  display: none;
}

/* ===== 메인 포트폴리오-퍼스트 히어로 — 어두운 2줄 반대방향 마퀴 영상월 ===== */
.hero.hero-wall {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #04070a;
}
.hero-wall__rows {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
/* 행은 뷰포트 폭 클리핑 컨테이너 — 화면 밖 절대위치 타일은 페인트 영역 밖이라 레이어가 작게 유지됨.
   마퀴는 JS(setupHeroWall)가 각 타일을 translateX로 이동·재활용(캐러셀). 4줄이라 높이 축소. */
.hw-row {
  position: relative;
  width: 100%;
  height: max(120px, calc(100vh / 4));
  overflow: hidden;
}
.hw-tile {
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  background-color: #0b1116;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}
.hw-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hw-tile video {
  opacity: 0;
  transition: opacity 0.7s ease;
  z-index: 1;
}
.hw-tile.is-playing video { opacity: 1; }
.hw-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(4, 7, 10, 0.16) 0%, transparent 22%);
}
.hw-tile figcaption {
  position: absolute;
  left: 13px;
  bottom: 11px;
  z-index: 3;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 720;
  font-variation-settings: "wght" 720;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.25s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}
.hw-tile:hover figcaption { opacity: 1; }

/* 전체 어둡게(대표 요청 "훨씬 검게") + 상단 nav·하단 CTA 대비용 스크림 */
.hero.hero-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 7, 10, 0.34) 0%, transparent 22%, transparent 74%, rgba(4, 7, 10, 0.9) 100%),
    linear-gradient(0deg, rgba(4, 7, 10, 0.5), rgba(4, 7, 10, 0.5));
}
/* 우하단 코너 비네트(견적 CTA 대비) — base .hero::after 전면 오버레이 대체 */
.hero.hero-wall::after { display: none; }
.hero-wall__eyebrow {
  position: absolute;
  left: max(32px, 5vw);
  bottom: max(34px, 4.6vh);
  z-index: 4;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 600;
  font-variation-settings: "wght" 600;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.hero-wall__cta {
  position: absolute;
  right: max(32px, 5vw);
  bottom: max(30px, 4.4vh);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 22px;
}
.hero-wall__more {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 620;
  font-variation-settings: "wght" 620;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-wall__more:hover {
  color: #fff;
  border-color: var(--gold);
}
.hero.hero-wall .btn.primary {
  color: #10151b;
  background: var(--gold);
  border-color: var(--gold);
  min-height: 54px;
  padding: 0 32px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
}
.hero.hero-wall .btn.primary:hover {
  background: #d4a35f;
  border-color: #d4a35f;
  color: #10151b;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  /* 모바일: 100vh 가운데정렬을 끊고 콘텐츠 기반 높이로 — 위는 nav 여백, 아래는 CTA·eyebrow 예약.
     (100vh 중앙정렬이 세로 폰에서 위아래 거대한 빈 검은 띠를 만들던 버그 해결) */
  .hero.hero-wall {
    min-height: 0;
    height: auto;
    justify-content: flex-start;
    padding-top: calc(144px + env(safe-area-inset-top));
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
  /* 모바일은 배경이 이미 검고 CTA·eyebrow가 검은 밴드 위라, 데스크탑용 어둠 오버레이(전체 veil +
     우하단 비네트)가 오히려 "반투명 검은 덩어리"로 보임 → 모바일에서만 제거해 타일을 선명하게. */
  .hero.hero-wall::after { display: none; }
  /* 모바일도 균일한 무드 어둠(밀도 높은 4줄이라 veil이 아니라 의도된 톤으로 읽힘) + nav/CTA 스크림 */
  .hero.hero-wall::before {
    display: block;
    background:
      linear-gradient(180deg, rgba(3, 6, 9, 0.34) 0%, transparent 24%, transparent 82%, rgba(3, 6, 9, 0.7) 100%),
      linear-gradient(0deg, rgba(3, 6, 9, 0.42), rgba(3, 6, 9, 0.42));
  }
  .hero-wall__rows { gap: 0; }
  .hw-row { height: clamp(92px, 13vh, 122px); height: clamp(92px, 13svh, 122px); }
  .hw-tile { border-radius: 0; }
  .hero-wall__eyebrow {
    top: auto;
    left: 20px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    font-size: 0.74rem;
  }
  .hero-wall__cta {
    left: 20px;
    right: 20px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    justify-content: space-between;
    gap: 12px;
  }
}

/* 모션 최소화: 마퀴 정지(JS가 정적 배치) + 영상 재생 억제(JS는 별도로 src 미부여) */
@media (prefers-reduced-motion: reduce) {
  .hw-tile video { display: none; }
}

.hero-showcase {
  position: absolute;
  top: -15vh;
  right: -16vw;
  z-index: 1;
  width: min(64vw, 960px);
  height: 128vh;
  pointer-events: none;
}

.hero-showcase figure {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  transform: none;
}

.hero-showcase figure:nth-child(1) { top: 4%;  left: 4%;  width: 44%; height: 29%; }
.hero-showcase figure:nth-child(2) { top: 37%; left: 4%;  width: 44%; height: 29%; }
.hero-showcase figure:nth-child(3) { top: 70%; left: 4%;  width: 44%; height: 29%; }
.hero-showcase figure:nth-child(4) { top: 20%; left: 52%; width: 44%; height: 29%; }
.hero-showcase figure:nth-child(5) { top: 53%; left: 52%; width: 44%; height: 29%; }
.hero-showcase figure:nth-child(6) { top: 86%; left: 52%; width: 44%; height: 29%; }

.hero-showcase img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.hero-showcase figcaption {
  display: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: var(--fs-xs);
  line-height: 1;
  font-weight: 760;
  font-variation-settings: "wght" 760;
  letter-spacing: 0.12em;
  word-spacing: 1em;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

/* 메인 히어로 전용 한글 eyebrow — 대문자/word-spacing 해제 + 골드 라인 액센트 */
.hero-kicker--home {
  text-transform: none;
  word-spacing: normal;
  letter-spacing: 0.02em;
  gap: 12px;
  color: var(--gold);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-variation-settings: "wght" 700;
}
.hero-kicker--home::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

.hero.editorial .hero-intro {
  max-width: 460px;
  margin-top: var(--space-7);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-lead);
  line-height: 1.55;
  font-weight: 680;
  font-variation-settings: "wght" 680;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.74);
}

.hero-prefix {
  margin-top: var(--space-7);
  color: rgba(255, 255, 255, 0.66);
  font-size: var(--fs-sm);
  font-weight: 720;
  font-variation-settings: "wght" 720;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.76);
}

.hero.editorial h1 {
  max-width: 720px;
  margin-top: var(--space-4);
  font-size: var(--fs-display);
  line-height: 1.12;
  letter-spacing: var(--tracking-tight);
  font-weight: 820;
  font-variation-settings: "wght" 820;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.78);
}

.hero.editorial .hero-lead {
  max-width: 600px;
  margin-top: var(--space-5);
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-body);
  line-height: 1.76;
  font-weight: 520;
  font-variation-settings: "wght" 520;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.74);
}

.hero.editorial .btn.secondary {
  color: var(--white);
  min-width: 124px;
  min-height: 46px;
  border-radius: 0;
  background: rgba(5, 9, 12, 0.18);
  border-color: rgba(255, 255, 255, 0.62);
}

.hero.editorial .hero-trust span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
}

/* 메인 CTA — 골드 채움(프리미엄·전환 위계 명확) */
.btn.primary {
  color: #10151b;
  background: var(--gold);
  border-color: var(--gold);
  letter-spacing: -0.01em;
}

.btn.primary:hover {
  background: #b5813f;
  border-color: #b5813f;
  color: #10151b;
  box-shadow: 0 12px 28px rgba(198, 146, 78, 0.32);
  transform: translateY(-1px);
}

/* 어두운 배경(히어로/스티키)에서는 원래대로 흰 아웃라인 (원본 복구) */
.hero .btn.primary,
.sticky .btn.primary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.82);
}

.hero .btn.primary:hover,
.sticky .btn.primary:hover {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

/* 에디토리얼 히어로에선 secondary와 같은 각진 모양·크기로 한 쌍처럼 */
.hero.editorial .btn.primary {
  min-width: 124px;
  min-height: 46px;
  border-radius: 0;
}

.btn.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.section {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(88px, 8vw, 128px) 0;
  scroll-margin-top: 112px;
}

.section.tight {
  padding-top: var(--space-7);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

/* 거대 고스트 스테이트먼트 워드 (에디토리얼 섹션 구분) */
.section-statement {
  display: block;
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: rgba(16, 21, 27, 0.05);
  margin: 0 0 -0.12em -0.04em;
  user-select: none;
  pointer-events: none;
}

.section-kicker {
  margin: 0 0 12px;
  color: #a07820; /* 라이트 배경 대비 WCAG AA 충족(기존 --gold는 2.6:1 미달) */
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}

.detail-jump {
  color: var(--white);
  background: #071210;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-jump-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
}

.detail-jump strong {
  font-size: 0.96rem;
  font-weight: 900;
  white-space: nowrap;
}

.detail-jump nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
}

.detail-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
}

.detail-overview {
  color: var(--white);
  background:
    radial-gradient(circle at 88% 8%, rgba(15, 127, 98, 0.22), transparent 30%),
    linear-gradient(135deg, #071210 0%, #10151b 64%, #0c2f25 100%);
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  align-items: center;
  gap: var(--space-8);
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: var(--space-10) 0;
}

.detail-copy .section-kicker {
  color: #a07820;
}

.detail-copy h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: 1.18;
  letter-spacing: var(--tracking-tight);
  font-weight: 880;
  font-variation-settings: "wght" 880;
}

.detail-copy p:not(.section-kicker) {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.05rem;
  line-height: 1.78;
}

.detail-window-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-window {
  min-height: 240px;
  padding: 26px 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-window-visual {
  display: block;
  width: 100%;
  height: auto; /* pic()가 넣은 height 속성이 aspect-ratio 덮는 것 방지 */
  aspect-ratio: 4 / 3;
  margin: 0 0 18px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.08);
  filter: saturate(0.9) contrast(1.04);
}

.detail-window:first-child {
  border-left: 0;
}

.detail-window span {
  color: #97e8d1;
  font-size: 0.9rem;
  font-weight: 900;
}

.detail-window h3 {
  margin: 34px 0 14px;
  font-size: 1.28rem;
  line-height: 1.22;
}

.detail-window p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.62;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.core-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (min-width: 981px) {
  #services .core-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  /* aspect-ratio + 확정 height(min-height 344px)가 width를 459px로 강제해
     좁은 트랙을 넘쳐 카드가 겹치고 가로 스크롤을 유발하던 문제 수정:
     auto로 두면 카드가 트랙 폭을 채우고 높이는 min-height가 담당 */
  #services .core-grid .service-card {
    aspect-ratio: auto;
  }
  #services .core-grid .service-card:first-child {
    grid-column: span 2;
  }
  #services .core-grid .service-card:first-child h3 {
    max-width: 9ch;
    font-size: clamp(1.8rem, 2.6vw, 2.55rem);
  }
}

.service-card {
  aspect-ratio: 4 / 3;
  min-height: 0;
  position: relative;
  display: block;
  min-height: 344px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-xs);
  background: var(--ink);
  box-shadow: none;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 9, 12, 0.02), rgba(5, 9, 12, 0.74)),
    linear-gradient(90deg, rgba(5, 9, 12, 0.62), rgba(5, 9, 12, 0.08));
  transition: opacity 180ms ease;
}

.service-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  background: var(--cream);
  filter: saturate(0.94) contrast(1.02);
  transition: transform 260ms ease, filter 260ms ease;
}

.service-card:hover img,
.service-card:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.05);
}

.service-card-body {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.path {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  font-weight: 840;
  font-variation-settings: "wght" 840;
  letter-spacing: 0;
}

.service-card h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.55rem;
  line-height: 1.15;
  font-weight: 900;
  font-variation-settings: "wght" 900;
}

.service-card strong {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
  font-size: 0.92rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.support-card {
  aspect-ratio: 16 / 9;
  min-height: 0;
  position: relative;
  display: block;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius-xs);
  color: var(--white);
  background: var(--ink);
}

.support-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 12, 0.04), rgba(5, 9, 12, 0.7));
}

.support-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 500ms ease;
}

.support-card:hover img,
.support-card:focus-visible img {
  transform: scale(1.05);
}

.support-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.25;
}

.portfolio-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--space-3);
}

.portfolio-item {
  aspect-ratio: 4 / 3;
  position: relative;
  display: block;
  min-height: 252px;
  overflow: hidden;
  border-radius: var(--radius-xs);
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
  transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 240ms ease;
}

.portfolio-item:hover,
.portfolio-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-meta strong {
  transition: transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.portfolio-item:hover .portfolio-meta strong {
  transform: translateY(-2px);
}

.portfolio-item.is-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 514px;
}

.portfolio-item.is-wide {
  grid-column: span 2;
}

.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 9, 12, 0.02), rgba(5, 9, 12, 0.72)),
    linear-gradient(90deg, rgba(5, 9, 12, 0.44), rgba(5, 9, 12, 0.08));
  opacity: 0.86;
  transition: opacity 180ms ease;
}

.portfolio-item:hover::after {
  opacity: 0.66;
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.03);
  transition: transform 260ms ease, filter 260ms ease;
}

.portfolio-item:hover img,
.portfolio-item:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.06);
}

.portfolio-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  gap: 6px;
}

.portfolio-meta small {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(5, 9, 12, 0.28);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.portfolio-meta strong {
  color: var(--white);
  font-size: 1.06rem;
  line-height: 1.22;
  font-weight: 900;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.78);
}

.featured-wall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: var(--space-3);
}

/* 홈 쇼케이스: 기본은 균일 4:3, 대표작만 2x2 피처로 위계 */
.featured-wall .portfolio-item {
  grid-column: span 1;
  grid-row: span 1;
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.featured-wall .portfolio-item.is-large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.featured-wall .portfolio-item.is-wide {
  grid-column: span 2;
  aspect-ratio: 8 / 3;
}

/* 상세페이지 포폴 월: 세로 원본이 길게 늘어지지 않게 4:3 균일 고정(홈과 동일) */
.detail-wall .portfolio-item {
  aspect-ratio: 4 / 3;
  min-height: 0;
}
.detail-wall .portfolio-item img {
  height: 100%;
  min-height: 0;
}

.full-wall .portfolio-item:nth-child(9n + 4),
.full-wall .portfolio-item:nth-child(11n + 7) {
  grid-column: span 2;
}

.detail-wall {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-wall .portfolio-item {
  min-height: 246px;
}

.portfolio-preview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.studio-preview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.preview-tile {
  aspect-ratio: 4 / 3;
  min-height: 0;
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-xs);
  background: var(--ink);
}

.preview-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 12, 0.02), rgba(5, 9, 12, 0.62));
}

.preview-tile img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 220ms ease;
}

.preview-tile:hover img {
  transform: scale(1.04);
}

.preview-tile span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 880;
  font-variation-settings: "wght" 880;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-xs);
  background: var(--white);
}

.shot::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(5, 9, 12, 0), rgba(5, 9, 12, 0.72));
  pointer-events: none;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  display: block;
  background: var(--cream);
}

.shot figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  display: block;
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.38;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.detail-scope {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scope-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: start;
  margin-bottom: 34px;
}

.scope-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.scope-checks span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(15, 127, 98, 0.2);
  border-radius: var(--radius-pill);
  color: var(--green-dark);
  background: rgba(15, 127, 98, 0.06);
  font-weight: 880;
  font-variation-settings: "wght" 880;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.proof-item {
  min-height: 220px;
  padding: 28px 24px 12px;
  border-left: 1px solid var(--line);
}

.proof-item:first-child {
  border-left: 0;
}

.proof-item span {
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 920;
  font-variation-settings: "wght" 920;
}

.proof-item h3 {
  margin: 34px 0 14px;
  font-size: 1.28rem;
  line-height: 1.24;
}

.proof-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.related-strip {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 10px;
}

.related-card {
  aspect-ratio: 16 / 10;
  min-height: 0;
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-xs);
  color: var(--white);
  background: var(--ink);
}

.related-strip .related-card:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

.related-strip .related-card:first-child span {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  left: 22px;
  right: 22px;
  bottom: 20px;
}

.related-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 12, 0.05), rgba(5, 9, 12, 0.76));
}

.related-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.related-card:hover img,
.related-card:focus-visible img {
  transform: scale(1.04);
}

.related-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.25;
}

.cta-band {
  position: relative;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 64px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  text-align: center;
}

.cta-video {
  display: none;
}

.cta-band h2 {
  max-width: 20ch;
  margin: 0 auto 14px;
  font-size: clamp(1.72rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.cta-band p {
  max-width: 52ch;
  margin: 0 auto 30px;
  color: var(--muted);
  line-height: 1.7;
}

.cta-band .cta-note {
  margin-top: 0;
  color: var(--muted);
  font-weight: 500;
}

.privacy-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.privacy-note a,
footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-embed {
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: var(--white);
  scroll-margin-top: 112px;
}

.form-embed iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.contact-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* 밝은 카드 위에서의 보조 버튼 (고스트) */
.cta-band .btn.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.cta-band .btn.secondary:hover {
  border-color: var(--muted);
  background: var(--cream);
  transform: translateY(-1px);
}

.route-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.route-strip a {
  min-height: 46px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.sticky {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: rgba(19, 34, 56, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(140%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.sticky.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky b {
  display: block;
  font-size: 1rem;
}

.sticky span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.sticky .btn {
  min-width: 116px;
  min-height: 44px;
}

footer {
  display: grid;
  gap: 8px;
  padding: 34px 20px calc(110px + env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  background: var(--ink);
}

footer strong {
  color: var(--white);
  font-size: 1.06rem;
}

footer span {
  display: block;
}

footer a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.noscript-fallback {
  width: min(760px, calc(100% - 32px));
  margin: 56px auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow);
}

.noscript-fallback img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
}

.noscript-fallback h1 {
  margin: 20px 0 12px;
  font-size: 2rem;
  line-height: 1.18;
}

.noscript-fallback p,
.noscript-fallback li {
  color: var(--muted);
  line-height: 1.65;
}

.noscript-fallback ul {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding-left: 20px;
}

.legal-page {
  min-height: 100vh;
  background: var(--paper);
}

.legal-card {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 86px;
}

.legal-brand {
  color: var(--ink);
  margin-bottom: 36px;
}

.legal-card h1 {
  margin: 0 0 16px;
  font-size: 2.5rem;
  line-height: 1.16;
}

.legal-lead,
.legal-card p {
  color: var(--muted);
  line-height: 1.78;
}

.legal-card section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.legal-date {
  margin-top: 28px;
}

.legal-home {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .section {
    scroll-margin-top: 152px;
  }

  .topbar {
    grid-template-rows: auto auto;
    justify-items: start;
    align-items: start;
    min-height: 132px;
    row-gap: 16px;
    padding: 18px 16px 12px;
  }

  .brand {
    gap: 10px;
    font-size: 1.08rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .nav {
    justify-content: flex-start;
    gap: 24px;
    width: 100%;
  }

  .hero {
    min-height: 86vh;
  }

  .hero.editorial {
    min-height: 94vh;
  }

  .hero-showcase {
    right: -24vw;
    width: 72vw;
    opacity: 1;
  }

  .hero-showcase figure {
    min-height: 112px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero.editorial h1 {
    font-size: 3rem;
  }

  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .core-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 태블릿(641-980px): min-height 344px + aspect 4/3이 width를 459px로 강제해
     2칼럼 트랙(~355px)을 넘쳐 가로 스크롤 유발하던 기존 버그 수정 */
  .core-grid .service-card {
    min-height: auto;
  }

  .portfolio-wall,
  .detail-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .featured-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio-item,
  .detail-wall .portfolio-item {
    min-height: 214px;
  }

  .portfolio-item.is-large,
  .featured-wall .portfolio-item.is-large {
    min-height: 438px;
  }

  .detail-shell,
  .scope-layout {
    grid-template-columns: 1fr;
  }

  .detail-window-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .detail-window,
  .proof-item {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .proof-item {
    border-top-color: var(--line);
  }

  .detail-window:first-child,
  .proof-item:first-child {
    border-top: 0;
  }

  .scope-checks {
    justify-content: flex-start;
  }

  .portfolio-grid,
  .route-strip,
  .related-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-strip .related-card:first-child {
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .portfolio-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (min-width: 981px) and (max-width: 1180px) {
  .hero.editorial h1 {
    max-width: 520px;
    font-size: 2.88rem;
    line-height: 1.12;
  }

  .hero.editorial .hero-lead {
    max-width: 540px;
  }

  .hero-showcase {
    right: -28vw;
    width: 78vw;
  }
}

@media (max-width: 640px) {
  .hero-inner,
  .section {
    width: min(100% - 32px, 1120px);
  }

  .hero h1 {
    font-size: 2.34rem;
    line-height: 1.14;
  }

  .hero.editorial {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 34px;
  }

  .hero.editorial::after {
    background:
      linear-gradient(90deg, rgba(5, 9, 12, 0.94), rgba(5, 9, 12, 0.78)),
      linear-gradient(0deg, rgba(5, 9, 12, 0.82), rgba(5, 9, 12, 0.18));
  }

  .hero.editorial .hero-inner {
    order: 1;
    width: min(100% - 32px, 1120px);
    padding-top: 132px;
    padding-bottom: 22px;
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }

  .hero-showcase {
    order: 2;
    display: grid;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: min(100% - 32px, 520px);
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    opacity: 1;
    height: auto;
    pointer-events: auto;
  }

  .hero-showcase figure,
  .hero-showcase figure:nth-child(n) {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    aspect-ratio: 4 / 3;
    transform: none;
    min-height: 72px;
    border-radius: 6px;
  }

  .hero-showcase figcaption {
    display: none;
  }

  .hero-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    word-spacing: 0.5em;
  }

  .hero.editorial .hero-intro {
    margin-top: 42px;
    font-size: 1rem;
  }

  .hero.editorial h1 {
    font-size: 2.02rem;
    line-height: 1.2;
  }

  .hero.editorial .hero-lead {
    font-size: 1rem;
  }

  .hero p {
    font-size: 1.04rem;
  }

  .section {
    padding: 58px 0;
  }

  .detail-jump-inner {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 32px, 1120px);
  }

  .detail-jump nav {
    justify-content: flex-start;
    width: 100%;
  }

  .detail-shell {
    width: min(100% - 32px, 1120px);
    padding: 58px 0;
  }

  .detail-copy h2 {
    font-size: 1.82rem;
  }

  .detail-copy p:not(.section-kicker) {
    font-size: 1rem;
  }

  .detail-window {
    min-height: 0;
    padding: 22px 0;
  }

  .detail-window h3,
  .proof-item h3 {
    margin-top: 18px;
  }

  .section.tight {
    padding-bottom: 84px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .section h2,
  .cta-band h2 {
    font-size: 1.68rem;
  }

  .route-grid,
  .core-grid,
  .support-grid,
  .portfolio-wall,
  .detail-wall,
  .portfolio-grid,
  .route-strip,
  .related-strip {
    grid-template-columns: 1fr;
  }

  .portfolio-item,
  .detail-wall .portfolio-item,
  .featured-wall .portfolio-item {
    min-height: 224px;
  }

  .portfolio-item.is-large,
  .portfolio-item.is-wide,
  .full-wall .portfolio-item:nth-child(9n + 4),
  .full-wall .portfolio-item:nth-child(11n + 7) {
    grid-column: auto;
    grid-row: auto;
    min-height: 224px;
  }

  /* 모바일에서도 대표작은 풀폭 16:9 피처 배너로 위계 유지 */
  .featured-wall .portfolio-item.is-large {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .shot img {
    aspect-ratio: 4 / 3;
  }

  .shot figcaption {
    font-size: 0.88rem;
  }

  .proof-item {
    padding: 24px 0;
  }

  .portfolio-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-tile,
  .preview-tile img {
    min-height: 156px;
  }

  .service-card {
    min-height: auto;
  }

  /* 모바일: 카드 이미지가 세로로 과하게 길어지지 않게 비율 고정 */
  .service-card img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .cta-band {
    padding: var(--space-6);
  }

  .form-embed iframe {
    min-height: 700px;
  }

  .sticky {
    display: flex;
    left: 12px;
    right: 12px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
    padding: 10px 12px;
  }

  .sticky > div {
    min-width: 0;
    flex: 1;
  }

  .sticky b {
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .sticky span {
    font-size: 0.76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sticky .btn {
    min-width: 104px;
    min-height: 44px;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/* Scroll-reveal entrance (JS-driven; safe fallback reveals all) */
.vr-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.vr-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* 프리미엄 이미지 페이드인 — 기본 opacity:1(안전). JS가 로드 전에만 pic-pending으로 숨김. */
.pic-fade {
  transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pic-fade.pic-pending {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .pic-fade {
    transition: none;
  }
  .pic-fade.pic-pending {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vr-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .portfolio-item,
  .portfolio-meta strong,
  .service-card img,
  .portfolio-item img,
  .related-card img,
  .preview-tile img,
  .support-card img {
    transition: none !important;
  }

  .btn:hover,
  .portfolio-item:hover,
  .service-card:hover img,
  .portfolio-item:hover img,
  .support-card:hover img {
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== 포트폴리오 → 실제 영상/사이트 연결 (클릭 재생 라이트박스) ===== */
.portfolio-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%) scale(0.92);
  border-radius: 50%;
  background: rgba(12, 16, 19, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease;
  pointer-events: none;
}
.portfolio-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.portfolio-item:hover .portfolio-play,
.portfolio-item:focus-visible .portfolio-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(15, 127, 98, 0.78);
}
.portfolio-open {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  color: #0c1013;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}
.portfolio-item:hover .portfolio-open,
.portfolio-item:focus-visible .portfolio-open {
  opacity: 1;
  transform: translateY(0);
}

.vr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(6, 9, 12, 0.86);
  backdrop-filter: blur(6px);
}
.vr-lightbox.is-open {
  display: flex;
  animation: vrFade 200ms ease both;
}
@keyframes vrFade { from { opacity: 0; } to { opacity: 1; } }
.vr-lightbox-stage {
  width: min(1100px, 100%);
  max-height: 86vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-overlay);
  background: #000;
}
.vr-lightbox-stage video {
  display: block;
  width: 100%;
  max-height: 86vh;
  background: #000;
}
.vr-lightbox-close {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 180ms ease;
}
.vr-lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }
@media (prefers-reduced-motion: reduce) {
  .vr-lightbox.is-open { animation: none; }
  .portfolio-play, .portfolio-open { transition: none; }
}

/* 라이트박스 캡션(영상 위 제목) + 포스터 로딩 개선 */
.vr-lightbox-stage {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.vr-lightbox-stage video {
  max-height: 78vh;
}
.vr-lightbox-caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(10, 14, 17, 0.94);
  color: #fff;
}
.vr-cap-label {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}
.vr-cap-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===== 컨설팅 사전 질문지 폼 (컨설팅 페이지 전용) ===== */
.cta-band.has-form {
  text-align: left;
}
.cta-band.has-form > h2,
.cta-band.has-form > .cta-note {
  text-align: center;
}
.consult-form {
  display: grid;
  gap: 14px;
  max-width: 620px;
  margin: 26px auto 0;
  text-align: left;
}
.consult-field {
  display: grid;
  gap: 6px;
}
.consult-field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.consult-field input,
.consult-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.96rem;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.consult-field textarea {
  resize: vertical;
  min-height: 52px;
}
.consult-field input::placeholder,
.consult-field textarea::placeholder {
  color: #aab2b8;
}
.consult-field input:focus,
.consult-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16, 21, 27, 0.08);
}
.consult-form .btn.primary {
  width: 100%;
  margin-top: 6px;
}
.consult-hint {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

/* 서버리스 문의 전송 성공 시 폼 대체 메시지 */
.consult-sent {
  padding: 28px 24px;
  border: 1px solid rgba(15, 107, 87, 0.28);
  border-radius: 14px;
  background: rgba(15, 107, 87, 0.06);
  color: var(--ink);
  text-align: center;
  line-height: 1.7;
  font-size: 0.98rem;
}
.consult-sent strong { color: #0f6b57; font-size: 1.08rem; }

/* 다국어(영/중) 문의 폼 — 라이트 BASIC 페이지(.en-cta)에 맞춘 좌측정렬 폼 */
.en-form { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; max-width: 460px; text-align: left; }
.en-form-in {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--en-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--en-ink);
  font: inherit;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.en-form-in::placeholder { color: var(--en-sub); }
.en-form-in:focus { outline: none; border-color: var(--en-ink); background: #fff; }
textarea.en-form-in { resize: vertical; min-height: 92px; line-height: 1.5; }
.en-form-btn { margin-top: 4px; border: none; cursor: pointer; align-self: flex-start; }
.en-form-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.en-form-alt { color: var(--en-sub); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.en-form-alt:hover { color: var(--en-ink); }
.en-form-sent { margin-top: 26px; max-width: 460px; }

/* 다국어 상세 견적 폼(8필드, 라벨 포함) — 한국어 quoteForm 대칭 */
.en-form--quote { gap: 16px; max-width: 520px; }
.en-form-field { display: flex; flex-direction: column; gap: 6px; }
.en-form-field label { font-size: 0.82rem; font-weight: 600; color: var(--en-sub); letter-spacing: -0.01em; }
.en-form-field .req { color: #b4442f; }
.en-form-hint { margin: 2px 0 0; font-size: 0.86rem; color: var(--en-sub); line-height: 1.55; max-width: 52ch; }

/* 상세페이지 오버뷰 이미지 → 실제 사이트 링크 */
.detail-window-link {
  position: relative;
  display: block;
  border-radius: inherit;
  overflow: hidden;
}
.detail-window-link .portfolio-open {
  position: absolute;
  right: 10px;
  bottom: 10px;
  opacity: 0;
  transition: opacity 160ms ease;
}
.detail-window-link:hover .portfolio-open,
.detail-window-link:focus-visible .portfolio-open {
  opacity: 1;
}

/* 컨설팅 폼 필수 항목 표시 */
.consult-field .req { color: #d6453d; font-weight: 700; }
.consult-field input:required, .consult-field textarea:required { border-left: 2px solid var(--ink); }

/* 오버뷰 영상 버튼(클릭 재생) */
button.detail-window-link { display:block; width:100%; padding:0; border:0; background:none; cursor:pointer; position:relative; }
.detail-window-video .portfolio-play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); }

/* ===== 코덱스 개선 반영(전환·신뢰·접근성) ===== */
/* 섹션 부제 + 실적 proof bar */
.section-sub { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.proof-bar { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 16px 0 24px; padding: 0; }
.proof-bar li { display: flex; flex-direction: column; }
.proof-bar strong { font-size: 1.55rem; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.proof-bar span { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* 배지: hover 가능 기기는 hover/focus로만(원본 동작 유지). 터치 기기에선 hover가 없으니 상시 노출 */
@media (hover: none) {
  .portfolio-play { opacity: 0.82; transform: translate(-50%, -50%) scale(0.96); }
  .portfolio-open { opacity: 1; transform: translateY(0); }
  .detail-window-link .portfolio-open { opacity: 1; transform: translateY(0); }
}

/* sticky 문의 CTA 데스크탑에서도 노출(스크롤 후) */
.sticky { display: flex; }

/* 문의 블록: 주 CTA 하나 + 조용한 텍스트 링크 */
.contact-actions.single { justify-content: center; }
.cta-textlink { display: inline-block; margin-top: 12px; color: var(--muted); font-size: 0.9rem; text-decoration: underline; }
.cta-textlink:hover { color: var(--ink); }

/* FAQ(아코디언) — 데스크톱 2열로 펼쳐 우측 여백 균형 */
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); align-content: start; }
.faq-item { border-bottom: 1px solid var(--line); background: transparent; transition: border-color 180ms ease; }
.faq-item summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: var(--space-4) 0; font-weight: 700; color: var(--ink); list-style: none; transition: color 160ms ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; color: var(--gold); }
.faq-item summary::after { content: "+"; flex-shrink: 0; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; transition: color 160ms ease; }
.faq-item[open] summary { color: #a07820; }
.faq-item[open] summary::after { content: "\2212"; color: #a07820; }
.faq-item p { margin: 0 0 var(--space-4); max-width: 68ch; color: var(--muted); line-height: 1.7; }
@media (max-width: 720px) { .faq-list { grid-template-columns: 1fr; } }

/* 라이트박스 로딩 스피너 + 새 창 폴백 */
.vr-lightbox-spinner { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 3px solid rgba(255,255,255,0.25); border-top-color: #fff; border-radius: 50%; opacity: 0; pointer-events: none; z-index: 4; }
.vr-lightbox.is-loading .vr-lightbox-spinner { opacity: 1; animation: vrspin 0.8s linear infinite; }
@keyframes vrspin { to { transform: rotate(360deg); } }
.vr-lightbox-fallback { display: inline-block; margin-top: 10px; color: #fff; font-size: 0.9rem; text-decoration: underline; }
.vr-lightbox-fallback[hidden] { display: none; }
/* 오버뷰 사이트 배지 위치: top 리셋(top+bottom 동시적용으로 높이 늘어나던 흰 알약 버그 수정) → 우하단 작은 배지
   (상시 노출은 위 @media (hover:none) 블록에서만 처리 — hover 기기는 hover/focus로 노출) */
.detail-window-link .portfolio-open { top: auto; bottom: 10px; height: auto; }
/* 화면 예시(연결 없는) 페이지의 정적 타일 — 클릭/hover 효과 제거 */
figure.portfolio-item.is-static { cursor: default; }
figure.portfolio-item.is-static:hover img { transform: none; }
figure.portfolio-item.is-static::after { display: none; }
/* 정적 타일은 카드 hover 들림/그림자도 제거(클릭 가능처럼 보이지 않게) */
figure.portfolio-item.is-static:hover { transform: none; box-shadow: none; }
/* 전환 개선: 메일 폴백·신뢰 stat·빠른 상담 박스 */
.contact-fallback {
  margin: 14px auto 0;
  max-width: 540px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--muted);
}
.contact-fallback b { color: var(--ink); font-weight: 700; }
.contact-trust {
  margin: 0 auto 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--gold);
}
.consult-quick {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(20, 125, 101, 0.30);
  border-radius: var(--radius-md);
  background: rgba(20, 125, 101, 0.06);
  text-align: left;
}
.consult-quick p { margin: 0 0 12px; font-size: 0.92rem; line-height: 1.6; color: var(--ink); }
.consult-quick p b { color: #0f6b57; }
.consult-quick-btn { width: 100%; }

/* Clients / Partners strip */
#clients .section-head { text-align: center; }
#clients .section-head > div { margin: 0 auto; }
.client-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 30px;
  padding: 10px 0 0;
  margin: 0;
}
.client-strip li {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(19, 34, 56, 0.66);
  padding: 8px 4px;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}
.client-strip li:hover { color: var(--ink); transform: translateY(-1px); }
.client-note {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(19, 34, 56, 0.62);
}
@media (max-width: 640px) {
  .client-strip { gap: 10px 18px; }
  .client-strip li { font-size: 0.92rem; padding: 6px 2px; }
}

/* Clients: AI brand sub-group + trust badges */
.client-sub-label {
  text-align: center;
  margin: 26px 0 4px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(19, 34, 56, 0.66);
  text-transform: uppercase;
}
.client-strip.ai-brands li { font-size: 0.98rem; color: rgba(19, 34, 56, 0.6); }
.trust-badges {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 30px 0 0;
}
.trust-badges li {
  padding: 16px 16px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: rgba(16, 21, 27, 0.74);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}
.trust-badges li:nth-child(4n) { border-right: 0; }
.trust-badges li::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin-bottom: 10px;
  background: #a07820;
}
@media (max-width: 640px) {
  .trust-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-badges li { font-size: 0.78rem; padding: 14px 14px; }
  .trust-badges li:nth-child(4n) { border-right: 1px solid var(--line); }
  .trust-badges li:nth-child(2n) { border-right: 0; }
}

/* Clients: featured logo row (실제 협력사 로고) */
.client-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 42px;
  padding: 12px 0 20px;
  margin: 0;
}
.client-logos li { display: flex; align-items: center; }
.client-logos img {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 180ms ease, opacity 180ms ease;
}
.client-logos img:hover { filter: none; opacity: 1; }
@media (max-width: 640px) {
  .client-logos { gap: 16px 26px; }
  .client-logos img { height: 36px; }
}

/* Pricing / packages */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.price-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
  background: var(--white);
}
.price-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.price-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.price-card:hover .price-card-img { transform: scale(1.05); }
.price-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 18px; }
.price-card h3 { margin: 0 0 14px; font-size: 1.12rem; }
.price-card ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; flex: 1; }
.price-card li { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.price-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.price-card .tier { font-size: 0.82rem; font-weight: 600; color: rgba(19,34,56,0.6); }
.price-card .inc { font-size: 0.8rem; line-height: 1.5; color: rgba(19,34,56,0.66); }
.price-link { margin-top: auto; font-size: 0.86rem; font-weight: 700; color: var(--ink); }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

/* Case studies */

/* Kakao quick-inquiry button (contact) */
.contact-quickline { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.contact-quickline span { font-size: 0.82rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.kakao-btn { background: #FEE500; color: #191600; border: 0; font-weight: 700; }
.kakao-btn:hover { background: #ffd900; color: #191600; }

/* Testimonials */
/* 후기 집계 스탯 스트립 */
.review-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; margin: 0 0 28px; padding: 22px 28px; background: var(--ink); border-radius: var(--radius-md); }
.review-stat { display: flex; flex-direction: column; gap: 3px; }
.review-stat strong { font-size: 1.4rem; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -0.01em; }
.review-stat span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.review-source { margin-left: auto; color: #fff; font-weight: 700; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.42); padding-bottom: 2px; transition: color .18s ease, border-color .18s ease; }
.review-source:hover { color: var(--gold); border-color: var(--gold); }

.testimonial-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; }
.testimonial { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px 22px 18px; background: var(--white); display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.testimonial::before { content: "\201C"; position: absolute; top: 2px; right: 16px; font-size: 3.6rem; line-height: 1; color: rgba(198,146,78,0.2); font-family: Georgia, "Times New Roman", serif; pointer-events: none; }
.testimonial:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(16,21,27,0.1); border-color: rgba(198,146,78,0.4); }
.testimonial .stars { margin: 0; color: var(--gold); font-size: 0.98rem; letter-spacing: 2px; }
.testimonial blockquote { margin: 0; font-size: 1.02rem; line-height: 1.62; color: var(--ink); flex: 1; font-weight: 500; word-break: keep-all; }
.testimonial-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.testimonial cite { font-style: normal; font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.tm-tags { display: flex; gap: 6px; flex-shrink: 0; }
.tm-tags em { font-style: normal; font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tm-svc { color: rgba(16,21,27,0.6); background: rgba(16,21,27,0.06); }
.tm-repeat { color: #7a5320; background: rgba(198,146,78,0.2); }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } .review-stats { gap: 20px; padding: 18px 20px; } .review-source { margin-left: 0; flex-basis: 100%; } }
@media (max-width: 560px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ===== 견적 안내 페이지 ===== */
.estimate-hero { width: 100%; max-width: none; margin: 0; background: var(--ink); color: #fff; padding: clamp(96px, 10vw, 150px) 0 clamp(64px, 7vw, 104px); scroll-margin-top: 0; }
.estimate-hero-inner { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin: 0 auto; text-align: center; }
.estimate-hero .section-statement { color: rgba(255,255,255,0.06); text-align: center; }
.estimate-hero .section-kicker { color: var(--gold); }
.estimate-hero h1 { margin: 6px 0 0; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1.16; letter-spacing: -0.01em; }
.estimate-lead { margin: 20px auto 0; max-width: 640px; font-size: var(--fs-lead); line-height: 1.66; color: rgba(255,255,255,0.74); word-break: keep-all; }
.estimate-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* 흐린 견적서 월(볼륨감 + 개인정보 보호) */
.estimate-wall-frame { position: relative; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: #f4f2ee; }
.estimate-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; padding: 20px; filter: blur(3px); opacity: 0.5; max-height: 600px; overflow: hidden; pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 60%, transparent 100%); }
.est-slip { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.est-slip-top { display: flex; align-items: center; justify-content: space-between; }
.est-badge { font-size: 0.58rem; font-weight: 800; color: #a07820; background: rgba(198,146,78,0.16); border-radius: 4px; padding: 2px 6px; }
.est-slip-top em { font-style: normal; font-size: 0.66rem; font-weight: 700; color: var(--ink); }
.est-line { height: 7px; border-radius: 3px; background: rgba(16,21,27,0.1); }
.est-line.short { width: 42%; }
.est-slip-total { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; padding-top: 7px; border-top: 1px dashed rgba(16,21,27,0.14); }
.est-amount { width: 46px; height: 12px; border-radius: 3px; background: rgba(198,146,78,0.42); }
.estimate-wall-cta { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.estimate-wall-cta .btn { box-shadow: 0 14px 40px rgba(16,21,27,0.25); }

/* 스텝 */
.estimate-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.estimate-step { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.estimate-step-no { font-size: 0.95rem; font-weight: 800; color: var(--gold); letter-spacing: 0.04em; }
.estimate-step strong { display: block; font-size: 1.06rem; margin-bottom: 6px; }
.estimate-step p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: rgba(16,21,27,0.66); word-break: keep-all; }

/* 팩터 */
.estimate-factor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.estimate-factor { padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.estimate-factor strong { display: block; font-size: 1.02rem; margin-bottom: 8px; }
.estimate-factor::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--gold); margin-bottom: 12px; }
.estimate-factor p { margin: 0; font-size: 0.9rem; line-height: 1.62; color: rgba(16,21,27,0.66); word-break: keep-all; }

/* 견적 페이지 푸터 */
.site-footer { text-align: center; padding: 48px 20px 60px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.site-footer .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.site-footer .brand img { width: 40px; height: 40px; border-radius: var(--radius-md); }
.site-footer p { margin: 0; font-size: 0.86rem; color: var(--muted); }
.site-footer a[href] { color: var(--muted); font-size: 0.84rem; text-decoration: underline; }

@media (max-width: 900px) {
  .estimate-steps { grid-template-columns: 1fr 1fr; }
  .estimate-factor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .estimate-steps { grid-template-columns: 1fr; }
  .estimate-wall { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* 영어 헤딩 미세 조정 */
.h2-en { letter-spacing: -0.02em; }

/* 상세 오버뷰: 영어 h2 아래 한글 가치제안을 강조 서브로 */
.detail-copy .detail-lead-title { margin: 12px 0 0; font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 700; line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; word-break: keep-all; }

/* 견적 신뢰줄 */
.estimate-trust { margin: 18px 0 0; font-size: 0.86rem; color: rgba(255,255,255,0.66); }

/* 상세페이지 CTA — 다크·골드 프리미엄 밴드 (Arkabrik/견적페이지 톤) */
.cta-band.cta-dark { background: var(--ink); border-color: transparent; color: #fff; box-shadow: 0 24px 60px rgba(16,21,27,0.16); }
.cta-band.cta-dark h2 { color: #fff; }
.cta-band.cta-dark p, .cta-band.cta-dark .cta-note, .cta-band.cta-dark .contact-trust { color: rgba(255,255,255,0.72); }
.cta-band.cta-dark .contact-fallback { color: rgba(255,255,255,0.6); }
.cta-band.cta-dark .contact-fallback b { color: #fff; }
.cta-band.cta-dark .cta-textlink { color: var(--gold); }
/* 다크 CTA밴드의 보조(카톡) 버튼: 라이트밴드용 --ink 글자색이 다크 배경에 묻혀 안 보이던 것 복구 → 흰색 */
.cta-band.cta-dark .btn.secondary { color: var(--white); border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.11); }
.cta-band.cta-dark .btn.secondary:hover { color: var(--white); border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.2); }
/* 리메모리 — 복원 before/after + 감성 정물(스코프 전용, VR 토큰 사용) */
.rememory-ba { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4); max-width:900px; margin:0 auto; }
.rememory-ba .ba-item { position:relative; margin:0; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow); }
.rememory-ba .ba-item picture { display:block; line-height:0; }
.rememory-ba .ba-item img { width:100%; height:auto; display:block; }
.rememory-ba .ba-tag { position:absolute; left:14px; top:14px; z-index:2; padding:6px 13px; border-radius:var(--radius-pill); font-size:.8rem; font-weight:700; background:rgba(16,21,27,.72); color:#fff; }
.rememory-ba .ba-tag--after { background:var(--gold); color:#211603; }
.ba-note { text-align:center; color:var(--muted); font-size:.85rem; margin-top:var(--space-4); }
.rememory-scene-wrap { border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow); max-width:1000px; margin:0 auto; }
.rememory-scene-wrap picture { display:block; line-height:0; }
.rememory-scene-wrap img { width:100%; height:auto; display:block; }
@media (max-width:640px) { .rememory-ba { grid-template-columns:1fr; max-width:440px; } }
/* 서비스 하위그룹 라벨 — 운영 지원 / 그 외(기록·추억) 서비스 */
.svc-subgroup { margin-top: var(--space-9); }
.svc-subhead { display:flex; align-items:baseline; gap:12px; margin:0 0 var(--space-4); }
.svc-subhead .en { font-size:.72rem; font-weight:700; letter-spacing:.14em; color:var(--gold); }
.svc-subhead .ko { font-size:1.1rem; font-weight:700; color:var(--ink); }
.svc-groupnote { color:var(--muted); font-size:.95rem; line-height:1.6; margin:0 0 var(--space-5); max-width:44em; }
/* 헤드라인 줄바꿈: 수기 <br> 대신 자동 균형 줄바꿈(word-break:keep-all과 결합해 단어 단위로 고르게) */
h1, h2, h3, .h2-en { text-wrap: balance; }

/* ===== /en/ 영문 페이지 — BASIC/DEPT 스타일(모노크롬·그로테스크·여백·영상 히어로). 전부 .en-* 스코프 ===== */
.en-page{ --en-ink:#141414; --en-paper:#efeee9; --en-sub:#6f6d67; --en-line:#d7d4cd;
  font-family:"Helvetica Neue",Helvetica,Arial,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  background:var(--en-paper); color:var(--en-ink); letter-spacing:-0.01em; overflow-x:clip; }
.en-page *{ box-sizing:border-box; }
.en-bar{ position:absolute; top:0; left:0; right:0; z-index:20; display:flex; align-items:center; gap:16px; padding:22px clamp(18px,4vw,40px); }
.en-wm{ font-weight:800; font-size:.98rem; letter-spacing:.02em; color:#fff; text-decoration:none; text-shadow:0 1px 10px rgba(0,0,0,.5); }
.en-wm sup{ font-size:.55em; }
.en-nav{ margin-left:auto; display:flex; align-items:center; gap:clamp(13px,2.2vw,30px); }
.en-nav a{ font-size:.72rem; font-weight:700; letter-spacing:.09em; color:rgba(255,255,255,.9); text-decoration:none; text-shadow:0 1px 10px rgba(0,0,0,.5); }
.en-nav a:hover{ color:#fff; }
.en-lang{ display:inline-flex; gap:10px; font-size:.72rem; }
/* 모바일: nav가 한 줄에 안 들어가 가로 넘침(팬) 유발 → 워드마크(1줄)+메뉴(2줄 full-width)로 감싸고 축소 */
@media(max-width:560px){
  .en-bar{ flex-wrap:wrap; row-gap:9px; gap:10px; padding:14px 16px; }
  .en-wm{ font-size:.92rem; }
  .en-nav{ width:100%; margin-left:0; gap:12px; justify-content:space-between; }
  .en-nav a{ font-size:.66rem; letter-spacing:.05em; }
  .en-lang{ gap:9px; font-size:.66rem; }
}
.en-eyebrow{ font-size:.72rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:var(--en-sub); }
/* hero — 여러 릴이 빠르게 흐르는 영상월 + 정중앙 워치릴(BASIC식) */
.en-hero{ position:relative; min-height:100svh; overflow:hidden; background:#0b0d0f; display:grid; place-items:center; }
/* 모바일: 다크 시네마틱 히어로가 첫 화면을 꽉 채워 '검은 배경'처럼 보이는 것 완화 — 높이 줄여 라이트 본문이 바로 노출(링크 공유 첫인상 개선) */
@media(max-width:600px){ .en-hero{ min-height:64svh; } }
.en-hero-wall{ position:absolute; inset:0; z-index:0; display:flex; flex-direction:column; gap:6px; padding:6px; }
/* 간격은 flex gap 대신 타일 margin-right 로 — 타일이 완전 주기적이 되어 translateX(-50%)
   이음새가 정확히 맞물림(반 칸 어긋남·미세 점프 제거). 속도는 차분하게(BASIC식 느린 드리프트). */
.en-wall-row{ display:flex; gap:0; flex:1 1 0; min-height:0; width:max-content; will-change:transform; }
.en-wall-row:nth-child(1){ animation:enMarqueeA 38s linear infinite; }
.en-wall-row:nth-child(2){ animation:enMarqueeB 46s linear infinite; }
.en-wall-row:nth-child(3){ animation:enMarqueeA 32s linear infinite; }
/* 타일 높이: %(100%) 대신 svh 기반 명시값(히어로/3) — iOS Safari에서 height:100%+aspect-ratio+max-content 조합이
   높이 계산 실패로 타일이 붕괴(검은 히어로)하던 버그 근본 회피. 데스크톱 결과는 동일. */
.en-tile{ height:calc((100svh - 24px) / 3); width:auto; flex:none; aspect-ratio:16/9; object-fit:cover; background:#0b0d0f; display:block; margin-right:6px; }
@media(max-width:600px){ .en-tile{ height:calc((64svh - 24px) / 3); } }
@keyframes enMarqueeA{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
@keyframes enMarqueeB{ from{transform:translateX(-50%);} to{transform:translateX(0);} }
/* 스크림: 상단(nav 가독성)·하단 그라데이션 + 베이스 틴트. 밝은 타일이 흘러도 헤더 글씨 유지. */
.en-hero-scrim{ position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(180deg, rgba(6,8,10,.74) 0%, rgba(6,8,10,.30) 13%, rgba(6,8,10,0) 25%),
    linear-gradient(0deg, rgba(6,8,10,.55) 0%, rgba(6,8,10,0) 22%),
    rgba(8,10,12,.5); }
.en-hero-center{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; gap:16px; text-align:center; padding:16px; }
.en-reel{ flex:none; width:128px; height:128px; border-radius:50%; border:1px solid rgba(255,255,255,.78); color:#fff;
  display:grid; place-items:center; text-align:center; font-size:.72rem; font-weight:700; letter-spacing:.08em; line-height:1.45; text-decoration:none;
  transition:background .2s,color .2s; -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); }
.en-reel:hover{ background:#fff; color:#141414; }
.en-reel-label{ color:rgba(255,255,255,.86); font-size:.7rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase; text-shadow:0 1px 12px rgba(0,0,0,.7); }
@media(prefers-reduced-motion:reduce){ .en-wall-row{ animation:none; } }
/* statement */
.en-statement{ padding:clamp(30px,6vw,60px) clamp(18px,4vw,40px) clamp(18px,4vw,36px); }
.en-rule{ height:1px; background:var(--en-line); margin-bottom:clamp(28px,6vw,52px); }
.en-statement-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:24px; align-items:center; }
.en-statement-copy{ font-size:clamp(1.25rem,3.3vw,2rem); font-weight:500; line-height:1.24; letter-spacing:-.025em; max-width:22ch; }
.en-bigmark{ font-weight:800; font-size:clamp(4.6rem,19vw,14rem); line-height:.78; letter-spacing:-.05em; text-align:right; }
.en-bigmark sup{ font-size:.26em; vertical-align:super; }
@media(max-width:700px){ .en-statement-grid{ grid-template-columns:1fr; } .en-bigmark{ text-align:left; } }
/* services / clients / cta */
.en-services,.en-clients,.en-cta{ padding:clamp(24px,5vw,48px) clamp(18px,4vw,40px); }
.en-sec-head{ display:flex; justify-content:space-between; font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--en-sub); padding-bottom:14px; border-bottom:1px solid var(--en-line); }
.en-svc{ display:flex; align-items:baseline; gap:clamp(14px,3vw,40px); padding:clamp(18px,2.4vw,26px) 0; border-bottom:1px solid var(--en-line); text-decoration:none; color:var(--en-ink); transition:padding-left .25s ease; }
.en-svc:hover{ padding-left:12px; }
.en-svc-n{ font-size:.78rem; font-weight:700; color:var(--en-sub); font-variant-numeric:tabular-nums; flex:none; }
.en-svc-b{ flex:1; display:flex; flex-direction:column; gap:6px; }
.en-svc-t{ font-size:clamp(1.35rem,3.6vw,2.3rem); font-weight:600; line-height:1.05; letter-spacing:-.03em; }
.en-svc-d{ font-size:.92rem; color:var(--en-sub); line-height:1.5; max-width:52ch; }
.en-svc-x{ font-size:1.2rem; color:var(--en-sub); flex:none; }
.en-clients-list{ margin-top:16px; font-size:clamp(1rem,2.4vw,1.55rem); font-weight:500; letter-spacing:-.02em; line-height:1.5; }
.en-cta{ border-top:1px solid var(--en-line); }
.en-cta-h{ margin:14px 0 0; font-size:clamp(2rem,6.2vw,4.2rem); font-weight:700; line-height:1.0; letter-spacing:-.035em; }
.en-cta-btn{ display:inline-block; margin-top:26px; padding:15px 30px; border-radius:999px; background:var(--en-ink); color:var(--en-paper); font-weight:700; font-size:1rem; text-decoration:none; transition:transform .15s; }
.en-cta-btn:hover{ transform:translateY(-2px); }
.en-footer{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding:22px clamp(18px,4vw,40px) 40px; border-top:1px solid var(--en-line); font-size:.78rem; font-weight:600; color:var(--en-sub); }
.en-footer a{ color:var(--en-ink); text-decoration:none; }
/* ===== BASIC 한글(.basic-ko) — /en/ 시스템(.en-*) 그대로 쓰되 폰트만 Pretendard(한글 네오그로테스크) ===== */
.en-page.basic-ko{ font-family:"Pretendard Variable","Pretendard","Helvetica Neue",Helvetica,Arial,"Apple SD Gothic Neo",sans-serif; letter-spacing:-0.015em; }
/* BASIC 中文(.basic-zh) — CJK 폰트(PingFang) + 대형 타이포 정제(한글과 동일 원리, 자간0·line-height 여유·keep-all 없음) */
.en-page.basic-zh{ font-family:"PingFang SC","PingFang TC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Pretendard Variable",sans-serif; letter-spacing:0; }
.basic-zh .en-statement-copy{ font-size:clamp(1.1rem,2.3vw,1.62rem); font-weight:500; line-height:1.62; letter-spacing:0; }
.basic-zh .en-svc-t{ font-size:clamp(1.14rem,2.1vw,1.55rem); font-weight:600; line-height:1.3; letter-spacing:0; }
.basic-zh .en-cta-h{ font-size:clamp(1.5rem,3.2vw,2.4rem); font-weight:600; line-height:1.42; letter-spacing:0; }
.basic-zh .en-detail-h1{ font-size:clamp(1.6rem,3.4vw,2.5rem); font-weight:600; line-height:1.42; }
/* 한글 대형 타이포 정제 — 긴 한글 문장을 라틴처럼 거대하게 두면 무겁고 촌스러워짐:
   라틴보다 확 작게·가볍게(600↓)·타이트하게. 거대 타이포는 짧은 문구에만, 긴 문장은 차분한 크기로. */
.basic-ko .en-statement-copy{ font-size:clamp(1.1rem,2.3vw,1.62rem); font-weight:500; line-height:1.5; letter-spacing:-0.03em; word-break:keep-all; }
.basic-ko .en-svc-t{ font-size:clamp(1.14rem,2.1vw,1.55rem); font-weight:600; line-height:1.25; word-break:keep-all; letter-spacing:-0.03em; }
.basic-ko .en-cta-h{ font-size:clamp(1.5rem,3.2vw,2.4rem); font-weight:600; line-height:1.34; letter-spacing:-0.03em; word-break:keep-all; }
.basic-ko .en-svc-d{ word-break:keep-all; }
/* BASIC 상세페이지 — 라이트 클린 히어로 + 구성/작업 섹션 */
/* 라이트 히어로 위 nav — 흰 글씨는 안 보이므로 잉크색으로 */
.en-bar--ink .en-wm, .en-bar--ink .en-nav a, .en-bar--ink .en-lang a{ color:var(--en-ink); text-shadow:none; }
.en-bar--ink .en-nav a:hover, .en-bar--ink .en-lang a:hover{ color:var(--en-sub); }
.en-detail-hero{ padding:clamp(92px,12vw,150px) clamp(18px,4vw,40px) clamp(30px,5vw,54px); border-bottom:1px solid var(--en-line); }
.en-detail-hero .en-eyebrow{ color:var(--en-ink); }
.en-detail-h1{ margin:14px 0 0; font-size:clamp(2.2rem,6.4vw,4.6rem); font-weight:700; line-height:1.0; letter-spacing:-.04em; max-width:20ch; text-wrap:balance; }
.basic-ko .en-detail-h1{ font-size:clamp(1.6rem,3.4vw,2.5rem); font-weight:600; line-height:1.36; letter-spacing:-0.035em; max-width:26ch; }
.en-detail-lead{ margin:22px 0 0; max-width:48ch; font-size:clamp(1.02rem,2.3vw,1.3rem); line-height:1.55; color:var(--en-sub); word-break:keep-all; }
.en-detail-actions{ display:flex; gap:22px; align-items:center; margin-top:32px; flex-wrap:wrap; }
.en-detail-link{ font-size:.9rem; font-weight:700; letter-spacing:.01em; color:var(--en-ink); border-bottom:1px solid var(--en-line); padding-bottom:3px; text-decoration:none; transition:border-color .2s ease; }
.en-detail-link:hover{ border-color:var(--en-ink); }
.en-svc--static{ cursor:default; }
.en-svc--static:hover{ padding-left:0; }
.en-cta-note{ margin:18px auto 0; color:var(--en-sub); font-size:.94rem; line-height:1.55; max-width:44ch; }
.basic-ko .en-cta{ text-align:center; }
.basic-ko .en-cta .en-eyebrow, .basic-ko .en-cta .en-cta-h, .basic-ko .en-cta .en-cta-btn, .basic-ko .en-cta .en-cta-note{ margin-left:auto; margin-right:auto; }
/* 작업 사례 그리드 — BASIC 섹션 안에서 상단 여백만 */
.basic-ko .en-services .portfolio-wall{ margin-top:22px; }
/* BASIC FAQ — 라이트 헤어라인 아코디언 */
.en-faq{ margin-top:20px; border-top:1px solid var(--en-line); }
.en-faq-item{ border-bottom:1px solid var(--en-line); }
.en-faq-item summary{ display:flex; justify-content:space-between; align-items:center; gap:20px; padding:clamp(16px,2vw,22px) 0; cursor:pointer; list-style:none; font-size:clamp(1rem,2vw,1.18rem); font-weight:600; color:var(--en-ink); letter-spacing:-.01em; }
.en-faq-item summary::-webkit-details-marker{ display:none; }
.en-faq-mk{ flex:none; font-size:1.35rem; font-weight:300; color:var(--en-sub); transition:transform .22s ease; }
.en-faq-item[open] .en-faq-mk{ transform:rotate(45deg); }
.en-faq-item p{ margin:0 0 clamp(16px,2vw,22px); max-width:70ch; color:var(--en-sub); line-height:1.7; font-size:.96rem; }
.en-faq-item summary:focus-visible{ outline:2px solid var(--en-ink); outline-offset:3px; }
.basic-ko .en-faq-item summary span:first-child, .basic-ko .en-faq-item p{ word-break:keep-all; }
/* 홈 무료오퍼 진입 배너 — 라이트 본문 위 다크 잉크 밴드로 시선 유도 → /free */
.en-offer{ display:flex; align-items:center; gap:clamp(12px,2.5vw,28px); flex-wrap:wrap; margin:clamp(8px,1.5vw,16px) clamp(18px,4vw,40px); padding:clamp(20px,3vw,30px) clamp(22px,3.5vw,38px); background:var(--en-ink); color:var(--en-paper); border-radius:16px; text-decoration:none; transition:transform .2s ease; }
.en-offer:hover{ transform:translateY(-2px); }
.en-offer-k{ flex:none; font-size:.72rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:rgba(239,238,233,.7); }
.en-offer-t{ flex:1; min-width:200px; font-size:clamp(1.05rem,2.2vw,1.4rem); font-weight:600; letter-spacing:-.02em; line-height:1.32; }
.basic-ko .en-offer-t{ word-break:keep-all; }
.en-offer-x{ flex:none; font-size:.9rem; font-weight:800; letter-spacing:.01em; padding:11px 20px; border-radius:999px; background:var(--en-paper); color:var(--en-ink); }
@media(max-width:600px){ .en-offer{ flex-direction:column; align-items:flex-start; gap:14px; } .en-offer-x{ align-self:stretch; text-align:center; } }
/* 문단은 pretty로 마지막 줄 고아 단어 방지(진행형 enhancement, keep-all과 결합) */
p { text-wrap: pretty; }
/* 위로 가기 버튼 — 하단 스티키 CTA(bottom:20px) 위, 우하단 플로팅 */
.back-to-top {
  position: fixed; right: 24px; bottom: 96px; z-index: 29;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  background: rgba(19,34,56,0.92); color: var(--white);
  font-size: 1.25rem; line-height: 1; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: #211603; border-color: transparent; transform: translateY(-2px); }
@media (max-width: 640px) { .back-to-top { right: 16px; bottom: 100px; width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: opacity .2s ease; } }
.cta-band.cta-dark .privacy-note, .cta-band.cta-dark .privacy-note a { color: rgba(255,255,255,0.55); }

/* ===== 모던 케이스 (Rim & Co. 스타일: 큰 비주얼 + 오버레이 이름 + 한 줄 훅) ===== */
.case-modern { display: grid; gap: clamp(44px, 5vw, 76px); }
.case-m-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--ink); }
.case-m-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.case-m-media:hover .case-m-img { transform: scale(1.04); }
.case-m-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%); pointer-events: none; }
.case-m-name { position: absolute; z-index: 2; left: clamp(20px, 3vw, 44px); bottom: clamp(16px, 2.4vw, 30px); font-size: clamp(2.2rem, 5.4vw, 4.6rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1; text-shadow: 0 4px 30px rgba(0,0,0,0.5); }
.case-m-cap { display: flex; align-items: baseline; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.case-m-tag { font-size: 0.76rem; font-weight: 800; color: #6f5214; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap; }
.case-m-line { flex: 1; margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-weight: 600; color: var(--ink); line-height: 1.4; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-m-more { font-size: 0.9rem; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .18s ease; }
.case-m-more:hover { color: #a07820; }
@media (max-width: 640px) {
  .case-m-cap { gap: 6px; }
  .case-m-line { flex-basis: 100%; order: 3; }
}

/* 상세 포폴: 대표작 피처 타일(홈 featured-wall과 동일 위계) */
@media (min-width: 640px) { .detail-wall .portfolio-item.is-large { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }

/* 모바일 터치 타깃 최소 44px — 주요 텍스트 링크 (Codex 모바일 리뷰 반영) */
@media (max-width: 640px) {
  .nav a,
  .hero-wall__more,
  .case-m-more,
  .price-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ============================================================
   WATCH REEL 원형 버튼 + 전체 작업 갤러리(라이트박스)
   ko 홈·en·zh·zh-hant 공용. 클릭 → #reel-gallery 오버레이 → 타일 클릭 시 vr-lightbox 재생.
   ============================================================ */
/* 재사용 원형 버튼 */
.reel-cta {
  flex: none;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 1px solid var(--ink, #141414);
  color: var(--ink, #141414);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.06em;
  text-align: center;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.reel-cta:hover,
.reel-cta:focus-visible {
  background: var(--ink, #141414);
  color: #fff;
  transform: scale(1.04);
}
/* 어두운 배경(홈 영상월) 위 흰 테두리 변형 */
.reel-cta--light {
  border-color: rgba(255, 255, 255, 0.82);
  color: #fff;
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.42);
}
.reel-cta--light:hover,
.reel-cta--light:focus-visible {
  background: #fff;
  color: #141414;
}
/* 홈 영상월 정중앙 배치 */
.hero-wall__reel-wrap {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
  pointer-events: none;
}
.hero-wall__reel-wrap > * { pointer-events: auto; }
.reel-cta-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
/* zh/zh-hant 히어로: 원형 + 안내문 가로 배치 */
.reel-cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.reel-cta-note {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  max-width: 15ch;
  line-height: 1.4;
}

/* 갤러리 오버레이 (vr-lightbox z-index:1000 보다 아래 990 → 타일 클릭 시 영상이 위로) */
.reel-gallery {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(8, 10, 12, 0.94);
  backdrop-filter: blur(10px);
}
.reel-gallery.is-open {
  display: block;
  animation: reelFade 220ms ease both;
}
@keyframes reelFade { from { opacity: 0; } to { opacity: 1; } }
.reel-gallery-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 46px) clamp(16px, 4vw, 44px) clamp(56px, 8vw, 88px);
}
.reel-gallery-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 16px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(8, 10, 12, 0.96) 62%, transparent);
}
.reel-gallery-kicker {
  margin: 0 0 8px;
  color: var(--gold, #c6924e);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.reel-gallery-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 4.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.03;
}
.reel-gallery-sub {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 54ch;
}
.reel-gallery-close {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.reel-gallery-close:hover { background: rgba(255, 255, 255, 0.2); }
.reel-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}
.reel-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #14181d;
  cursor: pointer;
  text-align: left;
}
.reel-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}
.reel-tile:hover img,
.reel-tile:focus-visible img {
  transform: scale(1.06);
  filter: brightness(0.66);
}
/* 재사용한 .portfolio-play 는 .portfolio-item:hover 에만 뜨므로 여기서 별도 노출 */
.reel-tile:hover .portfolio-play,
.reel-tile:focus-visible .portfolio-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(15, 127, 98, 0.78);
}
.reel-tile:focus-visible {
  outline: 2px solid var(--gold, #c6924e);
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .reel-cta { width: 108px; height: 108px; font-size: 0.72rem; }
  .reel-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .reel-gallery.is-open { animation: none; }
  .reel-tile img { transition: none; }
  .reel-cta { transition: none; }
}
