/* ============================================================
   ONE PICK TAX & ACCOUNTING — design tokens
   Direction: a tax/accounting firm's world — official documents,
   ledgers, statutes, the red 도장 (certifying seal). Serif display
   for gravitas, mono for citations & data, warm paper over ink.
   ============================================================ */
:root {
  --ink:        #2C2215;
  --ink-2:      #241B10;
  --ink-3:      #35281C;
  --paper:      #FDFBF7;
  --paper-2:    #F5EDE0;
  --paper-off:  #F0E7D8;
  --seal:       #B5673A;
  --seal-2:     #C97D4C;
  --slate:      #6B5D4F;
  --slate-soft: #9C8F7E;
  --line:       #E9DFCE;
  --line-onink: rgba(253,251,247,0.14);
  --shadow:     0 30px 60px -34px rgba(44,34,21,0.28);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, select, textarea, button { font-family: inherit; }
img { max-width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* subtle film-grain texture across the whole page — tactile, not decorative */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scroll-triggered reveal */
.reveal {
  opacity: 0; transform: translateY(22px); filter: blur(3px);
  transition: opacity .7s var(--spring), transform .7s var(--spring), filter .7s var(--spring);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- type + structural building blocks ---- */
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--seal);
  font-weight: 500;
}
.eyebrow-onink { color: var(--seal-2); }
.eyebrow-onhero { color: rgba(246,241,231,0.78); }
.eyebrow.small { font-size: 11px; }

.h2 {
  font-family: "Noto Serif KR", serif;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.28;
  margin-top: 16px;
  color: var(--ink);
}
.h2-onink { color: var(--paper-off); }
.lead { font-size: 17px; line-height: 1.75; color: var(--slate); margin-top: 18px; max-width: 44ch; }

.section-head { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px; letter-spacing: 0.04em;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: background .4s var(--spring), color .4s var(--spring), border-color .4s var(--spring), transform .4s var(--spring), box-shadow .4s var(--spring);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: .15s; }
.btn-primary { background: var(--seal); color: var(--paper); }
.btn-primary:hover { background: var(--seal-2); color: var(--paper); box-shadow: 0 16px 32px -14px rgba(181,103,58,0.5); }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; margin-top: 6px; padding: 17px; }
.btn-outline-onhero { border-color: rgba(246,241,231,0.4); color: var(--paper); }
.btn-outline-onhero:hover { border-color: var(--paper); background: rgba(246,241,231,0.08); color: var(--paper); }
.btn-kakao { background: #FEE500; color: #3A2A00; padding: 16px 24px; width: fit-content; }
.btn-kakao:hover { background: #ffef4d; color: #3A2A00; box-shadow: 0 16px 32px -16px rgba(254,229,0,0.6); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* ---- seal / stamp motifs (signature element) ---- */
.seal-mini {
  display: inline-block; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--seal-2); position: relative; flex: none;
}
.seal-mini::before {
  content: "認"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Noto Serif KR", serif; font-size: 15px; color: var(--seal-2);
}
.seal-mini-lg { width: 56px; height: 56px; margin: 0 auto 18px; }
.seal-mini-lg::before { font-size: 24px; }

.logo-name {
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  font-weight: 800; font-size: 22px; letter-spacing: -0.01em; line-height: 1;
}
.logo-sub { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.logo-line { width: 18px; height: 1px; background: currentColor; opacity: 0.55; }
.logo-tag {
  font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  font-weight: 500; font-size: 9.5px; letter-spacing: 0.18em;
}

/* ============ HEADER ============ */
#siteHeader {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
#siteHeader.scrolled { background: rgba(246,241,231,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 80px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; flex-direction: column; align-items: center; color: var(--paper); transition: color .3s ease; }
#siteHeader.scrolled .logo { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav-link { font-size: 14px; font-weight: 500; color: rgba(246,241,231,0.85); transition: color .3s ease; }
#siteHeader.scrolled .nav-link { color: var(--slate); }
.nav-link:hover { color: var(--seal-2); }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero-frame { position: absolute; inset: 0; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: grayscale(0.4) sepia(0.14) contrast(1.06) brightness(0.92) saturate(1.1);
  opacity: 0; transition: opacity 1.3s ease;
}
.hero-slide.active { opacity: 1; }
.hero-grade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(44,34,21,0.32) 0%, rgba(44,34,21,0.08) 34%, rgba(44,34,21,0.82) 100%); }
.hero-vignette { position: absolute; inset: 0; box-shadow: inset 0 0 160px 10px rgba(0,0,0,0.35); pointer-events: none; }

.hero-slate {
  position: absolute; top: 96px; left: 32px; right: 32px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.1em;
  color: rgba(246,241,231,0.65); text-transform: uppercase;
}
.slate-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--seal-2); animation: floaty 2.4s ease-in-out infinite; }
.slate-label { flex: 1; }
.slate-count { font-variant-numeric: tabular-nums; }

.hero-content {
  position: relative; z-index: 2; max-width: 900px;
  align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 32px 132px;
}
.hero-h1 {
  font-family: "Noto Serif KR", serif; font-weight: 700;
  color: var(--paper); font-size: clamp(34px, 5.4vw, 60px); line-height: 1.22; letter-spacing: -0.01em;
  min-height: 2.5em;
}
.hero-h1 .accent { color: var(--seal-2); font-style: italic; }
.hero-sub { color: rgba(246,241,231,0.78); font-size: 17px; line-height: 1.75; margin-top: 22px; max-width: 52ch; min-height: 3.4em; }

.hero-index { position: absolute; left: 32px; bottom: 44px; z-index: 2; display: flex; gap: 18px; }
.hero-index button {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.05em;
  background: none; border: none; padding: 6px 0; cursor: pointer;
  color: rgba(246,241,231,0.45); position: relative;
}
.hero-index button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--seal-2);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.hero-index button.active { color: var(--paper); }
.hero-index button.active::after { transform: scaleX(1); }

.seal-badge {
  position: absolute; right: 36px; bottom: 44px; z-index: 2;
  width: 108px; height: 108px; animation: slowSpin 40s linear infinite;
}
.seal-ring-outer, .seal-ring-inner { fill: none; stroke: rgba(246,241,231,0.55); stroke-width: 1; }
.seal-text { font-family: "IBM Plex Mono", monospace; font-size: 8.6px; letter-spacing: 0.05em; fill: rgba(246,241,231,0.7); text-transform: uppercase; }
.seal-center { font-family: "Noto Serif KR", serif; font-size: 30px; fill: var(--seal-2); }

/* ============ WHY ============ */
.why {
  max-width: 1180px; margin: 0 auto; padding: 128px 32px 96px;
  display: grid; grid-template-columns: 0.95fr 1fr; gap: 88px; align-items: center;
}
.why-collage { position: relative; aspect-ratio: 4/5; }
.why-photo {
  position: absolute; overflow: hidden; border-radius: var(--r-lg);
  box-shadow: 0 40px 70px -30px rgba(44,34,21,0.32);
  border: 6px solid var(--paper);
}
.why-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) sepia(0.14) contrast(1.05) brightness(0.96) saturate(1.05); }
.why-photo-main { top: 0; left: 0; width: 82%; height: 74%; z-index: 1; }
.why-photo-small {
  bottom: 0; right: 0; width: 56%; height: 46%; z-index: 2;
  transition: transform .5s var(--spring);
}
.why-collage:hover .why-photo-small { transform: translateY(-6px); }
.why-list { display: flex; flex-direction: column; gap: 26px; margin-top: 36px; }
.why-list li { display: flex; gap: 20px; align-items: flex-start; }
.why-rule { flex: none; width: 28px; height: 1px; background: var(--seal); margin-top: 13px; }
.why-list h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; font-family: "Noto Serif KR", serif; }
.why-list p { color: var(--slate); font-size: 14px; line-height: 1.65; margin-top: 6px; }

/* ============ SERVICES ============ */
.services { background: var(--paper); position: relative; }
.services-inner { max-width: 1180px; margin: 0 auto; padding: 128px 32px; }
.services-head { max-width: 640px; }
.services-sub { color: var(--slate); font-size: 16px; line-height: 1.7; margin-top: 18px; }

.grid { display: grid; gap: 1px; margin-top: 56px; background: var(--line-onink); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); background: transparent; gap: 24px; }

.svc-rows { margin-top: 64px; display: flex; flex-direction: column; gap: 96px; }
.svc-row { display: flex; align-items: center; gap: 64px; }
.svc-row:nth-child(even) { flex-direction: row-reverse; }
.svc-row-photo {
  flex: 0 0 46%; position: relative; aspect-ratio: 6/5; overflow: hidden;
  border-radius: var(--r-lg); box-shadow: 0 34px 60px -30px rgba(44,34,21,0.28);
}
.svc-row-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--spring); }
.svc-row:hover .svc-row-photo img { transform: scale(1.05); }
.svc-row:nth-child(3) .svc-row-photo img,
.svc-row:nth-child(5) .svc-row-photo img {
  filter: sepia(0.3) saturate(0.75) brightness(0.88) contrast(1.03);
}
.svc-row-free { position: absolute; top: 18px; right: 18px; z-index: 2; background: var(--seal); color: var(--paper); font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.08em; padding: 6px 13px; border-radius: 999px; }
.svc-row-text { flex: 1; }
.svc-badge-row { display: flex; align-items: center; gap: 14px; }
.svc-icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--paper-2);
  display: flex; align-items: center; justify-content: center; color: var(--seal);
}
.svc-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-num { font-family: "IBM Plex Mono", monospace; font-size: 14px; color: var(--slate-soft); letter-spacing: 0.05em; }
.svc-row-title { font-family: "Noto Serif KR", serif; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin-top: 20px; }
.svc-row-desc { color: var(--slate); font-size: 15.5px; line-height: 1.75; margin-top: 14px; max-width: 46ch; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.svc-tags span { background: var(--paper-2); color: var(--slate); font-size: 13px; padding: 8px 15px; border-radius: 999px; }

/* ============ TEAM ============ */
.team { max-width: 1180px; margin: 0 auto; padding: 128px 32px; }
.team .lead { max-width: none; white-space: nowrap; }
.team-card { position: relative; height: 340px; background: #FFFFFF; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); transition: box-shadow .5s var(--spring), transform .5s var(--spring), opacity .7s var(--spring), filter .7s var(--spring); }
.team-card:hover { box-shadow: 0 28px 56px -26px rgba(44,34,21,0.28); transform: translateY(-3px); }
.team-photo {
  position: absolute; inset: 0; background-size: cover; background-position: top center;
  filter: grayscale(0.6) sepia(0.1) contrast(1.02) brightness(1.05);
  opacity: 0.14;
}
.team-scrim {
  position: absolute; inset: 0; pointer-events: none;
}
.team-face { position: absolute; inset: 0; padding: 30px 26px; display: flex; flex-direction: column; }
.team-mono { font-family: "IBM Plex Mono", monospace; font-size: 34px; font-weight: 600; letter-spacing: 0.06em; color: rgba(181,103,58,0.28); line-height: 1; }
.team-name { font-family: "Noto Serif KR", serif; font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 18px; }
.team-role { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--seal-2); margin-top: 5px; letter-spacing: 0.04em; }
.team-bio { color: var(--slate); font-size: 13.5px; line-height: 1.6; margin-top: 14px; }
.team-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.team-tags span { border: 1px solid var(--line); color: var(--slate); font-family: "IBM Plex Mono", monospace; font-size: 10.5px; padding: 4px 9px; }

.team-panel {
  position: absolute; inset: 0; background: var(--paper);
  padding: 30px; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .45s var(--spring), transform .45s var(--spring);
}
.team-card:hover .team-panel, .team-card:focus-within .team-panel { opacity: 1; transform: none; pointer-events: auto; }
.team-panel .eyebrow { display: block; color: var(--seal); }
.team-panel-name { font-family: "Noto Serif KR", serif; font-size: 19px; font-weight: 700; color: var(--ink); margin-top: 8px; }
.team-panel-name span { font-family: "IBM Plex Mono", monospace; color: var(--slate); font-size: 12px; font-weight: 400; margin-left: 6px; }
.team-panel .svc-list { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.svc-list li { font-size: 14px; color: var(--slate); line-height: 1.5; padding: 6px 0; border-bottom: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: none; }

/* ============ PROCESS ============ */
.process { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-inner { max-width: 1180px; margin: 0 auto; padding: 128px 32px; }
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px 26px; transition: transform .5s var(--spring), box-shadow .5s var(--spring); }
.step:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(44,34,21,0.22); }
.step-no { font-family: "Noto Serif KR", serif; font-size: 34px; font-weight: 700; color: var(--seal); display: block; }
.step h3 { font-size: 18px; font-weight: 700; margin-top: 18px; font-family: "Noto Serif KR", serif; }
.step p { color: var(--slate); font-size: 14px; line-height: 1.65; margin-top: 10px; }

/* ============ FAQ ============ */
.faq { max-width: 860px; margin: 0 auto; padding: 128px 32px; }
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--paper-2); border-radius: var(--r-md); padding: 4px 24px; transition: background .3s var(--spring); }
.faq-item.open { background: var(--paper); box-shadow: 0 20px 40px -26px rgba(44,34,21,0.2); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.faq-q span:first-child { font-family: "Noto Serif KR", serif; font-size: 17px; font-weight: 600; color: var(--ink); }
.faq-sign { flex: none; font-family: "IBM Plex Mono", monospace; font-size: 16px; color: var(--seal); }
.faq-a { padding: 0 0 24px; color: var(--slate); font-size: 15px; line-height: 1.75; max-width: 62ch; display: none; }
.faq-item.open .faq-a { display: block; }

/* ============ CONTACT ============ */
.contact { background: var(--ink); }
.contact-inner { max-width: 1180px; margin: 0 auto; padding: 128px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.contact-lead { color: var(--slate-soft); font-size: 16px; line-height: 1.7; margin-top: 18px; max-width: 42ch; }
.contact-copy .btn-kakao { margin-top: 36px; }
.contact-card { background: var(--paper); padding: 40px; border-radius: var(--r-lg); }
.form-title { font-family: "Noto Serif KR", serif; font-size: 20px; font-weight: 700; }
.form-fields { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--slate); text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line);
  font-size: 15px; background: var(--paper-2); color: var(--ink); border-radius: var(--r-sm);
  transition: border-color .3s var(--spring), background .3s var(--spring);
}
.field select { color: var(--ink); appearance: none; background-image: none; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--seal); outline: none; background: var(--paper); }
.checkbox-row { display: flex; align-items: center; gap: 9px; color: var(--slate); font-size: 13px; }
.checkbox-row input { accent-color: var(--seal); width: auto; }
.form-error { color: var(--seal); font-size: 13px; line-height: 1.6; margin-top: 4px; }
.contact-success { text-align: center; padding: 44px 10px; }
.contact-success h3 { font-family: "Noto Serif KR", serif; font-size: 21px; font-weight: 700; }
.contact-success p { color: var(--slate); font-size: 15px; line-height: 1.7; margin-top: 10px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink-2); color: var(--slate-soft); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 32px 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-logo { display: flex; flex-direction: column; align-items: center; color: var(--paper-off); }
.footer-nav { display: flex; gap: 26px; font-size: 13px; }
.footer-nav a:hover { color: var(--seal-2); }
.footer-bottom { border-top: 1px solid var(--line-onink); margin-top: 34px; padding-top: 20px; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: rgba(139,138,147,0.8); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .why { grid-template-columns: 1fr; gap: 44px; padding-top: 96px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .svc-row, .svc-row:nth-child(even) { flex-direction: column; gap: 36px; }
  .svc-row-photo { flex: none; width: 100%; }
}
@media (max-width: 720px) {
  .nav-link { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 20px; }
  .hero { min-height: 92vh; }
  .hero-slate { top: 88px; }
  .seal-badge { width: 76px; height: 76px; right: 20px; bottom: 32px; }
  .hero-index { left: 20px; bottom: 32px; }
  .why, .services-inner, .team, .process-inner, .faq, .contact-inner { padding-top: 76px; padding-bottom: 76px; }
  .why-collage { aspect-ratio: 4/3.4; }
  .team .lead { white-space: normal; max-width: 44ch; }
  .svc-rows { gap: 56px; }
}
