:root {
  color-scheme: light;
  --ink: #172b23;
  --forest: #102b23;
  --pine: #1e4c3a;
  --gold: #eddaa0;
  --gold-hover: #fae9b8;
  --dark-text: #e0eae1;
  --muted: #4b5d54;
  --line: #dae1d9;
  --control-border: #78897e;
  --paper: #f4f6f2;
  --radius: .5rem;
  --type-body: 1.0625rem;
  --type-small: .9375rem;
  --target-size: 2.75rem;
  --layout-width: 75rem;
  --layout-margin: 1rem;
  --layout-gutter: 1rem;
  --layout-columns: 4;
  --section-space: 3rem;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: var(--type-body); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
[tabindex="-1"]:focus { outline-offset: -3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-break: strict; word-break: keep-all; overflow-wrap: break-word; }
p { overflow-wrap: break-word; word-break: keep-all; }
.shell { width: min(calc(100% - 2 * var(--layout-margin)), var(--layout-width)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .75rem 1rem; color: #fff; background: var(--forest); transform: translateY(-160%); }
.skip:focus { transform: none; }

.header { background: #fff; }
.header-inner { min-height: 5.25rem; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.5rem; }
.logo { display: block; width: 8.4rem; height: 4.65rem; overflow: hidden; }
.logo img { width: 100%; height: auto; margin-top: -.48rem; }
.navigation { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.navigation-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(1.5rem, 4vw, 3.5rem); margin: 0; padding: 0; list-style: none; }
.navigation a { display: inline-flex; min-height: var(--target-size); align-items: center; color: var(--ink); font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.navigation a:hover { color: var(--pine); text-decoration: underline; }
.staff { padding-inline: 1rem; border: 1px solid var(--control-border); border-radius: var(--radius); }

.hero { isolation: isolate; position: relative; display: grid; color: #fff; background: var(--forest); }
.hero-image, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: center 50%; }
.hero::before { z-index: -1; content: ""; background: linear-gradient(90deg, rgba(8,31,24,.97), rgba(10,34,26,.86) 38%, rgba(10,31,26,.77) 58%, rgba(9,26,24,.08) 100%), linear-gradient(0deg, rgba(9,29,24,.53), transparent 34%); }
.hero-inner { min-height: clamp(33rem, 47vw, 43rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 4rem 2.5rem; }
.eyebrow { margin-bottom: 1rem; color: var(--pine); font-size: var(--type-small); line-height: 1.4; font-weight: 800; letter-spacing: .025em; }
.hero-label { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; color: var(--gold); }
.hero-label::before { content: ""; width: 1.9rem; height: 1px; background: var(--gold); }
.hero h1 { font-size: clamp(2.8rem, 6.1vw, 5.65rem); font-weight: 800; letter-spacing: -.059em; line-height: 1.14; }
.hero h1 span { color: var(--gold); }
.hero-summary { max-width: 32rem; margin-top: 1.5rem; color: var(--paper); font-size: clamp(var(--type-body), 1.5vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .625rem 1.125rem; border: 1px solid transparent; border-radius: var(--radius); font-weight: 800; text-align: center; text-decoration: none; }
.button-gold { background: var(--gold); color: var(--forest); border-color: var(--gold); }
.button-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); text-decoration: underline; }
.button-outline { color: #fff; border-color: var(--dark-text); background: var(--forest); }
.button-outline:hover { background: var(--pine); text-decoration: underline; }
.photo-credit { justify-self: end; max-width: calc(100% - 2 * var(--layout-margin)); margin: 0 max(var(--layout-margin), calc((100% - var(--layout-width)) / 2)) 1rem var(--layout-margin); padding: .25rem .5rem; border-radius: .25rem; background: var(--forest); color: #fff; font-size: .8125rem; }

.about { display: grid; grid-template-columns: repeat(var(--layout-columns), minmax(0, 1fr)); gap: var(--layout-gutter); row-gap: 1.5rem; padding-block: var(--section-space); }
.about > *, .service { grid-column: 1 / -1; }
h2 { font-size: clamp(2rem, 4.2vw, 3.625rem); font-weight: 800; letter-spacing: -.052em; line-height: 1.22; }
.about-copy { padding-top: .5rem; }
.about-copy > p { font-size: clamp(var(--type-body), 1.8vw, 1.25rem); color: var(--muted); }
.business-lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; border-top: 1px solid var(--line); gap: 1rem; padding-top: 1rem; }
.business-lines dt { color: var(--pine); font-weight: 800; }
.business-lines dd { margin-top: .25rem; color: var(--muted); font-size: 1rem; word-break: keep-all; overflow-wrap: break-word; }

.services { background: var(--paper); padding-block: var(--section-space); }
.service-grid { display: grid; grid-template-columns: repeat(var(--layout-columns), minmax(0, 1fr)); margin-top: 1.5rem; gap: var(--layout-gutter); }
.service { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem; border: 1px solid var(--line); border-top: 3px solid #a78c42; border-radius: var(--radius); background: #fff; }
.service-type { margin-bottom: .5rem; color: var(--pine); font-size: var(--type-small); font-weight: 800; }
.service h3 { font-size: 1.625rem; line-height: 1.25; letter-spacing: -.042em; }
.service h3 + p { margin-top: .75rem; margin-bottom: 1rem; color: var(--muted); }
.service a { display: inline-flex; align-items: center; min-height: var(--target-size); margin-top: auto; color: var(--pine); font-size: 1rem; font-weight: 800; }
.service a:hover { color: #695011; text-decoration-thickness: 2px; }

.contact { color: #fff; background: var(--forest); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; padding-block: var(--section-space); }
.contact h2 { font-size: clamp(2rem, 3.25vw, 3rem); }
.contact h2 + p { margin-top: .75rem; color: var(--dark-text); }
.contact-action { display: grid; justify-items: start; gap: .5rem; }
.contact-action a { font-variant-numeric: tabular-nums; }
.contact-action span { color: var(--dark-text); font-size: var(--type-small); }

.footer { padding-block: 2rem; background: #edf1eb; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; font-size: var(--type-small); }
.footer strong { display: block; margin-bottom: .25rem; color: var(--ink); }
.footer address { font-style: normal; }
.footer a { display: inline-flex; align-items: center; min-height: var(--target-size); color: var(--ink); white-space: nowrap; }
.not-found { display: grid; place-items: center; min-height: 100vh; padding: var(--layout-margin); background: var(--paper); }
.not-found h1 { margin-bottom: 1rem; font-size: clamp(1.9rem, 5vw, 3.5rem); letter-spacing: -.05em; }
.not-found p { margin-bottom: 1.5rem; }

@media (min-width: 48rem) {
  :root { --layout-columns: 8; --layout-margin: 1.5rem; --section-space: 4rem; }
  .about > :first-child { grid-column: 1 / span 3; }
  .about-copy { grid-column: 4 / -1; }
  .service-grid { margin-top: 2rem; }
  .service { grid-column: span 4; min-height: 13rem; }
}

@media (min-width: 64rem) {
  :root { --layout-columns: 12; --layout-gutter: 1.5rem; --section-space: 5rem; }
  .about > :first-child { grid-column: 1 / span 4; }
  .about-copy { grid-column: 6 / -1; }
  .service { grid-column: span 3; min-height: 15rem; }
}

@media (min-width: 80rem) {
  :root { --section-space: 6rem; }
}

@media (width < 48rem) {
  .header-inner { min-height: auto; grid-template-columns: 1fr; gap: 0; }
  .logo { width: 7.2rem; height: 4rem; }
  .logo img { margin-top: -.55rem; }
  .navigation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .5rem; padding-block: .25rem; border-top: 1px solid var(--line); }
  .navigation-links { justify-content: flex-start; gap: 0 clamp(.5rem, 3vw, 1.5rem); }
  .staff { padding-inline: .5rem; }
  .navigation a { font-size: var(--type-small); }
  .hero { grid-template-rows: auto clamp(11rem, 40vw, 17rem); }
  .hero-image { position: static; z-index: auto; grid-area: 2 / 1; object-position: center 40%; }
  .hero::before { content: none; }
  .hero-inner { grid-area: 1 / 1; min-height: auto; padding-block: 3rem 2.5rem; }
  .photo-credit { position: relative; grid-area: 2 / 1; align-self: end; }
  .hero h1 { font-size: clamp(2.25rem, 9.7vw, 4rem); }
  .about-copy { padding-top: 0; }
  .business-lines { grid-template-columns: 1fr; gap: .5rem; margin-top: 1.5rem; }
  .business-lines > div { display: grid; grid-template-columns: 3.25rem 1fr; }
  .business-lines dd { margin: 0; align-self: center; }
  .contact-inner { display: grid; gap: 1.5rem; }
}

@media (max-width: 30rem) {
  .service { padding: 1rem; }
  .hero-actions { gap: .5rem; }
  .button { padding-inline: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-contrast: more) {
  :root { --muted: var(--ink); --line: var(--control-border); }
  .hero::before { background: rgba(8,31,24,.9); }
  .navigation a { text-decoration: underline; }
}

@media (forced-colors: active) {
  a:focus-visible { outline-color: Highlight; }
  .hero-image { visibility: hidden; }
  .hero h1 span, .hero-label, .hero-summary, .photo-credit { color: CanvasText; }
  .button { border-color: LinkText; }
}
