:root {
  --paper: #f6f2e9;
  --ink: #20231d;
  --muted: #575a50;
  --accent: #3a4434;
  --line: #d9d9cf;
  --soft: #fcfaf5;
  --sage: #e0e7dc;
  --deep: #1c2823;
  --gold: #d1b786;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.045em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); }
h3 { font-size: 1.1rem; }
section[id], #process, #work-list { scroll-margin-top: 100px; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 5px; left: 5px; z-index: 5; padding: 10px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid #88723c; outline-offset: 4px; }
.header { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { font: 2rem/1 Georgia, serif; letter-spacing: -.06em; }
.bar nav { display: flex; gap: clamp(14px, 3vw, 38px); font-size: .9rem; }
.bar a:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-nav { font-size: .9rem; font-weight: 700; }
.button { display: inline-block; margin-top: 26px; background: var(--accent); color: white; padding: 10px 18px; font-weight: 600; }
.button:hover { background: #515d48; }
.about, .portfolio { background: var(--soft); }
.split, .section { padding-block: clamp(52px, 8vw, 92px); }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; }
.about-copy, .services p, .section-intro { color: var(--muted); }
.about-copy p+p { margin-top: 12px; }
.section-intro { margin-top: 14px; }
.contact { background: var(--deep); color: var(--paper); padding-block: 52px; }
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--deep);
}
.footer-inner { padding-block: clamp(2rem, 5vw, 3.25rem); }
.footer .logo { display: inline-block; }
.footer a:focus-visible { outline-color: var(--accent); }
.footer-contact {
  display: grid;
  justify-items: start;
  gap: .35rem;
  margin-top: 1.15rem;
  color: var(--accent);
  font-style: normal;
}
.footer-address { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .85rem; }
.footer-address strong { color: var(--muted); font-size: .875rem; letter-spacing: .06em; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-copyright { margin-top: 1.5rem; color: var(--muted); font-size: .875rem; }
@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .bar { flex-wrap: wrap; gap: 8px; padding-block: 12px; }
  .bar nav { order: 3; width: 100%; justify-content: space-between; }
  .split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hero {
  background: radial-gradient(ellipse at 72% 10%, #354239 0, transparent 66%), var(--deep);
  color: var(--paper);
  text-align: center;
  padding-block: clamp(76px, 10vw, 142px);
}
.hero-label {
  color: var(--gold);
  font-size: clamp(.74rem, 1.3vw, .92rem);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: clamp(18px, 2.4vw, 32px);
}
.hero h1 {
  font-size: clamp(2.65rem, 11vw, 6.15rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.081em;
}
.hero .intro { color: #e8e7df; margin-top: clamp(26px, 4vw, 43px); font-size: clamp(.94rem, 2vw, 1.1rem); }
.hero .button { margin-top: 30px; padding: 12px 22px; }
.eyebrow {
  color: var(--accent);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .075em;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.75rem); line-height: 1.09; }
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(1.9rem, 10vw, 2.6rem); }
}
.hero .intro { line-height: 1.75; text-wrap: balance; }
.experience { margin-top: 20px; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.hero .actions .button { margin-top: 0; }
.button { border: 1px solid transparent; }
.button.outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.button.outline:hover { background: #e3e7dc; }
.company-intro h2 {
  max-width: 16em;
  color: var(--deep);
  font-size: clamp(2rem, 5.1vw, 4.4rem);
  line-height: 1.13;
  letter-spacing: -.061em;
}

.company-intro-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: 1rem clamp(2rem, 7vw, 6rem);
  margin-top: clamp(2rem, 5.3vw, 4.8rem);
  padding-top: clamp(1.6rem, 4vw, 3.25rem);
  border-top: 1px solid var(--line);
}

.company-intro-body h3 {
  color: var(--deep);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.4;
}

.company-intro .about-copy { font-size: clamp(1rem, 1.45vw, 1.125rem); }

@media (max-width: 690px) {
  .company-intro-body { grid-template-columns: minmax(0, 1fr); }
}
.section-intro { max-width: 72ch; }
.contact { padding-block: 0; }
.contact .eyebrow, .contact-copy { color: #eef0e8; }
.contact-copy p + p { margin-top: 12px; }
.contact-copy .closing { margin-top: 22px; }
.button.light { background: var(--paper); color: var(--accent); }
.button.light:hover { background: #e3e7dc; }
.contact .button:focus-visible { outline-color: white; }
@media (max-width: 690px) {
  .bar nav { gap: 8px; flex-wrap: wrap; }
}

.why {
  background: #304439;
  color: var(--paper);
}
.why-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
}
.why-label {
  margin-bottom: clamp(.75rem, 2vw, 1.25rem);
  color: var(--gold);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 700;
}
.why h2 { font-size: clamp(1.9rem, 5.3vw, 4.1rem); }
.why-copy {
  padding-inline-start: clamp(1.5rem, 3vw, 2.5rem);
  border-inline-start: 1px solid #879684;
  color: #e8e7df;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}
.why-copy strong { color: var(--paper); }
.why-copy p + p { margin-top: .7rem; }
@media (max-width: 760px) {
  .why-content { grid-template-columns: minmax(0, 1fr); }
  .why-copy {
    padding-inline-start: 0;
    padding-block-start: 1.15rem;
    border-inline-start: 0;
    border-top: 1px solid #879684;
  }
}
.experience strong { color: var(--gold); white-space: nowrap; }
.hero .button, .contact .button.light { background: var(--gold); color: var(--deep); }
.hero .button:hover, .contact .button.light:hover { background: #e2cda5; }
.hero .button.outline { background: transparent; color: var(--paper); border-color: #abb0a5; }
.hero .button.outline:hover { background: #ffffff1a; }
.hero .button:focus-visible { outline-color: var(--gold); }
.contact .eyebrow { color: var(--gold); }
#services { border-bottom: 1px solid var(--line); }
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 34px 0 22px;
  padding: 0;
  list-style: none;
}
.services li {
  position: relative;
  padding-inline-end: 20px;
}
.services li:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 18px;
  inset-inline: 18px -18px;
  border-top: 1px solid #aaa995;
}
.service-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: #e0e7dc;
  color: var(--accent);
}
.service-marker::after {
  content: '';
  width: 9px;
  height: 9px;
  background: currentColor;
  border-radius: 50%;
}
.services li:last-child .service-marker { background: var(--gold); }
.services h3 { font-size: .95rem; letter-spacing: .015em; }
.services p { margin-top: 8px; }
@media (max-width: 690px) {
  .services { grid-template-columns: 1fr; gap: 0; }
  .services li { padding: 0 0 22px 54px; }
  .services li:last-child { padding-bottom: 0; }
  .services li:not(:last-child)::before {
    top: 18px;
    bottom: -18px;
    inset-inline: 18px auto;
    border-top: 0;
    border-inline-start: 1px solid #aaa995;
  }
  .service-marker { position: absolute; top: 0; inset-inline-start: 0; }
}

.portfolio-heading {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.gallery-shell {
  position: relative;
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
}

.gallery-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  box-shadow: 0 2px 10px #20231d1f;
}
.gallery-arrow:hover { background: var(--paper); }
.gallery-arrow:focus-visible { outline-offset: 2px; }
.gallery-arrow:disabled { display: none; }
.gallery-arrow::before {
  content: '';
  width: .65rem;
  height: .65rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}
.gallery-arrow--previous { inset-inline-start: -2.625rem; }
.gallery-arrow--previous::before { transform: translateX(2px) rotate(-135deg); }
.gallery-arrow--next { inset-inline-end: -2.625rem; }

.gallery-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-track { display: flex; gap: clamp(.6rem, 1.5vw, 1.2rem); }

.gallery-slide {
  display: block;
  flex: 0 0 clamp(14rem, 30vw, 22.5rem);
  aspect-ratio: 5 / 4;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #eeebe3;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-slide:focus-visible { outline-offset: -4px; }
.gallery-slide[hidden] { display: none; }

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-position, center);
}

@media (max-width: 690px) {
  .gallery-slide { flex-basis: min(78vw, 22.5rem); }
  .gallery-arrow--previous { inset-inline-start: -.625rem; }
  .gallery-arrow--next { inset-inline-end: -.625rem; }
}

#work-detail {
  width: min(900px, calc(100% - 32px));
  max-height: calc(100dvh - 36px);
  padding: 0 clamp(1rem, 3vw, 2rem) 1.5rem;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
}

#work-detail::backdrop { background: #17201cbd; }
#work-detail .dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

#work-detail h2 {
  font-size: clamp(1.25rem, 4vw, 2rem);
  overflow-wrap: anywhere;
}

#work-detail .dialog-head button {
  min-height: 44px;
  padding: .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  white-space: nowrap;
}

#work-detail .dialog-head button:hover { background: #ebe7dc; }
#detail-images img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 145px);
  margin: 1rem auto 0;
  object-fit: contain;
  background: #efede6;
  border-radius: 5px;
}
