:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-muted: #ebf1f7;
  --line: rgba(23, 35, 63, 0.12);
  --ink: #122033;
  --ink-soft: #4f6077;
  --brand: #1a57c7;
  --brand-deep: #10264e;
  --brand-soft: #d9e6ff;
  --accent: #d7793d;
  --shadow: 0 22px 60px rgba(16, 31, 61, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  line-break: strict;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(26, 87, 199, 0.14), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(215, 121, 61, 0.12), transparent 24%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

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

a {
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.site-shell::before {
  top: -9rem;
  left: -6rem;
  width: 20rem;
  height: 20rem;
  background: rgba(26, 87, 199, 0.08);
}

.site-shell::after {
  top: 32rem;
  right: -8rem;
  width: 22rem;
  height: 22rem;
  background: rgba(215, 121, 61, 0.08);
}

.sticky-nav {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(247, 249, 252, 0.82);
  border-bottom: 1px solid rgba(23, 35, 63, 0.06);
}

body.menu-open .sticky-nav {
  background: #f7f9fc;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brand-mark {
  color: var(--brand-deep);
  letter-spacing: -0.05em;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(16, 38, 78, 0.86);
}

.section-kicker::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
}

.surface-panel,
.story-card,
.project-card,
.process-card,
.timeline-card,
.cta-panel,
.feature-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.surface-panel {
  border-radius: var(--radius-xl);
}

.feature-panel,
.story-card,
.process-card,
.timeline-card {
  border-radius: var(--radius-lg);
}

.project-card {
  border-radius: 26px;
  overflow: hidden;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(26, 87, 199, 0.12);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.65rem 0.95rem;
  color: var(--ink-soft);
}

.metric-strip {
  display: grid;
  gap: 0.9rem;
}

.metric-tile {
  border-radius: var(--radius-md);
  border: 1px solid rgba(23, 35, 63, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(16, 38, 78, 0.8);
}

.metric-value {
  margin-top: 0.45rem;
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.project-media {
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-muted);
}

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

.project-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 35, 63, 0.12);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.28rem;
}

.lang-link {
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lang-link.is-active {
  background: var(--brand);
  color: #ffffff;
}

.media-frame {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(23, 35, 63, 0.08);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

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

.stack-diagram {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 14% 18%, rgba(26, 87, 199, 0.18), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(215, 121, 61, 0.16), transparent 24%),
    linear-gradient(135deg, #f6f9fe 0%, #e8eff8 100%);
}

.stack-diagram--deep {
  background:
    radial-gradient(circle at 14% 18%, rgba(183, 196, 255, 0.26), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(215, 121, 61, 0.18), transparent 22%),
    linear-gradient(145deg, #10264e 0%, #1a57c7 100%);
  color: #f7f9fc;
}

.stack-diagram__eyebrow {
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(16, 38, 78, 0.72);
}

.stack-diagram--deep .stack-diagram__eyebrow {
  color: rgba(247, 249, 252, 0.78);
}

.stack-diagram__title {
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.stack-diagram--deep .stack-diagram__title {
  color: #ffffff;
}

.stack-diagram__copy {
  max-width: 28ch;
  color: var(--ink-soft);
  line-height: 1.7;
}

.stack-diagram--deep .stack-diagram__copy {
  color: rgba(247, 249, 252, 0.84);
}

.stack-diagram__grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-diagram__node {
  display: flex;
  min-height: 5rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 18px;
  border: 1px solid rgba(23, 35, 63, 0.08);
  background: rgba(255, 255, 255, 0.88);
  padding: 0.9rem;
  box-shadow: 0 14px 32px rgba(16, 31, 61, 0.05);
}

.stack-diagram--deep .stack-diagram__node {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(12, 19, 36, 0.28);
  box-shadow: none;
}

.stack-diagram__node strong {
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stack-diagram--deep .stack-diagram__node strong {
  color: #ffffff;
}

.stack-diagram__node span {
  font-size: 0.83rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.stack-diagram--deep .stack-diagram__node span {
  color: rgba(247, 249, 252, 0.78);
}

.stack-diagram__footer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(16, 38, 78, 0.76);
}

.stack-diagram--deep .stack-diagram__footer {
  color: rgba(247, 249, 252, 0.84);
}

.media-frame.video {
  position: relative;
  aspect-ratio: 16 / 9;
}

.media-frame.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.detail-grid {
  display: grid;
  gap: 1rem;
}

.detail-note {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(23, 35, 63, 0.08);
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem 1.1rem;
  color: var(--ink-soft);
  line-height: 1.8;
  box-shadow: 0 18px 48px rgba(16, 31, 61, 0.06);
}

.detail-note strong {
  color: var(--brand-deep);
}

.mobile-drawer {
  display: flex;
  min-height: 100dvh;
  overflow-y: auto;
  background: #f7f9fc !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.mobile-nav-link {
  border-radius: 20px;
  border: 1px solid rgba(23, 35, 63, 0.08);
  background: #ffffff;
  padding: 1rem 1.1rem;
}

.mobile-nav-link.is-active {
  border-color: rgba(26, 87, 199, 0.24);
  background: #e7efff;
}

.cta-panel {
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(16, 38, 78, 0.96), rgba(26, 87, 199, 0.88)),
    #10264e;
  color: #f7f9fc;
}

.summary-grid {
  display: grid;
  gap: 1rem;
}

.summary-card,
.evidence-card,
.related-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(23, 35, 63, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(16, 31, 61, 0.06);
}

.summary-card {
  padding: 1.1rem;
}

.summary-card h3,
.evidence-card h3,
.related-card h3 {
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.evidence-card,
.related-card {
  overflow: hidden;
}

.content-prose {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
}

.content-prose p + p {
  margin-top: 1rem;
}

.content-prose strong {
  color: var(--brand-deep);
  font-weight: 700;
}

.list-checks {
  display: grid;
  gap: 0.75rem;
}

.list-checks li {
  display: flex;
  gap: 0.75rem;
  color: var(--ink-soft);
}

.list-checks li::before {
  content: "•";
  color: var(--brand);
  font-weight: 700;
}

.footer-link {
  color: var(--ink-soft);
}

.footer-link:hover {
  color: var(--brand);
}

.display-balance {
  max-inline-size: 13ch;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.display-manual {
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.page-hero-title {
  max-inline-size: 13ch;
  font-size: 1.45rem;
  line-height: 1.06;
  text-wrap: balance;
}

.page-section-title {
  font-size: 1.5rem;
  line-height: 1.08;
}

.page-block-title {
  font-size: 1.2rem;
  line-height: 1.12;
}

.page-card-title {
  font-size: 1.12rem;
  line-height: 1.14;
}

.page-mini-title {
  font-size: 1rem;
  line-height: 1.16;
}

.redirect-title {
  font-size: 1.45rem;
  line-height: 1.1;
}

.heading-balance {
  max-inline-size: 16ch;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.copy-measure {
  max-inline-size: 36ch;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero-copy {
  max-inline-size: 30ch;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (min-width: 640px) {
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-title {
    max-inline-size: 14ch;
    font-size: 1.9rem;
  }

  .page-section-title {
    font-size: 1.8rem;
  }

  .page-block-title {
    font-size: 1.35rem;
  }

  .page-card-title {
    font-size: 1.24rem;
  }

  .page-mini-title {
    font-size: 1.05rem;
  }

  .redirect-title {
    font-size: 1.75rem;
  }

  .display-balance {
    max-inline-size: 14ch;
  }

  .heading-balance {
    max-inline-size: 18ch;
  }

  .copy-measure,
  .hero-copy {
    max-inline-size: 36ch;
  }
}

@media (min-width: 1024px) {
  .metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stack-diagram {
    padding: 1.5rem;
  }

  .stack-diagram__title {
    font-size: 2rem;
  }

  .page-hero-title {
    max-inline-size: 15ch;
    font-size: 2.35rem;
  }

  .page-section-title {
    font-size: 2rem;
  }

  .page-block-title {
    font-size: 1.5rem;
  }

  .page-card-title {
    font-size: 1.35rem;
  }

  .page-mini-title {
    font-size: 1.1rem;
  }

  .display-balance {
    max-inline-size: 15ch;
  }

  .heading-balance {
    max-inline-size: 20ch;
  }

  .copy-measure,
  .hero-copy {
    max-inline-size: 42ch;
  }
}
