/* 큰산세무회계 — 토큰 */
:root {
  --paper: #F1F0EC;
  --paper-2: #E7E5DF;
  --ink: #1B1B1A;
  --grey: #8C8A85;
  --grey-2: #B9B5AD;
  --line: #D8D5CD;
  --pine: #2F4A3B;
  --night: #1E201D;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 16px; }

/* 두 줄 세리프 제목: 첫 줄은 먹색, 둘째 줄은 회색 */
.display, .display-sm { font-family: var(--serif); font-weight: 300; letter-spacing: -0.045em; }
.display span, .display-sm span { display: block; }
.display .d2, .display-sm .d2 { color: var(--grey); }
.display { font-size: clamp(44px, 6.2vw, 104px); line-height: 1.06; }
.display span { white-space: nowrap; }
.display-sm { font-size: clamp(30px, 3.1vw, 48px); line-height: 1.16; }
.display-sm.on-dark .d1 { color: var(--paper); }
.display-sm.on-dark .d2 { color: #8E918A; }
.body-muted { color: #5E5C57; margin-top: 24px; max-width: 34em; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--pine); }
.btn-line { border-color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 40px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.logo-mark { width: 34px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: #4A4945; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-tel { text-decoration: none; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--ink); padding: 8px 14px; font-size: 14px; cursor: pointer; }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
.mobile-nav a { display: block; padding: 12px 0; text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--line); }

/* 섹션 공통 */
.section { padding: clamp(96px, 13vw, 180px) 0; }

/* ───────── Hero: Card File ───────── */
.hero { padding-top: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-top { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: end; }
.hero-side p { color: #4E4C48; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.file-stage { position: relative; height: clamp(340px, 40vw, 520px); margin-top: clamp(40px, 6vw, 80px); }
.file-hint { position: absolute; right: var(--gutter); top: 0; font-size: 13px; color: var(--grey); z-index: 2; }
.file { position: absolute; inset: 0; }
.fcard {
  position: absolute; left: 0; bottom: 0;
  width: var(--cw, 230px); height: var(--ch, 320px);
  transform-origin: 0 100%;
}
.fcard-lift { position: absolute; inset: 0; will-change: transform; }
.fcard-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 16px 18px;
  background: var(--c, #333);
  color: #F4F2EC;
  border: 0; text-align: left; cursor: pointer;
  box-shadow: -1px 0 0 rgba(255,255,255,.08) inset, 18px 0 40px -18px rgba(0,0,0,.45);
  font-family: var(--sans);
}
.fcard-face::after { /* 종이 결 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.09), rgba(255,255,255,0) 40%, rgba(0,0,0,.18));
}
.fcard-top { display: flex; flex-direction: column; gap: 2px; }
.fcard-name { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -0.04em; line-height: 1.2; }
.fcard-due { font-size: 12px; opacity: .75; white-space: nowrap; }
.fcard-more { margin-top: 14px; font-size: 14px; line-height: 1.55; opacity: 0; transition: opacity .35s var(--ease); max-width: 17em; }
.fcard.is-open .fcard-more { opacity: .92; }
.fcard-face:focus-visible { outline: 2px solid var(--paper); outline-offset: -6px; }

/* ───────── Word Stream ───────── */
.intro { padding-top: clamp(80px, 10vw, 140px); }
.stream-text {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 3.6vw, 52px); line-height: 1.38; letter-spacing: -0.04em;
  max-width: 21em;
}
.stream-text .w { display: inline-block; opacity: .14; will-change: opacity, filter; }

/* ───────── Bubble Tabs ───────── */
.who-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 32px; }
.tabs [role="tab"] {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 9px 18px; font-size: 15px; cursor: pointer; color: #4A4945;
  transition: background-color .25s, color .25s, border-color .25s;
}
.tabs [role="tab"]:hover { border-color: var(--ink); color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.panel-lead { font-weight: 600; margin-bottom: 18px; }
.panel-list li { padding: 14px 0; border-top: 1px solid var(--line); color: #55534E; font-size: 16px; }
.panel-list strong { display: block; color: var(--ink); font-weight: 600; }

.bubbles { position: relative; height: clamp(380px, 42vw, 600px); position: sticky; top: 110px; }
.bubble {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: 50%;
  background: var(--paper-2); color: var(--ink);
  font-size: var(--fs, 15px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25;
  padding: 8px;
  will-change: transform;
}
.bubble.b-dark { background: var(--ink); color: var(--paper); font-family: var(--serif); font-weight: 400; }
.bubble.b-pine { background: var(--pine); color: #EEF0EA; }
.bubble.b-line { background: transparent; border: 1px solid var(--grey-2); }

/* ───────── Services Index ───────── */
.svc-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); }
.svc-aside { position: relative; }
.svc-sticky { position: sticky; top: 22vh; margin-top: 56px; }
.svc-num { font-family: var(--serif); font-weight: 300; font-size: clamp(120px, 14vw, 210px); line-height: 1; letter-spacing: -0.06em; height: 1em; overflow: hidden; }
.odo { display: inline-flex; }
.odo-col { display: block; height: 1em; overflow: hidden; }
.odo-strip { display: block; will-change: transform; }
.odo-strip span { display: block; height: 1em; }
.svc-desc { margin-top: 28px; color: #4E4C48; max-width: 26em; min-height: 7em; }
.svc-list { padding: 20vh 0 22vh; }
.svc-item { border-top: 1px solid var(--line); }
.svc-item:last-child { border-bottom: 1px solid var(--line); }
.svc-row {
  display: flex; align-items: center; width: 100%;
  padding: 22px 0; background: none; border: 0; text-align: left; cursor: default;
  font-size: clamp(26px, 3vw, 42px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.2;
  color: var(--grey-2); transition: color .35s var(--ease);
}
.svc-item.is-active .svc-row { color: var(--ink); }
.svc-thumb {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 0; height: 1.5em; margin-right: 0; overflow: hidden;
  background: var(--c, var(--pine)); color: #F2F0EA;
  font-family: var(--serif); font-size: .62em; font-weight: 400;
}
.svc-tag { margin-left: auto; padding-left: 16px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--grey); align-self: center; }
.svc-inline { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Timeline Steps ───────── */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: 64px; }
.frame-col { position: relative; }
.frame { position: sticky; top: 14vh; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; overflow: hidden; background: var(--paper-2); }
.shot { position: absolute; inset: 0; padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; color: #F2F0EA; clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
.shot.is-on { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.shot-1 { background: var(--pine); }
.shot-2 { background: #8B5E47; }
.shot-3 { background: #3F4A55; align-items: center; justify-content: center; }
.shot-4 { background: var(--night); }
.shot-cap { font-size: 14px; opacity: .75; }
.shot-big { margin-top: auto; font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 8vw, 128px); line-height: .98; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.checks { margin-top: auto; }
.checks li { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -0.04em; padding: 10px 0 10px 44px; border-top: 1px solid rgba(255,255,255,.22); position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px; border: 1.5px solid currentColor; border-radius: 50%; }
.checks li::after { content: ""; position: absolute; left: 7px; top: 50%; width: 8px; height: 4px; margin-top: -4px; border-left: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(-45deg); }
.doc { position: relative; width: 72%; aspect-ratio: 3 / 4; background: #F4F2EC; color: var(--ink); padding: 9% 10%; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.doc-title { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -0.04em; margin-bottom: 10px; }
.doc-line { display: block; height: 8px; background: #DAD7CF; }
.doc-line.short { width: 60%; }
.stamp { position: absolute; right: 12%; bottom: 12%; width: 84px; height: 84px; border: 2.5px solid #B4432F; color: #B4432F; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; transform: rotate(-12deg); }
.cal { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); }
.cal div { background: var(--night); padding: 10px 10px 14px; min-height: 76px; font-size: 13px; }
.cal b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: -0.03em; }
.cal span { display: block; opacity: .72; font-size: 12px; line-height: 1.45; margin-top: 4px; }
.steps li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: .32; transition: opacity .45s var(--ease); }
.steps li.is-active { opacity: 1; }
.steps li:first-child { min-height: 46vh; justify-content: flex-start; }
.step-no { font-size: 14px; color: var(--grey); font-variant-numeric: tabular-nums; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.045em; margin: 10px 0 14px; }
.steps p { color: #4E4C48; max-width: 24em; }

/* ───────── 수수료 ───────── */
.fees-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.fee-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fee-table th, .fee-table td { padding: 18px 0; border-bottom: 1px solid var(--line); text-align: left; }
.fee-table thead th { font-size: 14px; font-weight: 500; color: var(--grey); padding-top: 0; }
.fee-table tbody th { font-weight: 500; font-size: 16px; }
.fee-table td { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.03em; width: 28%; line-height: 1.2; }
.roll { display: inline-flex; height: 1.2em; line-height: 1.2; overflow: hidden; vertical-align: top; }
.roll .odo-col { height: 1.2em; }
.roll .odo-strip span { height: 1.2em; }

/* ───────── Card Expand: 세무사 ───────── */
.expand { padding: 0 0 clamp(40px, 6vw, 80px); }
.expand-card {
  background: var(--night); color: #E9E7E1;
  padding: clamp(96px, 12vw, 170px) 0;
  clip-path: inset(0 var(--inset, 0px) round var(--radius, 0px));
}
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: 72px; }
.person { border-top: 1px solid rgba(255,255,255,.18); padding-top: 28px; }
.person-role { font-size: 14px; color: #9B9D95; }
.person h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5vw, 72px); letter-spacing: -0.05em; margin: 6px 0 26px; color: var(--paper); }
.career li { padding: 7px 0 7px 18px; position: relative; color: #A9AAA3; font-size: 16px; }
.career li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border: 1px solid #6E706A; border-radius: 50%; }
.career li.now { color: #ECEAE4; }
.career li.now::before { background: #9DB59F; border-color: #9DB59F; }
.career-key { margin-top: 40px; font-size: 14px; color: #9B9D95; display: flex; align-items: center; gap: 8px; }
.dot-now { width: 6px; height: 6px; border-radius: 50%; background: #9DB59F; }

/* ───────── 세무 정보 ───────── */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.journal-list { margin-top: 56px; }
.journal-list a {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--line); text-decoration: none;
  transition: padding-left .35s var(--ease);
}
.journal-list li:last-child a { border-bottom: 1px solid var(--line); }
.journal-list a:hover { padding-left: 12px; }
.journal-list time { font-size: 14px; color: var(--grey); font-variant-numeric: tabular-nums; }
.j-title { font-family: var(--serif); font-size: clamp(20px, 2vw, 27px); letter-spacing: -0.04em; line-height: 1.35; }
.j-tag { font-size: 13px; color: var(--grey); }

/* ───────── FAQ ───────── */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font-size: 19px; font-weight: 600; letter-spacing: -0.03em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .faq-list summary::before { content: ""; position: absolute; right: 4px; top: 50%; width: 16px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.faq-list summary::before { transform: rotate(90deg); }
.faq-list details[open] summary::before { transform: rotate(0deg); }
.faq-body { padding: 0 40px 26px 0; color: #4E4C48; max-width: 40em; }

/* ───────── 상담 신청 ───────── */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.contact-lines { margin-top: 40px; }
.contact-lines div { display: grid; grid-template-columns: 90px 1fr; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-lines dt { color: var(--grey); font-size: 15px; }
.contact-lines a { text-decoration: none; font-weight: 600; }
.contact-lines a:hover { text-decoration: underline; }
.contact-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.field > label, .field legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 4px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); padding: 14px 16px; border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; font-size: 15px; transition: background-color .2s, color .2s, border-color .2s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--pine); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #4E4C48; }
.agree input { margin-top: 6px; accent-color: var(--ink); }
.form-msg { font-size: 15px; min-height: 1.5em; color: var(--pine); font-weight: 600; }
.form-msg.is-error { color: #A13A26; }
.contact-form .btn { justify-self: start; }

/* ───────── 찾아오는 길 ───────── */
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin-top: 64px; }
.office { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; }
.office h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.04em; }
.office .addr { margin: 10px 0 20px; color: #3E3D3A; }
.office dl div { display: grid; grid-template-columns: 64px 1fr; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.office dt { color: var(--grey); }
.text-link { margin-top: 22px; font-weight: 600; font-size: 15px; text-underline-offset: 4px; }

/* 푸터 */
.site-footer { background: var(--ink); color: #A8A69F; padding: 64px 0 32px; font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-name { color: var(--paper); font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; color: #DAD8D1; }
.footer-links a:hover { text-decoration: underline; }
.copyright { margin-top: 48px; font-size: 13px; color: #6F6D68; }

/* ───────── 반응형 ───────── */
@media (max-width: 1080px) {
  .nav, .header-tel { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .header-actions { display: none; }
  .menu-toggle { display: inline-block; }
  .hero-top, .who-grid, .svc-grid, .steps-grid, .fees-grid, .people-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .file-hint { left: var(--gutter); right: auto; top: -28px; }
  .bubbles { position: relative; top: 0; height: 400px; order: -1; }
  .who-grid .bubbles { order: 0; }
  /* 업무 목록: 고정 영역 대신 항목 안에 설명 */
  .svc-sticky { display: none; }
  .svc-list { padding: 24px 0 0; }
  .svc-row { color: var(--ink); }
  .svc-thumb { width: 1.5em; margin-right: .4em; }
  .svc-inline { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; padding: 0 0 22px; color: #4E4C48; font-size: 15px; }
  /* 상담 절차: 프레임을 숨기고 단계만 */
  .frame-col { display: none; }
  .steps li, .steps li:first-child { min-height: 0; opacity: 1; padding: 28px 0; border-top: 1px solid var(--line); }
  .journal-list a { grid-template-columns: 1fr; gap: 6px; }
  .expand-card { clip-path: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .stream-text .w { opacity: 1 !important; filter: none !important; }
}
