:root {
  --bg: #FAF9F6;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.8);
  --ink: #1C1E21;
  --muted: #5E646E;
  --line: rgba(28, 30, 33, 0.07);
  --line-strong: rgba(28, 30, 33, 0.14);
  --blue: #2563EB;
  --green: #0F766E;
  --coral: #EA580C;
  --shadow: 0 4px 20px -2px rgba(28, 30, 33, 0.05), 0 2px 6px -1px rgba(28, 30, 33, 0.03);
  --shadow-lg: 0 24px 48px -12px rgba(18, 22, 28, 0.08), 0 8px 16px -4px rgba(18, 22, 28, 0.03);
  --font-sans: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --page-x: clamp(20px, 6vw, 80px);
  --radius: 12px;
  --text-xs: clamp(0.76rem, 0.72rem + 0.2vw, 0.86rem);
  --text-sm: clamp(0.88rem, 0.84rem + 0.22vw, 0.98rem);
  --text-base: clamp(1rem, 0.94rem + 0.28vw, 1.1rem);
  --text-md: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  --text-lg: clamp(1.28rem, 1.12rem + 0.8vw, 1.85rem);
  --title: clamp(2.2rem, 1.6rem + 4vw, 4.8rem);
  --section-title: clamp(1.85rem, 2.35vw, 2.5rem);
  --display: clamp(3.8rem, 2rem + 8vw, 8.5rem);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-synthesis: none;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
}

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

.ai-generated-media {
  position: relative;
  isolation: isolate;
}

.ai-generated-media::after {
  content: attr(data-ai-label);
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(28, 30, 33, 0.72);
  color: #ffffff;
  font-size: clamp(0.72rem, 0.68rem + 0.18vw, 0.84rem);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ai-generated-media img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(28, 30, 33, 0.15);
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(28, 30, 33, 0.3);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: var(--page-x);
  transform: translateY(-150%);
  border-radius: 999px;
  padding: 10px 20px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 var(--page-x);
  color: rgba(255, 255, 255, 0.95);
  background: rgba(18, 20, 24, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-size: var(--text-base);
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-sm);
  font-weight: 600;
}

.nav-links a:hover {
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 140px var(--page-x) clamp(100px, 14vh, 160px);
}

.hero-media,
.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  overflow: hidden;
  background: #181a1d;
}

.hero-image {
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.02);
  filter: brightness(0.95);
  animation: hero-zoom 20s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(12, 14, 17, 0.85) 0%, rgba(12, 14, 17, 0.4) 50%, rgba(12, 14, 17, 0.1) 100%),
    linear-gradient(0deg, rgba(12, 14, 17, 0.6) 0%, rgba(12, 14, 17, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 24px;
  font-size: var(--display);
  line-height: 1.05;
  font-weight: 900;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: var(--title);
  line-height: 1.12;
  font-weight: 800;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
  letter-spacing: 0;
}

.title-lines span {
  display: block;
}

.section-copy h2 {
  max-width: 720px;
  font-size: var(--section-title);
  line-height: 1.18;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--text-lg);
  line-height: 1.55;
  font-weight: 500;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-actions,
.chapter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  font-size: var(--text-sm);
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.button.primary:hover {
  background: #1d4ed8;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
}

.button.compact {
  min-height: 40px;
  flex: 0 0 auto;
}

/* Stats / Summary Band */
.summary-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - (var(--page-x) * 2)));
  margin: clamp(-60px, -6vw, -40px) auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.summary-item {
  min-height: 140px;
  border-right: 1px solid var(--line);
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.summary-item:hover {
  background: rgba(255, 255, 255, 0.4);
}

.summary-item:last-child {
  border-right: 0;
}

.summary-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.2rem);
  line-height: 1;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
}

.summary-item span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* Sections */
.section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
  width: min(1180px, calc(100% - (var(--page-x) * 2)));
  margin: 0 auto;
  padding: clamp(100px, 12vw, 160px) 0;
}

.section.quiet {
  width: 100%;
  padding-right: max(var(--page-x), calc((100vw - 1180px) / 2));
  padding-left: max(var(--page-x), calc((100vw - 1180px) / 2));
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section.quiet .section-copy {
  grid-column: 1 / -1;
  max-width: 760px;
}

.section-copy {
  max-width: 780px;
}

.section-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.75;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--blue);
  font-size: var(--text-base);
  font-weight: 700;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* Format Grid */
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: start;
}

.format-grid article,
.chapter-item,
.modal-meta article,
.modal-unit {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.format-grid article {
  min-height: 180px;
  padding: clamp(20px, 3.2vw, 28px);
  display: flex;
  flex-direction: column;
}

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

.format-grid span,
.chapter-item span,
.modal-meta span,
.unit-number {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.format-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.4rem);
  line-height: 1.3;
  font-weight: 800;
  color: var(--ink);
}

.format-grid p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Categories Section */
.categories {
  padding-top: clamp(80px, 10vw, 130px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: start;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.category-card.highlight {
  border-color: rgba(15, 118, 110, 0.25);
  background: linear-gradient(135deg, var(--surface), rgba(15, 118, 110, 0.03));
}

.category-card.highlight:hover {
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 20px 40px -10px rgba(15, 118, 110, 0.12), var(--shadow);
}

.category-card.highlight span {
  color: var(--green);
}

.category-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.category-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
  word-break: keep-all;
}

.category-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  text-wrap: pretty;
  word-break: keep-all;
  flex-grow: 1;
}

.category-card em {
  align-self: flex-start;
  color: var(--blue);
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: 700;
}

.category-card.highlight em {
  color: var(--green);
}

/* Chapter Section */
.chapters-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#chapters .chapters-wrapper {
  grid-column: 2;
}

.chapter-tabs {
  margin: 0;
  align-items: center;
  align-self: start;
  background: rgba(28, 30, 33, 0.04);
  padding: 4px;
  border-radius: 99px;
  gap: 2px;
  border: 1px solid rgba(28, 30, 33, 0.02);
}

.tab-button {
  min-height: 36px;
  border: none;
  border-radius: 99px;
  padding: 0 16px;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-button:hover {
  color: var(--ink);
}

.tab-button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.chapter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chapter-list:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 4px;
}

.chapter-item {
  min-height: 100px;
  padding: 20px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.chapter-item:hover,
.chapter-item:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.chapter-item strong {
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.15rem);
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
  margin-top: auto;
}

/* Modals */
.part-modal[hidden] {
  display: none;
}

.part-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 18, 0.45);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: min(88vh, 860px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: clamp(24px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 70px -10px rgba(18, 22, 28, 0.22);
}

/* Modal animation handled via classes toggled/checked */
.part-modal:not([hidden]) {
  display: grid;
  animation: modal-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.part-modal:not([hidden]) .modal-panel {
  animation: modal-panel-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.part-modal.modal-closing {
  animation: modal-fade-out 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.part-modal.modal-closing .modal-panel {
  animation: modal-panel-slide-down 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modal-panel-slide-up {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modal-panel-slide-down {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.96) translateY(24px);
  }
}

.modal-panel:focus {
  outline: none;
}

.modal-close {
  position: absolute;
  z-index: 10;
  top: clamp(16px, 4vw, 32px);
  right: clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(28, 30, 33, 0.05);
  transform: scale(1.05);
}

.modal-kicker {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modal-panel h3 {
  max-width: 90%;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 1.3rem + 2.5vw, 2.8rem);
  line-height: 1.15;
  font-weight: 800;
  text-wrap: balance;
  word-break: keep-all;
  color: var(--ink);
  letter-spacing: 0;
}

#part-modal-summary {
  max-width: 720px;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.7;
  word-break: keep-all;
  margin-bottom: 24px;
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.modal-meta article {
  min-height: 120px;
  padding: 18px;
  background: rgba(28, 30, 33, 0.02);
}

.modal-meta strong {
  font-size: var(--text-sm);
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-badges span {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
}

.modal-unit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal-unit {
  padding: 20px;
  background: var(--surface);
}

.modal-unit strong {
  display: block;
  margin-bottom: 8px;
  font-size: var(--text-base);
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.modal-unit p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.modal-footer p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.5;
}

/* Final CTA */
.final-cta {
  padding: clamp(80px, 10vw, 130px) var(--page-x);
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.final-cta h2 {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  font-size: var(--section-title);
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.18;
}

.final-cta h2 span {
  display: block;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 24px var(--page-x);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--surface);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .nav-links {
    gap: 16px;
  }

  .summary-band,
  .section,
  .format-grid,
  .category-grid,
  .chapter-list,
  .modal-meta,
  .modal-unit-list {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(680px, calc(100% - (var(--page-x) * 2)));
    gap: 40px;
    padding: clamp(60px, 10vw, 100px) 0;
  }

  .section.quiet {
    padding-right: var(--page-x);
    padding-left: var(--page-x);
  }

  #chapters .chapters-wrapper {
    grid-column: 1;
  }

  .summary-item {
    min-height: auto;
    padding: 20px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-item:last-child {
    border-bottom: 0;
  }

  .modal-footer,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .modal-close {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-x: 20px;
    --section-title: clamp(1.55rem, 6vw, 2rem);
  }

  .site-header {
    height: 56px;
  }

  .hero {
    min-height: 85svh;
    padding: 100px var(--page-x) 40px;
  }

  .hero-image {
    object-position: 64% center;
  }

  h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .hero-copy {
    font-size: clamp(1rem, 4.2vw, 1.2rem);
    margin-bottom: 28px;
  }

  .section-copy h2,
  .final-cta h2 {
    line-height: 1.22;
  }

  .button {
    width: 100%;
  }

  .final-cta h2 {
    max-width: 100%;
  }

  .final-cta h2 span:last-child {
    white-space: normal;
  }

  .summary-band {
    width: 100%;
    margin-top: -30px;
  }

  .format-grid article,
  .category-card,
  .chapter-item {
    min-height: auto;
  }

  .chapter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    overflow: visible;
    background: rgba(28, 30, 33, 0.04);
    border: 1px solid rgba(28, 30, 33, 0.04);
  }

  .chapter-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-button {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    min-height: 36px;
    border-radius: 8px;
    white-space: nowrap;
  }

  .part-modal {
    padding: 12px;
  }

  .modal-panel {
    max-height: 90vh;
    padding: 24px 20px;
    border-radius: 12px;
  }

  .modal-panel h3 {
    padding-right: 32px;
    font-size: 1.6rem;
  }

  .ai-generated-media::after {
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
  }
  
  .modal-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .modal-meta article {
    min-height: auto;
    padding: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .button:hover,
  .tab-button:hover,
  .category-card:hover,
  .category-card:focus-visible,
  .chapter-item:hover,
  .chapter-item:focus-visible {
    transform: none;
  }

  .hero-image {
    animation: none;
  }
}

/* Fallback for backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(18, 20, 24, 0.95);
  }

  .summary-band,
  .modal-panel {
    background: #fff;
  }

  .modal-backdrop {
    background: rgba(12, 14, 18, 0.65);
  }
}
