/* 웹폰트 파일. assets/fonts 폴더의 파일을 읽습니다. */
@font-face {
  font-family: Inter;
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard Heading";
  src: url("assets/fonts/Pretendard-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* 사이트 공통 색상과 최대 너비입니다. */
:root {
  --paper: #fff;
  --nav-height: 92px;
  --ink: #191b17;
  --muted: #53564c;
  --line: #d9dad1;
  --lime: #dcf979;
  --width: 1200px;
  font-family: Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

h1,h2,h3,p,figure {
  margin: 0;
}

section[id],article[id] {
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.wrap {
  width: min(var(--width), calc(100% - 96px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 8px 16px;
  background: white;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid #587600;
  outline-offset: 4px;
}

/* 상단 메뉴, 활성 탭 밑줄과 포인트 색상입니다. */
header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav, nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav {
  min-height: var(--nav-height);
  justify-content: center;
  gap: clamp(22px,3.5vw,48px);
}

.brand {
  font: 900 22px/1 Arial,sans-serif;
  letter-spacing: -.07em;
  white-space: nowrap;
}

.brand span {
  color: #68830e;
}

nav {
  gap: clamp(14px,2vw,28px);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .025em;
  white-space: nowrap;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  background: transparent;
  border: 0;
  color: #77776f;
  transition: color .15s ease;
}

nav a:not([aria-current]):hover, nav a:not([aria-current]):focus-visible {
  color: #68830e;
}

nav a[aria-current="location"] {
  color: var(--ink);
}

nav a[aria-current="location"] {
  text-decoration: underline;
  text-decoration-color: #68830e;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* 메인 사진, 전환 효과와 소개글입니다. */
.hero {
  padding-bottom: 30px;
  scroll-margin-top: calc(var(--nav-height) + 1px);
}

.hero-frame {
  max-width: 730px;
  margin-inline: auto;
}

.hero-copy {
  max-width: 560px;
  margin-inline: auto;
  padding: 46px 0 14px;
  text-align: left;
}

.hero-label {
  margin-bottom: 12px;
  color: var(--muted);
  font: 700 11px/1.5 Arial,sans-serif;
  letter-spacing: .16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font: 700 11px/1.5 Arial,sans-serif;
  letter-spacing: .16em;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  background: #68830e;
  display: inline-block;
}

h1 {
  font-family: "Pretendard Heading", Pretendard, "Malgun Gothic", sans-serif;
  font-weight: 500;
  font-size: clamp(26px,3.4vw,40px);
  line-height: 1.22;
  letter-spacing: -.035em;
  margin-bottom: 22px;
  word-break: keep-all;
}

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

.hero-description {
  font-size: clamp(15px,1.45vw,18px);
  line-height: 1.8;
  word-break: keep-all;
}

.hero-description + .hero-description {
  margin-top: 12px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  min-height: 46px;
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.primary {
  background: var(--lime);
}

.primary:hover {
  background: #c7e960;
}

.outline:hover {
  background: #eaece1;
}

.hero-gallery {
  position: relative;
}

.hero-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .65s ease;
}

.hero-image img.is-active {
  opacity: 1;
}

/* 섹션 제목과 공통 여백입니다. */
.section {
  padding-block: 80px;
}

h2 {
  font-size: clamp(32px,4vw,53px);
  letter-spacing: -.07em;
  line-height: 1.18;
}

.section-title {
  margin-bottom: 34px;
}

.section-title, #ai-title {
  font-family: Inter, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: .035em;
}

.product-detail {
  padding-bottom: clamp(48px, 7vw, 80px);
  text-align: center;
}

.product-detail h2 {
  font-family: "Pretendard Heading", Pretendard, "Malgun Gothic", sans-serif;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -.035em;
}

.product-detail p {
  margin: 14px auto 24px;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 18px);
  word-break: keep-all;
}

.product-detail img {
  max-width: 1080px;
  height: auto;
  margin-inline: auto;
}

/* 포트폴리오 사진 그리드와 사진 선택 버튼입니다. */
.category {
  margin-bottom: 46px;
}

.category:last-child {
  margin-bottom: 0;
}

.category-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.category-heading h3 {
  font-size: 21px;
}

.gallery-buttons {
  display: flex;
  gap: 6px;
}

.gallery-buttons[hidden] {
  display: none;
}

.gallery-buttons button {
  width: 40px;
  height: 40px;
  border: 0;
  background: #f3f3ef;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.gallery-buttons button:hover {
  background: #e9e9e3;
}

.photo-grid {
  --photo-gap: 12px;
  --photo-width: calc((100% - 3 * var(--photo-gap)) / 4);
  display: flex;
  gap: var(--photo-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.photo-grid .photo {
  flex: 0 0 var(--photo-width);
  min-width: 0;
  aspect-ratio: 1;
  background: #f0f0ed;
  isolation: isolate;
  scroll-snap-align: start;
}

.photo-grid .photo:focus-visible {
  outline-offset: -4px;
}

.apparel-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--photo-width);
  grid-template-rows: repeat(2, auto);
  align-items: start;
}

.photo-grid .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.photo-grid .photo img.photo-cutout {
  object-fit: contain;
  mix-blend-mode: multiply;
  translate: var(--subject-x) var(--subject-y);
  scale: var(--subject-scale);
}

.photo {
  display: block;
  background: #f4f4f1;
  overflow: hidden;
}

.photo img {
  aspect-ratio: 1;
  object-fit: contain;
  transition: transform .2s ease;
}

.photo:hover img {
  transform: scale(1.035);
}

.photo-credit {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.photo-credit a {
  text-decoration: underline;
}

/* AI 모델 이미지 영역과 전용 캐러셀입니다. */
.ai {
  background: #242820;
  color: #fafbf5;
  padding-block: 60px;
}

.ai-layout {
  --ai-gutter: clamp(28px, 5vw, 52px);
  max-width: 760px;
}

.ai-layout > :not(.ai-carousel) {
  margin-inline: var(--ai-gutter);
}

.ai .category-heading h2 {
  font-size: clamp(24px,4vw,40px);
}

.ai-carousel {
  position: relative;
  padding-inline: var(--ai-gutter);
}

.ai-carousel .gallery-buttons button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: clamp(28px, 5vw, 44px);
  background: transparent;
  color: #b9bdb0;
  transition: color .18s ease;
}

.ai-carousel .gallery-buttons button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 1px solid;
  border-right: 1px solid;
  rotate: 45deg;
}

.ai-carousel .gallery-buttons button[data-direction="-1"]::before {
  rotate: -135deg;
}

.ai-carousel .gallery-buttons button:hover, .ai-carousel .gallery-buttons button:focus-visible {
  color: #fff;
}

.ai-carousel .gallery-buttons button:focus-visible {
  outline-color: #b9bdb0;
  outline-offset: -3px;
}

.ai-carousel [data-direction="-1"] {
  left: 0;
}

.ai-carousel [data-direction="1"] {
  right: 0;
}

.ai-description {
  margin-top: 16px;
  color: #e1e3d7;
}

.ai .button {
  margin-top: 14px;
}

.light {
  border-color: #c6d19f;
}

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

.photo-grid.ai-images {
  --photo-width: 100%;
  align-items: center;
}

.ai-images .photo {
  aspect-ratio: auto;
  background: transparent;
}

.ai-images .photo img {
  height: auto;
  aspect-ratio: auto;
}

/* 가격표, 디테일 사진과 견적 문의 디자인입니다. */
#pricing .section-title, .pricing-photos {
  margin-bottom: clamp(12px, 2vw, 20px);
}

.pricing-photos {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  column-gap: clamp(6px,1.5vw,16px);
}

.pricing-photos img {
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.price-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.price-list > div {
  display: grid;
  grid-template-columns: max-content minmax(0,1fr) max-content;
  align-items: center;
  gap: clamp(8px,2vw,24px);
  padding: clamp(14px,3vw,30px) 12px;
  border-bottom: 1px solid var(--line);
}

.price-list dt, .price-extra span {
  font: 500 clamp(16px,2.4vw,26px)/1.25 "Pretendard Heading", Pretendard, "Malgun Gothic", sans-serif;
}

.price-list dt {
  min-width: 3em;
  white-space: nowrap;
}

.price-list dt[aria-label] {
  text-align-last: justify;
}

.price-list dd {
  margin: 0;
}

.price-option {
  font-size: clamp(12px,1.6vw,17px);
  word-break: keep-all;
}

.price-option span {
  display: inline-block;
  padding: 3px clamp(5px,1vw,12px);
  background: #f0f0ed;
}

.price-amount {
  font: 700 clamp(18px,3vw,34px)/1.2 Arial,sans-serif;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.price-amount small {
  font: 600 clamp(11px,1.4vw,14px)/1.2 sans-serif;
  margin-left: 3px;
}

.price-tax {
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(12px,1.4vw,15px);
  text-align: right;
}

.price-extra {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
  margin-top: 14px;
  padding-block: 12px;
  padding-inline-end: 14px;
  background: #f0f0ed;
  font-size: 14px;
}

.price-extra a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.price-extra {
  padding-inline-start: 12px;
}

.pricing-photos, .price-list, .price-tax, .price-extra {
  max-width: 800px;
  margin-inline: auto;
}

/* PROCESS 카드 크기, 단계별 배경색과 안내 글씨입니다. */
.process.section {
  padding-top: 12px;
}

.process-steps, .process-notes {
  max-width: 900px;
  margin-inline: auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-block: 0 24px;
  padding: 0;
  list-style: none;
}

.process-steps li {
  aspect-ratio: 1;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f2f3eb;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  word-break: keep-all;
}

.process-steps li:nth-child(2) {
  background: #ebeedf;
}

.process-steps li:nth-child(3) {
  background: #e3e8d3;
}

.process-steps li:nth-child(4) {
  background: #dce3c6;
}

.process-steps li:nth-child(5) {
  background: #d3dcbc;
}

.process-steps li:nth-child(6) {
  background: #c9d4ad;
}

.process-steps span {
  color: #3e510e;
  font: 500 14px/1.4 Inter, Arial, sans-serif;
}

.process-steps a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.process-notes {
  margin-block: 0;
  padding-inline-start: 1.2em;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 19px);
  word-break: keep-all;
}

.process-notes li + li {
  margin-top: 6px;
}

/* CONTACT 지도와 연락처 배치입니다. */
.location {
  background: #fff;
  padding-block: 45px;
}

.studio-map iframe {
  display: block;
  width: 100%;
  height: clamp(255px,35vw,420px);
  border: 0;
  background: #fff;
}

.contact {
  padding-block: clamp(36px,5vw,58px);
  text-align: center;
}

.contact-links {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) minmax(max-content, 1.5fr) minmax(max-content, 1fr);
  gap: 8px;
  max-width: 760px;
  margin-inline: auto;
  font-style: normal;
}

.contact-links > a,
.contact-phone {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px 8px;
}

.contact-links > a:hover strong,
.contact-phone a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-links span {
  color: var(--muted);
  font-size: 13px;
}

.contact-links strong {
  font-size: clamp(15px, 1.6vw, 16px);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-phone strong {
  white-space: nowrap;
}

.contact-links > a[href="#location"] strong {
  white-space: nowrap;
}

.contact-chat-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  color: #587600;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-chat-link:hover {
  color: var(--ink);
}

.contact-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* 스크롤하는 동안 화면 아래에 표시되는 버튼입니다. */
.contact-chat,
.back-to-top {
  position: fixed;
  z-index: 6;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
}

.contact-chat {
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 56px);
  display: block;
  width: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-chat img {
  height: auto;
}

.contact-chat:hover {
  filter: brightness(0.95);
}

.back-to-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.back-to-top:hover {
  color: #68830e;
}

/* 사진 확대 창의 크기, 배경과 버튼입니다. */
dialog {
  width: min(96vw,1224px);
  max-height: 96dvh;
  border: 1px solid var(--line);
  padding: 0;
  background: white;
  color: var(--ink);
}

#viewer[open] {
  display: flex;
  flex-direction: column;
}

#viewer::backdrop {
  background: rgb(20 22 18 / .22);
}

html {
  scrollbar-gutter: stable;
}

#viewer {
  overscroll-behavior: contain;
}

.viewer-head, .viewer-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  gap: 12px;
}

.viewer-head h2 {
  font-size: 18px;
}

.viewer-head button, .viewer-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-size: 23px;
}

.viewer-head button {
  border: 0;
  background: transparent;
}

.viewer-controls button:disabled {
  opacity: .4;
  cursor: default;
}

#viewer-image {
  height: min(95.04dvh,950.4px);
  min-height: 0;
  object-fit: contain;
  background: #fff;
}

.viewer-head, .viewer-controls {
  flex-shrink: 0;
}

/* 화면이 좁을 때 적용되는 반응형 설정입니다. */
@media (max-width: 850px) {
  .wrap {
    width: calc(100% - 44px);
  }
}

@media (max-width: 630px) {
  .wrap {
    width: calc(100% - 32px);
  }
  :root {
    --nav-height: 88px;
  }
  .nav {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    align-content: center;
    gap: 6px;
  }
  .site-brand {
    justify-self: center;
  }
  .brand {
    font-size: 18px;
  }
  nav {
    justify-content: center;
    gap: 7px;
    font-size: 10px;
    letter-spacing: 0;
  }
  .process-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .hero {
    padding-bottom: 22px;
  }
  .hero-copy {
    padding-block: 30px 20px;
  }
  .section {
    padding-block: 54px;
  }
  .photo-grid {
    --photo-gap: 8px;
    --photo-width: calc((100% - var(--photo-gap)) / 2);
  }
  .ai {
    padding-block: 44px;
  }
}

@media (max-width: 350px) {
  nav {
    gap: 5px;
    font-size: 9px;
  }
  .brand {
    font-size: 15px;
  }
}

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

  .contact-links > a[href="#location"] strong {
    white-space: normal;
    word-break: keep-all;
  }
}

/* 기기에서 동작 줄이기를 설정한 경우 전환 효과를 끕니다. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
