:root {
  --seo-ink: #171512;
  --seo-paper: #fffdf7;
  --seo-cream: #f7efdf;
  --seo-yellow: #ffd766;
  --seo-orange: #ed7651;
  --seo-line: rgba(23, 21, 18, 0.82);
}

.nm-seo-page {
  background: #fff;
  color: var(--seo-ink);
}

.nm-seo-page .nm-site {
  max-width: 1440px;
  padding-bottom: 0;
  background: #fff;
}

.nm-seo-page .nm-topbar-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.nm-seo-page .nm-logo {
  width: auto;
  font-size: 21px;
  text-align: left;
}

.nm-seo-page .nm-nav {
  display: flex;
  width: auto;
  padding: 0;
}

.nm-seo-page .nm-nav a {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--seo-line);
  border-radius: 999px;
  background: var(--seo-paper);
}

.nm-seo-page .nm-nav a:last-child {
  background: var(--seo-yellow);
}

.nm-seo-hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(34px, 5vw, 64px);
  background: var(--seo-cream);
}

.nm-seo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.72fr);
  gap: clamp(30px, 7vw, 92px);
  align-items: center;
}

.nm-seo-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 5px 9px;
  border: 1px solid var(--seo-line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.nm-seo-hero h1,
.nm-seo-section h2 {
  font-family: "SeoulNotice", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.nm-seo-hero h1 {
  max-width: 680px;
  font-size: clamp(44px, 5.8vw, 82px);
}

.nm-seo-lead {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 700;
  line-height: 1.6;
}

.nm-seo-hero-photo {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--seo-line);
  border-radius: 18px 23px 16px 20px;
  background: #fff;
}

.nm-seo-hero-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.nm-seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.nm-seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--seo-ink);
  border-radius: 999px;
  background: var(--seo-yellow);
  box-shadow: 3px 3px 0 var(--seo-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.nm-seo-button--paper {
  background: #fff;
}

.nm-seo-section {
  padding: clamp(52px, 7vw, 92px) 0;
}

.nm-seo-section--cream {
  border-block: 1px solid rgba(23, 21, 18, 0.2);
  background: #fffaf0;
}

.nm-seo-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.nm-seo-section h2 {
  font-size: clamp(32px, 4vw, 56px);
}

.nm-seo-section-head p,
.nm-seo-note {
  max-width: 520px;
  margin: 10px 0 0;
  color: #5b554c;
  font-size: 15px;
  font-weight: 600;
}

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

.nm-work-card {
  overflow: hidden;
  border: 1px solid var(--seo-line);
  border-radius: 14px 17px 12px 16px;
  background: #fff;
}

.nm-work-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.nm-work-card-copy {
  padding: 14px 14px 16px;
}

.nm-work-card-copy p {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.nm-work-card-copy small {
  display: block;
  margin-top: 7px;
  color: #6a6258;
  font-size: 11px;
  font-weight: 700;
}

.nm-work-card-copy a {
  display: inline-flex;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.nm-fact-card {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--seo-line);
  border-radius: 13px 16px 12px 15px;
  background: #fff;
}

.nm-fact-card h3 {
  font-size: 18px;
}

.nm-fact-card p {
  margin: 9px 0 0;
  color: #554f47;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.nm-seo-footer {
  padding: 28px 0 42px;
  color: #675f54;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  .nm-seo-page .nm-topbar-inner {
    align-items: center;
    padding: 10px 0;
  }

  .nm-seo-page .nm-logo {
    flex: 0 0 auto;
    font-size: 16px;
    white-space: nowrap;
  }

  .nm-seo-page .nm-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 5px;
  }

  .nm-seo-page .nm-nav a {
    min-height: 30px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .nm-seo-hero-grid {
    grid-template-columns: 1fr;
  }

  .nm-seo-hero-photo {
    max-width: 520px;
  }

  .nm-seo-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nm-seo-button {
    min-height: 42px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .nm-seo-section-head {
    display: block;
  }

  .nm-works-grid,
  .nm-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .nm-work-card-copy,
  .nm-fact-card {
    padding: 12px;
  }

  .nm-work-card-copy p,
  .nm-fact-card h3 {
    font-size: 14px;
  }

  .nm-work-card-copy small,
  .nm-fact-card p {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .nm-seo-page .nm-topbar-inner {
    gap: 6px;
  }

  .nm-seo-page .nm-logo {
    font-size: 14px;
  }

  .nm-seo-page .nm-nav a:first-child {
    display: none;
  }
}
