/* ==========================================================================
   nFiction — home.css
   메인 원페이지 섹션 스타일
   ========================================================================== */

/* --------------------------------------------------------- 1. Pinned intro (스크럽 시퀀스) */
/* 플로우:
   [P0] 풀스크린 블랙, 메인카피가 타자치듯 등장(사진 없음) →
   [P1 스크럽] 한 번 스크롤하면 사진이 작게(스트립) 나타남(페이드+스케일) →
   [P2 스크럽] 더 스크롤하면 사진이 화면 전체로 확장, 인트로 카피는 페이드아웃 →
   [P3 스크럽] 풀블리드 사진 위로 About 헤드라인이 단어 단위로 채워짐.
   .pin이 스크럽 구간(220vh — 2026-08-13 340vh→260vh→220vh 순으로 압축, js/pin.js 참고),
   .pin__stage가 화면에 고정(sticky)되는 무대.
   진행도 계산과 스타일 갱신은 js/pin.js가 담당. */
.pin {
  position: relative;
  height: 220vh;
}

.pin__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

/* 첫 화면(P0) 배경 모션 그래픽 — .pin__stage 배경색(var(--ink)) 위, 인트로 카피(z-index:1)보다
   아래(z-index:0)에 깔려서 재생됨. 사진(.pin__photo, z-index:2)이 등장·확장되면 자연스럽게 가려짐 */
.pin__bgvideo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.pin__bgvideo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}
.pin__bgvideo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.35);
}

/* 인트로 카피 — Phase A에서 화면 상단, 사진 확장이 시작되면 위로 밀리며 사라짐 */
.pin__intro {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  padding-top: calc(var(--header-h) + clamp(16px, 3.5vh, 48px));
  will-change: opacity, transform;
}
.pin__intro .eyebrow {
  color: var(--on-dark);
  margin-bottom: 18px;
}
.pin__intro .hero__en {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  margin-bottom: 18px;
}
.pin__intro .hero__ko {
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  margin-bottom: 14px;
}
.pin__intro .hero__desc { margin-bottom: 26px; }

/* 미니멀 타이포그래피 인트로 — 라벨 없이 메인카피 한 줄만, 화면 정중앙 */
.pin__intro--title {
  align-items: center;
  justify-content: center;
  padding-top: 0;
}
.pin__intro--title .container { text-align: center; }
.hero__en--title {
  font-size: clamp(2.1rem, 9vw, 8.5rem);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 0;
  white-space: nowrap;
}
/* 세그먼트 사이 여백은 두 세그먼트 모두 NBSP(줄바꿈 없는 공백)로 통일해서 확보 —
   여기에 마진까지 추가하면 "상상↔그"와 "그↔이상" 간격이 서로 달라 보이는 문제가 있었음 */

/* 타자기 애니메이션 — js/typewriter.js가 문자를 한 글자씩 DOM에 추가 */
.tw-ch {
  display: inline-block;
  animation: tw-pop 0.16s var(--ease);
}
@keyframes tw-pop {
  from { opacity: 0; transform: translateY(0.08em); }
  to { opacity: 1; transform: none; }
}
.tw-cursor {
  display: inline-block;
  width: 0.045em;
  height: 0.82em;
  margin-left: 0.05em;
  vertical-align: -0.06em;
  background: var(--yellow);
  animation: tw-blink 0.9s step-end infinite;
}
.tw-cursor.is-done {
  animation: tw-blink 0.9s step-end infinite, tw-fade 0.5s ease 1.4s forwards;
}
@keyframes tw-blink { 50% { opacity: 0; } }
@keyframes tw-fade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tw-ch { animation: none; }
  .tw-cursor { animation: none; opacity: 0; }
}

/* 사진 — P0에서는 완전히 숨김(opacity:0) → P1에서 스트립 형태로 페이드+스케일 등장 →
   P2에서 inset이 0으로 풀리며 풀블리드로 확장. 전부 js/pin.js가 인라인 스타일로 제어. */
.pin__photo {
  position: absolute;
  top: 64%;
  left: 6vw;
  right: 6vw;
  bottom: 0;
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.94);
}
.pin__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.9);
  will-change: transform;
}
/* 고정 그라데이션 — 하단·좌측 가독성 베이스 */
.pin__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(100deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.28) 40%, rgba(10, 10, 11, 0.18) 62%, rgba(10, 10, 11, 0.4) 100%),
    linear-gradient(to top, rgba(10, 10, 11, 0.6) 0%, rgba(10, 10, 11, 0) 32%);
}
/* 동적 셰이드 — Phase B에서 카피가 채워질수록 사진을 어둡게 눌러줌 (js/pin.js가 opacity 조작) */
.pin__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ink-deep);
  opacity: 0;
}

/* Phase B — 사진 위에 단어 단위로 채워지는 헤드라인 + 서브카피 + CTA */
.pin__reveal {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-inline: var(--gutter);
  opacity: 0;
}
/* 오파시티가 0인 동안(아직 등장 전) 뒤에 숨어서도 클릭되지 않게 함 — js/pin.js가 threshold 넘으면 해제 */
.pin__reveal { pointer-events: none; }
.pin__reveal.is-active { pointer-events: auto; }
.pin__reveal .eyebrow { color: var(--on-dark); }
.pin__reveal-text {
  margin-top: 18px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--on-dark);
  max-width: 16em;
}
.pin__reveal .w {
  display: inline-block;
  opacity: 0.14; /* 채워지기 전 기본 농도 — js/pin.js가 진행도에 따라 1까지 올림 */
}
/* PANTONE 102 U 근사값 — Pantone 스팟 컬러는 표준 RGB/HEX 변환이 참조 라이브러리마다 조금씩
   달라서(코팅/언코팅, Adobe 팔레트 등) 정확한 사내 톤이 있으면 이 값만 바꿔주면 됨 */
.c-pantone102u { color: #f1e24e; }

/* 서브카피 — 애니메이션 없이 헤드라인과 함께 그대로 페이드인(부모 .pin__reveal의 opacity를 따라감) */
.pin__reveal-sub {
  margin-top: 16px;
  font-size: clamp(0.8rem, 1.1vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--on-dark-sub);
}

.pin__reveal .btn {
  margin-top: 34px;
}

/* 모션 축소 환경 — 스크럽 없이 인트로 한 화면만 (스크럽 전용 헤드라인은 숨김) */
.pin.is-static { height: 100svh; }
.pin.is-static .pin__reveal { display: none; }

/* 영문 대형 카피 — 레퍼런스의 2단 구성 */
.hero__en {
  font-size: clamp(2.9rem, 7.8vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 26px;
}
.hero__en .line { display: block; overflow: hidden; }
.hero__en .word {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.pin.is-ready .hero__en .word { transform: none; }

/* 국문 슬로건 */
.hero__ko {
  font-size: clamp(1.1rem, 2.1vw, 1.65rem);
  line-height: 1.6;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--on-dark);
  max-width: 22em;
  margin-bottom: 22px;
}

.hero__desc {
  max-width: 40em;
  color: var(--on-dark-sub);
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 스크롤 유도 */
.hero__cue {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  z-index: 1;
}
.hero__cue-line {
  position: relative;
  width: 64px;
  height: 1px;
  background: var(--line-dark-strong);
  overflow: hidden;
}
.hero__cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: translateX(-100%);
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* --------------------------------------------------------- 2. About (배경 영상 + 본문) */
/* 헤드라인은 위 .pin 스크럽에서 채워지고, 이 섹션은 배경 영상 + 본문으로 이어받음.
   소개문이 길어져(2026-08-13) 한 화면에 다 안 들어가므로, 화면에 붙잡아두는 sticky pin은
   제거하고 본문 길이에 맞춰 섹션 높이가 자연스럽게 늘어나게 함 — 영상은 그 늘어난 높이만큼
   inset:0으로 늘어나 계속 커버함(object-fit:cover라 잘려 보일 뿐 레이아웃엔 문제 없음). */
#about {
  position: relative;
}
.about__stage {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 11vw, 140px);
}

/* 배경 동영상 — AI 생성 추상 모션 그래픽(검정+노랑, n 심볼 아치 모티프), 풀스크린 재생 */
.about__video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.about__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.about__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(20, 20, 22, 0.55) 30%, rgba(20, 20, 22, 0.55) 70%, var(--ink) 100%);
}

.about__body {
  position: relative;
  z-index: 1;
  max-width: 46em;
}
.about__body p + p { margin-top: 1.4em; }

.about__title {
  color: var(--on-dark);
}

.about__copy {
  margin-top: 28px;
  font-size: clamp(1.02rem, 1.3vw, 1.22rem);
  line-height: 1.72;
}
.about__copy p + p { margin-top: 1.3em; }

.about__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}
.about__keyword {
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--on-dark-sub);
}

/* --------------------------------------------------------- 3. Numbers */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
}

.number {
  padding: clamp(32px, 4vw, 52px) clamp(16px, 2.4vw, 34px);
  border-bottom: 1px solid var(--line-light);
  border-right: 1px solid var(--line-light);
}
.number:nth-child(4n) { border-right: 0; }

.number__value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 14px;
}
.number__unit {
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-light-sub);
}
.number__value .num { font-variant-numeric: tabular-nums; }

.number__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-light-sub);
}

/* --------------------------------------------------------- 4. Business */
/* 섹션 자체 배경 사진 — 카드 사이 그리드 간격/섹션 여백에서 비쳐 보이는 텍스처 레이어.
   .section--dark의 단색 배경(var(--ink))보다 명시도를 높여 덮어씀 */
#business.section--dark {
  background-image:
    linear-gradient(180deg, rgba(20, 20, 22, 0.88), rgba(20, 20, 22, 0.82) 45%, rgba(20, 20, 22, 0.92)),
    url("../assets/img/business-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.biz {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.biz__card {
  position: relative;
  background: var(--ink);
  padding: clamp(34px, 4vw, 56px);
  min-height: clamp(280px, 31vw, 400px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background-color 0.5s var(--ease);
}
.biz__card:hover { background: var(--ink-soft); }

/* hover 시 상단에서 그려지는 노란 라인 */
.biz__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.biz__card:hover::before { transform: scaleX(1); }

.biz__index {
  position: absolute;
  right: clamp(18px, 2.4vw, 34px);
  bottom: clamp(4px, 1vw, 12px);
  font-size: clamp(5rem, 9vw, 9.5rem);
  line-height: 0.8;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
  transition: color 0.5s var(--ease);
}
.biz__card:hover .biz__index { color: rgba(255, 236, 45, 0.12); }

.biz__en {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}

.biz__title {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}

.biz__desc {
  font-size: 0.95rem;
  color: var(--on-dark-sub);
  margin-bottom: 28px;
  max-width: 32em;
}

.biz__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.biz__tag {
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-dark-sub);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.biz__card:hover .biz__tag {
  border-color: var(--line-dark-strong);
  color: var(--on-dark);
}

/* --------------------------------------------------------- 5. Portfolio */
.pf__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.pf__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pf__filter {
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--on-light-sub);
  transition: all 0.3s var(--ease);
}
.pf__filter:hover { border-color: var(--line-light-strong); color: var(--on-light); }
.pf__filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pf__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
}

.pf__item { display: block; }

/* 백오피스 연동 전, 실제 사례가 하나도 없을 때의 빈 상태 */
.pf__empty {
  padding: clamp(64px, 10vw, 120px) clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-light);
  border-radius: 4px;
  text-align: center;
}
.pf__empty-title {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 700;
  color: var(--on-light);
}
.pf__empty-desc {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--on-light-sub);
}

/* 마스크 리빌 — 아래에서 위로 열림 */
.pf__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-soft);
  margin-bottom: 20px;
}
.pf__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform-origin: bottom;
  transition: transform 0.9s var(--ease);
  transition-delay: var(--fx-delay, 0s);
}
.pf__item.is-in .pf__thumb::after { transform: scaleY(0); }

.pf__thumb-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 0.7s var(--ease);
}
.pf__item:hover .pf__thumb-art { transform: scale(1.045); }
.pf__thumb-art img { width: 26%; opacity: 0.9; }

.pf__cat {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-light-mute);
  margin-bottom: 10px;
}

.pf__title {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.4;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 8px;
}

.pf__meta {
  font-size: 0.88rem;
  color: var(--on-light-sub);
}
.pf__meta strong { color: var(--on-light); font-weight: 700; }
/* .pf__* 클래스는 이제 메인페이지가 아니라 portfolio.html(별도 페이지)에서 사용됨 */

/* --------------------------------------------------------- 5b. Clients */
/* 메인페이지에서 기존 Portfolio 자리를 대체하는 클라이언트 로고 — 4열 고정 그리드
   (롤링 마퀴는 로고 개수가 늘면서 섹션이 너무 커 보인다는 피드백으로 되돌림) */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.clients__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(90px, 9vw, 130px);
  padding: 20px;
  background: var(--paper);
  transition: background-color 0.3s var(--ease);
}
.clients__item:hover { background: var(--paper-soft); }

/* 로고 이미지는 캔버스로 실제 배경 제거(흰 배경 → 알파 투명) + 여백 트리밍해서 만든
   -processed.png 파일들(원본은 그대로 보관). 로고마다 가로세로 비율이 제각각이라
   고정 height + width:auto만으로는 flex 셀 안에서 max-width에 눌릴 때 object-fit 기본값(fill)
   때문에 옆으로 눌려 찌그러져 보이는 문제가 있었음(예: AMOREPACIFIC처럼 가로로 아주 긴 로고).
   max-height/max-width + object-fit:contain으로 항상 비율을 지키며 박스 안에 맞추도록 수정 —
   대신 로고마다 실제 보이는 높이는 비율에 따라 조금씩 달라짐. */
.clients__item img {
  max-height: 34px;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (min-width: 900px) {
  .clients__item img { max-height: 40px; }
}

/* 빈 칸(로고 9개가 4열에 딱 안 맞아 남는 자리) 채우는 플레이스홀더 */
.clients__item.is-placeholder {
  background: var(--paper);
  color: var(--on-light-mute);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

/* 스냅 구간 밀도 압축 */
@media (min-width: 861px) {
  .snap-section .clients__item { min-height: clamp(64px, 6vw, 90px); }
}

/* --------------------------------------------------------- 6. News */
.news__list {
  border-top: 1px solid var(--line-dark);
}

.news__empty {
  padding-block: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line-dark);
  text-align: center;
  color: var(--on-dark-sub);
}

.news__item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  padding-block: clamp(24px, 2.6vw, 34px);
  border-bottom: 1px solid var(--line-dark);
  transition: padding-inline 0.4s var(--ease);
}
.news__item:hover { padding-inline: 14px; }

.news__date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-dark-mute);
  font-variant-numeric: tabular-nums;
}

.news__cat {
  display: inline-block;
  padding: 4px 12px;
  margin-right: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-dark-strong);
  border-radius: 999px;
  color: var(--on-dark-sub);
  vertical-align: middle;
}

.news__title {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
.news__item:hover .news__title { color: var(--yellow); }

.news__arrow {
  color: var(--on-dark-mute);
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}
.news__item:hover .news__arrow { transform: translateX(6px); color: var(--yellow); }

.news__more {
  margin-top: 44px;
}

/* 본문 팝업 — link_url 없는 글 클릭 시 뜸(js/news.js가 DOM 생성) */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.news-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.72);
}
.news-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: min(80vh, 640px);
  overflow-y: auto;
  background: var(--paper);
  color: var(--on-light);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 44px);
}
.news-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--on-light-mute);
  background: none;
  border: none;
  cursor: pointer;
}
.news-modal__close:hover { color: var(--on-light); }
.news-modal__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--on-light-sub);
  margin-bottom: 14px;
}
.news-modal__cat {
  padding: 3px 11px;
  border: 1px solid var(--line-light-strong);
  border-radius: 999px;
}
.news-modal__title {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  padding-right: 28px;
}
.news-modal__body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--on-light-sub);
}

/* --------------------------------------------------------- 7. Contact */
/* 노란 배경 — 이 안의 모든 텍스트는 --ink (대비 14.96:1) */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.contact__title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 26px;
}

.contact__desc {
  color: rgba(20, 20, 22, 0.68);
  max-width: 30em;
  margin-bottom: 40px;
}

.contact__direct {
  display: grid;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid rgba(20, 20, 22, 0.18);
}
.contact__direct-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.contact__direct-label {
  flex: none;
  width: 68px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(20, 20, 22, 0.5);
}
.contact__direct-value {
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 폼 */
.form {
  display: grid;
  gap: 18px;
}
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field { display: grid; gap: 8px; }
.field__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(20, 20, 22, 0.62);
}
.field__label .req { color: #c00; margin-left: 3px; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 20, 22, 0.16);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(20, 20, 22, 0.34); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
}
.field textarea { min-height: 132px; resize: vertical; }

.form__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(20, 20, 22, 0.68);
}
.form__agree input { margin-top: 4px; accent-color: var(--ink); }
.form__agree a { text-decoration: underline; text-underline-offset: 3px; }

.form__status {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(20, 20, 22, 0.68);
}
.form__status.is-error { color: #b3261e; }

/* --------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .pf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .number:nth-child(2n) { border-right: 0; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .biz { grid-template-columns: 1fr; }
  .pf__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }

  .hero__cue { display: none; }
  .hero__watermark { width: 62vw; opacity: 0.045; }

  .news__item {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
  }
  .news__date { grid-column: 1 / -1; }

  .contact__direct-row { flex-direction: column; gap: 4px; }
}

/* --------------------------------------------------------- Editorial spacing */
/* 2026-08-12: 연속 스크롤로 전환하며 "한 화면에 강제로 맞추기" 압축 규칙 전체를 제거.
   섹션은 이제 base.css의 --section-y(clamp(96px, 12vw, 176px))를 그대로 사용해 콘텐츠에 맞게 자연스럽게 늘어남.
   반응형 그리드 규칙은 위 Responsive 블록의 기존 규칙을 그대로 따름(중복 정의하지 않음). */
/* Business — 카드가 두 줄 설명을 온전히 보여주도록 높이 제한 해제 */
.biz__card { min-height: clamp(280px, 30vw, 380px); }

/* Portfolio — 6개 카드 전부 노출 (기본 3열, 1024px 이하는 위 Responsive 블록에서 처리) */
.pf__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --------------------------------------------------------- Snap zone (Business → Contact) */
/* 데스크톱 한정 원페이지 풀스크롤: 각 섹션이 한 화면(100svh)에 들어오도록 밀도를 압축.
   js/snap.js가 이 구간에서만 휠을 가로채 섹션 단위로 스냅. 모바일(<861px)은 자연 스크롤 유지. */
@media (min-width: 861px) {
  .snap-section.section {
    --section-y: clamp(24px, 3vw, 48px);
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h-sm) + clamp(18px, 2.2vw, 34px));
  }
  .snap-section .container { width: 100%; }
  .snap-section .section-head { gap: 14px; margin-bottom: clamp(18px, 2.4vw, 34px); }
  .snap-section .t-h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.16; }
  .snap-section .t-lead { font-size: clamp(0.92rem, 1.05vw, 1.02rem); line-height: 1.55; }

  #business.snap-section .section-head .t-lead { display: none; }
  .snap-section .biz__card { min-height: clamp(120px, 14vw, 180px); padding: clamp(14px, 1.8vw, 24px); }
  .snap-section .biz__en { margin-bottom: 8px; font-size: 0.7rem; }
  .snap-section .biz__title { margin-bottom: 8px; }
  .snap-section .biz__desc {
    margin-bottom: 12px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .snap-section .biz__tags { gap: 6px; }
  .snap-section .biz__tag { padding: 5px 12px; font-size: 0.74rem; }
  .snap-section .biz__index { font-size: clamp(2.2rem, 4.2vw, 4.2rem); }

  .snap-section .pf__head { margin-bottom: clamp(18px, 2.4vw, 32px); }
  .snap-section .pf__grid { gap: clamp(14px, 1.6vw, 22px); }
  .snap-section .pf__thumb { margin-bottom: 10px; }
  .snap-section .pf__title { margin-bottom: 4px; }
  .snap-section .pf__grid .pf__item:nth-child(n+4) { display: none; }

  .snap-section .news__item { padding-block: clamp(14px, 1.6vw, 22px); }
  .snap-section .news__list { max-height: 40vh; overflow: hidden; }
  .snap-section .news__more { margin-top: 24px; }

  .snap-section .contact__title { font-size: clamp(1.7rem, 3.4vw, 3rem); margin-bottom: 18px; }
  .snap-section .contact__desc { margin-bottom: 22px; }
  .snap-section .contact__direct { gap: 12px; padding-top: 20px; }
  .snap-section .form { gap: 12px; }
  .snap-section .field input,
  .snap-section .field select { padding: 12px 14px; }
  .snap-section .field textarea { min-height: 76px; }
}

/* 세로가 낮은 데스크톱 창(노트북 등) 추가 압축 */
@media (min-width: 861px) and (max-height: 700px) {
  .snap-section.section { --section-y: clamp(14px, 2vw, 28px); }
  .snap-section .t-h2 { font-size: clamp(1.3rem, 2.4vw, 2rem); }
  .snap-section .biz__card { min-height: clamp(90px, 11vw, 130px); padding: clamp(10px, 1.4vw, 16px); }
  .snap-section .biz__desc { -webkit-line-clamp: 1; margin-bottom: 8px; }
  .snap-section .biz__en { display: none; }
}
