:root {
  --ink: #1c1b19;
  --paper: #faf8f4;
  --grey-600: #57534a;
  --grey-400: #8b867d;
  --line: #e4e0d8;
  --moa: #b5402f;
  --koroute: #2e5461;
  --wellhour: #47604f;
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", Roboto, "Noto Sans KR", "Malgun Gothic",
    Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(17, 17, 17, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}

.wordmark {
  display: inline-flex;
}

.wordmark img {
  display: block;
  height: 2.1rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--grey-400);
}

.site-nav a[aria-current="page"] {
  color: var(--grey-400);
}

.lang-switch,
.nav-cta {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch {
  border-color: var(--line);
  color: var(--grey-600);
}

.lang-switch:hover,
.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- hero ---------- */

.hero {
  padding: 8.5rem 0 7rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .rise {
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero .rise:nth-child(1) { animation-delay: 0.05s; }
.hero .rise:nth-child(2) { animation-delay: 0.15s; }
.hero .rise:nth-child(3) { animation-delay: 0.28s; }
.hero .rise:nth-child(4) { animation-delay: 0.4s; }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero p {
  margin-top: 2rem;
  font-size: 1.15rem;
  color: var(--grey-600);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 3rem;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.hero-cta.ghost {
  background: transparent;
  color: var(--ink);
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee span {
  display: inline-block;
  padding: 0 1.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--grey-400);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

section {
  padding: 6.5rem 0;
}

section + section {
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--grey-600);
  max-width: 40em;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.step {
  border-top: 3px solid var(--ink);
  padding-top: 1.5rem;
}

.step .num {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--grey-400);
}

.step h3 {
  margin-top: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.step p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--grey-600);
}

.mission {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.mission-item {
  border-left: 3px solid var(--ink);
  padding-left: 1.5rem;
}

.mission-item h3 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--grey-400);
}

.mission-item p {
  margin-top: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.75rem 2.5rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
  border-color: transparent;
}

.service-card .service-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-card h3 {
  margin-top: 1rem;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.service-card .service-sub {
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--grey-400);
  font-weight: 600;
}

.service-card .service-desc {
  margin-top: 1.4rem;
  font-size: 0.98rem;
  color: var(--grey-600);
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--grey-600);
  line-height: 2.1;
}

.feature-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.service-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.service-link .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.service-card:hover .service-link .arrow {
  transform: translateX(5px);
}

.card-koroute {
  --accent: var(--koroute);
}

.card-wellhour {
  --accent: var(--wellhour);
}

.card-biz {
  --accent: var(--moa);
  grid-column: 1 / -1;
}

.card-biz .service-link {
  color: var(--grey-400);
}

.service-banner {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.9rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.service-banner p {
  font-size: 1rem;
  font-weight: 600;
}

.service-banner p span {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--grey-600);
  margin-top: 0.2rem;
}

.banner-link {
  padding: 0.85rem 1.9rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.banner-link:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

/* ---------- news ---------- */

.news-list {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  padding: 1.6rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.news-item:hover {
  background: #f3f0e9;
}

.news-item .date {
  flex: 0 0 6.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-400);
  letter-spacing: 0.04em;
}

.news-item .title {
  font-size: 1rem;
  font-weight: 600;
}

.news-note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--grey-400);
}

/* ---------- careers ---------- */

.careers {
  background: var(--ink);
  color: var(--paper);
}

.careers .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}

.careers .section-title {
  color: var(--paper);
}

.careers .section-lead {
  color: rgba(255, 255, 255, 0.65);
}

.careers .hero-actions {
  margin-top: 2.75rem;
}

.careers .hero-cta {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.careers .hero-cta:hover {
  opacity: 0.85;
}

.careers .hero-cta.ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- contact ---------- */

.contact-box {
  margin-top: 3.5rem;
}

.contact-box a.contact-mail {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  border-bottom: 3px solid var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-box a.contact-mail:hover {
  color: var(--grey-400);
  border-color: var(--grey-400);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 4.5rem 0 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.9rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 2.1;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-muted {
  display: block;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 2.1;
}

.footer-info {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 2;
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
  color: var(--paper);
}

.section-more {
  display: inline-block;
  margin-top: 2.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section-more:hover {
  color: var(--grey-400);
  border-color: var(--grey-400);
}

/* ---------- sub pages ---------- */

.page-hero {
  padding: 6.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.page-hero .section-lead {
  margin-top: 1.5rem;
}

.page {
  padding: 6rem 0 7rem;
}

.page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.prose {
  margin-top: 2.5rem;
  max-width: 46em;
}

.prose h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 2.5rem;
}

.prose p {
  margin-top: 1rem;
  color: var(--grey-600);
  font-size: 0.98rem;
}

.prose .date {
  font-size: 0.85rem;
  color: var(--grey-400);
}

.error-page {
  padding: 10rem 0 12rem;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.error-page p {
  margin-top: 1.5rem;
  color: var(--grey-600);
}

/* ---------- reveal ---------- */

html:not(.no-js) .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html:not(.no-js) .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .hero .rise {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
  .marquee-track {
    animation: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .site-header .container {
    padding: 0 1rem;
  }
  .site-nav {
    gap: 0.6rem;
    font-size: 0.78rem;
  }
  .site-nav .nav-about {
    display: none;
  }
  .wordmark img {
    height: 1.6rem;
  }
  .lang-switch,
  .nav-cta {
    padding: 0.25rem 0.55rem;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }
  .site-nav a {
    white-space: nowrap;
  }
  .hero {
    padding: 5.5rem 0 5rem;
  }
  section {
    padding: 4.5rem 0;
  }
  .service-grid,
  .steps,
  .mission,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-banner {
    padding: 1.6rem 1.75rem;
  }
  .news-item {
    flex-direction: column;
    gap: 0.2rem;
  }
}

@media (max-width: 420px) {
  .site-nav .nav-news {
    display: none;
  }
}
