:root {
  color-scheme: light;
  --ink: #172927;
  --deep: #142625;
  --green: #29403b;
  --mint: #edf2ef;
  --paper: #f8f9f6;
  --muted: #51605d;
  --line: #d7dfd9;
  --gold: #dfbb83;
  --bronze: #76542b;
  --serif: 'Noto Serif KR', 'Batang', 'Georgia', serif;
  --sans: 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); overflow-wrap: break-word; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, dl, dd, ol { margin: 0; }
h1, h2, h3 { word-break: keep-all; }
section[id] { scroll-margin-top: 1.5rem; }

:focus-visible { outline: .1875rem solid #9c642e; outline-offset: .25rem; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.frame { width: min(100% - 5.5rem, 75rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.skip-link { position: absolute; z-index: 10; top: .75rem; left: .75rem; padding: .75rem 1rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { color: var(--ink); background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 5.125rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand-mark { height: 2.5rem; width: 2.5rem; display: grid; place-items: center; border: 1px solid #a47c48; color: var(--bronze); font: 1.3rem/1 var(--serif); }
.brand-type { display: flex; flex-direction: column; line-height: 1.12; }
.brand-type small { font-size: .75rem; letter-spacing: -.03em; }
.brand-type strong { margin-top: .2rem; font: 700 1.475rem/1 var(--serif); letter-spacing: .12em; }
.main-nav { display: flex; gap: clamp(1.05rem, 3vw, 2.5rem); font-size: .9375rem; font-weight: 700; }
.main-nav a { text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.125rem; padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: .2rem; font-size: .9625rem; font-weight: 700; white-space: nowrap; text-decoration: none; transition: background .18s, color .18s, border-color .18s; }
.button-small { min-height: 2.625rem; padding: .5rem .85rem; font-size: .875rem; }
.header-phone { gap: .35rem; min-height: 2.75rem; font-variant-numeric: tabular-nums; }
.button-dark { background: var(--deep); color: white; }
.button-dark:hover { background: #32504a; }
.button-gold { background: var(--gold); color: #1d2926; }
.button-gold:hover { background: #f1d4a7; }
.button-outline { border-color: #a1b1a9; color: white; }
.button-outline:hover { background: #243d36; border-color: #ddd9c8; }
.inline-action { display: inline-block; color: var(--bronze); font-size: .9375rem; font-weight: 700; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.inline-action:hover { color: var(--ink); }

.has-page-navigation body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.has-page-navigation #main {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  grid-template-rows: minmax(0, 1fr);
  overflow: auto hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.has-page-navigation #main::-webkit-scrollbar { display: none; }
.page-panel {
  min-width: 0;
  overflow: hidden auto;
  overscroll-behavior-y: contain;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.page-panel > :is(.hero, .deal-section, .lawyers) { min-height: 100%; }
.has-page-navigation main .section { padding-block: clamp(2rem, 5vw, 4.5rem); }
.page-navigation { padding: .5rem 0 calc(.5rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--paper); }
.page-navigation-inner { display: grid; grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr) minmax(4.5rem, auto); align-items: center; gap: .65rem; }
.page-navigation .button { min-height: 2.75rem; padding: .4rem .85rem; }
.page-previous { border-color: #a2b2a8; background: #edf2ef; color: var(--ink); }
.page-previous:hover { background: #dce7e0; }
.page-navigation .button:disabled { opacity: .45; cursor: default; }
.page-position { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 0 .55rem; text-align: center; line-height: 1.3; }
.page-position strong { font-size: .9375rem; word-break: keep-all; }
.page-position span { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.hero {
  position: relative;
  display: grid;
  isolation: isolate;
  align-items: center;
  min-height: 36rem;
  overflow: clip;
  background: #122526;
  color: #fff;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 28%;
  z-index: -2;
  background: #20383a url('assets/seoul-commercial-building.webp') 68% 53% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #122526 21%, #122526e6 45%, #12252635 86%);
}
.hero-layout { padding-block: clamp(3rem, 7vw, 6rem); }
.hero-copy { max-width: 51rem; }
.eyebrow { color: var(--bronze); font-size: .875rem; font-weight: 800; letter-spacing: .035em; }
.hero .eyebrow { color: #eed1a0; }
.hero h1 {
  margin-top: .72rem;
  font: 800 clamp(2.7rem, 5.1vw, 4.75rem)/1.15 var(--sans);
  letter-spacing: -.071em;
  text-wrap: balance;
}
.hero h1 em { color: #f1d6aa; font-style: normal; }
.mobile-break { display: none; }
.hero-description { max-width: 26rem; margin-top: 1.18rem; color: #e5eeeb; font-size: 1.063rem; line-height: 1.55; word-break: keep-all; }
.hero-action { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: clamp(1.55rem, 4vw, 3rem); }
.hero-action .button { border-radius: .35rem; }
.hero-contact { display: inline-flex; align-items: center; min-height: 2.75rem; color: #fff; font-size: .9375rem; font-weight: 700; text-underline-offset: .3em; }

.section-head h2, .appointment h2 { font: 800 clamp(1.95rem, 3.9vw, 3.3rem)/1.22 var(--sans); letter-spacing: -.067em; }
.section-head > p:not(.eyebrow), .appointment-info > p:first-of-type { max-width: 35rem; margin-top: .85rem; color: var(--muted); line-height: 1.6; word-break: keep-all; }
.section-head .eyebrow { margin-bottom: .55rem; }
.deal-section { border-bottom: 1px solid var(--line); }
.deal-layout { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.deal-layout .section-head { position: relative; padding-top: .8rem; }
.deal-layout .section-head::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 2.25rem; height: 2px; background: var(--bronze); }
.deal-facts { background: #f8f7f2; }
.deal-paper { padding: clamp(1.05rem, 3vw, 1.75rem); border: 1px solid #d4dad3; border-top: .25rem solid #38584d; border-radius: .2rem; background: #fff; word-break: keep-all; }
.deal-paper h3 { font-size: clamp(1.12rem, 2vw, 1.3rem); font-weight: 800; letter-spacing: -.04em; }
.deal-entries { margin-top: .55rem; }
.deal-entries > div { padding-block: .72rem; border-top: 1px solid #dce2dd; }
.deal-entries > div:last-child { padding-bottom: .1rem; }
.deal-entries dt { color: #294b40; font-weight: 800; }
.deal-entries dd { margin-top: .2rem; color: #384740; line-height: 1.5; }
.deal-closing { background: #182d2c; color: #fff; }
.deal-closing .section-head::before { background: var(--gold); }
.deal-closing .eyebrow, .closing-steps li > span { color: #f0ce98; }
.deal-closing .section-head > p:not(.eyebrow) { color: #d8e5e0; }
.closing-steps { display: grid; gap: .55rem; padding: 0; list-style: none; }
.closing-steps li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .38rem .9rem; align-items: baseline; padding: .9rem 1.08rem; border: 1px solid #58716a; border-radius: .3rem; background: #213a36; word-break: keep-all; }
.closing-steps li > span { font-size: .875rem; font-weight: 800; }
.closing-steps li strong { display: block; line-height: 1.35; }
.closing-steps li p { margin-top: .24rem; color: #deebe6; line-height: 1.5; }
.deal-failure { background: #f2eee6; }
.deal-failure .deal-paper { border-top-color: #8c6333; }
.deal-failure .deal-entries dt { color: #654824; }
.case-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .35rem; }
.deal-service { background: #eaf0eb; }
.service-topics { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.service-topics li { border: 1px solid #a8b6ac; border-radius: .25rem; padding: .22rem .55rem; color: #26483c; font-size: .875rem; font-weight: 700; }
.service-cta { margin-top: 1.25rem; border-radius: .35rem; }
.service-stages { border-block: 1px solid #adbbb2; }
.service-stage { padding: .95rem .85rem; word-break: keep-all; }
.service-stage + .service-stage { border-top: 1px solid #adbbb2; }
.service-stage h3 { color: #25493c; font-size: 1.05rem; }
.service-stage p { margin-top: .22rem; color: #384740; line-height: 1.5; }
.service-stage .inline-action { display: inline-flex; align-items: center; min-height: 2.75rem; }

.lawyers { border-block: 1px solid var(--line); background: #edf2ee; }
.lawyer-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: start; gap: 1.2rem clamp(1rem, 3vw, 2.75rem); }
.lawyer-layout .section-head { grid-column: 1 / -1; margin-bottom: 0; }
.profile-photo { display: block; width: 100%; max-width: 27rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; border: 1px solid var(--line); border-radius: .8rem; }
.profile-card { min-width: 0; padding: clamp(1rem, 3vw, 1.8rem); background: #fff; border: 1px solid var(--line); border-radius: .8rem; word-break: keep-all; }
.profile-card h3 { font: 700 clamp(1.18rem, 2.3vw, 1.65rem)/1.35 var(--serif); letter-spacing: -.04em; }
.profile-card > p { color: var(--muted); margin: .45rem 0 .85rem; }
.profile-career { border-top: 1px solid var(--line); }
.profile-career > div { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr); gap: .5rem; padding: .48rem 0; border-bottom: 1px solid var(--line); }
.profile-career dt { color: var(--bronze); font-size: .875rem; font-weight: 700; }
.profile-career dd { font-size: .9375rem; }
.profile-work { margin-top: 1.2rem; }
.profile-work h4 { margin: 0 0 .45rem; font-size: 1.1rem; }
.profile-work ul { margin: .15rem 0 .65rem; padding-inline-start: 1.1rem; color: var(--muted); font-size: .9rem; }
.profile-work li + li { margin-top: .3rem; }
.profile-period { margin: .7rem 0 .25rem; color: var(--ink); font-size: .925rem; font-weight: 700; }
.profile-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .55rem; }

.appointment { display: grid; grid-template-columns: .85fr 1.15fr; grid-template-rows: auto 1fr; column-gap: clamp(1.75rem, 5vw, 4.75rem); row-gap: 1.2rem; }
.appointment-phone { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; margin-top: .85rem; }
.contact-call { gap: .5rem; font-variant-numeric: tabular-nums; }
.contact-call strong { font-size: 1.0625rem; }
.contact-hours { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.intake-form { grid-column: 2; grid-row: 1 / span 2; align-self: start; min-width: 0; border: 1px solid var(--line); border-radius: .8rem; background: #fff; padding: clamp(1rem, 3vw, 1.7rem); }
.intake-title { font-size: 1.0625rem; margin-bottom: .8rem; }
.intake-fields { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.intake-form label { display: block; min-width: 0; font-weight: 700; font-size: .9375rem; }
.intake-form input, .intake-form select { display: block; width: 100%; margin-top: .3rem; min-height: 2.75rem; border: 1px solid #a2b2a8; border-radius: .2rem; padding: .45rem .55rem; background: #fbfdfb; color: var(--ink); font-size: 1rem; font-weight: 400; }
.intake-form select { appearance: none; padding-right: 1.4rem; background: linear-gradient(45deg, transparent 50%, #475953 50%) right .8rem center / 5px 5px no-repeat, linear-gradient(135deg, #475953 50%, transparent 50%) right .5rem center / 5px 5px no-repeat #fbfdfb; }
.intake-privacy { margin-top: .9rem; padding: .7rem .85rem; background: var(--mint); color: var(--muted); font-size: .875rem; line-height: 1.45; word-break: keep-all; }
.intake-privacy h3 { color: var(--ink); font-size: .9375rem; }
.intake-privacy dl { margin-block: .35rem; }
.intake-privacy dl div { display: grid; grid-template-columns: 4em 1fr; gap: .35rem; }
.intake-privacy dt { font-weight: 700; }
.intake-submit { width: 100%; margin-top: .85rem; }
.intake-submit:disabled { opacity: .65; cursor: default; }
.form-status { margin-top: .65rem; color: var(--muted); font-size: .9375rem; font-weight: 700; word-break: keep-all; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { color: #184e40; }
.form-status[data-state="error"] { color: #8d2c20; }

.site-footer { color: #e5eeea; background: #152726; padding: 1.75rem 0; }
.footer-layout { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.site-footer p, .footer-links { font-size: .875rem; }
.site-footer p { margin-top: .25rem; color: #c7d6d0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1.1rem; }
.footer-links a { text-underline-offset: .3em; }

body.mobile-preview {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: #e6ebe8;
}
.mobile-preview-screen {
  display: block;
  width: min(100%, 412px);
  height: min(100vh, 893px);
  height: min(100dvh, 893px);
  border: 0;
  background: var(--paper);
}
@media (min-width: 27rem) and (min-height: 50rem) {
  .mobile-preview-screen { border-radius: 1.1rem; box-shadow: 0 .6rem 2.5rem #14262526; }
}

@media (max-width: 56rem) {
  .frame { width: min(100% - 3rem, 75rem); }
  .hero-art { inset-inline-start: 12%; }
  .appointment { grid-template-columns: .75fr 1.25fr; gap: 1.35rem; }
}

@media (max-width: 42rem) {
  :root { --mobile-header-height: 3.625rem; }
  .frame { width: min(100% - 2.5rem, 75rem); }
  .header-inner { min-height: var(--mobile-header-height); gap: .75rem; }
  .main-nav { display: none; }
  .page-navigation-inner { grid-template-columns: minmax(4.75rem, auto) minmax(0, 1fr) minmax(4.75rem, auto); }
  .page-navigation .button { min-height: 3rem; }
  .hero { min-height: auto; }
  .hero-art { inset: 0 0 0 0; background-position: 59% 45%; }
  .hero::after { background: linear-gradient(180deg, #122526b0 0%, #12252683 43%, #122526f7 86%), linear-gradient(90deg, #122526b9, #12252617); }
  .hero-layout {
    display: grid;
    grid-template-rows: minmax(min-content, 1fr) auto;
    align-self: stretch;
    gap: 1.25rem;
    padding-block: clamp(1.8rem, 7.5svh, 4rem) 1.1rem;
  }
  .hero h1 { font-size: clamp(2.04rem, 9vw, 3.4rem); text-wrap: initial; }
  .mobile-break { display: initial; }
  .hero-description { max-width: 22rem; margin-top: .85rem; font-size: 1rem; }
  .hero-action { display: grid; gap: .22rem; margin-top: 0; }
  .hero-contact { justify-content: center; }
  .has-page-navigation main .section { padding-block: 1.5rem; }
  .section-head h2, .appointment h2 { font-size: clamp(1.88rem, 7.2vw, 2.38rem); }
  .section-head > p:not(.eyebrow), .appointment-info > p:first-of-type { margin-top: .7rem; }
  .deal-layout { grid-template-columns: 1fr; gap: 1.15rem; }
  .deal-paper { padding: .85rem .9rem; }
  .deal-entries > div { padding-block: .6rem; }
  .closing-steps li { grid-template-columns: 4rem minmax(0, 1fr); gap: .5rem; padding: .75rem .68rem; }
  .closing-steps li p { font-size: .9375rem; }
  .service-cta { width: 100%; margin-top: .9rem; }
  .service-stage { padding: .7rem .45rem; }
  .appointment { grid-template-columns: 1fr; grid-template-rows: auto; }
  .intake-form { grid-column: auto; grid-row: auto; }
  .lawyer-layout { grid-template-columns: minmax(0, 1fr) clamp(7rem, 30vw, 8.75rem); align-items: center; }
  .lawyer-layout .section-head { grid-column: auto; }
  .profile-card { grid-column: 1 / -1; }
  .footer-layout { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 42rem) and (max-height: 44rem) {
  .hero-layout { padding-block: 1.5rem .75rem; }
}

@media (max-width: 24rem) {
  .header-inner { gap: .5rem; }
  .header-phone { gap: .25rem; padding-inline: .5rem; }
  .form-grid { grid-template-columns: 1fr; gap: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
