:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-elevated: #ffffff;
  --bg-muted: #eef3f8;
  --text: #111827;
  --muted: #5d6778;
  --line: #dbe3ec;
  --line-strong: #c5d0dc;
  --accent: #1f5eff;
  --accent-dark: #123daf;
  --accent-soft: #edf3ff;
  --shadow-sm: 0 16px 36px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 28px 72px rgba(15, 23, 42, 0.1);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-body: "Plus Jakarta Sans", "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background: linear-gradient(180deg, #f7f9fc 0%, #f3f6fa 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at top right,
      rgba(31, 94, 255, 0.1),
      transparent 24%
    ),
    radial-gradient(circle at 12% 0%, rgba(15, 23, 42, 0.05), transparent 18%),
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    72px 72px,
    72px 72px;
  mask-image: linear-gradient(
    180deg,
    black 0%,
    rgba(0, 0, 0, 0.68) 44%,
    transparent 100%
  );
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner,
.site-shell,
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.site-brand span {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.site-brand small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.site-nav .nav-cta {
  border: 1px solid rgba(31, 94, 255, 0.16);
  background: var(--bg-elevated);
  box-shadow: 0 10px 24px rgba(31, 94, 255, 0.08);
}

.page-frame {
  position: relative;
  z-index: 1;
}

.site-shell {
  padding: 40px 24px 88px;
}

.hero-copy,
.hero-panel,
.section-heading,
.mini-card,
.project-card,
.content-card,
.inner-hero,
.cta-section,
.error-layout {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.hero-copy,
.hero-panel,
.section-heading,
.mini-card,
.content-card,
.inner-hero,
.cta-section,
.error-layout {
  border-radius: var(--radius-xl);
}

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy {
  padding: 44px;
}

.hero-copy h1,
.inner-hero h1,
.error-layout h1 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.inner-hero {
  max-width: 920px;
  padding: 40px 42px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.inner-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.error-layout h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.eyebrow,
.section-kicker,
.card-kicker,
.panel-kicker {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card-kicker {
  color: var(--muted);
}

.hero-text,
.section-heading p,
.project-description,
.content-card p,
.inner-hero p,
.cta-section p,
.error-layout p,
.hero-panel p,
.mini-card p,
.footer-brand p,
.footer-meta p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(31, 94, 255, 0.18);
}

.button-primary:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

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

.hero-stats li {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-stats strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-panel {
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 34px 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
}

.hero-panel h2,
.section-heading h2,
.cta-section h2,
.mini-card h2,
.content-card h2 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.highlight-list {
  display: grid;
  gap: 12px;
}

.highlight-item {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(248, 250, 252, 0.92);
}

.highlight-item strong {
  display: block;
  font-size: 1rem;
}

.highlight-item p {
  margin-top: 10px;
  font-size: 0.94rem;
}

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

.mini-card {
  padding: 28px;
}

.mini-card h2 {
  font-size: 1.35rem;
}

.project-section {
  scroll-margin-top: 96px;
}

.section-heading {
  max-width: 880px;
  padding: 30px 32px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.project-list {
  display: grid;
  gap: 20px;
}

.project-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-xl);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.project-thumb-wrap {
  padding: 18px;
  background: linear-gradient(180deg, #f6f8fc 0%, #edf2f8 100%);
}

.project-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid #d8e0ea;
  background: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 220ms ease;
}

.project-card:hover .project-thumb {
  transform: scale(1.02);
}

.project-body {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 30px 32px 32px;
}

.project-meta,
.tag-row,
.contact-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-badge,
.project-state,
.tag,
.contact-links a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
}

.project-badge {
  border-color: rgba(31, 94, 255, 0.14);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.project-state {
  background: var(--bg-muted);
  color: var(--muted);
}

.tag {
  color: var(--muted);
}

.project-body h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--accent-dark);
  font-weight: 700;
}

.project-link::after {
  content: "->";
  font-size: 0.92rem;
}

.cta-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 60px;
  padding: 32px;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.policy-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  padding: 28px 30px;
}

.content-card h2 {
  font-size: 1.42rem;
}

.content-card .contact-links {
  margin-top: 22px;
}

.contact-links a:hover,
.footer-links a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 0 24px 40px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.footer-meta p {
  margin-top: 0;
}

.site-brand-footer span {
  letter-spacing: 0.12em;
}

.error-layout {
  min-height: 58vh;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 40px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.has-motion .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.has-motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-home,
  .mini-grid,
  .policy-layout,
  .project-card {
    grid-template-columns: 1fr;
  }

  .cta-section,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 14px 16px;
  }

  .site-shell {
    padding: 26px 16px 72px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .site-nav a {
    padding: 9px 11px;
    font-size: 0.9rem;
  }

  .hero-copy,
  .hero-panel,
  .section-heading,
  .mini-card,
  .project-body,
  .content-card,
  .inner-hero,
  .cta-section,
  .error-layout {
    padding: 22px;
  }

  .project-thumb-wrap {
    padding: 14px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    padding: 0 16px 28px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .project-meta,
  .tag-row,
  .contact-links,
  .footer-links {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .has-motion .reveal,
  .has-motion .reveal.is-visible,
  .project-thumb,
  .project-card,
  .button-primary {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
