:root {
  color-scheme: light;
  font-family: Pretendard, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: #142539;
  background: #fff;
  --navy: #062849;
  --brand: #053460;
  --light: #f1f5f9;
  --muted: #46596d;
  --line: #d8e0ea;
  --accent: #a9d2ff;
  --gutter: clamp(1.25rem, 5.5vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-with-lines { white-space: pre-line; }
[data-site-text][hidden], [data-site-list][hidden], [data-site-contact][hidden], [data-site-contact-row][hidden] { display: none; }
a:focus-visible { outline: 3px solid #2264ad; outline-offset: 4px; }
.hero a:focus-visible, .contact a:focus-visible, .site-footer a:focus-visible { outline-color: var(--accent); }
.container { width: min(100% - var(--gutter) * 2, 79rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  background: #fff;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.header-inner, .footer-inner {
  min-height: 5.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; flex: none; align-items: center; min-height: 2.75rem; }
.brand img { width: clamp(8.1rem, 14vw, 10.5rem); aspect-ratio: 550 / 161; height: auto; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 3.2vw, 3.1rem); }
.main-nav a, .back-to-top { font-size: .94rem; font-weight: 700; white-space: nowrap; }
.main-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.main-nav a:not(.nav-contact):hover, .back-to-top:hover { text-decoration: underline; text-underline-offset: .3em; }
.nav-contact { justify-content: center; padding-inline: 1rem; border: 1px solid #a5b6c7; color: var(--brand); }
.nav-contact:hover { color: #fff; background: var(--brand); border-color: var(--brand); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(31rem, 45vw, 41rem);
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
.hero-image { position: absolute; z-index: -1; inset: 0 0 0 39%; }
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy), #06284980 34%, transparent 72%);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.hero-inner { padding-block: 4.75rem; }
.hero-label { color: #c2ddff; margin-bottom: 1.15rem; font-weight: 700; }
.hero h1 {
  max-width: 12em;
  font-size: clamp(2.7rem, 5.15vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -.073em;
  line-height: 1.13;
}
.hero-copy { max-width: 23em; color: #e5effb; margin-top: 1.25rem; font-size: clamp(1.06rem, 1.55vw, 1.2rem); }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.12rem;
  margin-top: 1.85rem;
  padding: .65rem 1.25rem;
  background: #fff;
  color: var(--brand);
  font-weight: 750;
}
.button:hover { background: var(--accent); }

.section { padding-block: clamp(3.5rem, 7.2vw, 6.65rem); }
.section-heading {
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -.073em;
  line-height: 1.16;
}
.section-label { margin-bottom: 1rem; color: var(--brand); font-size: 1rem; font-weight: 750; }
.split { display: grid; grid-template-columns: minmax(12rem, .8fr) 1.2fr; align-items: center; gap: 2rem clamp(2rem, 7vw, 7rem); }
.about-copy { max-width: 34rem; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.27rem); }
.about-copy p + p { margin-top: .85rem; }

.business { background: var(--light); }
.service-grid, .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.15rem, 3vw, 2.4rem);
  margin-top: clamp(1.5rem, 4vw, 3.25rem);
}
.service { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.service-image { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 45%; }
.event-service-image { object-position: left 53%; }
.service-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1.2rem, 3vw, 2rem); }
.service h3 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); line-height: 1.25; letter-spacing: -.052em; }
.service p { margin-top: .65rem; color: var(--muted); }
.service ul { margin: .8rem 0 1.15rem; padding-inline-start: 1.15rem; }
.service li::marker { color: #376c9f; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: auto; color: var(--brand); font-weight: 750; text-decoration: underline; text-underline-offset: .26em; }
.text-link:hover { color: #265f9a; }

.portfolio-grid { column-gap: clamp(1.65rem, 5.5vw, 5.25rem); }
.work-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .65rem 1.5rem; }
.work-category { scroll-margin-top: 1.25rem; }
.work-category h3 { padding-bottom: .8rem; border-bottom: 2px solid var(--brand); font-size: 1.25rem; letter-spacing: -.04em; }
.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .55rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.work-list time { color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.work-list a:hover, .work-list a:focus-visible { color: var(--brand); text-decoration: underline; text-underline-offset: .24em; }
.work-year { font-variant-numeric: tabular-nums; color: var(--muted); }
.work-role { color: var(--muted); white-space: nowrap; }

.contact { background: var(--navy); color: #fff; }
.contact-copy { margin-top: .85rem; color: #e0eaf7; font-size: 1.07rem; }
.contact address { font-style: normal; }
.contact-list > div { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .45rem .8rem; padding-block: .75rem; border-bottom: 1px solid #ffffff42; }
.contact-list > div:first-child { border-top: 1px solid #ffffff42; }
.contact-list dt { color: #bed5ed; font-weight: 650; }
.contact-list dd a { display: inline-block; margin-right: .85rem; text-decoration: underline; text-underline-offset: .25em; }
.contact-list a:hover { color: var(--accent); }
.site-footer { color: #fff; background: #061d33; }
.footer-inner { min-height: 6rem; }
.footer-inner .brand img { width: 8.6rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 0 clamp(.9rem, 3vw, 1.8rem); }
.back-to-top { display: inline-flex; align-items: center; min-height: 2.75rem; color: #dbe9f8; }
.back-to-top[hidden] { display: none; }

@media (max-width: 43rem) {
  .hero { min-height: 34rem; align-items: end; }
  .hero-image { inset: 0; }
  .hero-image::after { background: linear-gradient(180deg, #06284918 0%, #06284985 34%, #062849 81%); }
  .hero-image img { object-position: center top; }
  .hero-inner { padding-block: 10rem 3rem; }
  .split, .service-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .split { row-gap: 1.25rem; }
  .portfolio-grid { row-gap: 2.25rem; }
}

@media (max-width: 34rem) {
  .header-inner { min-height: 0; flex-direction: column; align-items: stretch; gap: .25rem; padding-block: .72rem .42rem; }
  .header-inner .brand { align-self: start; }
  .main-nav { justify-content: space-between; gap: .45rem; }
  .main-nav a { font-size: .9rem; }
  .nav-contact { padding-inline: .48rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.4vw, 3rem); }
  .hero-copy { max-width: 20em; }
  .contact-list > div { grid-template-columns: 3.25rem minmax(0, 1fr); }
}

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