:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6578;
  --line: #dfe4f5;
  --accent: #4f46e5;
  --teal: #0f9f91;
  --paper: #ffffff;
  --wash: #f6f8ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }

.case-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.case-header-inner,
.case-shell,
.case-footer-inner {
  width: min(100% - 2rem, 76rem);
  margin: 0 auto;
}

.case-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.case-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font: 900 1.05rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-decoration: none;
  letter-spacing: 0.12em;
}

.case-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(#111827 0 25%, #e5e7eb 25% 75%, #111827 75%);
}

.case-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.case-nav a { text-decoration: none; }
.case-nav a:hover { color: var(--accent); }

.case-language {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--wash);
  color: var(--ink) !important;
  font: 800 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.case-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 2rem 0 0;
  color: #768096;
  font-size: 0.8rem;
}

.case-breadcrumb a { text-decoration: none; }

.case-hero {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 2.5rem;
}

.case-kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font: 800 0.78rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.case-hero h1 {
  max-width: 58rem;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.08;
  font-weight: 900;
  word-break: keep-all;
}

.case-lead {
  max-width: 50rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.8;
  word-break: keep-all;
}

.case-review {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin-top: 1.5rem;
  color: #778096;
  font-size: 0.78rem;
}

.case-media {
  margin: 2.5rem 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--wash);
}

.case-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.case-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.case-summary div {
  min-width: 0;
  padding: 1.35rem;
  background: var(--paper);
}

.case-summary span {
  display: block;
  color: #7a8397;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-summary strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1rem;
  line-height: 1.45;
  word-break: keep-all;
}

.case-content {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(15rem, 0.7fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  padding: 4.5rem 0 6rem;
}

.case-sections section + section {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.case-sections h2,
.case-aside h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.25;
}

.case-sections p,
.case-sections li,
.case-aside p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  word-break: keep-all;
}

.case-result {
  margin-top: 1.25rem;
  padding: 1.35rem 1.5rem;
  border-left: 4px solid var(--teal);
  background: #eefaf7;
  color: #0d665d;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.65;
}

.case-aside {
  align-self: start;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.case-aside ul {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.case-aside li + li { margin-top: 0.75rem; }
.case-aside a { color: var(--accent); font-weight: 800; text-decoration: none; }

.case-evidence {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.case-evidence strong { display: block; margin-bottom: 0.45rem; }
.case-evidence p { margin: 0; font-size: 0.85rem; line-height: 1.7; }

.case-next {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.case-next a {
  color: var(--accent);
  font-weight: 850;
  text-decoration: none;
}

.case-footer {
  padding: 2.5rem 0 6rem;
  background: #111827;
  color: #e5e7eb;
}

.case-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.82rem;
}

.case-footer a { color: #c7d2fe; text-decoration: none; }

@media (max-width: 760px) {
  .case-header-inner { min-height: 62px; }
  .case-nav > a:not(.case-language) { display: none; }
  .case-hero { padding-top: 2.75rem; }
  .case-summary { grid-template-columns: 1fr; }
  .case-content { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .case-aside { padding: 2rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .case-footer-inner { flex-direction: column; }
}
