:root {
  color-scheme: light;
  --paper: #f0f4f9;
  --white: #fff;
  --ink: #17263a;
  --muted: #4d6074;
  --line: #dce4ee;
  --navy: #112e53;
  --blue: #1a4371;
  --red: #c72c3a;
  --radius: .875rem;
  --sticky-offset: 6rem;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--sticky-offset); }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible, iframe:focus-visible { outline: 3px solid #d53443; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.28; letter-spacing: -.045em; }
h2 { font-size: clamp(1.32rem, 2.3vw, 1.75rem); font-weight: 660; }
h3 { font-size: 1.17rem; font-weight: 650; }
.icon { display: inline-block; width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.wrap { width: min(100% - 4rem, 75rem); margin-inline: auto; }
.skip { position: fixed; top: 0; left: 1rem; z-index: 20; transform: translateY(-120%); padding: .7rem 1rem; background: white; color: var(--navy); }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; min-height: 4.9rem; align-items: center; gap: clamp(1.65rem, 4.5vw, 3.75rem); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .68rem; line-height: 1.25; }
.brand-mark {
  position: relative;
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border-radius: .52rem;
  background: var(--navy);
  color: white;
  font-family: Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 750;
  letter-spacing: -.045em;
}
.brand-mark::after { position: absolute; bottom: .34rem; width: .95rem; height: .125rem; border-radius: .125rem; background: #f05e68; content: ""; }
.brand-name { color: var(--navy); font-size: clamp(.98rem, 1.85vw, 1.17rem); letter-spacing: -.055em; font-weight: 730; }
.brand-name span { color: var(--red); }
.main-nav { display: flex; margin-left: auto; align-self: stretch; align-items: stretch; gap: clamp(1.35rem, 2.65vw, 2.4rem); white-space: nowrap; }
.main-nav a { display: grid; position: relative; place-items: center; color: #314257; font-size: .955rem; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: var(--navy); }
.main-nav a[aria-current="page"] { font-weight: 650; }
.main-nav a[aria-current="page"]::after { position: absolute; right: 0; bottom: .9rem; left: 0; height: 2px; background: var(--red); content: ""; }
.header-phone { display: flex; align-items: center; gap: .47rem; font-size: .96rem; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone .icon { width: 1.07rem; height: 1.07rem; color: var(--red); }
.home-main { padding-block: 1.6rem 4rem; }
.hero-card { overflow: hidden; border-radius: var(--radius); background: var(--navy); box-shadow: 0 10px 30px rgb(20 42 72 / .075); }
.hero { position: relative; display: flex; align-items: center; min-height: clamp(27rem, 43vw, 34rem); isolation: isolate; color: white; }
.hero-visual, .hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual { z-index: -2; }
.hero-image { object-fit: cover; object-position: 54% 52%; opacity: 0; transition: opacity .55s ease; }
.hero-image.is-active { opacity: 1; }
.hero::after {
  z-index: -1;
  background: linear-gradient(90deg, rgb(8 23 43 / .9) 1%, rgb(8 23 43 / .68) 27%, rgb(8 23 43 / .23) 57%, rgb(8 23 43 / .015) 100%);
  content: "";
}
.hero-copy { padding: 3.9rem clamp(2rem, 5.2vw, 4.2rem) 5.2rem; }
.hero-label { margin-bottom: .8rem; color: #e2eaf5; font-size: .95rem; letter-spacing: -.022em; }
.hero-label::before { display: inline-block; width: 1.45rem; height: 2px; margin-right: .55rem; vertical-align: middle; background: #f16a75; content: ""; }
.hero h1 { font-size: clamp(2.05rem, 4.1vw, 2.75rem); font-weight: 580; }
.hero-summary { margin-top: .95rem; color: #f0f4fa; font-size: clamp(1.02rem, 1.55vw, 1.15rem); line-height: 1.62; }
.button-group { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.hero .button-group { margin-top: 1.65rem; }
.button { display: inline-flex; min-height: 2.92rem; align-items: center; justify-content: center; gap: .52rem; padding: .58rem 1.08rem; border: 1px solid transparent; border-radius: .45rem; font-size: .95rem; font-weight: 560; line-height: 1.25; white-space: nowrap; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.button .icon { width: 1.05rem; height: 1.05rem; }
.button.light { border-color: #fff; background: #fff; color: var(--navy); }
.button.light:hover { border-color: #e5edf7; background: #e5edf7; }
.button.on-dark { border-color: #b2c4da; background: rgb(18 45 75 / .34); color: #fff; }
.button.on-dark:hover { background: rgb(255 255 255 / .19); }
.button.outline { border-color: #c7d5e5; background: #fff; color: var(--navy); }
.button.outline:hover { border-color: var(--blue); background: #f2f6fc; }
.button.primary { border-color: var(--navy); background: var(--navy); color: white; }
.button.primary:hover { background: var(--blue); }
.hero-controls { position: absolute; right: 1.15rem; bottom: 1rem; display: flex; align-items: center; padding: .2rem; border: 1px solid rgb(255 255 255 / .25); border-radius: 2rem; background: rgb(9 26 48 / .84); }
.hero-controls[hidden] { display: none; }
.hero-controls button { min-width: 2.6rem; min-height: 2.42rem; padding: .15rem .66rem; border: 0; border-radius: 2rem; color: #dce6f2; background: transparent; cursor: pointer; font-size: .83rem; }
.hero-controls button:hover, .hero-controls button[aria-pressed="true"] { background: rgb(255 255 255 / .17); color: #fff; }
.hero-controls .slide-toggle { display: grid; place-items: center; padding-inline: .4rem; }
.slide-toggle .icon { width: 1rem; height: 1rem; }
.shortcuts { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--navy); color: white; }
.shortcuts a { display: flex; justify-content: center; align-items: center; gap: .55rem; min-height: 3.9rem; padding: .62rem .4rem; font-size: .95rem; font-weight: 520; text-align: center; }
.shortcuts a + a { border-left: 1px solid rgb(222 233 247 / .21); }
.shortcuts a:hover { background: var(--blue); }
.shortcuts a:focus-visible { outline-offset: -4px; }
.shortcuts .icon { color: #ffabb1; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.home-intro { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.45rem; padding: clamp(1.3rem, 3.2vw, 2.5rem); }
.home-intro p { margin-top: .65rem; color: var(--muted); }
.work-section { margin-top: clamp(1.9rem, 4vw, 3.2rem); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-heading a { color: var(--blue); font-size: .95rem; text-decoration: underline; text-underline-offset: .23em; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.work-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.work-card:hover { border-color: #91a6bf; }
.work-card img { aspect-ratio: 1.75; object-fit: cover; }
.work-card div { padding: 1.15rem; }
.work-card p { margin-top: .45rem; color: var(--muted); }
.contact-band { display: flex; justify-content: space-between; align-items: center; gap: 1.65rem; margin-top: clamp(1.9rem, 4vw, 3.2rem); padding: clamp(1.4rem, 3.4vw, 2.6rem); border-radius: var(--radius); background: var(--navy); color: white; }
.contact-band p { margin-top: .5rem; color: #d7e3f2; }
.sub-main { padding-block: clamp(1.85rem, 4.4vw, 3.5rem) 4rem; }
.page-heading { margin-bottom: clamp(1.15rem, 3.2vw, 2rem); }
.page-heading h1 { font-size: clamp(1.72rem, 3.2vw, 2.35rem); font-weight: 660; }
.page-heading p { margin-top: .4rem; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; align-items: stretch; }
.about-grid img { height: 100%; min-height: 15rem; max-height: 24rem; object-fit: cover; }
.about-copy { align-self: center; padding: clamp(1.3rem, 4vw, 3.35rem); }
.about-copy p { margin-top: .85rem; color: var(--muted); }
.info-panel { padding: clamp(1.25rem, 3.5vw, 2.55rem); }
.about-grid + .info-panel, .contact-grid + .location { margin-top: 1.15rem; }
.facts { margin: 1.1rem 0 0; }
.facts div { display: grid; grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr); gap: .5rem; border-top: 1px solid var(--line); padding: .63rem 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.facts a:hover { text-decoration: underline; text-underline-offset: .22em; }
.service-links { display: flex; flex-wrap: wrap; gap: .25rem 1.35rem; margin-bottom: 1rem; padding: .65rem 1rem; }
.service-links a { display: inline-flex; align-items: center; min-height: 2.55rem; padding: .25rem .22rem; font-size: .95rem; color: var(--navy); }
.service-links a:hover { color: var(--red); text-decoration: underline; text-underline-offset: .25em; }
.service-list { padding-inline: clamp(1rem, 4vw, 2.6rem); }
.service-row { display: grid; grid-template-columns: minmax(10rem, 31%) minmax(0, 1fr); gap: clamp(1.1rem, 4.3vw, 3.3rem); align-items: center; padding-block: clamp(1.1rem, 3.1vw, 2.4rem); }
.service-row + .service-row { border-top: 1px solid var(--line); }
.service-row img, .document-art { width: 100%; height: auto; border-radius: .55rem; aspect-ratio: 1.54; object-fit: cover; }
.service-copy p { margin-top: .6rem; color: var(--muted); }
.document-art { display: grid; place-items: center; color: #7898b9; background: #e8f0f9; }
.document-art .icon { width: 3.6rem; height: 3.6rem; stroke-width: 1.15; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.15rem; }
.contact-facts div { grid-template-columns: minmax(4.4rem, 7.25rem) minmax(0, 1fr); }
.contact-primary { font-size: 1.24rem; color: var(--navy); font-weight: 660; line-height: 1.1; }
.contact-grid .button-group { margin-top: 1rem; }
.prep ul { margin: 1rem 0 0; padding-left: 1.14rem; color: var(--muted); }
.prep li + li { margin-top: .52rem; }
.location { overflow: hidden; }
.location-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: clamp(1.25rem, 3.4vw, 2.55rem); }
.location p { margin-top: .35rem; color: var(--muted); }
.location iframe { display: block; width: 100%; height: clamp(17rem, 40vw, 23rem); border: 0; border-top: 1px solid var(--line); background: #e9f1f8; }
.site-footer { padding: 2.05rem 0 1.75rem; border-top: 1px solid var(--line); background: white; color: var(--muted); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.2rem; }
.footer-name { color: var(--navy); font-size: 1rem; font-weight: 670; }
.footer-top nav, .footer-info { display: flex; align-items: baseline; flex-wrap: wrap; gap: .22rem 1.12rem; }
.footer-top nav { font-size: .9rem; }
.footer-info { margin-top: .8rem; font-size: .875rem; }
.site-footer a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: .2em; }
.copyright { margin-top: 1.95rem; font-size: .85rem; }

@media (max-width: 850px) {
  .wrap { width: min(100% - 2.25rem, 75rem); }
  .header-inner { gap: 1.55rem; }
  .main-nav { gap: 1.25rem; }
  .hero { min-height: 28rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .work-card div { padding: .95rem; }
}
@media (max-width: 780px) {
  :root { --sticky-offset: 7rem; }
  .wrap { width: calc(100% - 1.5rem); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .55rem; row-gap: 0; }
  .brand, .header-phone { align-self: center; min-height: 3.55rem; }
  .brand-mark { width: 2rem; height: 2rem; border-radius: .42rem; font-size: .91rem; }
  .brand-mark::after { bottom: .27rem; width: .78rem; }
  .brand { gap: .46rem; min-width: 0; }
  .brand-name { font-size: clamp(.88rem, 4vw, 1rem); }
  .header-phone { grid-column: 2; grid-row: 1; font-size: .86rem; gap: .28rem; }
  .header-phone .icon { width: .95rem; height: .95rem; }
  .main-nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid #edf1f6; }
  .main-nav a { min-height: 2.7rem; font-size: .9rem; }
  .main-nav a[aria-current="page"]::after { right: 23%; bottom: 0; left: 23%; }
}
@media (max-width: 680px) {
  .home-main { padding-top: .7rem; }
  .hero { min-height: clamp(25rem, 66svh, 33rem); align-items: flex-end; }
  .hero-copy { width: 100%; padding: 2rem 1.02rem 4.85rem; }
  .hero-image { object-position: 61% center; }
  .hero::after { background: linear-gradient(0deg, rgb(7 22 40 / .98), rgb(7 22 40 / .82) 28%, rgb(7 22 40 / .18) 70%, rgb(7 22 40 / .07)); }
  .hero h1 { font-size: clamp(1.9rem, 7.6vw, 2.65rem); }
  .hero-label { margin-bottom: .65rem; }
  .hero-summary { margin-top: .7rem; font-size: .98rem; }
  .hero .button-group { margin-top: 1.1rem; }
  .hero-controls { right: .7rem; bottom: .65rem; }
  .button { min-height: 2.8rem; padding-inline: .86rem; }
  .shortcuts { grid-template-columns: repeat(6, 1fr); }
  .shortcuts a { grid-column: span 2; min-height: 3.25rem; padding-inline: .18rem; gap: .29rem; font-size: .86rem; }
  .shortcuts a:nth-child(n + 4) { grid-column: span 3; border-top: 1px solid rgb(222 233 247 / .21); }
  .shortcuts a:nth-child(4) { border-left: 0; }
  .shortcuts .icon { width: 1rem; height: 1rem; }
  .home-intro, .contact-band { flex-direction: column; align-items: flex-start; gap: .95rem; }
  .home-intro { margin-top: .85rem; }
  .desktop-only { display: none; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .work-card img { aspect-ratio: 1; }
  .work-card div { padding: .78rem .62rem; }
  .work-card p { font-size: .91rem; line-height: 1.55; }
  .work-card h3 { font-size: 1.05rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid img { min-height: 0; height: auto; aspect-ratio: 1.7; }
  .service-links { gap: .15rem .52rem; padding: .45rem .65rem; }
  .service-links a { min-height: 2.45rem; }
  .service-row { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .service-row img { aspect-ratio: 1.62; }
  .document-art { display: none; }
  .location-top { flex-direction: column; align-items: flex-start; }
  .contact-grid { gap: .8rem; }
}
@media (max-width: 355px) {
  .main-nav a { font-size: .83rem; }
  .header-phone { font-size: .78rem; }
  .brand-name { font-size: .84rem; }
  .facts div { grid-template-columns: minmax(5rem, 5.5rem) minmax(0, 1fr); }
  .shortcuts .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.info-panel-spaced { margin-top: 1.15rem; }
.profile-note { margin-top: .75rem; color: var(--muted); font-size: .875rem; }
.service-area { margin-top: .75rem; color: var(--muted); }
