:root {
  color-scheme: light;
  --ink: #121921;
  --navy: #0a2248;
  --text: #4b5662;
  --muted: #596672;
  --line: #dce3e8;
  --soft: #f5f7f8;
  --focus: #167b70;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; line-height: 1.65; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.24; word-break: keep-all; overflow-wrap: anywhere; }
p { word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
section { scroll-margin-top: 25px; }

.skip-link { position: fixed; z-index: 3; top: 10px; left: 10px; padding: 8px 14px; color: var(--navy); background: white; border: 1px solid var(--line); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 77px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font: 800 1.12rem/1 Arial, sans-serif; letter-spacing: -.055em; }
.brand img { display: block; border-radius: 7px; }
.site-header nav { display: flex; gap: clamp(22px, 3.3vw, 40px); }
.site-header nav a { color: #384550; font-size: .9rem; font-weight: 650; white-space: nowrap; }
.site-header nav a:hover, .underlined:hover { color: #177466; }
.header-contact { justify-self: end; background: white; color: var(--navy); border: 1px solid #a9b7c6; border-radius: 4px; padding: 7px 15px; font-size: .9rem; font-weight: 750; white-space: nowrap; }
.header-contact:hover { border-color: var(--navy); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 49px; padding: 10px 19px; border: 1px solid transparent; border-radius: 4px; text-align: center; line-height: 1.35; font-size: .9rem; font-weight: 750; }
.button-primary { color: #fff; background: var(--navy); }
.button-primary:hover { background: #243f65; }
.underlined { display: inline-block; justify-self: start; padding: 0 0 2px; border: 0; border-bottom: 1px solid #8e9ca9; background: transparent; color: var(--navy); font-weight: 750; font-size: .9rem; }
.underlined:hover { border-bottom-color: currentColor; }

.hero { display: grid; grid-template-columns: 1.04fr 1fr; align-items: center; gap: clamp(26px, 4vw, 63px); padding-block: clamp(64px, 8.5vw, 125px) clamp(58px, 7vw, 104px); }
.hero-copy { padding-bottom: 8px; }
.intro-label { display: inline-block; margin-bottom: 15px; border-bottom: 2px solid #0ac0a0; padding-bottom: 6px; color: var(--navy); font-size: .9rem; font-weight: 750; }
.hero h1 { font-size: clamp(2rem, 3.65vw, 3.18rem); font-weight: 800; letter-spacing: -.065em; line-height: 1.19; }
.hero-description { color: var(--text); max-width: 36ch; margin-top: 22px; font-size: clamp(1rem, 1.3vw, 1.05rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 21px; margin-top: 28px; }
.hero-figure, .project-visual { min-width: 0; }
.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(5px, 1vw, 12px);
}
.editorial-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;
  background: #efeeeb;
}
.project-visual figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: .81rem;
  text-align: right;
}

.section { padding-block: clamp(44px, 6.5vw, 84px); border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 26px; }
.section h2, .contact h2 { font-size: clamp(1.6rem, 2.65vw, 2.23rem); font-weight: 800; letter-spacing: -.065em; }
.section-heading > p { max-width: 47ch; margin-top: 9px; color: var(--text); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service { padding: 6px clamp(17px, 3vw, 37px) 6px 0; }
.service + .service { padding-left: clamp(17px, 3vw, 37px); border-left: 1px solid var(--line); }
.service:last-child { padding-right: 0; }
.service h3, .process-list h3 { font-size: clamp(1.05rem, 1.55vw, 1.23rem); letter-spacing: -.044em; font-weight: 750; }
.service p, .process-list p { color: var(--text); margin-top: 7px; }

.project { display: grid; align-items: center; grid-template-columns: 1fr .84fr; gap: clamp(25px, 6vw, 78px); }
.project-category { color: var(--muted); margin-bottom: 5px; font-size: .9rem; font-weight: 650; }
.project h3 { font-size: clamp(1.45rem, 2.5vw, 2rem); letter-spacing: -.06em; }
.project-copy > p:not(.project-category) { max-width: 34ch; color: var(--text); margin-block: 11px 17px; }

.process-list { list-style-position: inside; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(19px, 3.8vw, 46px); margin: 0; padding: 0; }
.process-list li { border-top: 2px solid #c1cdd9; padding-top: 12px; }
.process-list li::marker { color: var(--navy); font-size: .86rem; font-weight: 750; }
.process-list h3 { display: inline; }

.contact { background: var(--soft); border-block: 1px solid var(--line); padding-block: clamp(45px, 7.5vw, 100px); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.14fr; gap: clamp(28px, 7vw, 105px); align-items: start; }
.contact-copy p { max-width: 34ch; margin-top: 13px; color: var(--text); }
.contact-copy .contact-note { font-size: .92rem; }
.contact-form { display: grid; gap: 7px; padding: clamp(18px, 3vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.contact-form label { font-size: .9rem; font-weight: 750; }
.contact-form label span { font-size: .86rem; font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { min-width: 0; width: 100%; min-height: 44px; margin-bottom: 8px; padding: 8px 10px; border: 1px solid #c2cbd4; border-radius: 4px; background-color: #fff; color: var(--ink); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #63707d; }
.contact-form select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, #24405e 50%), linear-gradient(135deg, #24405e 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.contact-form textarea { resize: vertical; }
.form-note, .form-status { color: var(--muted); font-size: .88rem; }
.form-status { margin-top: 4px; }
.form-error, .form-success { padding: 10px 12px; border: 1px solid; border-radius: 4px; }
.form-error { color: #8f2b22; background: #fff4f1; border-color: #e2b7ae; }
.form-success { color: #11584d; background: #edf8f4; border-color: #a3cbc4; }
.contact-form button:disabled { opacity: .7; cursor: wait; }
.form-status:empty { display: none; }
.footer-inner { min-height: 84px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.footer-inner p { color: var(--muted); font-size: .88rem; }
.footer-inner p span { margin-left: 5px; }
.footer-admin { margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; }

.admin-main { padding-block: clamp(32px, 6vw, 76px); background: var(--soft); min-height: 100vh; }
.admin-wrap { width: min(840px, calc(100% - 36px)); margin-inline: auto; }
.admin-header, .admin-paging { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.admin-heading { margin-block: 30px 20px; }
.admin-heading p, .admin-box > p { color: var(--text); margin-top: 7px; }
.admin-box { margin-bottom: 12px; padding: clamp(16px, 3vw, 24px); border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.admin-box form { margin-top: 15px; }
.admin-box .button { justify-self: start; }
.admin-list { display: grid; gap: 8px; }
.admin-list details { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.admin-list summary { padding: 14px 18px; color: var(--navy); font-weight: 750; cursor: pointer; }
.admin-list summary span { display: inline-block; margin-inline-start: 8px; color: var(--muted); font-weight: 500; font-size: .9rem; }
.admin-list dl { margin: 0; padding: 0 18px 17px; }
.admin-list dl div { padding: 9px 0; border-top: 1px solid var(--line); }
.admin-list dt { color: var(--navy); font-weight: 750; }
.admin-list dd { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-paging { margin-top: 16px; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 64px); }
  .hero { grid-template-columns: 1fr 1fr; gap: 25px; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 0; grid-template-columns: 1fr auto; gap: 7px 10px; padding-block: 9px 7px; }
  .site-header nav { grid-area: 2 / 1 / 3 / -1; padding-top: 6px; border-top: 1px solid var(--line); justify-content: center; gap: clamp(14px, 6vw, 36px); }
  .header-contact { grid-area: 1 / 2; padding: 5px 10px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 40px 37px; gap: 25px; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 3rem); }
  .hero-description { margin-top: 14px; }
  .hero-actions { margin-top: 20px; }
  .hero-figure { max-width: 540px; }
  .service-grid, .process-list, .project, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .service, .service + .service { border-left: 0; padding: 13px 0; border-top: 1px solid var(--line); }
  .service:last-child { padding-bottom: 0; }
  .section-heading { margin-bottom: 17px; }
  .process-list { gap: 16px; }
  .footer-inner { flex-wrap: wrap; gap: 10px; padding-block: 14px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  .site-header nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
