/*
 * 마음공방 홈페이지 — 공통 스타일
 * 디자인 원칙 (2026-10-19 사용자가 준 Cretox 템플릿의 분위기를 참고해 새로 작성. 템플릿 코드·그림은 쓰지 않음)
 * - 흰 바탕 + 검정·회색, 연한 청회색 띠(--mist)와 짙은 회색 띠(--slate)로 구역을 나눈다
 * - 제목은 세리프(영문 Playfair Display, 한글 Noto Serif KR), 메뉴·버튼·숫자는 Montserrat, 본문은 Noto Sans KR
 * - 버튼은 알약 모양, 구역 제목은 가운데 정렬 + '— ••• —' 장식
 * - 브랜드 주황은 키보드 포커스 표시에만 쓴다
 */

:root {
  --ink: #1d1d1d;
  --ink-2: #5f6368;
  --ink-3: #767676;
  --line: #e6e6e6;
  --mist: #ecf0f6;
  --slate: #43474d;
  --black: #111111;
  --brand: #ff5a00;

  --serif: "Playfair Display", "Noto Serif KR", serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ui: "Montserrat", "Noto Sans KR", "Malgun Gothic", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1170px;
  --header-h: 88px;
  --section: clamp(72px, 9vw, 120px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
}

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

.wrap {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 버튼 (알약 모양) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 34px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--ink);
  color: #fff;
}

.btn-dark {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.btn-light {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.btn-light:hover {
  background: transparent;
  color: #fff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

/* ---------- 머리 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
  max-width: none;
}

.brand {
  display: block;
  flex: none;
}

/* 로고 원본 비율 545:316 */
.brand img {
  width: 76px;
  height: 44px;
}

.site-nav {
  margin: 0 auto;
}

.site-nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--mist);
}

.call-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.call-link svg {
  width: 18px;
  height: 18px;
}

.call-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 860px) {
  :root {
    --header-h: 116px;
  }

  .site-header .wrap {
    flex-wrap: wrap;
    gap: 0 16px;
    padding-top: 10px;
  }

  .brand img {
    width: 62px;
    height: 36px;
  }

  .call-link {
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    width: calc(100% + var(--gutter) * 2);
    margin: 6px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
  }

  .site-nav ul {
    gap: 2px;
  }

  .site-nav a {
    padding: 6px 11px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* ---------- 구역 공통 ---------- */
.section {
  padding: var(--section) 0;
}

.section-mist {
  background: var(--mist);
}

.sec-title {
  margin-bottom: clamp(36px, 5vw, 60px);
  text-align: center;
}

.sec-title h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 400;
}

.sec-title p {
  max-width: 34em;
  margin: 18px auto 0;
  color: var(--ink-2);
}

/* 제목 아래 '— ••• —' 장식 */
.sec-divider {
  position: relative;
  display: block;
  width: 96px;
  height: 8px;
  margin: 18px auto 0;
  padding: 0 34px;
  background-image: radial-gradient(circle, #b9bcc2 1.6px, transparent 2.2px);
  background-size: 9px 8px;
  background-repeat: repeat-x;
  background-position: center;
  background-clip: content-box;
  background-origin: content-box;
}

.sec-divider::before,
.sec-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: #cfd2d6;
}

.sec-divider::before {
  left: 0;
}

.sec-divider::after {
  right: 0;
}

.sec-title.align-left {
  text-align: left;
}

.sec-title.align-left .sec-divider {
  margin-left: 0;
}

.sec-title.on-dark h2 {
  color: #fff;
}

.center-action {
  margin-top: clamp(40px, 5vw, 60px);
  text-align: center;
}

/* ---------- 작품 카드 ---------- */
.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mist);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* 마우스를 올리거나 키보드로 고르면 어두운 막 + 재생 동그라미 */
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='31' fill='none' stroke='white' stroke-width='1.5'/%3E%3Cpath d='M27 22l14 10-14 10z' fill='white'/%3E%3C/svg%3E") center / 64px no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-card:hover .work-thumb::after,
.work-card:focus-visible .work-thumb::after {
  opacity: 1;
}

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

/* 성과 표시: 썸네일 왼쪽 아래 검은 상자 */
.work-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 5px 12px;
  background: var(--black);
  color: #fff;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.work-title {
  margin: 18px 0 4px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.work-meta {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
}

.work-meta .client {
  color: var(--ink-2);
}

.work-meta .tags::before {
  content: "/";
  margin: 0 8px;
  color: #c9c9c9;
}

@media (prefers-reduced-motion: reduce) {
  .work-thumb img {
    transition: none;
  }

  .work-card:hover .work-thumb img,
  .work-card:focus-visible .work-thumb img {
    transform: none;
  }
}

/* ---------- 영상 팝업 ---------- */
.player {
  width: min(1120px, 100vw - 32px);
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: var(--black);
  color: #fff;
}

.player::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 24px;
  color: #b3b3b3;
  font-family: var(--ui);
  font-size: 13px;
}

.player-btn {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.player-btn:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.player-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.player-btn:disabled:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
}

.player-video {
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-info {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px 48px;
  padding: 28px 24px;
}

.player-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
}

.player-client {
  margin: 0;
  font-weight: 500;
}

.player-tags {
  margin: 4px 0 0;
  color: #b3b3b3;
  font-size: 14px;
}

.player-highlight {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
}

.player-summary {
  margin: 0;
  max-width: 36em;
  color: #e3e3e3;
}

.player-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 28px;
}

.player-yt {
  margin-left: auto;
}

@media (max-width: 760px) {
  .player {
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    max-height: 100vh;
    margin: 0;
  }

  .player-info {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .player-nav {
    padding: 0 16px 24px;
  }
}

/* ==================== 메인 ==================== */

/* ---------- 첫 화면: 쇼릴 위에 가운데 제목 ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: min(88vh, 860px);
  min-height: 520px;
  overflow: hidden;
  background: #000;
  color: #fff;
  text-align: center;
}

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

/* 영상이 밝아도 흰 글자가 읽히도록 어둡게 덮는다 */
.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 20, 0.64);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  padding: 0 var(--gutter);
}

.hero-kicker {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5.2vw, 4.2rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.hero-sub {
  max-width: 34em;
  margin: 22px auto 40px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 30px;
  z-index: 1;
  min-height: 38px;
  padding: 0 18px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .hero {
    height: 78vh;
    min-height: 480px;
  }

  .hero-actions .btn {
    min-height: 46px;
    padding: 0 26px;
  }

  .hero-scroll {
    display: none;
  }

  .hero-toggle {
    right: 50%;
    transform: translateX(50%);
    bottom: 22px;
  }
}

/* ---------- 소개: 왼쪽 세리프 문장 | 오른쪽 설명 ---------- */
.welcome {
  padding: var(--section) 0 0;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding-bottom: var(--section);
  border-bottom: 1px solid var(--line);
}

.welcome-statement {
  padding-right: clamp(24px, 4vw, 56px);
  border-right: 1px solid var(--line);
  color: #555;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.55;
  text-align: right;
}

.welcome-text {
  padding-left: clamp(24px, 4vw, 56px);
  color: var(--ink-2);
}

.welcome-text p {
  margin: 0 0 14px;
}

.welcome-cert {
  margin-top: 22px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 760px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .welcome-statement {
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .welcome-text {
    padding: 0;
  }
}

/* ---------- 대표 작품: 높이가 다른 세 줄 (270·470 / 370·370 / 470·270 비율) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(8, 64px);
  gap: 30px;
}

.featured-grid > .work-card .work-thumb {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
}

.featured-grid > .work-card:nth-child(1) { grid-column: 1; grid-row: 1 / span 3; }
.featured-grid > .work-card:nth-child(2) { grid-column: 1; grid-row: 4 / span 5; }
.featured-grid > .work-card:nth-child(3) { grid-column: 2; grid-row: 1 / span 4; }
.featured-grid > .work-card:nth-child(4) { grid-column: 2; grid-row: 5 / span 4; }
.featured-grid > .work-card:nth-child(5) { grid-column: 3; grid-row: 1 / span 5; }
.featured-grid > .work-card:nth-child(6) { grid-column: 3; grid-row: 6 / span 3; }

@media (max-width: 960px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 44px 24px;
  }

  .featured-grid > .work-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .featured-grid > .work-card .work-thumb {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- 만드는 영상: 왼쪽 설명 + 오른쪽 흰 카드 2×2 ---------- */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px clamp(32px, 5vw, 64px);
  align-items: center;
}

.services-intro p {
  margin: 0 0 32px;
  color: var(--ink-2);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service {
  padding: 40px 32px 36px;
  background: #fff;
  text-align: center;
}

.service svg {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  stroke: var(--ink);
}

.service h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
}

.service p {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
}

.service a {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 4px;
}

@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- 숫자 + 함께 만든 곳 (짙은 회색 띠) ---------- */
.numbers {
  padding: clamp(64px, 8vw, 96px) 0;
  background: var(--slate);
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 clamp(56px, 7vw, 88px);
  padding: 0 0 clamp(48px, 6vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.stat {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px clamp(16px, 3vw, 40px);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat svg {
  flex: none;
  width: 44px;
  height: 44px;
  stroke: #fff;
  opacity: 0.85;
}

.stat-num {
  display: block;
  font-family: var(--ui);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 300;
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--serif);
  font-size: 15px;
}

.credit-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
}

.credit-list dt {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.credit-list dd {
  margin: 0;
}

.credit-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.credit-list li {
  font-size: 17px;
  line-height: 1.9;
}

.on-dark .sec-divider {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 1.6px, transparent 2.2px);
}

.on-dark .sec-divider::before,
.on-dark .sec-divider::after {
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 860px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stat,
  .stat:first-child {
    padding: 0;
    border-left: 0;
  }

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

/* ---------- 제작 문의 (연한 청회색 띠) ---------- */
.contact {
  text-align: center;
}

.contact-phone {
  display: inline-block;
  margin: 4px 0 10px;
  font-family: var(--ui);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.contact-phone:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}

.contact-address {
  margin: 0 0 34px;
  color: var(--ink-2);
}

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

/* ==================== 작품 목록 ==================== */
.page-title {
  padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
  background: var(--mist);
  text-align: center;
}

.page-title h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 400;
}

.breadcrumb {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--ink-3);
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 500;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: #b5b5b5;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-title .lead {
  max-width: 36em;
  margin: 22px auto 0;
  color: var(--ink-2);
}

.page-title .lead a {
  font-weight: 500;
  text-underline-offset: 4px;
}

.filters {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 4px;
}

.filter-label {
  margin-right: 12px;
  color: var(--ink-3);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.chip {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.chip:hover {
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--mist);
  color: var(--ink);
}

.chip-count {
  margin-left: 5px;
  color: var(--ink-3);
  font-family: var(--ui);
  font-size: 12px;
}

.works-count {
  margin: 0 0 24px;
  color: var(--ink-3);
  font-family: var(--ui);
  font-size: 13px;
  text-align: center;
}

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

.works-empty {
  padding: 48px 0;
  text-align: center;
}

.works-empty p {
  margin: 0 0 18px;
}

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

@media (max-width: 600px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .filter-group {
    flex-direction: column;
  }

  .filter-label {
    margin: 0;
  }
}

/* ==================== 회사 소개 ==================== */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(32px, 5vw, 72px);
  align-items: center;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-text p {
  margin: 0 0 16px;
  color: var(--ink-2);
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.cert-list li {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 14px;
  font-weight: 500;
}

.about-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(32px, 5vw, 64px);
  margin-top: clamp(56px, 7vw, 88px);
}

.about-block {
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.about-block h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
}

.about-block p {
  margin: 0;
  color: var(--ink-2);
}

/* 제작 과정: 실제 순서라 번호를 붙인다 */
.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process li {
  padding: 32px 24px;
  background: #fff;
  counter-increment: step;
}

.process li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--ink-3);
  font-family: var(--ui);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.process h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 500;
}

.process p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
}

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

.roles .service {
  border: 1px solid var(--line);
}

.company-info {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) minmax(0, 7fr);
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--ink);
}

.company-info dt,
.company-info dd {
  margin: 0;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
}

.company-info dt {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}

.company-info a {
  text-underline-offset: 4px;
}

/* 아직 받지 못한 정보 (공개 전에 채울 것) */
.todo {
  color: var(--ink-3);
  font-style: italic;
}

.cta {
  text-align: center;
}

.cta .contact-actions {
  margin-top: 8px;
}

@media (max-width: 960px) {
  .about-intro {
    grid-template-columns: 1fr;
  }

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

  .roles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .about-blocks,
  .process {
    grid-template-columns: 1fr;
  }

  .company-info {
    grid-template-columns: 1fr;
  }

  .company-info dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

/* ==================== 제작 문의 ==================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(32px, 5vw, 80px);
  align-items: start;
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-list .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mist);
}

.info-list svg {
  width: 20px;
  height: 20px;
  stroke: var(--ink);
}

.info-list .label {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

.info-list .value {
  font-weight: 500;
  line-height: 1.6;
}

.info-list a {
  text-decoration: none;
}

.info-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tip-box {
  margin-top: 32px;
  padding: 28px;
  background: var(--mist);
}

.tip-box h3 {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 500;
}

.tip-box ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--ink-2);
  font-size: 15px;
}

.notice {
  margin: 0 0 28px;
  padding: 14px 18px;
  border-left: 3px solid var(--ink);
  background: var(--mist);
  font-size: 15px;
}

.inquiry-form {
  display: grid;
  gap: 20px;
}

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

.field label,
.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 500;
}

.req {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #cfd2d6;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.field [aria-invalid="true"] {
  border-color: #b3261e;
}

.field-error {
  margin: 8px 0 0;
  color: #b3261e;
  font-size: 14px;
  font-weight: 500;
}

.consent {
  margin: 0;
  padding: 0;
  border: 0;
}

.consent-box {
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form-status {
  margin: 0;
  padding: 14px 18px;
  border-left: 3px solid var(--ink);
  background: var(--mist);
  font-size: 15px;
}

.form-status.is-error {
  border-left-color: #b3261e;
  color: #b3261e;
  font-weight: 500;
}

/* 스팸 로봇용 숨은 칸: 화면과 키보드 이동에서 모두 빠진다 */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.map-section {
  padding-bottom: var(--section);
}

.map-frame {
  display: block;
  width: 100%;
  height: clamp(320px, 40vw, 460px);
  border: 0;
  background: var(--mist);
}

.map-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* 두 지도 버튼은 글자 길이와 상관없이 같은 너비 */
.map-links .btn {
  width: 240px;
  max-width: 100%;
  padding: 0 20px;
}

@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==================== 작품 페이지 (deploy/build-pages.mjs 가 만드는 /work/작품id) ==================== */
.work-detail {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px clamp(32px, 4vw, 56px);
  align-items: start;
}

.work-video {
  aspect-ratio: 16 / 9;
  background: #000;
}

.work-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-highlight {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  background: var(--black);
  color: #fff;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
}

.work-summary {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.85;
}

.work-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--ink);
}

.work-facts dt,
.work-facts dd {
  margin: 0;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}

.work-facts dt {
  padding-right: 24px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}

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

@media (max-width: 960px) {
  .work-detail {
    grid-template-columns: 1fr;
  }
}

/* ==================== 바닥 ==================== */
.site-footer {
  position: relative;
  padding: 56px 0 40px;
  background: #fff;
  border-top: 1px solid var(--line);
}

/* 맨 위로: 바닥 위로 솟은 반원 */
.to-top {
  position: absolute;
  top: -36px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 76px;
  height: 36px;
  padding-bottom: 2px;
  border-radius: 76px 76px 0 0;
  background: #fff;
  box-shadow: 0 -1px 0 var(--line);
  transform: translateX(-50%);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.to-top::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-bottom: 3px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.footer-brand img {
  width: 62px;
  height: 36px;
}

.footer-info {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
