/* VACUM STUDIO v3 — 규칙은 DESIGN.md 참고 */
:root {
  --bg: #FFFFFF;
  --surface: #F5F4F2;
  --ink: #171717;
  --ink-2: #3F3C39;
  --mute: #64605B;
  --line: rgba(23, 23, 23, .14);
  --dark: #131211;
  --dark-line: rgba(255, 255, 255, .12);
  --on-dark: #EDEAE5;
  --on-dark-mute: #9C968E;
  --accent: #A16207;
  --placeholder: #EEECE9; /* 사진이 뜨기 전 자리 색 */

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --g: clamp(16px, 4vw, 56px);
  --sec: clamp(96px, 13vw, 192px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font);
  font-size: 16px; line-height: 1.8; font-weight: 400;
  color: var(--ink); background: var(--bg);
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
iconify-icon { display: inline-block; width: 1em; height: 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; transition: top .5s var(--ease); }
.skip:focus { top: 16px; }

/* ---------- 타이포 ---------- */
/* 섹션 제목(영문 대문자). 페이지 맨 위 제목은 .phead에서 한 단계 크게 */
.display {
  font-size: clamp(36px, 4.6vw, 64px); font-weight: 300;
  line-height: .95; letter-spacing: -.03em; text-transform: uppercase;
}
.display--wide { white-space: nowrap; }
/* 여러 단어: 첫 단어 왼쪽(--d -1) · 마지막 단어 오른쪽(+1) 대칭, 한 단어: 왼쪽(-1). 거리(--dist)와 정도(--s)는 main.js */
.split .sw {
  display: inline-block;
  transform: translateX(calc(var(--d) * var(--s, 0) * var(--dist, 1.1em)));
  filter: blur(calc(var(--s, 0) * 8px));
  opacity: calc(1 - var(--s, 0) * .85);
  will-change: transform;
}
/* 리드 문장 = 본문(16px) + 4px */
.lead { font-size: 20px; font-weight: 400; line-height: 1.6; letter-spacing: -.02em; color: var(--ink); }
.body { font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.micro { font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.studio__head .text-link { margin-left: auto; }
/* SELECTED PROJECTS: 링크를 화면 끝이 아니라 제목 바로 옆, 같은 기준선에 */
.projects .projects__head { justify-content: flex-start; align-items: baseline; column-gap: clamp(32px, 4vw, 64px); }
.text-link iconify-icon { font-size: 18px; transition: transform .5s var(--ease); }
.text-link:hover { background-size: 100% 1px; }
.text-link:hover iconify-icon { transform: translate(3px, -3px); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 18px; min-height: 56px;
  padding: 8px 8px 8px 28px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500;
  transition: transform .5s var(--ease), background-color .3s var(--ease);
}
.btn:hover { transform: scale(1.02); background: #000; }
.btn:active { transform: scale(.98); }
.ico-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .14); font-size: 18px;
  transition: transform .5s var(--ease);
}
.btn:hover .ico-wrap { transform: translateX(4px); }
/* Arrow Fill 버튼 (상담 신청 보내기)
   기본: 검은 알약 + 오른쪽 흰 원과 화살표
   올리기/누르기: 흰 원이 버튼 전체로 차오르며 글자가 검정으로, 화살표는 오른쪽으로 빠지고 새 화살표가 들어옴 */
.afb {
  --afb-bg: var(--ink); --afb-text: #fff; --afb-fill: #fff; --afb-fill-text: var(--ink);
  --c: 44px; --r: 6px; --iy: calc((100% - var(--c)) / 2); --afb-ease: cubic-bezier(.785, .135, .15, .86);
  position: relative; isolation: isolate; display: flex; align-items: center; width: fit-content; height: 56px;
  padding: 0 calc(var(--c) + var(--r) + 18px) 0 28px; border-radius: 999px;
  background: var(--afb-bg); color: var(--afb-text);
  /* overflow:hidden 은 쓰지 않음: 둥근 테두리 선의 바깥 가장자리까지 잘라내서 선이 점선처럼 끊겨 보임
     (채움·글자 층은 각자 둥글게 잘려 있어서 따로 자를 필요 없음) */
  font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.cform .afb { margin: 16px auto 0; }
/* 테두리는 채움 위(맨 앞)에 따로 그려서, 흰색으로 차올라도 둥근 모서리 선이 잘리지 않게 */
.afb::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border: 1px solid var(--afb-line, var(--afb-bg)); border-radius: inherit;
}
/* 어두운 배경용 (푸터 '맨 위로'): 투명 + 옅은 테두리 → 흰색으로 차오름 */
.afb--dark { --afb-bg: transparent; --afb-text: var(--on-dark); --afb-line: rgba(255, 255, 255, .22); --afb-fill: #fff; --afb-fill-text: var(--ink); font-size: 14px; }
.afb--dark.is-on { --afb-line: #fff; }
.afb__text { position: relative; z-index: 1; }
.afb__fill {
  position: absolute; z-index: 2; pointer-events: none; border-radius: 999px; background: var(--afb-fill);
  inset: var(--iy) var(--r) var(--iy) calc(100% - var(--r) - var(--c));
  transition: inset .45s var(--afb-ease);
}
.afb__fill-text {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; align-items: center;
  padding: 0 calc(var(--c) + var(--r) + 18px) 0 28px; color: var(--afb-fill-text);
  clip-path: inset(var(--iy) var(--r) var(--iy) calc(100% - var(--r) - var(--c)) round 999px);
  transition: clip-path .45s var(--afb-ease);
}
.afb__icon {
  position: absolute; z-index: 3; right: var(--r); top: 50%; width: var(--c); height: var(--c);
  transform: translateY(-50%); overflow: hidden; border-radius: 50%; color: var(--afb-fill-text); pointer-events: none;
}
.afb__arrow {
  position: absolute; left: 50%; top: 50%; font-size: 20px;
  transition: transform .45s var(--afb-ease);
}
.afb__arrow--in { transform: translate(-170%, -50%) scale(0); }
.afb__arrow--out { transform: translate(-50%, -50%); }
.afb.is-on .afb__fill { inset: 0; }
.afb.is-on .afb__fill-text { clip-path: inset(0 0 0 0 round 999px); }
.afb.is-on .afb__arrow--in { transform: translate(-50%, -50%) scale(1); }
.afb.is-on .afb__arrow--out { transform: translate(70%, -50%) scale(0); }
/* 위쪽 화살표 버전: 화살표가 위로 빠지고 새 화살표가 아래에서 올라옴 */
.afb--up .afb__arrow--in { transform: translate(-50%, 70%) scale(0); }
.afb--up.is-on .afb__arrow--in { transform: translate(-50%, -50%) scale(1); }
.afb--up.is-on .afb__arrow--out { transform: translate(-50%, -170%) scale(0); }
@media (prefers-reduced-motion: reduce) { .afb__fill, .afb__fill-text, .afb__arrow { transition: none; } }
.btn--ghost { padding: 8px 28px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: rgba(23, 23, 23, .04); }

/* ---------- 등장 연출 ---------- */
.rv {
  opacity: 0; transform: translateY(2rem); filter: blur(4px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.rv.is-in { opacity: 1; transform: none; filter: blur(0); }
/* 사진이 아래에서 위로 열리며 등장 (틀에 clip, 사진은 살짝 축소) */
.reveal-img { overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.reveal-img img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
.reveal-img.is-in { clip-path: inset(0 0 0 0); }
.reveal-img.is-in img { transform: scale(1); }
[data-speed] { transition: none !important; will-change: transform; } /* 패럴랙스는 매 프레임 직접 계산 */

/* ---------- Header ---------- */
.hd {
  position: fixed; inset: 16px var(--g) auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  color: #fff; pointer-events: none;
  transition: color .5s var(--ease);
}
.hd > * { pointer-events: auto; }
/* 로고(투명 PNG): 사진·어두운 구간에서는 흰색, 밝은 배경에서는 원본 색 그대로 */
.hd__logo { display: block; justify-self: start; padding: 4px 0; }
.hd__logo-img { display: block; width: 97px; height: auto; filter: brightness(0) invert(1); transition: filter .5s var(--ease); }
.hd.is-light .hd__logo-img, .menu-open .hd__logo-img { filter: none; }
/* 메뉴 (santalarch 방식)
   - 마우스를 올리면 글자가 위로 빠지고 같은 글자가 아래에서 올라옴(.roll)
   - 올린 항목만 또렷하게, 나머지는 라이트그레이로 물러남
   - 현재 페이지 / 누른 항목은 밑줄이 왼쪽에서 오른쪽으로 그어짐 */
.hd { --nav-on: #fff; --nav-dim: rgba(255, 255, 255, .42); }
.hd.is-light, .menu-open .hd { --nav-on: var(--ink); --nav-dim: #BDB9B4; }
.hd__pill { position: relative; display: flex; gap: 40px; justify-self: end; }
.hd__pill a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: .01em;
  color: var(--nav-on); transition: color .4s var(--ease);
}
.hd__pill:hover a, .hd__pill:focus-within a { color: var(--nav-dim); }
.hd__pill a:hover, .hd__pill a:focus-visible { color: var(--nav-on); }
.hd__pill a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.hd__pill a.is-active::after { transform: scaleX(1); } /* 밑줄은 항상 한 항목에만 (main.js setActive) */

/* 밝은 구간에서 스크롤 중일 때만 상단에 옅은 배경 띠 (내용과 글자가 겹치지 않게) */
.hd::before {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 112px; z-index: -1; pointer-events: none;
  /* 부드러운 곡선으로 옅어지는 그라데이션: 꺾이는 지점이 없어 가운데 흰 줄(경계)이 보이지 않음 */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .94) 0%,
    rgba(255, 255, 255, .93) 12%,
    rgba(255, 255, 255, .9) 22%,
    rgba(255, 255, 255, .84) 31%,
    rgba(255, 255, 255, .76) 40%,
    rgba(255, 255, 255, .66) 48%,
    rgba(255, 255, 255, .55) 56%,
    rgba(255, 255, 255, .43) 64%,
    rgba(255, 255, 255, .31) 72%,
    rgba(255, 255, 255, .2) 80%,
    rgba(255, 255, 255, .11) 88%,
    rgba(255, 255, 255, .04) 95%,
    rgba(255, 255, 255, 0) 100%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.hd.is-light.is-scrolled::before { opacity: 1; }
.hd.no-fade::before { opacity: 0 !important; transition-duration: .25s; } /* 메인: 검은 원이 헤더 쪽까지 커질 때 그라데이션 끔 */

/* 글자가 위로 굴러 바뀌는 호버 (TARQ 버튼 방식) */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.4; }
.roll > span { display: block; transition: transform .5s var(--ease); }
.roll::after { content: attr(data-t); content: attr(data-t) / ""; /* 빈 대체 텍스트: 화면 낭독기가 같은 단어를 두 번 읽지 않게 */ position: absolute; left: 0; top: 100%; white-space: nowrap; transition: transform .5s var(--ease); }
a:hover .roll > span, button:hover .roll > span, a:hover .roll::after, button:hover .roll::after { transform: translateY(-100%); }
.hd__menu { display: none; justify-self: end; }

.hd.is-light { color: var(--ink); }

/* 모바일 메뉴 */
.mnav {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--g) 40px;
  background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
/* 메뉴 묶음의 중심을 화면 중앙보다 살짝 위(45%)에 둔다 */
.mnav nav { position: absolute; left: var(--g); right: var(--g); top: 45%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 24px; }
.mnav nav a, .mnav__info {
  opacity: 0; transform: translateY(2rem);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i) * 60ms + 80ms);
}
.mnav nav a { font-size: 30px; font-weight: 300; letter-spacing: -.03em; line-height: 1.35; padding: 4px 0; }
/* 탭 모션 (Animated Link 방식):
   고른 항목에 밑줄이 왼쪽에서 그어지고 ↗ 화살표가 그려진 뒤 이동, 나머지는 위로 사라짐 */
.mnav nav a {
  position: relative; display: inline-flex; align-items: center; width: fit-content;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.mnav nav a::before {
  content: ""; position: absolute; left: 0; right: 0; top: 1.5em; height: .05em; background: currentColor;
  pointer-events: none; transform: scaleX(0); transform-origin: right;
  will-change: transform; /* 늘 같은 방식으로 그려서, 멈춰 있는 밑줄과 움직이는 밑줄의 굵기가 똑같이 보이게 */
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), right .3s cubic-bezier(.4, 0, .2, 1);
}
.mnav__arrow { margin-left: .3em; width: .55em; height: .55em; flex: none; }
.mnav__arrow path { stroke-dasharray: 32; stroke-dashoffset: 32; transition: stroke-dashoffset .3s cubic-bezier(.4, 0, .2, 1); }
.mnav nav a.is-picked::before { transform-origin: left; transform: scaleX(1); }
.mnav nav a.is-picked .mnav__arrow path { stroke-dashoffset: 0; }
@media (hover: hover) {
  .mnav nav a:hover::before { transform-origin: left; transform: scaleX(1); }
  .mnav nav a:hover .mnav__arrow path { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) { .mnav nav a::before, .mnav__arrow path { transition: none; } }
.mnav.is-leaving nav a:not(.is-picked) {
  opacity: 0; transform: translateY(-14px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
  transition-delay: calc(var(--i) * 40ms);
}
.mnav__info { font-size: 15px; color: var(--mute); line-height: 1.7; }
/* 연락처 아래 SNS 링크: 푸터처럼 회색 → 올리거나 누르면 검정 */
.mnav__sns { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 4px; }
.mnav__sns a { color: inherit; transition: color .3s var(--ease); -webkit-tap-highlight-color: transparent; }
.mnav__sns a:hover, .mnav__sns a:active, .mnav__sns a:focus-visible { color: var(--ink); }
.menu-open .mnav { opacity: 1; visibility: visible; }
.menu-open .mnav nav a, .menu-open .mnav__info { opacity: 1; transform: none; }
.menu-open .hd { color: var(--ink); }

/* ---------- Hero ---------- */
/* 히어로는 고정, 아래 판(.panel)이 위로 올라와 덮음 */
.hero { position: sticky; top: 0; z-index: 1; height: 100vh; height: 100dvh; min-height: 600px; overflow: hidden; background: var(--dark); color: #fff; }
.hero__slides, .hero__slide { position: absolute; inset: 0; margin: 0; }
.hero__slides { z-index: 0; will-change: transform, filter; } /* 슬라이드끼리의 겹침 순서가 글자·그라데이션 위로 올라오지 않게 묶음 */
.panel { position: relative; z-index: 2; background: var(--bg); box-shadow: 0 -40px 80px -20px rgba(0, 0, 0, .35); }
.hero__slide { visibility: hidden; z-index: 0; overflow: hidden; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hero__slide.is-active { visibility: visible; z-index: 1; }
/* 한 장(6초) 내내 114% → 100%로 천천히 고르게 줄어듦. 빠르게 시작하는 기본 곡선 대신 거의 일정한 속도를 써야 끝까지 움직임이 느껴짐 */
.hero__slide.is-active img { transform: scale(1); transition: transform 6.2s cubic-bezier(.25, .1, .45, 1); }
/* 다음 프로젝트 전환: 새 사진이 아래에서 위로 덮고, 이전 사진은 위로 밀리며 어두워짐 */
.hero__slide.is-enter { visibility: visible; z-index: 2; clip-path: inset(100% 0 0 0); }
.hero__slide.is-enter img { transform: translateY(14%) scale(1.2); }
.hero__slide.is-enter.go { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease); }
.hero__slide.is-enter.go img { transform: translateY(0) scale(1.14); transition: transform 1.5s var(--ease); }
.hero__slide.is-exit img { transform: translateY(-10%) scale(1.02); filter: brightness(.45); transition: transform 1.4s var(--ease), filter 1.4s var(--ease); }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 18, 17, .45) 0%, rgba(19, 18, 17, .15) 35%, rgba(19, 18, 17, .25) 60%, rgba(19, 18, 17, .7) 100%); }

.hero__center {
  position: absolute; left: var(--g); right: var(--g); top: 50%; transform: translateY(-50%);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  font-size: 15px; font-weight: 500;
}
/* 연도·프로젝트명·보기를 같은 세로 중심선에 맞춤 (줄 높이를 통일하고 여백 대신 높이로 중앙 배치) */
.hero__year, .hero__title, .hero__view { display: flex; align-items: center; min-height: 44px; line-height: 1.2; }
.hero__year { font-weight: 200; font-variant-numeric: tabular-nums; }
.hero__title { justify-content: center; font-size: clamp(20px, 2.2vw, 32px); font-weight: 400; letter-spacing: -.02em; }
.hero__name { white-space: nowrap; }
.hero__view { justify-self: end; font-weight: 200; }
.hero__view .roll { line-height: 1.2; }
/* 전환 중에는 연도·이름·보기가 먼저 사라졌다가 새 내용으로 다시 나타남 */
.hero__year, .hero__title, .hero__view {
  transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease);
}
.hero__center.is-out .hero__year, .hero__center.is-out .hero__title, .hero__center.is-out .hero__view {
  opacity: 0; filter: blur(6px); transform: translateY(-10px);
  transition-duration: .4s;
}
.hero__title { transition-delay: .05s; }
.hero__view { transition-delay: .1s; }

/* PC: "…디자인의 의도를" / "온전히 구현하는…" 두 줄로 (줄바꿈은 HTML의 br.br-pc) */
.hero__intro { position: absolute; left: var(--g); bottom: 40px; max-width: none; white-space: nowrap; font-size: 13px; font-weight: 400; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.hero__ctrl { position: absolute; right: var(--g); bottom: 32px; display: flex; align-items: center; gap: 20px; font-size: 14px; }
.hero__count { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .7); }
.hero__count b { color: #fff; font-weight: 500; }
.hero__bar { display: block; width: 96px; height: 4px; overflow: visible; flex-shrink: 1; min-width: 32px; }
.hero__count, .hero__next { white-space: nowrap; flex-shrink: 0; }
/* 배경 없이 글자 + 화살표만. 상단 메뉴(14px/500)보다 한 단계 아래 */
.hero__next {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px;
  font-size: 13px; font-weight: 400; color: #fff;
}
.hero__next iconify-icon { font-size: 16px; transition: transform .5s var(--ease); }
.hero__next:hover iconify-icon { transform: translateY(3px); }
.hero__next:active iconify-icon { transform: translateY(6px); }
.hero__next[aria-busy="true"] { pointer-events: none; }

/* 첫 진입 */
.hero__center, .hero__intro, .hero__ctrl { opacity: 0; transition: opacity 1.2s var(--ease) .4s; }
.is-ready .hero__center, .is-ready .hero__intro, .is-ready .hero__ctrl { opacity: 1; }
.hd { opacity: 0; transform: translateY(-12px); transition: color .5s var(--ease), opacity 1s var(--ease) .2s, transform 1s var(--ease) .2s; }
.is-ready .hd { opacity: 1; transform: none; }

/* ---------- The Studio ---------- */
.studio { padding: var(--sec) var(--g); }
.studio__head, .projects__head, .process__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.studio__text .studio__head { align-items: baseline; flex-wrap: wrap; row-gap: 8px; margin-bottom: clamp(56px, 7vw, 104px); }
.display, .text-link { white-space: nowrap; } /* 제목·링크는 단어 중간에서 줄바꿈하지 않음 (좁으면 링크가 아랫줄로) */
.studio__body {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 9vw, 160px);
  align-items: start;
}
.studio__text { padding-top: 0; }
.studio__text .body { margin-top: 24px; max-width: 480px; }
.studio__text .lead + .body { margin-top: 40px; }
.facts { margin-top: 64px; }
.facts li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px;
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
.studio__img { margin: 0; }
.studio__frame { aspect-ratio: 4 / 5; background: var(--placeholder); }
.studio__frame img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.studio__img figcaption { margin-top: 16px; text-transform: none; letter-spacing: .02em; font-size: 13px; }

/* ---------- Projects ---------- */
/* 간격 규칙(근접성): 섹션 사이는 넓게(STUDIO 아래 여백 + 위 여백 = 섹션 간격 2배),
   제목과 그 아래 사진은 가깝게(32–56px) 붙여 한 묶음으로 보이게 */
.projects { padding: var(--sec) var(--g); }
.projects__head { padding-bottom: 0; }
.pgrid {
  margin-top: clamp(64px, 8vw, 128px); /* 제목과 첫 사진 사이를 넓혀 제목 모션이 사진에 묻히지 않게 */
  /* 6개를 2개씩 3줄, 줄마다 크기·위치·비율을 다르게 엇갈려 배치 (12칸 기준) */
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 40px); row-gap: clamp(64px, 8vw, 128px);
  align-items: start;
}
.pcard { display: block; }
.pgrid > .pcard:nth-child(1) { grid-column: 1 / 7; }
.pgrid > .pcard:nth-child(2) { grid-column: 8 / 12; margin-top: clamp(96px, 14vw, 240px); }
.pgrid > .pcard:nth-child(3) { grid-column: 2 / 9; }
.pgrid > .pcard:nth-child(4) { grid-column: 10 / 13; margin-top: clamp(120px, 18vw, 300px); }
.pgrid > .pcard:nth-child(5) { grid-column: 1 / 5; margin-top: clamp(40px, 6vw, 96px); }
.pgrid > .pcard:nth-child(6) { grid-column: 6 / 13; }
.pgrid > .pcard:nth-child(2) .pcard__img,
.pgrid > .pcard:nth-child(4) .pcard__img,
.pgrid > .pcard:nth-child(5) .pcard__img { aspect-ratio: 3 / 4; }
.pgrid > .pcard:nth-child(3) .pcard__img,
.pgrid > .pcard:nth-child(6) .pcard__img { aspect-ratio: 4 / 3; }
/* 사진 아래 한 줄: 프로젝트명(검정) + 연도(회색) */
.pcard__cap { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; font-size: 15px; line-height: 1.4; }
.pcard__name { font-weight: 500; color: var(--ink); }
.pcard__year { font-weight: 400; color: var(--mute); font-variant-numeric: tabular-nums; }
.pcard__img { aspect-ratio: 4 / 5; background: var(--placeholder); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
/* 프로젝트 사진 hover (studioplato 방식)
   - 올린 사진은 8% 확대, 나머지 사진은 흐려지고 글자는 옅어짐
   - 전환 곡선·시간은 studioplato 값 그대로 (흐림 1.25s, 확대 1s) */
.pcard__img img, .pitem__img img { transition: transform 1s cubic-bezier(.165, .84, .44, 1); }
.pcard__img, .pitem__img { transition: clip-path 1.4s var(--ease), filter 1.25s cubic-bezier(.165, .84, .44, 1), opacity 1s cubic-bezier(.165, .84, .44, 1); }
.pcard__cap { transition: opacity 1s cubic-bezier(.165, .84, .44, 1); }
@media (hover: hover) {
  .pcard:hover .pcard__img.is-in img, .pcard:hover .pitem__img.is-in img { transform: scale(1.08); }
}
/* 나머지 사진 하얗게 블러: 여러 장이 나란히 보이는 태블릿·데스크톱 폭(768px 이상)에서만.
   모바일 폭은 한 줄에 한 장이라 적용하지 않음 */
@media (hover: hover) and (min-width: 768px) {
  /* 나머지 사진: 크게 흐려지고 흰 배경에 반쯤 비쳐 하얗게 바램 */
  :is(.pgrid, .plist):has(.pcard:hover) .pcard:not(:hover) :is(.pcard__img, .pitem__img) { filter: blur(14px) saturate(.8); opacity: .4; }
  :is(.pgrid, .plist):has(.pcard:hover) .pcard:not(:hover) .pcard__cap { opacity: .25; }
}

/* ---------- 원칙 → SELECTED PROJECTS 전환 ----------
   검은 화면에 흰 VACUM → V자 왼쪽 획 속으로 확대돼 화면이 하얗게 채워짐 → 흰 바탕 프로젝트로 이어짐
   (구간 높이 = 스크롤 길이, 안쪽 무대는 화면에 고정) */
/* 다음 SELECTED PROJECTS가 하얗게 채워진 무대 위로 40vh 겹쳐 올라와 빈 흰 화면이 길지 않게 */
.vzoom { position: relative; height: 380vh; margin-bottom: -40vh; }
.vzoom + .projects { position: relative; z-index: 1; background: var(--bg); }
.vzoom__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--dark); }
.vzoom__stage.is-white { background: var(--bg); }
.vzoom__word {
  position: absolute; left: 50%; top: 50%; width: min(72vw, 880px); height: auto; aspect-ratio: 569.121 / 105.135; overflow: visible; fill: #fff;
  /* 위치·확대는 main.js가 매 프레임 정함 */
  transform: translate(-50%, -50%); opacity: 0;
}
@media (max-width: 767px) {
  .vzoom { height: 340vh; }
  .vzoom__word { width: 84vw; }
}

/* ---------- Process (santalarch 방식, 흰 배경 + 검정 글씨) ----------
   앞뒤로 넉넉한 빈 공간을 두어, 앞 섹션이 사라진 뒤 잠깐 빈 화면 → 진행 과정이 서서히 나타남 */
.process { padding: 65vh var(--g) 75vh; background: var(--bg); color: var(--ink); }
/* 진행 과정 단독 페이지(process.html): 전환용 큰 빈 여백 없이 다른 서브페이지처럼 시작 */
.process.process--page { padding: clamp(150px, 18vw, 240px) var(--g) var(--sec); }
.process__inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.process__aside { position: sticky; top: 30vh; }
.process__caption { margin-top: 28px; max-width: 340px; font-size: 20px; line-height: 1.6; letter-spacing: -.02em; color: var(--ink-2); }
/* 소개 문장: 위 제목과 반대로 오른쪽으로 날아가며 사라지고, 오른쪽에서 날아와 나타남 (--s는 main.js가 스크롤로 계산)
   이동 거리는 제목이 날아가는 거리(약 115px)와 비슷하게 */
.process__caption .cw {
  display: inline-block;
  transform: translateX(calc(var(--d) * var(--s, 0) * 5.5em));
  filter: blur(calc(var(--s, 0) * 8px));
  opacity: calc(1 - var(--s, 0) * .85);
  will-change: transform;
}

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__head {
  width: 100%; display: grid; grid-template-columns: clamp(48px, 6vw, 88px) minmax(0, 1fr) 44px; align-items: center; gap: 12px;
  padding: clamp(28px, 3.4vw, 44px) 0; text-align: left; color: var(--ink);
}
.acc__no { font-size: 14px; font-weight: 500; color: var(--mute); font-variant-numeric: tabular-nums; }
.acc__title { font-size: clamp(28px, 3.2vw, 48px); font-weight: 400; line-height: 1.2; letter-spacing: -.035em; transition: transform .6s var(--ease); }
/* 닫혀 있을 때만 올리면 제목이 살짝 밀림. 펼친 뒤에는 본문을 읽는 데 방해되지 않게 제자리 */
.acc__head[aria-expanded="false"]:hover .acc__title { transform: translateX(8px); }
/* + 아이콘: 펼치면 세로선이 누워서 − 가 됨 */
.acc__icon { position: relative; width: 22px; height: 22px; justify-self: end; }
.acc__icon i { position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .6s var(--ease); }
.acc__icon i:last-child { transform: rotate(90deg); }
.acc__head[aria-expanded="true"] .acc__icon i:last-child { transform: rotate(0deg); }
/* 펼침: 높이 0 → 내용 높이 (grid-template-rows 0fr → 1fr) */
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.acc__head[aria-expanded="true"] + .acc__body { grid-template-rows: 1fr; }
.acc__inner {
  overflow: hidden; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px;
  padding-left: calc(clamp(48px, 6vw, 88px) + 12px);
  opacity: 0; transform: translateY(-8px); transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.acc__head[aria-expanded="true"] + .acc__body .acc__inner { opacity: 1; transform: none; padding-bottom: clamp(32px, 3.6vw, 48px); }


/* ---------- Contact ---------- */
.contact { padding: var(--sec) var(--g); }
.bezel { padding: 8px; border-radius: 32px; background: rgba(23, 23, 23, .04); box-shadow: inset 0 0 0 1px rgba(23, 23, 23, .06); }
.bezel__core { border-radius: 24px; background: var(--surface); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), 0 30px 80px -40px rgba(23, 23, 23, .1); }
.contact__core {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end;
  /* 위·아래 여백 같게: 제목 글자 위 / 버튼 아래가 눈으로 보기에 같은 간격 */
  padding: clamp(32px, 5vw, 96px) clamp(32px, 7vw, 120px);
}
.contact__title { margin-top: 20px; font-size: clamp(30px, 3.8vw, 60px); font-weight: 400; line-height: 1.3; letter-spacing: -.04em; }
/* 제목 줄간격 때문에 글자 위에 생기는 빈 공간(약 0.2em)만큼 끌어올려, 위 여백이 아래 여백과 같아 보이게 */
.contact__title:first-child { margin-top: -.2em; }
.contact__core .body { margin-top: 56px; max-width: 640px; } /* 제목과 안내 문장 사이 (이전 40px의 약 1.25배로 보이게) */
/* 오른쪽 버튼은 카드 아래쪽, 왼쪽 안내 문장과 같은 높이로 (grid align-items: end) */
.contact__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

/* ---------- Footer ---------- */
/* 국보디자인(ikukbo.com) 푸터 구성 참고: 문구·큰 로고 없이 정보만 작고 단정하게, 왼쪽 정렬 한 줄기
   [상담 문의 / 회사 정보] → 메뉴 링크 → SNS → 저작권 */
/* 흰 바탕: 제목은 검정, 본문은 회색(Medium), 누르면 이동하는 링크는 올리면 검정 */
.ft {
  background: var(--bg); color: #8A857F; /* 본문 회색: 사이트 기본 회색(#64605B)보다 연하게 */
  position: relative; z-index: 3; /* 본문 판(.panel)의 그림자가 푸터 위로 비치지 않게 덮음 → 흰 바탕이 끊김 없이 이어짐 */
  padding: 80px var(--g) 48px; font-size: 15px; font-weight: 600; line-height: 1.6;
}
.ft a { transition: color .3s var(--ease); }
.ft a:hover { color: var(--ink); }
/* 근접성: 묶음 안(제목↔내용)은 촘촘하게, 묶음 사이는 넓게 → 세 묶음이 또렷이 나뉘어 보이게 */
.ft__info { display: flex; flex-direction: column; gap: 36px; }
.ft__head { margin-bottom: 10px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.ft__group p + p { margin-top: 4px; }
.ft__k::after { content: ":"; margin: 0 6px 0 4px; } /* "전화 : 010…" */
.ft__sns { margin-top: 36px; } /* 위 두 묶음과 같은 간격 */
.ft__social { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ft__copy { margin-top: 48px; font-size: 14px; } /* SNS 묶음과 떨어뜨려 저작권은 따로 */

/* =========================================================
   서브페이지 공통
   ========================================================= */
.sub .hd { opacity: 1; transform: none; }
/* 지금 보고 있는 페이지: 색 대신 글자 끝까지만 밑줄 (화살표 자리 .85em 만큼 짧게).
   올리거나 누르면 밑줄이 화살표 끝까지 늘어나고 화살표가 그려짐 */
.mnav nav a:is([aria-current="page"], [data-current])::before { transform-origin: left; transform: scaleX(1); right: .85em; }
.mnav nav a:is([aria-current="page"], [data-current]).is-picked::before { right: 0; }
@media (hover: hover) { .mnav nav a:is([aria-current="page"], [data-current]):hover::before { right: 0; } }

.phead {
  padding: clamp(150px, 18vw, 240px) var(--g) clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px 64px; align-items: end;
}
.phead--tight { padding-bottom: clamp(48px, 6vw, 88px); }
.phead__title .display { margin-top: 20px; font-size: clamp(44px, 6.4vw, 96px); line-height: .92; }
/* 프로젝트 페이지: 제목을 절반 크기로, 라벨·소개 문장 없이 */
.phead--small { grid-template-columns: 1fr; }
.phead--small .phead__title .display { margin-top: 0; font-size: clamp(28px, 3.2vw, 48px); }
/* 상단 메뉴로 들어가는 페이지 제목(Projects · Studio · Process · Contact)은 모두 같은 크기 */
.studio--page .display, .process--page .display { font-size: clamp(28px, 3.2vw, 48px); }
.phead .lead { max-width: 440px; justify-self: end; color: var(--ink-2); padding-bottom: 8px; }

/* About — 큰 사진 */
.pvisual { margin: 0; padding: 0 var(--g); }
.pvisual__frame { aspect-ratio: 21 / 9; background: var(--placeholder); }
.pvisual__frame img { width: 100%; height: 124%; margin-top: -12%; object-fit: cover; }

/* About — 소개 */
.story { padding: var(--sec) var(--g); }
.story__cols {
  margin-top: 32px; padding-top: 40px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px clamp(48px, 8vw, 140px);
}
.story__title { font-size: clamp(30px, 3.6vw, 56px); font-weight: 400; line-height: 1.32; letter-spacing: -.04em; }
.story__text .body + .body { margin-top: 24px; }
.story__text { padding-top: 10px; max-width: 520px; }

/* About — 원칙 */
.principles { padding: 0 var(--g) var(--sec); }
.principles__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.principles__head .body { max-width: 320px; }
.plines { margin-top: clamp(48px, 6vw, 88px); }
.plines li {
  display: grid; grid-template-columns: minmax(48px, 1fr) minmax(0, 4fr) minmax(0, 5fr); gap: 24px; align-items: baseline;
  padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line);
}
.plines li:last-child { border-bottom: 1px solid var(--line); }
.plines__no { font-size: 14px; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.plines__title { font-size: clamp(30px, 3.4vw, 52px); font-weight: 300; letter-spacing: -.04em; line-height: 1.2; }
.plines .body { max-width: 480px; }

/* About — 원칙 (회전하는 구): 구간 높이 = 스크롤 길이, 안쪽 무대는 화면에 고정된 채 돌아감 */
.orbit { position: relative; height: 320vh; }
.orbit__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.orbit__title { position: absolute; inset: 0; pointer-events: none; font-weight: 300; }
.orbit__side {
  position: absolute; top: 50%; font-size: clamp(30px, 3.8vw, 60px); line-height: 1; letter-spacing: -.045em; color: var(--ink);
  transform: translate3d(var(--x, 0), -50%, 0) scale(var(--k, 1)); will-change: transform;
}
.orbit__side--l { left: var(--g); transform-origin: 0 50%; }
.orbit__side--r { right: var(--g); transform-origin: 100% 50%; }
.orbit__globe { --size: min(64vmin, 520px); position: relative; width: var(--size); height: var(--size); transform: translateX(var(--cx, 0px)) scale(var(--s, 1)); will-change: transform; }
.orbit__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__svg line { stroke: #BDB8B2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbit__hub { fill: var(--ink); }
/* 메인: 끝날 때쯤 가운데 점이 커지며 화면 전체를 검게 채움 (크기는 main.js) */
.orbit__blot {
  position: absolute; left: 50%; top: 50%; z-index: 20; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--dark); pointer-events: none; opacity: 0;
  transform: translate3d(var(--cx, 0px), 0, 0) scale(var(--b, 1));
}
.orbit__stage.is-black { background: var(--dark); }
.orbit:has(.orbit__blot) { height: 400vh; }
.orbit__words { position: absolute; inset: 0; }
.orbit__word {
  position: absolute; left: 50%; top: 50%; white-space: nowrap;
  font-size: clamp(14px, 1.5vw, 22px); font-weight: 400; letter-spacing: -.02em; line-height: 1; color: var(--ink);
  transform: translate3d(-50%, -50%, 0); will-change: transform, opacity;
  /* 선이 닿는 점(왼쪽) + 그 오른쪽에 단어 */
  padding-left: 14px; transform-origin: 3px 50%;
}
.orbit__word::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--ink); }
@media (max-width: 767px) {
  /* 폰: 양옆 단어를 구의 위·아래로 */
  .orbit { height: 260vh; }
  .orbit__globe { --size: min(48vw, 260px); } /* 회전 중심을 정가운데에 두고도 오른쪽 끝 단어가 화면 밖으로 안 나가게 */
  .orbit__word { font-size: 13px; }
  .orbit__side { font-size: 32px; } /* 폰: PC처럼 화면 세로 가운데(그물 한가운데) 같은 줄 */
}


/* Portfolio — 필터 */
.plist-wrap { padding: 0 var(--g) var(--sec); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.filter button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .5s var(--ease);
}
.filter button:hover { background: rgba(23, 23, 23, .05); }
.filter button:active { transform: scale(.97); }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
/* 개수 숫자: 글자와 같은 크기·같은 줄, 색은 그대로(옅게) */
.filter sup { font-size: inherit; font-weight: 500; line-height: inherit; opacity: .6; font-variant-numeric: tabular-nums; vertical-align: baseline; }
/* 선택된(검정) 버튼: 숫자를 밝은 회색으로 */
.filter button[aria-pressed="true"] sup { opacity: 1; color: #B5B1AC; }

/* Portfolio — 목록: 메인 SELECTED PROJECTS와 같은 엇갈린 배치 (12칸 기준, 6개 단위로 반복 → 프로젝트 수가 늘어도 그대로) */
.plist {
  margin-top: clamp(48px, 6vw, 96px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 40px); row-gap: clamp(64px, 8vw, 128px);
  align-items: start;
}
.plist__empty { grid-column: 1 / -1; padding: 40px 0 clamp(120px, 16vw, 240px); font-size: 15px; color: var(--mute); }
.pitem:nth-child(6n+1) { grid-column: 1 / 7; }
.pitem:nth-child(6n+2) { grid-column: 8 / 12; margin-top: clamp(96px, 14vw, 240px); }
.pitem:nth-child(6n+3) { grid-column: 2 / 9; }
.pitem:nth-child(6n+4) { grid-column: 10 / 13; margin-top: clamp(120px, 18vw, 300px); }
.pitem:nth-child(6n+5) { grid-column: 1 / 5; margin-top: clamp(40px, 6vw, 96px); }
.pitem:nth-child(6n)   { grid-column: 6 / 13; }
.pitem__img { aspect-ratio: 4 / 5; background: var(--placeholder); }
.pitem:is(:nth-child(6n+2), :nth-child(6n+4), :nth-child(6n+5)) .pitem__img { aspect-ratio: 3 / 4; }
.pitem:is(:nth-child(6n+3), :nth-child(6n)) .pitem__img { aspect-ratio: 4 / 3; }
.pitem__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 프로젝트 상세 페이지 (studioplato 구성 참고) ----------
   리듬: 프로젝트명 → 큰 대표 사진 → 소개 + 정보 → [사진 묶음 ↔ 짧은 문단] 반복
   간격: 같은 묶음 안 사진 사이는 좁게(12–20px), 묶음과 문단 사이는 넓게(96–180px) */
.pj { padding-top: clamp(112px, 13vw, 168px); }
.pj-head { padding: 0 var(--g); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pj-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--mute); transition: color .3s var(--ease); }
.pj-back:hover { color: var(--ink); }
.pj-back span { transition: transform .5s var(--ease); }
.pj-back:hover span { transform: translateX(-4px); }
.pj-title { font-size: clamp(24px, 2.2vw, 32px); font-weight: 400; line-height: 1.25; letter-spacing: -.03em; }
.pj-hero { margin: clamp(32px, 4vw, 56px) var(--g) 0; aspect-ratio: 3 / 2; max-height: 88vh; width: calc(100% - 2 * var(--g)); background: var(--placeholder); }
.pj-hero img { width: 100%; height: 100%; object-fit: cover; }

.pj-intro {
  padding: clamp(80px, 10vw, 160px) var(--g) 0;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px clamp(40px, 8vw, 140px); align-items: start;
}
/* 프로젝트 본문(소개 문단 + 중간 문단) 18px로 통일 (원래 중간 문단 20px보다 한 단계 작게) */
.pj-lead { font-size: 18px; font-weight: 400; line-height: 1.75; letter-spacing: -.02em; color: var(--ink); max-width: 620px; }
.pj-meta div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pj-meta div:last-child { border-bottom: 1px solid var(--line); }
.pj-meta dd { text-align: right; }

.pj-body { padding: clamp(96px, 12vw, 180px) var(--g) var(--sec); }
.pj-row { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.pj-row + .pj-row { margin-top: clamp(12px, 1.4vw, 20px); }
.pj-row--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj-row--triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pj-fig { margin: 0; aspect-ratio: 4 / 5; background: var(--placeholder); }
.pj-row--pair.is-landscape .pj-fig { aspect-ratio: 4 / 3; }
.pj-row--triple .pj-fig { aspect-ratio: 2 / 3; }
.pj-row--wide .pj-fig { aspect-ratio: 3 / 2; }
.pj-fig img { width: 100%; height: 100%; object-fit: cover; }
.pj-text {
  max-width: 520px; margin: clamp(96px, 12vw, 180px) auto;
  font-size: 18px; line-height: 1.75; letter-spacing: -.02em; color: var(--ink-2); text-align: center;
}

.pj-noscript { padding: 0 var(--g); }


.contact--sub { padding-top: 0; }

/* Contact */
.cwrap {
  padding: 0 var(--g) var(--sec);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  column-gap: clamp(40px, 6vw, 112px); row-gap: 20px; align-items: start;
}
.cinfo { position: sticky; top: 120px; grid-row: 1; } /* 신청서 카드 윗선과 같은 높이에서 시작 */
.cwrap > .bezel { grid-column: 2; grid-row: 1; }
.facts--first { margin-top: 0; }
.facts a { transition: color .3s var(--ease); }
.facts a:hover { color: var(--accent); }
.facts li > :last-child { text-align: right; }
.cmap { position: relative; margin-top: 32px; aspect-ratio: 4 / 3; background: var(--placeholder); overflow: hidden; }
/* 위쪽 120px(Google 주소 카드·버튼 자리)은 잘라서 숨김 */
.cmap iframe { position: absolute; left: 0; top: -120px; width: 100%; height: calc(100% + 120px); border: 0; display: block; }
/* 지도 안 Google 버튼 대신 쓰는 '지도에서 열기' (같은 자리를 덮음, 새 탭으로 네이버 지도) */
.cmap__open { position: absolute; top: 10px; left: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; border-radius: 2px; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: background .3s cubic-bezier(.16,1,.3,1); }
.cmap__open:hover { background: #F2F2F2; }
.cmap__open iconify-icon { font-size: 16px; }

.cform { padding: clamp(28px, 4.5vw, 64px); }
.cform__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cform__title { font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.03em; }
.cform__note { font-size: 13px; color: var(--mute); }
.cform em, .field label em, .agree em { font-style: normal; color: var(--accent); }
.cform__group { border: 0; margin-top: 40px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin-bottom: 24px; }
.field label, .field__label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 18px; border: 0; border-radius: 14px;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, .12);
  transition: box-shadow .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.field ::placeholder { color: #9a958f; }
.field select {
  padding-right: 44px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23171717' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 18px center;
}
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(23, 23, 23, .28); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px rgba(23, 23, 23, .06); }
.field__help { margin-top: 8px; font-size: 13px; color: var(--mute); line-height: 1.5; }
.field__err { margin-top: 8px; font-size: 13px; line-height: 1.5; color: #B42318; }
.field__err:empty { display: none; }
.field.is-error input { box-shadow: inset 0 0 0 1.5px #B42318; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chips label {
  margin: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 400; color: var(--ink-2); background: #fff; box-shadow: inset 0 0 0 1px rgba(23, 23, 23, .12); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .5s var(--ease);
}
.chips label:hover { box-shadow: inset 0 0 0 1px rgba(23, 23, 23, .3); }
.chips label:active { transform: scale(.97); }
.chips input:checked + label { background: var(--ink); color: #fff; box-shadow: none; }
.chips input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }

.field--agree { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.agree { display: flex !important; align-items: flex-start; gap: 12px; font-weight: 400 !important; color: var(--ink-2) !important; line-height: 1.6; cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); cursor: pointer; }
.btn--block { display: flex; width: fit-content; margin: 16px auto 0; }
.btn--block:hover { transform: scale(1.02); }
.form-done { margin-top: 16px; padding: 16px 20px; border-radius: 14px; background: rgba(161, 98, 7, .08); font-size: 14px; line-height: 1.6; color: var(--ink-2); }

@media (max-width: 1024px) {
  .phead { grid-template-columns: 1fr; }
  .phead .lead { justify-self: start; }
  .cwrap { grid-template-columns: 1fr; grid-template-rows: none; }
  .cinfo { position: static; grid-row: auto; }
  .cwrap > .bezel { grid-column: 1; grid-row: auto; margin-top: 24px; }
}
@media (max-width: 767px) {
  .pvisual__frame { aspect-ratio: 4 / 3; }
  .story__cols { grid-template-columns: 1fr; }
  .plines li { grid-template-columns: 40px minmax(0, 1fr); }
  .plines li .body { grid-column: 2; }
  .plist { grid-template-columns: 1fr; row-gap: 56px; }
  .plist > .pitem:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .plist > .pitem:nth-child(n) .pitem__img { aspect-ratio: 4 / 5; } /* 폰: 모두 같은 세로형으로 일렬 */
  .pj-hero { aspect-ratio: 4 / 5; }
  .pj-intro { grid-template-columns: 1fr; }
  .pj-row--pair, .pj-row--triple { grid-template-columns: 1fr; }
  .pj-row--triple .pj-fig { aspect-ratio: 4 / 5; }
  .pj-text { text-align: left; }
  .frow { grid-template-columns: 1fr; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hd__pill { gap: 28px; }
  .studio__body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .hd { inset: 12px 16px auto; grid-template-columns: 1fr auto; }
  /* 로고(VACUM 글자가 위쪽에 무게)를 살짝 내려서 오른쪽 메뉴 버튼과 눈으로 보기에 가운데가 맞게 */
  .hd__logo { transform: translateY(4px); }
  .hd__pill { display: none; }
  /* 햄버거 3줄: 두께 1px, 위치를 정수 픽셀(16·23·30px)에 고정해 세 줄이 같은 두께로 보이게 */
  .hd__menu {
    display: block; position: relative;
    width: 48px; height: 48px; padding: 0; border-radius: 50%;
    background: none; box-shadow: none; /* 원형 배경·테두리 없이 선만 (누르는 영역은 48px 유지) */
  }
  .hd__menu { overflow: hidden; isolation: isolate; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  /* Menu Toggle (21st.dev efferd 방식): 선 하나로 이어진 SVG 경로.
     닫힘 = 세 줄(모두 20px, 가운데 줄 길이로 통일) / 열림 = 아이콘 전체가 -45° 돌고,
     위·아래 줄이 고리를 따라 미끄러져 세로선이 되면서 가운데 줄과 X를 만듦 */
  .hm {
    position: absolute; left: 7px; top: 8.5px; width: 32px; height: 32px; overflow: visible; /* 줄 가운데 = 버튼 가운데, .5px로 1px 선을 선명하게 */
    transform-origin: 17px 16px; /* X 교차점 */
    transition: transform .6s cubic-bezier(0, 0, .2, 1);
  }
  .hm__loop {
    stroke-dasharray: 20 69.68; stroke-dashoffset: 0;
    transition: stroke-dasharray .6s cubic-bezier(0, 0, .2, 1), stroke-dashoffset .6s cubic-bezier(0, 0, .2, 1);
  }
  .menu-open .hm { transform: rotate(-45deg); }
  .menu-open .hm__loop { stroke-dasharray: 20 300; stroke-dashoffset: -44.84; }
  @media (prefers-reduced-motion: reduce) { .hm, .hm__loop { transition: none; } }

  /* 폰: 주소창·하단 툴바를 뺀 '실제 보이는 높이'(svh)에 첫 화면이 딱 맞게. 작은 폰(SE 등)에서도 아래 컨트롤이 안 잘리도록 최소 높이를 낮춤 */
  .hero { height: 100svh; min-height: 500px; }
  .hero__center { grid-template-columns: 1fr 1fr; row-gap: 20px; top: 46%; }
  .hero__title { grid-column: 1 / -1; grid-row: 1; font-size: 22px; }
  .hero__name { white-space: normal; text-align: center; }
  .hero__year { grid-row: 2; }
  .hero__view { grid-row: 2; }
  .hero__intro { bottom: 112px; right: var(--g); max-width: none; font-size: 13px; white-space: normal; }
  .br-pc { display: none; } /* 폰: 화면 폭에 맞춰 자연스럽게 줄바꿈 */
  .hero__ctrl { left: var(--g); right: var(--g); bottom: 24px; justify-content: space-between; gap: 12px; }
  .hero__bar { flex: 1; }

  .studio__body, .process__inner, .contact__core { grid-template-columns: 1fr; }
  .process { padding: 65vh var(--g) 75vh; }
  .process__aside { position: static; }
  .acc__inner { grid-template-columns: 1fr; gap: 16px; padding-left: 0; }
  .studio__text { padding-top: 0; }

  .pgrid { grid-template-columns: 1fr; row-gap: 64px; }
  .pgrid > .pcard:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .pgrid > .pcard:nth-child(n) .pcard__img { aspect-ratio: 4 / 5; }

  .acc__head { grid-template-columns: 40px minmax(0, 1fr) 32px; }

  .contact__actions { align-items: flex-end; } /* 모바일: 버튼을 카드 오른쪽 끝(왼쪽 여백과 같은 간격)에 */
  /* 모바일 상담 카드: 위·아래 여백 1.5배, 안내 문장은 제목 쪽으로 붙이고 버튼과는 더 띄워 '제목+문장'이 한 묶음으로 보이게 */
  .contact__core { padding-top: 48px; padding-bottom: 48px; row-gap: 56px; }
  .contact__core .body { margin-top: 24px; font-size: 14px; } /* 폰: 줄여서 좁은 화면(390px)에서도 두 줄로 */
  .ft { padding: 64px var(--g) 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .rv { opacity: 1; transform: none; filter: none; }
  .reveal-img img, .reveal-img .px { clip-path: none; transform: none; }
}
