:root {
  --ink: #0e3152;
  --muted: #596a73;
  --line: #d7e0de;
  --paper: #f6f7f4;
  --panel: #ffffff;
  --forest: #123a60;
  --teal: #638a5b;
  --gold: #a6874f;
  --brick: #638a5b;
  --wine: #0d3152;
  --mist: #edf2ee;
  --shadow: 0 24px 70px rgba(14, 49, 82, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 223, 219, 0.72);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 290px;
}

.brand-logo-crop {
  position: relative;
  display: block;
  width: 286px;
  height: 48px;
  overflow: hidden;
}

.brand-logo-crop img {
  position: absolute;
  top: -56px;
  left: -4px;
  width: 300px;
  max-width: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  background: var(--forest);
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: #33413d;
  font-size: 15px;
}

.hero {
  position: relative;
  min-height: calc(92vh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(70px, 9vw, 130px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246, 247, 244, 0.98) 0%, rgba(246, 247, 244, 0.88) 48%, rgba(246, 247, 244, 0.18) 100%),
    linear-gradient(0deg, rgba(14, 49, 82, 0.18), rgba(14, 49, 82, 0.02));
}

.hero-content {
  width: min(720px, 100%);
  max-width: calc(100vw - 40px);
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--brick);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.06;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: #35423f;
  font-size: clamp(17px, 1.7vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--forest);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
.contact-form button {
  color: #fff;
  background: var(--forest);
}

.button.secondary {
  color: var(--forest);
  background: rgba(255, 255, 255, 0.58);
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: clamp(20px, 5vw, 60px);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 360px;
}

.hero-panel span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  color: #fff;
  background: rgba(20, 32, 29, 0.48);
  backdrop-filter: blur(10px);
  font-weight: 700;
}

section:not(.hero) {
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 72px);
  overflow: hidden;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 !important;
  color: #fff;
  background: var(--wine);
}

.principles article {
  min-height: 330px;
  padding: clamp(34px, 5vw, 66px);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.principles article:last-child {
  border-right: 0;
}

.principles article > span {
  display: block;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 800;
}

.principle-en {
  margin: 0 0 6px;
  color: #82aa76;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 900;
}

.principles h2 {
  margin: 0 0 24px;
  font-size: 20px;
}

.principles article > p:last-child {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.intro,
.insight,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.insight h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.intro h2 br,
.insight h2 br {
  display: block;
}

.intro > p,
.insight-copy p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.brand-philosophy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
  background: #fff;
}

.ci-visual {
  position: relative;
  height: 460px;
  overflow: hidden;
}

.ci-visual img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 650px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.ci-copy h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.2;
}

.ci-intro {
  max-width: 650px;
  margin: 24px 0 34px;
  color: var(--muted);
  font-size: 18px;
}

.ci-meaning {
  margin: 0;
  border-top: 1px solid var(--line);
}

.ci-meaning > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.ci-meaning dt {
  color: var(--teal);
  font-weight: 900;
}

.ci-meaning dd {
  margin: 0;
  color: var(--muted);
}

.diagnosis-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0 !important;
  background: #d8dfda;
}

.diagnosis-item {
  min-height: 170px;
  padding: 28px;
  background: #fff;
}

.diagnosis-item strong {
  display: block;
  margin-bottom: 12px;
  color: var(--forest);
  font-size: 22px;
}

.diagnosis-item span {
  color: var(--muted);
}

.services {
  background: var(--mist);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1.55fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading .section-kicker {
  margin-bottom: 8px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-grid.expanded {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 5vw, 72px);
}

.service-list article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 18px;
  min-height: 170px;
  padding: 28px 0;
  border-top: 1px solid #bfc8c2;
}

.service-list article > span {
  padding-top: 5px;
  color: var(--brick);
  font-size: 13px;
  font-weight: 900;
}

.service-list h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.service-list p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.service-card {
  min-height: 310px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(20, 32, 29, 0.06);
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.service-card:nth-child(2) .icon,
.service-card:nth-child(5) .icon {
  background: var(--gold);
}

.service-card:nth-child(3) .icon,
.service-card:nth-child(6) .icon {
  background: var(--brick);
}

.service-card h3 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.process {
  background: #fff;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 230px;
  padding: 24px;
  border: 0;
  border-top: 2px solid var(--forest);
  border-radius: 0;
  background: transparent;
}

.process-list span {
  color: var(--gold);
  font-weight: 900;
}

.process-list strong {
  display: block;
  margin: 18px 0 10px;
  font-size: 22px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.insight {
  color: #fff;
  background: var(--forest);
}

.insight .section-kicker {
  color: #d8b570;
}

.insight-copy p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.quote-box {
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.quote-box p {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
}

.contact {
  background: #f3f1eb;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #35423f;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cbd4cf;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  min-height: 116px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-form [hidden] {
  display: none;
}

.checkbox-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  opacity: 0;
}

.form-notice,
.form-status {
  margin: 0;
  font-size: 14px;
}

.form-notice {
  color: var(--muted);
}

.form-status {
  min-height: 22px;
  color: var(--forest);
  font-weight: 700;
}

.form-status.success {
  color: #276b3a;
}

.form-status.error {
  color: #b42318;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.contact-form button {
  width: 100%;
  margin-top: 8px;
  font: inherit;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #65716d;
  background: #092844;
}

.footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 720px;
    align-items: start;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(247, 245, 239, 0.98) 0%, rgba(247, 245, 239, 0.84) 62%, rgba(20, 32, 29, 0.35) 100%);
  }

  .hero-panel {
    left: 20px;
    right: 20px;
  }

  .intro,
  .brand-philosophy,
  .insight,
  .contact,
  .service-grid,
  .service-grid.expanded,
  .diagnosis-band,
  .principles,
  .service-list,
  .process-list {
    grid-template-columns: 1fr;
  }

  .principles article {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .principles article:last-child {
    border-bottom: 0;
  }

  .ci-visual {
    height: 360px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand-logo-crop {
    width: 226px;
    height: 42px;
  }

  .brand-logo-crop img {
    top: -44px;
    left: -3px;
    width: 238px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero-content,
  .intro > *,
  .section-heading,
  .insight > *,
  .contact > * {
    max-width: min(100%, 342px);
  }

  h1 {
    max-width: 100%;
    font-size: 42px;
    line-height: 1.18;
  }

  .intro h2,
  .section-heading h2,
  .insight h2,
  .contact h2 {
    max-width: 100%;
    font-size: 28px;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 15px;
  }

  .ci-visual {
    height: 270px;
  }

  .ci-visual img {
    width: 400px;
    max-width: none;
  }

  .ci-copy h2 {
    font-size: 28px;
  }

  .ci-intro {
    font-size: 16px;
  }

  .ci-meaning > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .service-card,
  .process-list li,
  .contact-form {
    padding: 22px;
  }

  .principles article {
    padding: 38px 24px;
  }

  .principles article > span {
    margin-bottom: 24px;
  }

  .service-list article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 24px 0;
  }

  .service-list h3 {
    font-size: 21px;
  }
}
