/* ============================================================
   Logoline — 로고 제작 & 브랜드 카피라이팅 스튜디오
   ============================================================ */

:root {
  --yellow: #FFD400;
  --yellow-soft: #FFE566;
  --ink: #111111;
  --ink-soft: #3d3a30;
  --paper: #ffffff;
  --gray: #f5f4f0;
  --line: rgba(17, 17, 17, 0.12);
  --radius: 20px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--yellow); }

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

/* ============ 버튼 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 2px solid var(--ink);
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { box-shadow: 0 10px 24px rgba(17, 17, 17, 0.25); }

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

.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { box-shadow: 0 10px 24px rgba(255, 212, 0, 0.35); }

.btn--lg { padding: 17px 34px; font-size: 17px; }

/* ============ 내비게이션 ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}
.nav__symbol { width: 38px; height: 38px; flex: none; }
.nav__wordmark { font-size: 21px; letter-spacing: -0.03em; }

.nav__menu {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav__menu a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav__menu a:hover { background: rgba(17, 17, 17, 0.07); }

.nav__cta { flex: none; }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.nav.is-open .nav__toggle span:first-child { transform: translateY(4.75px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-4.75px) rotate(-45deg); }

/* ============ 히어로 ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--yellow);
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__mark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-54%) rotate(8deg);
  width: min(52vw, 640px);
  height: auto;
  opacity: 0.12;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 64px 140px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(48px, 8.6vw, 108px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}
.hero__sub {
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero__stats {
  display: flex;
  gap: clamp(32px, 6vw, 80px);
}
.hero__stats dt {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero__stats dd { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.hero__stats--props dt { font-size: clamp(18px, 2vw, 24px); }

/* 마퀴 */
.marquee {
  position: absolute;
  inset: auto 0 0 0;
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: var(--yellow);
  overflow: hidden;
  padding-block: 16px;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee__track i { font-size: 9px; font-style: normal; opacity: 0.6; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ 공통 섹션 ============ */
.section { padding-block: clamp(90px, 12vw, 150px); }
.section--yellow { background: var(--yellow); }
.section--gray { background: var(--gray); }

.section__head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 76px); }
.section__label {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  margin-bottom: 20px;
}
.section__title {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.section__desc {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ============ 포트폴리오 ============ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.work__canvas {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--gray);
  border-radius: var(--radius);
  color: var(--ink);
  margin-bottom: 16px;
  overflow: hidden;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.work__canvas svg { width: 62%; height: 62%; transition: transform 0.5s var(--ease); }
.work:hover .work__canvas { background: var(--ink); color: var(--yellow); }
.work:hover .work__canvas svg { transform: scale(1.1) rotate(-2deg); }
.work h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.work p { font-size: 14px; color: var(--ink-soft); }

/* ============ 서비스 ============ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.service {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(32px, 4vw, 52px);
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 var(--ink); }
.service__num {
  display: inline-block;
  font-size: 15px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  margin-bottom: 24px;
}
.service__num--option { background: var(--paper); }
.service--option { background: var(--gray); }
.service__note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}
.service h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 12px; }
.service > p { font-size: 16px; color: var(--ink-soft); margin-bottom: 26px; }
.service ul { display: grid; gap: 11px; }
.service li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  font-weight: 600;
}
.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--ink);
  clip-path: polygon(0 0, 45% 0, 45% 55%, 100% 55%, 100% 100%, 0 100%); /* 미니 L */
}

/* ============ 프로세스 ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  border-top: 3px solid var(--ink);
  padding-top: 26px;
}
.step__num {
  display: block;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* ============ 가격 ============ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 38px 32px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(17, 17, 17, 0.1); }
.plan--featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.plan__badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.plan__for { font-size: 14px; opacity: 0.65; margin: 4px 0 22px; }
.plan__price {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 28px;
}
.plan__price span { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-left: 4px; }
.plan ul { display: grid; gap: 12px; margin-bottom: 34px; }
.plan li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  font-weight: 500;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 900;
}
.plan--featured li::before { color: var(--yellow); }
.plan li strong { font-weight: 800; }
.plan--featured li strong { color: var(--yellow); }
.plan__btn { margin-top: auto; width: 100%; }
.plan--featured .plan__btn { border-color: var(--yellow); }

/* ============ 후기 ============ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review {
  background: var(--gray);
  border-radius: calc(var(--radius) + 6px);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.review blockquote {
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.7;
  word-break: keep-all;
}
.review figcaption { font-size: 14px; color: var(--ink-soft); }
.review figcaption strong { color: var(--ink); font-weight: 800; }

/* ============ CTA ============ */
.cta {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(100px, 13vw, 170px);
  position: relative;
  overflow: hidden;
}
.cta__mark {
  position: absolute;
  left: -4%;
  bottom: -18%;
  width: min(38vw, 420px);
  height: auto;
  opacity: 0.14;
  transform: rotate(-10deg);
  pointer-events: none;
}
.cta__inner { position: relative; text-align: center; }
.cta h2 {
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.cta p { font-size: 18px; opacity: 0.75; margin-bottom: 44px; }
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cta__actions .btn--yellow { border-color: var(--yellow); }
.cta__mail { font-size: 15px; opacity: 0.55; letter-spacing: 0.02em; }

/* ============ 푸터 ============ */
.footer {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 56px;
}
.footer__inner {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.footer .nav__symbol path { stroke: var(--yellow); }
.footer .nav__symbol path[fill] { fill: var(--yellow); stroke: none; }
.footer__tag { font-size: 15px; opacity: 0.65; }
.footer__menu { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__menu a { font-size: 14px; font-weight: 600; opacity: 0.8; transition: opacity 0.2s; }
.footer__menu a:hover { opacity: 1; color: var(--yellow); }
.footer__family { font-size: 13.5px; opacity: 0.55; }
.footer__legal { font-size: 12.5px; opacity: 0.45; }
.footer__copy { font-size: 13px; opacity: 0.4; }

/* ============ 등장 애니메이션 ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ 반응형 ============ */
@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 22px; }
}

@media (max-width: 820px) {
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 18px 24px 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(17, 17, 17, 0.08);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .nav.is-open .nav__menu { transform: none; opacity: 1; visibility: visible; }
  .nav__menu a { font-size: 17px; padding: 12px 14px; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav { background: transparent; }
  .nav.is-scrolled, .nav.is-open { background: rgba(255, 255, 255, 0.95); }

  .service-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero__stats { flex-wrap: wrap; gap: 28px 40px; }
  .br-desktop { display: none; }
}

@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .marquee__track span { font-size: 16px; }
}

/* ============ 상담 신청 페이지 ============ */
.page-hero {
  background: var(--yellow);
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 90px)) 0 clamp(48px, 7vw, 80px);
}
.page-hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 14px;
}
.page-hero p { font-size: 17px; font-weight: 500; color: var(--ink-soft); }

.consult { padding-block: clamp(56px, 8vw, 90px); }
.consult__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.form {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 22px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 800; }
.field label .req { color: #d63b00; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--gray);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.55);
}
.field__hint { font-size: 13px; color: var(--ink-soft); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form__error {
  display: none;
  background: #fff1ec;
  border: 2px solid #d63b00;
  color: #a32d00;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 600;
}
.form__error.show { display: block; }
.form__submit { justify-self: start; }
.form__submit[disabled] { opacity: 0.55; pointer-events: none; }

.form-success {
  display: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(36px, 5vw, 56px);
  text-align: center;
}
.form-success.show { display: block; }
.form-success svg { width: 72px; height: 72px; margin-bottom: 18px; }
.form-success h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 10px; }
.form-success p { color: var(--ink-soft); margin-bottom: 26px; }

.consult-aside { display: grid; gap: 18px; }
.aside-card {
  background: var(--gray);
  border-radius: calc(var(--radius) + 2px);
  padding: 26px 26px;
}
.aside-card h3 { font-size: 17px; font-weight: 900; margin-bottom: 12px; }
.aside-card ul { display: grid; gap: 9px; }
.aside-card li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.aside-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 3px;
}
.aside-card--dark { background: var(--ink); color: #fff; }
.aside-card--dark h3 { color: var(--yellow); }
.aside-card--dark p { font-size: 14.5px; opacity: 0.85; }

@media (max-width: 900px) {
  .consult__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* ============ 모션 최소화 ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
