/* BRIDGE MOMENT — 명함과 같은 흑백 · 하이콘트라스트 세리프 시스템 */
:root {
  --ink: #111111;
  --paper: #ffffff;
    --mute: #6b6a66;
  --mute-dark: #a3a29e;
  --line: rgba(17, 17, 17, .14);
  --line-dark: rgba(255, 255, 255, .22);

  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Jost", "Noto Sans KR", system-ui, sans-serif;
  --ko: "Noto Sans KR", "Jost", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--ko);
  letter-spacing: -.005em;
  overflow-x: hidden;
}
a { color: inherit; }
section[id] { scroll-margin-top: 64px; }
img { max-width: 100%; display: block; }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  margin: 0;
  font: 500 12px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mute);
}
.eyebrow--light { color: var(--mute-dark); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .3s, color .3s, transform .3s;
}
.nav.is-solid { background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__logo {
  display: flex; flex-direction: column; text-decoration: none;
  font: 500 15px/.86 var(--display); letter-spacing: -.02em;
  opacity: 0; transition: opacity .3s;
}
.nav.is-solid .nav__logo { opacity: 1; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); font: 400 13px/1 var(--sans); letter-spacing: .08em; }
.nav__links a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav__links a:hover { border-color: currentColor; }
.nav__cta { border: 1px solid var(--ink) !important; padding: 8px 14px !important; }
.nav__cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero (명함 앞면) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter);
  overflow: hidden;
}
.hero__tag {
  position: absolute;
  right: var(--gutter); top: 28vh;
  margin: 0;
  font: 400 clamp(13px, 1.4vw, 19px)/1.45 var(--sans);
  letter-spacing: .01em;
}
.hero__mark {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 22vw;          /* main.js가 폭에 맞춰 재계산 */
  line-height: .78;
  letter-spacing: -.055em;
}
.hero__word {
  display: block;
  width: max-content;
  white-space: nowrap;
  transform: scaleY(1.42);   /* 명함 로고의 길쭉한 비례 */
  transform-origin: bottom left;
}
.hero__word + .hero__word { margin-top: .34em; }
.hero__word--cut { margin-bottom: -.12em; }   /* 명함처럼 아래가 잘린 MOMENT */

/* ---------- About ---------- */
.about { padding: clamp(88px, 14vw, 180px) 0; border-top: 1px solid var(--line); }
.about__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.about__ko { margin: 0; font: 400 clamp(30px, 5vw, 64px)/1.3 var(--ko); letter-spacing: -.04em; }
.about__en { margin: 20px 0 0; font: 400 clamp(17px, 1.8vw, 22px)/1.5 var(--sans); }
.about__body { margin: 0; max-width: 34em; color: #333333; word-break: keep-all; }

/* ---------- Services ---------- */
.services { padding: 0 0 clamp(80px, 12vw, 160px); }
.services__list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.service {
  display: grid; gap: 8px 24px;
  grid-template-columns: 44px 1fr;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.service__no { font: 400 13px/2.4 var(--sans); color: var(--mute); }
.service__title { margin: 0; font: 400 clamp(26px, 3.4vw, 44px)/1.1 var(--serif); letter-spacing: -.02em; word-break: keep-all; }
.service__body { grid-column: 2; margin: 0; max-width: 32em; color: #333333; word-break: keep-all; }

/* ---------- Founder (명함 뒷면 상단) ---------- */
.founder { padding: clamp(80px, 12vw, 160px) 0; }
.founder__grid { display: grid; gap: 28px; align-items: end; }
.founder__name { margin: 0; font: 500 clamp(36px, 6vw, 80px)/1.05 var(--serif); letter-spacing: -.02em; }
.founder__role { margin: 10px 0 0; font: 400 clamp(17px, 2vw, 24px)/1.3 var(--serif); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 400 14px/1 var(--sans); letter-spacing: .06em;
  text-decoration: none; cursor: pointer;
  border-radius: 0; transition: background .2s, color .2s;
}
.btn--line { border: 1px solid var(--ink); color: var(--ink); background: transparent; justify-self: start; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--solid { border: 1px solid var(--paper); background: var(--paper); color: var(--ink); width: 100%; }
.btn--solid:hover { background: transparent; color: var(--paper); }
.btn[disabled] { opacity: .5; cursor: progress; }

/* ---------- Contact (명함 뒷면 블랙 밴드) ---------- */
.contact { background: var(--ink); color: var(--paper); padding: clamp(72px, 10vw, 140px) 0; }
.contact__grid { display: grid; gap: 56px; }
.esw { margin: 28px 0 0; display: grid; gap: 12px; font: 300 clamp(17px, 1.8vw, 21px)/1.4 var(--sans); }
.esw div { display: grid; grid-template-columns: 36px 1fr; align-items: baseline; }
.esw dt { font: 500 13px/1 var(--sans); letter-spacing: .1em; }
.esw dd { margin: 0; }
.esw a { text-decoration: none; border-bottom: 1px solid transparent; }
.esw a:hover { border-color: currentColor; }
.contact__mark {
  display: none;
  margin-top: 64px; padding-left: 28px; border-left: 1px solid var(--line-dark);
  flex-direction: column;
  font: 500 44px/.82 var(--display); letter-spacing: -.05em;
}
.contact__mark span { transform: scaleY(1.3); transform-origin: bottom left; }
.contact__mark span + span { margin-top: .2em; }

.form { display: grid; gap: 18px; }
.form[hidden] { display: none; }
.contact__cta { display: grid; gap: 18px; align-content: start; }
.contact__buttons { display: grid; gap: 12px; margin-top: 12px; }
.btn--ghost { border: 1px solid var(--line-dark); color: var(--paper); background: transparent; }
.btn--ghost:hover { border-color: var(--paper); }
.form__title { margin: 0; font: 400 clamp(30px, 4vw, 48px)/1.1 var(--serif); }
.form__lead { margin: -4px 0 8px; color: var(--mute-dark); font-size: 14px; word-break: keep-all; }
.form__row { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field span { font: 400 12px/1 var(--sans); letter-spacing: .12em; color: var(--mute-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent; color: var(--paper);
  border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0;
  padding: 10px 0; font: 400 16px/1.5 var(--ko);   /* 16px: iOS 확대 방지 */
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(-45deg, transparent 50%, var(--paper) 50%); background-position: right 6px center, right 0 center; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--paper); }
.field :user-invalid { border-bottom-color: #e58a7a; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13px; color: var(--mute-dark); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--paper); }
.consent details { margin-top: 6px; line-height: 1.6; }
.consent summary { cursor: pointer; text-decoration: underline; }
.cf-turnstile { min-height: 0; }
.form__status { margin: 0; min-height: 1.5em; font-size: 14px; }
.form__status.is-ok { color: #b9e3b0; }
.form__status.is-err { color: #f0a597; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--mute-dark); border-top: 1px solid var(--line-dark); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 24px; padding-bottom: 24px; font: 400 12px/1.5 var(--sans); letter-spacing: .06em; }
.footer p { margin: 0; }

/* ---------- Mobile quick bar ---------- */
.quickbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--ink); border: 1px solid var(--line-dark);
  transform: translateY(140%); transition: transform .35s ease;
}
.quickbar.is-on { transform: none; }
.quickbar a {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; color: var(--paper); text-decoration: none;
  font: 400 13px/1 var(--sans); letter-spacing: .06em;
}
.quickbar a + a { border-left: 1px solid var(--line-dark); }
.quickbar .is-strong { background: var(--paper); color: var(--ink); }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 767px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .hero { min-height: 64svh; }   /* QR 첫 화면에 로고+슬로건이 함께 보이도록 */
  .hero__tag { top: auto; bottom: 62vw; right: var(--gutter); text-align: right; }
  .about { padding-top: 56px; }
  .footer { padding-bottom: 84px; }   /* 퀵바 공간 */
  .about__body, .service__body { font-size: 15px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  .quickbar { display: none; }
  .about__grid { grid-template-columns: 200px 1fr; }
  .about__body { grid-column: 2; }
  .service { grid-template-columns: 200px 1.2fr 1fr; padding: 40px 0; align-items: baseline; }
  .service__no { line-height: 1; }
  .service__body { grid-column: 3; }
  .founder__grid { grid-template-columns: 200px 1fr auto; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .btn--solid { width: auto; justify-self: start; }
  .contact__buttons { grid-template-columns: max-content max-content; }
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: 5fr 7fr; gap: 96px; }
  .contact__mark { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
