/* Shared layout and components. Each design's theme.css sets the tokens below and adds its own character.
   Tokens: --bg --surface --surface-2 --ink --muted --line --brand --brand-ink --accent --accent-ink
           --font-head --font-body --head-weight --radius --radius-sm --hero-bg */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem;
  line-height: 1.65; font-kerning: normal; font-variant-numeric: tabular-nums; }
.lang-ko { word-break: keep-all; overflow-wrap: anywhere; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.35rem); letter-spacing: -.012em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); }
h3 { font-size: 1.2rem; }
.lang-ko h1 { letter-spacing: -.02em; line-height: 1.3; }
.lang-ko h2, .lang-ko h3 { line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); padding: 10px 14px; }
.skip:focus { left: 8px; }
.draft-bar { background: #FFF3C4; color: #4A3A00; font-size: .88rem; text-align: center; padding: 8px 16px; }
.tag-draft { display: inline-block; margin-left: .5em; padding: 1px 8px; border-radius: 999px; background: #FFF3C4; color: #4A3A00;
  font: 600 .72rem/1.6 var(--font-body); vertical-align: middle; letter-spacing: 0; }
p.tag-draft { margin: .4em 0 1em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-sm); font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover, var(--brand)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong, var(--line)); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-call { background: var(--brand); color: var(--brand-ink); min-height: 42px; padding: 9px 16px; font-size: .95rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg, var(--bg)); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--mark-radius, 6px);
  background: var(--brand); color: var(--brand-ink); font: 700 1.05rem/1 var(--font-head); letter-spacing: .02em; flex: none; }
.brand-mark.big { width: 64px; height: 64px; font-size: 1.6rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font: var(--head-weight) 1.12rem/1.2 var(--font-head); }
.brand-sub { font-size: .8rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 0; display: inline-block; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-underline-offset: .45em; }
.lang-switch { font-weight: 600; text-decoration: none; padding: 9px 12px; border: 1px solid var(--line-strong, var(--line)); border-radius: var(--radius-sm); color: var(--ink); }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong, var(--line)); border-radius: var(--radius-sm); font: 600 .95rem var(--font-body); cursor: pointer; }
.menu-icon { width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    gap: 12px; padding: 16px; background: var(--header-bg, var(--bg)); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .lang-switch, .btn-call { text-align: center; }
  .brand-sub { display: none; }
  .lang-quick { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 10px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; flex: none; }
  .head-row { gap: 10px; }
  .brand { min-width: 0; }
  .brand-name { white-space: nowrap; font-size: 1.02rem; }
  .menu-btn { flex: none; white-space: nowrap; }
  .site-nav .lang-switch { display: none; }
}
@media (min-width: 961px) { .lang-quick { display: none; } }
@media (max-width: 420px) { .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .menu-btn { padding: 8px 11px; } }

/* Sections */
.section { padding: clamp(56px, 4vw + 32px, 104px) 0; }
.section-tight { padding: clamp(36px, 3vw + 20px, 64px) 0; }
.section-head { display: grid; gap: 4px 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 0 0 .5em; max-width: 52ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }
.small-h { font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin: 1.4em 0 .5em; }

/* Hero (layout per design; shared bones) */
.hero { background: var(--hero-bg, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(40px, 5vw, 88px) 0; }
.hero-copy h1 { max-width: 18ch; }
.lang-ko .hero-copy h1 { max-width: 16em; }
.eyebrow { font-weight: 600; color: var(--accent-text, var(--brand)); margin-bottom: 1em; font-size: .98rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-note { color: var(--muted); font-size: .95rem; }
.hero-media { margin: 0; }
.hero-img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-img { aspect-ratio: 3 / 2; } }

/* Services: ledger rows */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger-row a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px 40px; align-items: baseline;
  padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.ledger-row a:hover { background: var(--surface-2); }
.ledger-name { margin: 0; font-size: 1.22rem; }
.ledger-summary { margin: 0; color: var(--muted); }
.ledger-more { color: var(--brand); font-weight: 600; font-size: .95rem; white-space: nowrap; text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 760px) { .ledger-row a { grid-template-columns: 1fr; } }

/* Services: grid tiles */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-tile a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px 22px 28px; text-decoration: none; color: var(--ink);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.svc-tile a:hover { background: var(--surface-2); }
.svc-tile .icon { color: var(--brand); }
.svc-tile h2, .svc-tile h3 { font-size: 1.12rem; margin: 6px 0 0; }
.svc-tile p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* Services: soft list */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc-list a { display: flex; gap: 18px; align-items: flex-start; padding: 22px; text-decoration: none; color: var(--ink);
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); height: 100%; }
.svc-list a:hover { border-color: var(--brand); }
.svc-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); color: var(--brand); }
.svc-body { display: flex; flex-direction: column; gap: 4px; }
.svc-body h2, .svc-body h3 { font-size: 1.15rem; margin: 0; }
.svc-body > span { color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } }

/* Process + why */
.process-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.detail-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1.5px solid var(--brand); color: var(--brand); font: 700 1.1rem/1 var(--font-head); }
.steps h3 { margin: 6px 0 0; font-size: 1.12rem; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; } }
.why { background: var(--surface-2); }
.why-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.why-grid li { border-top: 2px solid var(--brand); padding-top: 18px; }
.why-grid p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Office */
.office-grid, .profile-grid { display: grid; grid-template-columns: minmax(0, 544px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.office-photo, .profile-photo { margin: 0; }
.real-photo { width: 100%; max-width: 544px; border-radius: var(--radius); }
@media (max-width: 860px) { .office-grid, .profile-grid { grid-template-columns: 1fr; } }
.contact-lines { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.contact-lines li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
.lang-ko .contact-lines li { grid-template-columns: 64px minmax(0, 1fr); }
.cl-label { color: var(--muted); font-size: .92rem; padding-top: .1em; }
.contact-lines a { color: var(--ink); overflow-wrap: anywhere; }
.hours { margin: 0 0 18px; display: grid; gap: 6px; }
.hours div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.hours dt { color: var(--muted); } .hours dd { margin: 0; }

/* CTA band */
.cta-band { background: var(--cta-bg, var(--brand)); color: var(--cta-ink, var(--brand-ink)); }
.cta-band h2, .cta-band p { color: inherit; }
.cta-band p { opacity: .88; margin: 0; max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(40px, 4vw, 64px) 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: var(--cta-btn, var(--brand-ink)); color: var(--cta-btn-ink, var(--brand)); }
.cta-band .btn-ghost { color: inherit; border-color: currentColor; }

/* Page heads, breadcrumbs */
.crumbs { padding-top: 22px; font-size: .9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong, var(--muted)); }
.crumbs a { color: var(--muted); }
.page-head { padding: clamp(24px, 3vw, 48px) 0 clamp(20px, 2vw, 32px); }
.page-head h1 { max-width: 24ch; }
.lang-ko .page-head h1 { max-width: 20em; }
.svc-head-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--brand); margin-bottom: 18px; }

/* Service detail */
.svc-body-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.svc-col h2 { font-size: 1.35rem; margin-top: 0; }
.svc-col h2 + ul { margin-bottom: 2.2em; }
.check-list, .plain-list, .box-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li, .box-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.plain-list li { padding-left: 18px; position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.bring-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 100px; }
.box-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border: 1.5px solid var(--muted); border-radius: 3px; }
@media (max-width: 860px) { .svc-body-grid { grid-template-columns: 1fr; } .bring-card { position: static; } }
.chip-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-links a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; color: var(--ink); text-decoration: none; }
.chip-links a:hover { border-color: var(--brand); color: var(--brand); }

/* FAQ */
.faq-h { font-size: 1.3rem; margin: 1.8em 0 .6em; }
.faq-h:first-child { margin-top: 0; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.4rem; color: var(--brand); }
.qa[open] summary::after { content: "–"; }
.qa p { margin: 0 0 18px; color: var(--muted); max-width: 68ch; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-info .office-photo { margin-top: 28px; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.contact-form h2 { font-size: 1.4rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; font: 400 1rem/1.4 var(--font-body);
  color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong, var(--line)); border-radius: var(--radius-sm); }
.field textarea { resize: vertical; }
.hint { font-size: .88rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #1D6B3A; } .form-status.err { color: #A2261F; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Legal */
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--foot-bg, var(--ink)); color: var(--foot-ink, #fff); padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: inherit; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot-name { font: var(--head-weight) 1.3rem/1.2 var(--font-head); margin: 0; }
.foot-sub { opacity: .75; margin: 2px 0 0; }
.site-footer .contact-lines a { color: inherit; }
.site-footer .cl-label, .site-footer .hours dt { color: inherit; opacity: .7; }
.foot-h { font: 700 .95rem/1.3 var(--font-body); color: inherit; margin: 0 0 14px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-links a { text-decoration: none; opacity: .88; } .foot-links a:hover { text-decoration: underline; opacity: 1; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 40px; padding-top: 22px; font-size: .88rem; opacity: .82; }
.foot-legal p { max-width: 90ch; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-meta a { display: inline-block; padding: 4px 0; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Language chooser (root) and 404 */
.chooser { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; background: var(--chooser-bg, var(--bg)); }
.chooser-card { width: min(640px, 100%); text-align: center; }
.chooser-card .brand-mark { margin: 0 auto 22px; }
.chooser-name { font: var(--head-weight) clamp(1.9rem, 1.4rem + 2vw, 2.7rem)/1.2 var(--font-head); margin: 0; color: var(--chooser-ink, var(--ink)); word-break: keep-all; }
.chooser-name-en { font: 500 1.15rem/1.4 var(--font-body); color: var(--chooser-muted, var(--muted)); margin: 6px 0 34px; }
.chooser-h { font: 600 1rem/1.5 var(--font-body); color: var(--chooser-muted, var(--muted)); margin: 0 0 18px; }
.chooser-h span { display: inline-block; margin: 0 6px; }
.chooser-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choose { display: flex; flex-direction: column; gap: 6px; padding: 26px 20px; text-decoration: none; border-radius: var(--radius);
  background: var(--surface); border: 1.5px solid var(--line-strong, var(--line)); color: var(--ink); text-align: left; }
.choose:hover, .choose:focus-visible { border-color: var(--brand); }
.choose-lang { font: var(--head-weight) 1.5rem/1.2 var(--font-head); color: var(--brand); }
.choose-line { color: var(--muted); font-size: .95rem; word-break: keep-all; }
.chooser-foot { margin-top: 28px; color: var(--chooser-muted, var(--muted)); font-size: .95rem; }
.chooser-foot a { color: inherit; font-weight: 600; }
@media (max-width: 520px) { .chooser-buttons { grid-template-columns: 1fr; } }


/* Proof strip under the hero */
.proof { list-style: none; margin: 0; padding: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 10px 36px; border-top: 1px solid var(--line); }
.proof li { position: relative; padding-left: 26px; font-weight: 600; font-size: .98rem; }
.proof li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 12px; height: 7px; border-left: 2px solid var(--accent-text, var(--brand)); border-bottom: 2px solid var(--accent-text, var(--brand)); transform: rotate(-45deg); }

/* Two service paths */
.svc-groups { display: grid; gap: 44px; }
.group-h { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; color: var(--muted); margin: 0 0 14px; }

.more-link { margin: 18px 0 0; font-weight: 600; }

/* Mobile call bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1.4fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--brand); border-top: 1px solid rgba(255,255,255,.2); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: grid; place-items: center; min-height: 56px; color: var(--brand-ink); font-weight: 700; text-decoration: none; }
  .mobile-bar a + a { border-left: 1px solid rgba(255,255,255,.25); }
  body:not(.page-chooser):not(.page-404) { padding-bottom: 56px; }
  body.page-chooser .mobile-bar, body.page-404 .mobile-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .cta-band, .draft-bar { display: none; } }
