/* ==========================================================================
   STUDIO WDNKE — Showcase (Artmug edition)

   아트머그 임베드 페이지(artmug.kr)와 같은 디자인 시스템을 쇼케이스에 옮긴 것.
   - 백색 작업지(paper) / 먹색 활자(ink) / 회색 1px 규칙선 / 코발트 행동 신호
   - Cobalt Cue Rule : 코발트는 행동·선택·포커스에만 쓴다
   - Flat-Sheet Rule : 그림자·부유 카드 없이 면과 선으로 깊이를 만든다
   - 모든 모서리는 0px 직각, 검정은 16:9 영상 스테이지 안에만 남긴다
   index.html은 기존 다크 테마(style.css)를 그대로 쓰므로 이 파일만 교체하면 된다.
   ========================================================================== */

/* Paperlogy 원본은 '쨜'(U+CA1C) 의 윤곽 데이터가 비어 있어 글자가 보이지 않는다.
   폰트에 글리프가 '있는' 것으로 취급돼 평소의 폴백이 일어나지 않으므로,
   이 한 글자만 시스템 한글 산세리프로 돌리는 폰트를 스택 맨 앞에 둔다.
   unicode-range 로 U+CA1C 만 담당하게 해서 나머지 글자는 Paperlogy 그대로다. */
@font-face {
  font-family: "HangulGlyphFix";
  src: local("Apple SD Gothic Neo"), local("AppleSDGothicNeo-Regular"),
       local("Malgun Gothic"), local("맑은 고딕"), local("Noto Sans KR");
  unicode-range: U+CA1C;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "HangulGlyphFix";
  src: local("Apple SD Gothic Neo Bold"), local("AppleSDGothicNeo-Bold"),
       local("Malgun Gothic Bold"), local("Noto Sans KR Bold"), local("Noto Sans KR");
  unicode-range: U+CA1C;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Surfaces */
  --paper: #ffffff;
  --soft: #f8f8f8;
  --ink: #05070b;

  /* Type */
  --text: #242424;
  --muted: #666666;

  /* Rules */
  --line: #dadada;
  --line-strong: #b4b4b4;

  /* Cobalt cue */
  --blue: #2e63ff;
  --blue-deep: #1f4bd6;
  --blue-wash: rgba(46, 99, 255, 0.07);
  --blue-ring: 0 0 0 3px rgba(22, 68, 223, 0.16);

  --font-paperlogy: "HangulGlyphFix", "Paperlogy", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: var(--font-paperlogy);
  /* 표제는 언어와 무관하게 Paperlogy로 고정한다 (섹션 제목은 영문 표제라 그대로다) */
  --font-display: var(--font-paperlogy);
  --font-serif: var(--font-paperlogy);
  --font-serif-kr: "ChosunIlboMyungjo", "Batang", "Apple SD Gothic Neo", serif;
  --font-jp: "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;

  --gutter: clamp(18px, 3.5vw, 44px);
  --section-pad: clamp(78px, 9vw, 132px);
  --shell: 1180px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-quick: 160ms;
  --t-base: 340ms;
  --t-mid: 520ms;
  --t-slow: 680ms;
}

/* Paperlogy는 한글·라틴용이라 가나가 없다. 일본어를 고르면 본문 글꼴을 바꿔
   가나·한자가 일본어 자형으로 나오게 한다. 표제(--font-display)는 그대로 둔다. */
html[lang="ja"] {
  --font-sans: "Noto Sans JP", var(--font-paperlogy);
  --font-serif-kr: "Noto Sans JP", var(--font-paperlogy);
}


* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
  scrollbar-color: var(--blue) #ededed;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #ededed;
}

::-webkit-scrollbar-thumb {
  border-radius: 0;
  background: var(--blue);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.modal-open,
body.is-intro {
  overflow: hidden;
}

body.is-intro .site-header,
body.is-intro .bottom-nav,
body.is-intro .snap-root {
  opacity: 0;
  transform: translateY(12px);
}

body.intro-done .site-header,
body.intro-done .bottom-nav,
body.intro-done .snap-root {
  opacity: 1;
  transform: none;
}

.site-header,
.bottom-nav,
.snap-root {
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}

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

button {
  color: inherit;
  font: inherit;
}

::selection {
  background: var(--blue);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  transform: translateY(-160%);
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform var(--t-quick) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Cursor — 직각 코발트 커서. 부드러운 블러 글로우는 쓰지 않는다.
   -------------------------------------------------------------------------- */

.cursor,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
}

.cursor {
  width: 6px;
  height: 6px;
  background: var(--blue);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid var(--blue);
  transition: width var(--t-quick) var(--ease), height var(--t-quick) var(--ease);
}

.cursor-glow {
  display: none;
}

body.cursor-ready .cursor,
body.cursor-ready .cursor-ring {
  opacity: 1;
}

body.cursor-active .cursor-ring {
  width: 46px;
  height: 46px;
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.reveal-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Intro — 검정 화면에서 백색 지면으로 넘어간다 (이전 버전의 첫 진입 유지)
   -------------------------------------------------------------------------- */

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--ink);
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--t-slow) var(--ease), visibility var(--t-slow) var(--ease);
}

.intro-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-logo {
  display: grid;
  gap: 4px;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(-2vh);
}

.intro-logo span {
  color: var(--blue);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: .18em;
}

.intro-logo strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(58px, 17vw, 184px);
  font-weight: 800;
  line-height: .72;
  letter-spacing: -.08em;
}

/* --------------------------------------------------------------------------
   Header / bottom action bar
   부유 카드가 아니라 백색 바탕 + 1px 회색선의 실제 바로 읽히게 한다.
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 0 var(--gutter);
}

.bottom-nav {
  position: fixed;
  right: var(--gutter);
  bottom: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-link,
.nav-link,
.modal-close {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color var(--t-quick) var(--ease), background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}

.brand-link {
  min-width: 74px;
  padding: 0 15px;
  border-color: var(--text);
  background: var(--text);
  color: #fff;
  letter-spacing: .06em;
}

.brand-link:hover,
.brand-link:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.top-nav,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav {
  display: none;
}

.top-nav .nav-link {
  min-width: 0;
  border-color: transparent;
  padding: 0 12px;
  color: var(--muted);
}

.top-nav .nav-link:hover,
.top-nav .nav-link:focus-visible {
  border-color: transparent;
  background: transparent;
  color: var(--blue);
}

.nav-link {
  min-width: 112px;
  padding: 0 14px;
}

.bottom-nav .nav-link:hover,
.bottom-nav .nav-link:focus-visible,
.mobile-menu-panel a:hover,
.mobile-menu-panel a:focus-visible,
.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

/* CONTACT는 다음 행동이므로 코발트 면으로 고정한다 (Cobalt Cue) */
.bottom-nav .nav-link[href="#contact"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.bottom-nav .nav-link[href="#contact"]:hover,
.bottom-nav .nav-link[href="#contact"]:focus-visible {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

/* 언어 전환 — 회색 선으로 묶은 세 칸. 선택된 칸만 코발트로 채운다. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  border: 1px solid var(--line);
}

.lang-option {
  min-width: 42px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  padding: 0 4px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}

.lang-option:first-child {
  border-left: 0;
}

.lang-option:hover {
  color: var(--blue);
}

.lang-option.is-active {
  background: var(--blue);
  color: #fff;
}

/* 영어에서는 위 영문 태그라인과 같은 말이 되어 비워둔다 */
.footer-tagline-kr:empty {
  display: none;
}

.mobile-menu {
  position: relative;
}

.mobile-menu summary {
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 176px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 8px;
}

.mobile-menu-panel a {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 10px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Sections — 스크롤 스냅 없이 한 장의 백색 작업지 위를 내려간다
   -------------------------------------------------------------------------- */

.snap-root {
  min-height: 100vh;
  padding-top: 64px;
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.hero-section {
  border-top: 0;
}

.section-shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 6vw, 68px);
}

.split-shell {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  align-items: start;
  gap: clamp(34px, 6vw, 84px);
}

.experience-section .split-shell {
  grid-template-columns: minmax(300px, .72fr) minmax(440px, 1.28fr);
  gap: clamp(28px, 4vw, 56px);
}

/* --------------------------------------------------------------------------
   Hero — 전면 배경 영상 위에 백색 베일을 덮은 타이포 히어로.
   검정 셰이드 대신 흰 종이를 덮어 아래 백색 지면으로 그대로 이어지게 한다.
   -------------------------------------------------------------------------- */

.hero-section {
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(96px, 12vw, 150px) 0 clamp(104px, 12vw, 150px);
  isolation: isolate;
}

.hero-video,
.hero-shade,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  z-index: -4;
  overflow: hidden;
  background:
    var(--hero-poster, none) center / cover no-repeat,
    var(--paper);
}

/* 영상 iframe이 로드되면 뒤에 깔린 썸네일 배경을 제거해 겹침(고스팅)을 방지 */
.hero-video.hero-video-ready {
  background: var(--paper);
}

.hero-video-frame {
  position: absolute;
  inset: 0;
}

.hero-video iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
  border: 0;
  opacity: 1;
  pointer-events: none;
  /* YouTube 제목·브랜딩 오버레이가 프레임 위쪽에 얹히는데, 예전 어두운 셰이드와
     블러가 가려주던 것이 흰 베일로 바뀌며 드러났다. 살짝 확대해 그 띠를
     .hero-video 의 overflow: hidden 바깥으로 밀어낸다. */
  transform: translate(-50%, -50%) scale(1.22);
  filter: saturate(.86) contrast(.98) brightness(1.02);
  transition: opacity var(--t-slow) var(--ease);
}

body.is-intro .hero-video iframe {
  opacity: 0;
}

body.intro-done .hero-video iframe {
  opacity: 1;
}

/* 백색 베일 — 가장자리와 하단은 완전한 백색으로 닫아 다음 섹션과 이어붙인다 */
.hero-shade {
  z-index: -3;
  background:
    /* 제목 뒤쪽만 밝게 고여 먹색·코발트 활자의 대비를 지킨다 */
    radial-gradient(76% 62% at 50% 44%, rgba(255, 255, 255, .93) 0 26%, rgba(255, 255, 255, .58) 62%, rgba(255, 255, 255, .3) 100%),
    /* 위아래는 백색으로 닫아 헤더·다음 섹션과 이어붙인다 */
    linear-gradient(180deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .34) 26%, rgba(255, 255, 255, .42) 62%, rgba(255, 255, 255, .92) 88%, #fff 100%);
}

.hero-grid {
  z-index: -2;
  background:
    linear-gradient(rgba(5, 7, 11, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 7, 11, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 92% at 50% 42%, #000 24%, transparent 76%);
  mask-image: radial-gradient(120% 92% at 50% 42%, #000 24%, transparent 76%);
}

.hero-layout {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
  text-align: center;
}

/* 첫 진입 — 검정 인트로가 걷히면 히어로 요소가 70ms 간격으로 차례로 자리잡는다.
   바운스 없이 같은 이징으로 한 번만 재생한다. */
body.intro-done .hero-kicker,
body.intro-done .hero-title-studio,
body.intro-done .hero-title-name,
body.intro-done .hero-copy,
body.intro-done .hero-subcopy,
body.intro-done .hero-actions,
body.intro-done .hero-meta {
  animation: hero-enter var(--t-mid) var(--ease) backwards;
}

body.intro-done .hero-title-studio { animation-delay: 70ms; }
body.intro-done .hero-title-name { animation-delay: 140ms; }
body.intro-done .hero-copy { animation-delay: 210ms; }
body.intro-done .hero-subcopy { animation-delay: 280ms; }
body.intro-done .hero-actions { animation-delay: 350ms; }
body.intro-done .hero-meta { animation-delay: 420ms; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.hero-kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  /* .72는 아트머그 히어로의 맞물림 값이지만, 두 단어를 세로로 쌓는 이 구성에서는
     글자가 서로 겹쳐 찍힌다. 줄 간격과 자간을 한 단계씩 풀어 충돌을 없앤다. */
  line-height: .88;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.hero-title span,
.hero-title-studio,
.hero-title-name {
  display: block;
}

/* 두 단어를 같은 크기로 맞물리고, 이름만 코발트로 신호를 준다 */
.hero-title-studio,
.hero-title-name {
  font-size: clamp(56px, 11.5vw, 168px);
}

.hero-title-name {
  color: var(--blue);
}

.hero-copy {
  margin: clamp(24px, 3vw, 36px) 0 0;
  color: var(--text);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.hero-subcopy {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

.mobile-break {
  display: none;
}

.hero-actions,
.guide-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-actions {
  justify-content: center;
  margin-top: clamp(26px, 3vw, 38px);
}

.hero-action {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: border-color var(--t-quick) var(--ease), background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}

.hero-action:hover,
.hero-action:focus-visible {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  color: #fff;
}

.hero-action-secondary {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--text);
}

.hero-action-secondary:hover,
.hero-action-secondary:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.hero-meta {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span,
.tag-strip span,
.work-tag {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  padding: 9px 11px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.section-heading {
  max-width: 720px;
}

.sticky-heading {
  position: sticky;
  top: 96px;
}

.experience-section .section-heading {
  max-width: 460px;
  min-width: 0;
}

h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

/* EXPERIENCE는 띄어쓰기가 없어 줄바꿈으로 흡수되지 않는다.
   칼럼 폭 안에 확실히 들어오는 크기로 낮춰 잘림을 막는다. */
.experience-section h2 {
  max-width: 100%;
  font-size: clamp(34px, 3.6vw, 50px);
}

.section-copy,
.contact-copy,
.contact-note,
.experience-item p,
.work-card p,
.modal-body p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* 한글 본문·제목은 어절(띄어쓰기) 단위로만 줄바꿈 */
.section-copy,
.contact-copy,
.contact-note,
.contact-message,
.contact-message-en,
.hero-subcopy,
.work-card p,
.experience-item p,
.modal-body p,
.work-card h3,
.guide-card h3,
.experience-item h3,
.modal-body h2,
.rotating-title,
.footer-tagline-kr {
  word-break: keep-all;
}

.section-copy {
  max-width: 680px;
  margin: 20px 0 0;
}

.experience-section .section-copy {
  max-width: 420px;
  font-size: 15px;
}

.muted {
  color: var(--muted);
}

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

/* --------------------------------------------------------------------------
   Works — 16:9 스테이지 + 아래 캡션의 평평한 작업지 카드
   -------------------------------------------------------------------------- */

/* PV / MV / LIVE 구간 — 유형명과 편수만 둔 얇은 머리글로 나눈다 */
.work-groups {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}

.work-group-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.work-group-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}

.work-group-count {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .1em;
}

.work-group-total {
  color: var(--muted);
}

/* 캐러셀 — 영상 바깥 좌우에 전용 버튼 열을 두고, 가운데에 16:9 스테이지만 남긴다 */
.work-carousel {
  width: min(100%, 860px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
}

.carousel-nav {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  padding: 0;
  cursor: pointer;
  transition: border-color var(--t-quick) var(--ease), background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
  display: block;
}

.carousel-nav:hover,
.carousel-nav:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.carousel-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}

.carousel-media {
  position: absolute;
  inset: 0;
}

.carousel-media iframe,
.carousel-media img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.carousel-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -.03em;
  text-align: center;
}

/* 작품을 넘길 때 — 영상, 캡션, 카운터가 모두 같은 방향을 설명한다.
   바운스 없이 이징 하나(--ease)와 시간 팔레트만 쓴다. */
.carousel-media[data-enter="right"] {
  animation: carousel-in-right var(--t-base) var(--ease);
}

.carousel-media[data-enter="left"] {
  animation: carousel-in-left var(--t-base) var(--ease);
}

/* 캡션·카운터는 영상보다 짧게 움직여 따라오는 느낌을 준다 */
.carousel-title[data-enter],
.carousel-scope[data-enter],
.carousel-current[data-enter] {
  display: inline-block;
  animation: carousel-follow-right var(--t-base) var(--ease) backwards;
}

.carousel-title[data-enter="left"],
.carousel-scope[data-enter="left"],
.carousel-current[data-enter="left"] {
  animation-name: carousel-follow-left;
}

.carousel-scope[data-enter] {
  animation-delay: 60ms;
}

/* 스테이지를 가로지르는 얇은 코발트 스캔 — 이동 방향을 한 번 훑고 사라진다 */
.carousel-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 2;
  background: var(--blue);
  opacity: 0;
  pointer-events: none;
  animation: carousel-scan-right var(--t-mid) var(--ease);
}

.carousel-scan[data-enter="left"] {
  animation-name: carousel-scan-left;
}

@keyframes carousel-in-right {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes carousel-in-left {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: none; }
}

@keyframes carousel-follow-right {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes carousel-follow-left {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

@keyframes carousel-scan-right {
  from { left: -2px; opacity: .85; }
  to { left: 100%; opacity: 0; }
}

@keyframes carousel-scan-left {
  from { left: 100%; opacity: .85; }
  to { left: -2px; opacity: 0; }
}

.carousel-caption {
  width: min(100%, 860px);
  margin: 12px auto 0;
  padding-left: calc(48px + clamp(10px, 1.6vw, 20px));
  padding-right: calc(48px + clamp(10px, 1.6vw, 20px));
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* 작품명을 누르면 기존 상세 모달이 열린다 */
.carousel-title {
  border: 0;
  background: none;
  padding: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-align: left;
  cursor: pointer;
  word-break: keep-all;
  transition: color var(--t-quick) var(--ease);
}

.carousel-title:hover,
.carousel-title:focus-visible {
  color: var(--blue);
}

.carousel-scope {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.work-card,
.guide-card,
.experience-item,
.contact-card,
.guide-cta,
.inquiry-template,
.modal-panel {
  border: 1px solid var(--line);
  background: var(--paper);
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color var(--t-base) var(--ease);
}

.work-card::before,
.work-card::after,
.work-media::after {
  content: none;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: var(--blue);
  outline: none;
}

.work-media,
.work-visual {
  position: relative;
  inset: auto;
  z-index: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transform: none;
  transition: transform var(--t-mid) var(--ease);
}

.work-card:hover .work-media img,
.work-card:focus-visible .work-media img {
  transform: scale(1.03);
}

/* 썸네일이 없는 작업의 대체 도형 */
.work-visual {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.work-visual span {
  position: absolute;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.work-visual span:nth-child(1) {
  left: 9%;
  top: 12%;
  width: 45%;
  height: 30%;
}

.work-visual span:nth-child(2) {
  right: 10%;
  top: 19%;
  width: 22%;
  height: 42%;
  border-color: var(--blue);
}

.work-visual span:nth-child(3) {
  left: 18%;
  bottom: 17%;
  width: 58%;
  height: 20%;
}

.work-cta {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: var(--blue);
  color: #fff;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.work-cta::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}

.work-card:hover .work-cta,
.work-card:focus-visible .work-cta {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .work-cta {
    opacity: 1;
    transform: none;
  }
}

.work-logo {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 4;
  width: 104px;
  min-height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px;
}

.work-logo img {
  display: block;
  width: 100%;
  max-height: 32px;
  object-fit: contain;
}

.work-body {
  position: static;
  inset: auto;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 20px 24px;
}

.work-index {
  display: inline-flex;
  margin-bottom: 14px;
  border: 1px solid var(--blue);
  padding: 9px 11px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  color: var(--blue);
}

.work-card h3,
.experience-item h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.work-card p,
.experience-item p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
}

/* 캡션은 겹치지 않는 정보만 남긴다.
   제목에 이미 유형이 들어 있어 유형 문단과 태그 칩은 같은 말의 반복이었다.
   (유형·태그 전체는 카드를 열었을 때 모달 메타에서 볼 수 있다) */
.work-card .work-body p:not(.work-scope),
.work-card .work-tags {
  display: none;
}

.work-card .work-scope {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.work-tag {
  padding: 8px 9px;
}

/* --------------------------------------------------------------------------
   Project guide
   -------------------------------------------------------------------------- */

.guide-section {
  background: var(--soft);
}

/* 제작 안내 접기 — 아트머그의 disclosure 와 같은 56px 연회색 행,
   1px 회색선, 열리면 코발트로 뒤집히는 처리 */
.guide-toggle {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  padding: 0 18px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-quick) var(--ease), background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}

.guide-toggle:hover,
.guide-toggle:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.guide-toggle[aria-expanded="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

/* 상태에 맞는 문구만 남긴다 (두 문구 모두 DOM 에 둬야 언어 전환이 그대로 먹는다) */
.guide-toggle[aria-expanded="false"] [data-when="open"],
.guide-toggle[aria-expanded="true"] [data-when="closed"] {
  display: none;
}

/* + 에서 − 로 — 세로 획만 사라진다 */
.guide-toggle-mark {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.guide-toggle-mark::before,
.guide-toggle-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.guide-toggle-mark::before {
  width: 18px;
  height: 2px;
}

.guide-toggle-mark::after {
  width: 2px;
  height: 18px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}

.guide-toggle[aria-expanded="true"] .guide-toggle-mark::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg);
}

/* 높이 전환 — grid 행을 0fr 에서 1fr 로 열어 내용 높이를 재지 않고도 움직인다 */
.guide-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms var(--ease);
}

.guide-panel.is-open {
  grid-template-rows: 1fr;
}

.guide-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.guide-panel.is-open .guide-panel-inner {
  overflow: visible;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 20px;
}

.guide-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transition: border-color var(--t-base) var(--ease);
}

.guide-card:hover {
  border-color: var(--blue);
}

.guide-index {
  width: max-content;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
}

.guide-card h3 {
  margin: 20px 0 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.guide-card p,
.guide-cta p,
.inquiry-template li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

.guide-card p {
  margin: 14px 0 0;
}

.guide-cta {
  justify-content: space-between;
  gap: 20px;
  padding: 24px 22px;
}

.guide-cta p {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Experience — 회색 규칙선으로 나눈 이력 행
   -------------------------------------------------------------------------- */

.experience-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.experience-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: clamp(22px, 2.6vw, 30px) 0;
}

.experience-item:not(.has-logo) {
  grid-template-columns: 1fr;
}

.experience-logo {
  min-height: 90px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 16px;
}

.experience-item.has-logo .experience-logo {
  display: grid;
}

.experience-logo img {
  display: block;
  width: 100%;
  max-height: 60px;
  object-fit: contain;
}

/* anima.png는 어두운 배경용 흰색 단색 워드마크라 백색 지면에서는 보이지 않는다.
   단색이므로 반전하면 그대로 먹색 워드마크가 되어 이 지면의 활자와 맞는다.
   (hanavi·scon은 유채색 로고라 그대로 둔다) */
.experience-logo img[src$="anima.png"] {
  filter: invert(1);
}

.experience-date,
.experience-role,
.experience-scope {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.experience-date {
  color: var(--blue);
}

.experience-item h3 {
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.experience-copy {
  min-width: 0;
}

.experience-role {
  margin: 8px 0 0;
  color: var(--text);
}

.experience-scope {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.experience-item p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-section {
  display: grid;
  place-items: center;
  isolation: isolate;
}

.contact-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.contact-visual span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vw, 880px);
  height: min(42vw, 420px);
  border: 1px solid var(--line);
  transform: translate(-50%, -50%) rotate(var(--angle));
}

.contact-visual span:nth-child(1) {
  --angle: -12deg;
}

.contact-visual span:nth-child(2) {
  --angle: 5deg;
}

.contact-visual span:nth-child(3) {
  --angle: 19deg;
  border-color: rgba(46, 99, 255, .28);
}

.contact-visual span:nth-child(4) {
  --angle: 34deg;
  border-color: rgba(46, 99, 255, .16);
}

.contact-shell {
  align-items: center;
  text-align: center;
}

.contact-shell .eyebrow {
  margin: 0;
}

.contact-shell h2 {
  max-width: 1100px;
}

.contact-shell .rotating-title {
  width: min(100%, 1100px);
  margin-inline: auto;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.15;
  letter-spacing: -.03em;
  text-align: center;
  /* 한 줄로 묶어두면(nowrap) 문장이 긴 영어에서 섹션의 overflow:hidden 에 잘린다.
     줄바꿈은 허용하되 keep-all 로 한국어가 어절 중간에서 갈라지지 않게 한다. */
  text-wrap: balance;
  word-break: keep-all;
}

.rotating-title span {
  display: block;
  width: 100%;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.rotating-title:lang(ja) {
  font-family: var(--font-jp);
  font-weight: 900;
  line-break: strict;
  word-break: normal;
}

.rotating-title span:lang(ja) {
  line-break: strict;
  word-break: normal;
}

.rotating-title.is-switching span {
  opacity: 0;
  transform: translateY(8px);
}

.contact-copy,
.contact-note {
  max-width: 760px;
  margin: 0;
}

.contact-message {
  max-width: 820px;
  color: var(--text);
  font-family: var(--font-serif-kr);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.contact-message-en {
  max-width: 820px;
  margin-top: -18px;
  color: var(--muted);
  font-family: var(--font-serif-kr);
  font-size: 14px;
  line-height: 1.7;
}

.contact-note {
  color: var(--text);
}

.inquiry-template {
  width: min(100%, 820px);
  background: var(--soft);
  padding: 22px;
  text-align: left;
}

.inquiry-template p {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.inquiry-template ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inquiry-template li {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--text);
}

.contact-links {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  display: grid;
  min-height: 126px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
  transition: border-color var(--t-quick) var(--ease), background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}

.contact-card:hover,
.contact-card:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  outline: none;
}

.contact-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-card:hover span,
.contact-card:focus-visible span {
  color: rgba(255, 255, 255, .78);
}

.contact-card strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(44px, 6vw, 76px) 0;
}

.footer-inner {
  width: min(100% - (var(--gutter) * 2), 960px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-mark {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
}

.footer-tagline {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-tagline b {
  color: var(--blue);
  font-weight: 800;
}

.footer-tagline-kr {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-serif-kr);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

.footer-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.work-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.work-modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 11, .58);
}

.modal-panel {
  position: relative;
  width: min(100%, 1160px);
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  overflow: hidden;
  border-color: var(--line-strong);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
  min-width: 72px;
  cursor: pointer;
}

.modal-video {
  min-height: 460px;
  border-right: 1px solid var(--line);
  background: var(--ink);
}

.modal-embed {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
}

.modal-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.modal-placeholder {
  min-height: 460px;
  display: grid;
  place-items: center;
  padding: 34px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.04em;
  text-align: center;
  text-transform: uppercase;
}

.modal-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  overflow-y: auto;
  background: var(--paper);
  padding: clamp(26px, 3vw, 44px);
}

.modal-body h2 {
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.02;
}

.modal-body p {
  margin: 0;
}

.modal-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.modal-meta dt {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.modal-meta dd {
  margin: 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: border-color var(--t-quick) var(--ease), background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}

.modal-actions a:hover,
.modal-actions a:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

/* 첫 번째 액션(= 대표 행동)은 코발트 면으로 */
.modal-actions a:first-child {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.modal-actions a:first-child:hover,
.modal-actions a:first-child:focus-visible {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .featured-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .cursor,
  .cursor-ring {
    display: none;
  }

  .site-header {
    height: 58px;
    gap: 8px;
  }

  .snap-root {
    padding-top: 58px;
  }

  .top-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    min-width: 0;
    justify-content: flex-end;
    gap: 6px;
  }

  .lang-switch {
    margin-left: 0;
  }

  .lang-option {
    min-width: 34px;
    min-height: 32px;
    font-size: 10px;
  }

  .bottom-nav {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    gap: 0;
    border-top: 1px solid var(--line);
    background: var(--paper);
    padding: 8px var(--gutter);
    justify-content: center;
  }

  .bottom-guide {
    display: none;
  }

  .bottom-nav .nav-link {
    flex: 1;
    min-height: 48px;
  }

  .nav-link {
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }

  .brand-link {
    min-height: 34px;
    min-width: 64px;
  }

  .mobile-nav .nav-link {
    min-width: 0;
    padding: 0 8px;
    white-space: nowrap;
  }

  .section {
    padding: clamp(64px, 12vw, 94px) 0;
  }

  /* 모바일에서는 태그를 흐름 안으로 내려 하단 고정 액션 바와 겹치지 않게 한다 */
  .hero-section {
    min-height: 100svh;
    flex-direction: column;
    padding-bottom: clamp(120px, 20vw, 160px);
  }

  .hero-title-studio,
  .hero-title-name {
    font-size: clamp(48px, 15vw, 96px);
  }

  .hero-meta {
    position: static;
    width: 100%;
    margin-top: clamp(26px, 6vw, 38px);
    padding: 0 var(--gutter);
    justify-content: center;
    row-gap: 8px;
  }

  .hero-meta span {
    padding: 8px 10px;
    font-size: 10px;
  }

  .mobile-break {
    display: block;
  }

  .split-shell,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .experience-section .split-shell {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

  .featured-grid,
  .guide-grid,
  .contact-links {
    grid-template-columns: 1fr;
  }

  .work-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-caption {
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .work-card:first-child {
    grid-column: auto;
  }

  .experience-item,
  .experience-item:not(.has-logo) {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .experience-logo {
    width: min(100%, 200px);
    min-height: 76px;
  }

  .modal-panel {
    overflow-y: auto;
  }

  .modal-video {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .modal-video,
  .modal-embed,
  .modal-image,
  .modal-placeholder {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  /* 하단 액션 바가 콘텐츠를 가리지 않게 */
  .site-footer {
    padding-bottom: clamp(96px, 16vw, 132px);
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .intro-logo strong {
    font-size: clamp(48px, 18vw, 84px);
  }

  h2 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .experience-section h2 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .hero-title-studio,
  .hero-title-name {
    font-size: clamp(42px, 16vw, 72px);
  }

  .work-card h3,
  .guide-card h3,
  .experience-item h3 {
    font-size: 20px;
  }

  .contact-shell .rotating-title {
    font-size: clamp(19px, 5.4vw, 30px);
    line-height: 1.25;
  }

  .contact-message br,
  .contact-message-en br {
    display: none;
  }

  .section-copy,
  .hero-subcopy,
  .work-card p,
  .guide-card p,
  .guide-cta p,
  .inquiry-template li,
  .experience-item p,
  .modal-body p,
  .contact-message {
    font-size: 15px;
  }

  .contact-card strong {
    font-size: 16px;
  }

  .work-body {
    padding: 18px 16px 20px;
  }

  .work-logo {
    right: 10px;
    top: 10px;
    width: 84px;
    min-height: 42px;
    padding: 8px;
  }

  .modal-body {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  body.is-intro .site-header,
  body.is-intro .bottom-nav,
  body.is-intro .snap-root {
    transform: none;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }

  /* 위치 이동과 스캔은 제거하고 내용만 즉시 갱신한다 */
  .carousel-scan {
    display: none;
  }

  .guide-panel {
    transition: none;
  }

  .carousel-media[data-enter],
  .carousel-title[data-enter],
  .carousel-scope[data-enter],
  .carousel-current[data-enter] {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   일본어 줄바꿈

   본문 전반에 건 word-break: keep-all 은 어절 단위로 끊는 한국어용이다.
   일본어는 띄어쓰기가 없어 keep-all 이면 줄바꿈 지점이 아예 사라지고, 문장이
   한 줄로 늘어나 섹션의 overflow: hidden 에 잘린다. 일본어에서는 일반 줄바꿈에
   금칙처리(line-break: strict)를 써서 행두·행말 금지 문자만 지키게 한다.

   앞의 .contact-shell .rotating-title 같은 규칙보다 특이도가 높아야 하므로
   :is() 로 올리고 파일 끝에 둔다.
   -------------------------------------------------------------------------- */

html[lang="ja"] body :is(p, li, h1, h2, h3, span, strong, a, dd, dt, .rotating-title, .section-copy, .contact-message) {
  word-break: normal;
  line-break: strict;
}
