:root {
  color-scheme: light;
  --ink: #11161c;
  --muted: #5c6875;
  --soft: #eef3f6;
  --line: #dbe3e7;
  --panel: #ffffff;
  --graphite: #182028;
  --cyan: #00a6bf;
  --green: #2fb477;
  --amber: #c98825;
  --shadow: 0 24px 70px rgba(15, 24, 33, 0.14);
  --max: 1180px;
}

@font-face {
  font-family: "Pretendard Variable";
  font-display: swap;
  font-style: normal;
  font-weight: 45 920;
  src: url("assets/fonts/PretendardVariable.woff2") format("woff2-variations");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7faf9;
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(247, 250, 249, 0.78);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(219, 227, 231, 0.82);
  display: flex;
  height: 74px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 4vw, 54px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}

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

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--graphite), #253746);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 0.96rem;
  letter-spacing: 0.08em;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 4px;
}

.site-header .brand small {
  display: none;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

.main-nav > a,
.nav-menu-trigger {
  border-radius: 999px;
  color: #28323c;
  font-size: 0.93rem;
  padding: 11px 14px;
}

.main-nav > a:hover,
.nav-menu:hover .nav-menu-trigger,
.nav-menu-trigger:focus-visible {
  background: rgba(0, 166, 191, 0.08);
  color: #005e6f;
}

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: #26323d !important;
  color: #fff !important;
}

.nav-menu {
  position: relative;
}

.portfolio-menu {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  min-width: 230px;
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 44px;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-menu:hover .portfolio-menu,
.nav-menu:focus-within .portfolio-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.portfolio-menu a {
  border-radius: 6px;
  color: #26313b;
  font-size: 0.92rem;
  padding: 10px 12px;
}

.portfolio-menu a:hover {
  background: var(--soft);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 44px;
  padding: 0;
  position: relative;
  width: 44px;
  z-index: 52;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 7px auto;
  width: 22px;
}

.hero {
  align-items: center;
  display: grid;
  min-height: 92svh;
  overflow: hidden;
  padding: 110px clamp(20px, 5vw, 64px) 44px;
  position: relative;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.9) 33%, rgba(247, 250, 249, 0.38) 67%, rgba(247, 250, 249, 0.16) 100%),
    linear-gradient(180deg, rgba(247, 250, 249, 0.34), rgba(247, 250, 249, 0.82));
  inset: 0;
  position: absolute;
}

.hero-inner {
  max-width: var(--max);
  position: relative;
  width: 100%;
}

.eyebrow {
  color: #006f80;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.45rem, 4.4vw, 4.85rem);
  line-height: 1.08;
  margin: 0;
  max-width: 760px;
  text-wrap: balance;
}

.hero-copy {
  color: #35414c;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
  margin: 28px 0 0;
  max-width: 680px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  box-shadow: 0 18px 34px rgba(17, 22, 28, 0.2);
  color: #fff;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(17, 22, 28, 0.16);
  color: var(--ink);
}

.hero-proof {
  align-items: stretch;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  max-width: 860px;
}

.hero-proof span {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(219, 227, 231, 0.8);
  color: var(--muted);
  min-height: 76px;
  padding: 17px 18px;
}

.hero-proof strong {
  color: var(--ink);
  display: block;
  font-size: 1rem;
}

.trust-band {
  background: var(--graphite);
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-item {
  background: rgba(255, 255, 255, 0.035);
  min-height: 176px;
  padding: clamp(26px, 4vw, 46px);
}

.trust-item span {
  color: var(--green);
  display: block;
  font-weight: 900;
  margin-bottom: 22px;
}

.trust-item strong {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  margin-bottom: 12px;
}

.trust-item p {
  color: #b9c4cc;
  line-height: 1.62;
  margin: 0;
  max-width: 390px;
}

.section {
  padding: clamp(76px, 9vw, 124px) clamp(20px, 5vw, 64px);
}

.section-intro {
  margin: 0 auto 42px;
  max-width: var(--max);
}

.section-intro.compact {
  margin-bottom: 0;
}

.section-intro h2,
.contact h2 {
  font-size: clamp(2.1rem, 4.8vw, 4.8rem);
  line-height: 1;
  margin: 0;
  max-width: 900px;
  text-wrap: balance;
}

.section-intro h2.two-line-heading,
.contact h2.two-line-heading {
  max-width: 980px;
  text-wrap: initial;
}

.two-line-heading span {
  display: block;
  white-space: nowrap;
}

.section-intro p:not(.eyebrow),
.contact-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 22px 0 0;
  max-width: 720px;
}

.service-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
}

.service-card,
.portfolio-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(17, 22, 28, 0.06);
}

.service-card {
  min-height: 280px;
  padding: 26px;
}

.service-icon {
  align-items: center;
  background: #edf9f6;
  border: 1px solid #cfebe4;
  border-radius: 8px;
  color: #007f63;
  display: inline-flex;
  font-size: 1.3rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.service-card h3,
.timeline h3,
.portfolio-card h3 {
  font-size: 1.22rem;
  line-height: 1.2;
  margin: 24px 0 12px;
}

.service-card p,
.timeline p,
.portfolio-card p {
  color: var(--muted);
  line-height: 1.62;
  margin: 0;
}

.process {
  background: #eef4f2;
}

.timeline {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 46px auto 0;
  max-width: var(--max);
}

.timeline article {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(219, 227, 231, 0.78);
  min-height: 238px;
  padding: 26px;
}

.timeline span {
  align-items: center;
  border: 1px solid rgba(0, 166, 191, 0.28);
  border-radius: 999px;
  color: #006f80;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.portfolio-section {
  background: #fbfcfc;
}

.portfolio-head {
  align-items: end;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr auto;
  margin: 0 auto 34px;
  max-width: var(--max);
}

.filter-bar {
  background: #eef3f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 4px;
  padding: 5px;
}

.portfolio-note {
  color: #6a7580;
  font-size: 0.95rem !important;
  margin-top: 16px !important;
}

.filter-button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #3b4651;
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
  min-width: 62px;
  padding: 0 12px;
}

.filter-button.active {
  background: var(--panel);
  box-shadow: 0 8px 18px rgba(17, 22, 28, 0.08);
  color: var(--ink);
}

.portfolio-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
}

.portfolio-card {
  min-height: 318px;
  padding: 26px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.portfolio-card.feature {
  background:
    linear-gradient(135deg, rgba(0, 166, 191, 0.16), rgba(47, 180, 119, 0.12)),
    #fff;
  grid-column: span 2;
}

.portfolio-card.is-hidden {
  display: none;
}

.portfolio-meta {
  color: #66737f;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  text-transform: uppercase;
}

.portfolio-card dl {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding-top: 18px;
}

.portfolio-card dl div {
  display: grid;
  gap: 8px;
  grid-template-columns: 72px 1fr;
}

.portfolio-card dt {
  color: #6c7782;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-card dd {
  color: #25313b;
  font-weight: 750;
  margin: 0;
}

.metrics {
  background: var(--graphite);
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 0;
  padding-top: 0;
}

.metrics div {
  background: rgba(255, 255, 255, 0.035);
  min-height: 176px;
  padding: 42px clamp(20px, 4vw, 46px);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.metrics span {
  color: #b9c4cc;
  line-height: 1.55;
  margin-top: 14px;
}

.contact {
  align-items: start;
  background: #f2f6f4;
  display: grid;
  gap: clamp(34px, 7vw, 92px);
  grid-template-columns: 1fr minmax(320px, 480px);
}

.contact-copy {
  max-width: 760px;
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: #36424e;
  font-size: 0.85rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #f7faf9;
  border: 1px solid #d7e0e4;
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  padding: 12px 13px;
  width: 100%;
}

.contact-form textarea {
  min-height: 236px;
  resize: vertical;
}

.form-status {
  color: #52616e;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  min-height: 22px;
}

.site-footer {
  align-items: center;
  background: #0f151a;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 30px clamp(20px, 5vw, 64px);
}

.site-footer .brand small,
.site-footer p {
  color: #aebac3;
}

.site-footer p {
  margin: 0;
}

.site-footer > a:last-child {
  color: #8bded8;
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    align-content: start;
    background: rgba(247, 250, 249, 0.98);
    border-left: 1px solid var(--line);
    bottom: 0;
    box-shadow: var(--shadow);
    display: grid;
    gap: 8px;
    padding: 96px 22px 22px;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(105%);
    transition: transform 220ms ease;
    width: min(360px, 86vw);
    z-index: 51;
  }

  body.nav-open .main-nav {
    transform: translateX(0);
  }

  .main-nav > a,
  .nav-menu-trigger {
    border-radius: 8px;
    display: block;
    padding: 14px;
  }

  .nav-cta {
    margin-left: 0;
  }

  .portfolio-menu {
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    position: static;
    transform: none;
  }

  .service-grid,
  .timeline,
  .portfolio-grid,
  .metrics,
  .trust-band,
  .contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    height: 68px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 96svh;
    padding-top: 96px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(247, 250, 249, 0.98), rgba(247, 250, 249, 0.92) 48%, rgba(247, 250, 249, 0.46)),
      linear-gradient(90deg, rgba(247, 250, 249, 0.98), rgba(247, 250, 249, 0.7));
  }

  .hero h1 {
    font-size: clamp(2.5rem, 15vw, 4.6rem);
  }

  .hero-proof,
  .service-grid,
  .timeline,
  .portfolio-grid,
  .metrics,
  .trust-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .portfolio-card.feature {
    grid-column: auto;
  }

  .filter-bar {
    overflow-x: auto;
    width: 100%;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .portfolio-card dl div {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    display: grid;
  }
}
