/* =========================================================
   ONETAKE Landing
   레퍼런스: DRIP 에디토리얼 템플릿 (흑백 미니멀 / 초대형 그로테스크)
   ========================================================= */

:root {
  --bg: #ffffff;
  --page-bg: #111111;
  --ink: #0a0a0a;
  --ink-mute: #6b6b6b;
  --line: #e4e4e4;

  /* 따뜻한 뉴트럴 일색인 화면을 깨는 유일한 채도. CTA / 활성 도트 / 호버에만 쓴다. */
  --accent: #2b4bff;

  --gutter: clamp(20px, 4vw, 64px);
  --section-gap: clamp(96px, 14vw, 220px);

  /* 사진 톤은 시간축으로 나눈다 (tools/gen_assets.sh 와 짝을 이룬다).
     film  = 차와 함께한 과거. 생성 단계에서 이미 세피아가 구워져 있어 약하게만 얹는다.
     clean = 지금 쓰는 서비스. 세피아를 빼고 살짝 차갑게, 대비만 올린다. */
  --film:  sepia(0.10) contrast(1.04) saturate(0.95) brightness(0.99);
  --clean: saturate(1.04) contrast(1.06) brightness(1.02);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 레퍼런스처럼 본문을 어두운 배경 위에 얹은 흰 페이지로 */
main, .footer {
  background: var(--bg);
  max-width: 1600px;
  margin-inline: auto;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 사진 톤 — HTML 의 data-tone 이 단일 진실 공급원 */
img[data-tone="film"]  { filter: var(--film); }
img[data-tone="clean"] { filter: var(--clean); }

figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- 공통 ---------- */

.section {
  padding-inline: var(--gutter);
  padding-block: var(--section-gap) 0;
}

.label {
  margin: 0 0 clamp(28px, 4vw, 56px);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 이미지 미로딩 시 자리표시자 — assets/ 에 실제 파일을 넣으면 자동으로 사라진다 */
.is-missing {
  position: relative;
  background:
    repeating-linear-gradient(45deg, #f2efea 0 2px, #eae5de 2px 4px);
}
.is-missing img { visibility: hidden; }
.is-missing::after {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a89f92;
}

/* ---------- 상단바 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px var(--gutter);
  background: var(--bg);
  max-width: 1600px;
  margin-inline: auto;
}

.topbar__logo {
  grid-column: 2;
  justify-self: center;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.topbar__logo sup { font-size: 0.55em; vertical-align: super; }

.topbar__menu {
  justify-self: end;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.topbar__menu:hover { color: var(--accent); }

/* ---------- 메뉴 오버레이 ---------- */

.nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav.is-open { opacity: 1; pointer-events: auto; }

.nav__close {
  position: absolute;
  top: 22px;
  right: var(--gutter);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav__list {
  display: grid;
  gap: clamp(8px, 1.6vw, 20px);
  text-align: center;
}
.nav__list a {
  transition: color 0.25s ease;
  font-size: clamp(40px, 8vw, 92px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.nav__list a:hover { color: var(--accent); }

/* ---------- 01. HERO ---------- */

.hero { padding-inline: var(--gutter); }

.hero__title {
  margin: clamp(24px, 3vw, 48px) 0 clamp(32px, 4vw, 56px);
  font-size: clamp(44px, 9.4vw, 150px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

/* 차량번호 조회 CTA */
.lookup {
  max-width: 620px;
  margin: 0 0 clamp(40px, 5vw, 72px);
}

.lookup__label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.lookup__field {
  display: flex;
  align-items: stretch;
  border-bottom: 2px solid var(--ink);
  transition: border-color 0.25s ease;
}
.lookup__field:focus-within { border-color: var(--accent); }
.lookup.is-invalid .lookup__field { border-color: #c0392b; }

.lookup__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 8px 14px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.lookup__input::placeholder { color: #c8c8c8; font-weight: 500; }
.lookup__input:focus { outline: none; }

.lookup__submit {
  flex: 0 0 auto;
  padding: 0 clamp(18px, 2vw, 30px);
  margin: 6px 0;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}
.lookup__submit:hover { opacity: 0.75; }
.lookup__submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.lookup__error {
  margin: 10px 0 0;
  font-size: 12px;
  color: #c0392b;
}
.lookup__error[hidden] { display: none; }

.lookup__hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink-mute);
  word-break: keep-all;
}

.hero__figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* 줄바꿈은 마크업의 <br> 로만 제어한다 (폭을 좁히면 첫 문장이 저절로 접힌다) */
.hero__lead {
  max-width: 100%;
  margin: clamp(72px, 11vw, 180px) auto 0;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.75;
  text-align: center;
  color: var(--ink-mute);
  word-break: keep-all;
}

/* ---------- 02. GALLERY ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  gap: clamp(10px, 1.2vw, 18px);
  padding: clamp(72px, 10vw, 160px) var(--gutter) 0;
}

.gallery__item { overflow: hidden; }

.gallery__item--sm { grid-column: 1 / span 3; aspect-ratio: 4 / 3; }
.gallery__item--md { grid-column: 4 / span 3; aspect-ratio: 4 / 3; }
.gallery__item--lg { grid-column: 7 / span 6; aspect-ratio: 3 / 4; }

/* ---------- 03. STORY ---------- */

.story__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 3vw, 48px);
}

.story__text {
  grid-column: 1;
  max-width: 44ch;
  margin: 0;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.carousel {
  grid-column: 1 / -1;
  position: relative;
  margin-top: clamp(20px, 2.4vw, 36px);
  width: min(100%, 840px);
  overflow: hidden;
}

.carousel__watermark {
  position: absolute;
  top: 2%;
  right: 4%;
  z-index: 2;
  font-size: clamp(60px, 8vw, 130px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(0, 0, 0, 0.42);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.carousel__track {
  display: flex;
  transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.carousel__slide figcaption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  max-width: 24ch;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  word-break: keep-all;
}

.carousel__dots {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 10px;
}

.carousel__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s ease;
}
.carousel__dot.is-active { background: var(--accent); }

/* ---------- 04. FEE ---------- */

.fee__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.fee__claim { grid-column: 2; }

/* FEE 섹션의 유일한 내용 — 고객 부담은 0원 */

.fee__claim-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.fee__claim-figure {
  margin: 6px 0 0;
  font-size: clamp(64px, 11vw, 170px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.fee__claim-zero { color: var(--accent); }

.fee__claim-desc {
  max-width: 44ch;
  margin: clamp(20px, 2.4vw, 32px) 0 0;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.7;
  color: var(--ink-mute);
  word-break: keep-all;
}

/* ---------- 05. BANNER ---------- */

.banner { padding: var(--section-gap) var(--gutter) 0; }

.banner__figure {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

/* 밝은 쇼룸 위에 흰 헤드라인이 얹히므로 대비 확보용 스크림.
   이미지를 어둡게 하지 않고 중앙만 눌러 클린한 톤을 살린다. */
.banner__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at center,
              rgba(10, 12, 24, 0.62) 0%,
              rgba(10, 12, 24, 0.40) 55%,
              rgba(10, 12, 24, 0.10) 100%);
  pointer-events: none;
}

.banner__title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 24px;
  font-size: clamp(30px, 5.2vw, 84px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-align: center;
  color: #fff;
  word-break: keep-all;
}

/* ---------- 06. PROCESS ---------- */

.process__body {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}

.process__step-title {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.process__text p {
  margin: 0;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-mute);
  word-break: keep-all;
  min-height: 8em; /* 단계 전환 시 레이아웃 점프 방지 */
}

.process__media {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(8px, 0.8vw, 14px);
}

.process__thumbs { display: grid; gap: clamp(8px, 0.8vw, 14px); align-content: start; }

.thumb {
  padding: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  opacity: 0.35;
  transition: opacity 0.35s ease;
}
.thumb:hover { opacity: 0.7; }
.thumb.is-active { opacity: 1; }

.process__main {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.process__main img { transition: opacity 0.35s ease; }
.process__main.is-fading img { opacity: 0; }

/* ---------- 07. IDEAS ---------- */

.ideas__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 4fr);
  justify-content: end;
  gap: clamp(32px, 4vw, 64px) clamp(20px, 2.4vw, 40px);
  margin-left: auto;
  width: min(100%, 66.6%);
}

.card__figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 18px;
}
.card__figure img { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.card:hover .card__figure img { transform: scale(1.04); }

.card__title {
  margin: 0 0 10px;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
  word-break: keep-all;
}

/* ---------- 08. FAQ ---------- */

.faq__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.qa {
  grid-column: 2;
  border-top: 1px solid var(--line);
}
.qa:last-of-type { border-bottom: 1px solid var(--line); }

.qa__q {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(20px, 2.2vw, 30px) 0;
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  word-break: keep-all;
  transition: color 0.25s ease;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { color: var(--accent); }
.qa[open] .qa__q { color: var(--accent); }

/* + 에서 × 로 회전하는 인디케이터 */
.qa__q::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-left: auto;
  margin-top: 0.35em;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.qa[open] .qa__q::after { transform: rotate(45deg); }

.qa__a { padding: 0 clamp(34px, 4vw, 54px) clamp(22px, 2.4vw, 32px) 0; }
.qa__a p {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.8;
  color: var(--ink-mute);
  word-break: keep-all;
}
.qa__a p + p { margin-top: 1em; }

/* ---------- 09. CONTACT ---------- */

.contact__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.promise, .contact__lead, .contact__grid { grid-column: 2; }

/* 문제가 생겼을 때 운영팀이 개입한다는 약속 */
.promise {
  margin-bottom: clamp(56px, 7vw, 100px);
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.promise__title {
  margin: 0 0 clamp(20px, 2.4vw, 32px);
  font-size: clamp(30px, 4.4vw, 66px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.promise__desc {
  max-width: 52ch;
  margin: 0;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.75;
  color: var(--ink-mute);
  word-break: keep-all;
}

.contact__lead {
  margin: 0 0 clamp(36px, 4.4vw, 64px);
  font-size: clamp(17px, 1.7vw, 26px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
}

.contact__label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.contact__value {
  display: inline-block;
  padding: 0;
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  transition: color 0.25s ease;
}
.contact__value--sm { font-size: clamp(16px, 1.35vw, 20px); letter-spacing: -0.015em; }
.contact__value:hover { color: var(--accent); }

.contact__chat {
  border-bottom: 2px solid var(--ink);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.contact__chat:hover { border-color: var(--accent); }

.contact__meta {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-mute);
  word-break: keep-all;
}

/* ---------- FOOTER ---------- */

.footer {
  padding: clamp(72px, 10vw, 140px) var(--gutter) 28px;
}

.footer__biz {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-mute);
}
.footer__biz div { display: flex; gap: 8px; }
.footer__biz dt { font-weight: 700; }
.footer__biz dd { margin: 0; }
.footer__biz a:hover { color: var(--accent); }

.footer__bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer__bottom small { font-size: 12px; color: var(--ink-mute); }


/* ---------- 반응형 ---------- */

@media (max-width: 900px) {
  .gallery__item--sm { grid-column: 1 / span 6; }
  .gallery__item--md { grid-column: 7 / span 6; }
  .gallery__item--lg { grid-column: 1 / -1; aspect-ratio: 4 / 5; }

  .story__body,
  .fee__body,
  .process__body,
  .faq__body,
  .contact__body { grid-template-columns: minmax(0, 1fr); }

  .fee__claim { grid-column: 1; }
  .qa, .promise, .contact__lead, .contact__grid { grid-column: 1; }

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

  .ideas__grid { width: 100%; }
}

@media (max-width: 640px) {
  .topbar { grid-template-columns: auto 1fr auto; }

  .hero__lead { margin-top: 64px; }

  .lookup__submit { padding: 0 16px; font-size: 12px; }

  .gallery { gap: 10px; }
  .gallery__item--sm,
  .gallery__item--md { grid-column: 1 / -1; aspect-ratio: 4 / 3; }

  .carousel__watermark { font-size: 56px; }
  .carousel__slide figcaption { left: 16px; bottom: 44px; font-size: 12px; }
  .carousel__dots { right: 16px; bottom: 16px; }

  .process__media { grid-template-columns: minmax(0, 1fr); }
  .process__thumbs {
    grid-template-columns: repeat(4, 1fr);
    order: 2;
  }
  .process__text p { min-height: 0; }

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

  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .qa__a { padding-right: 0; }

}
