:root {
  --bg: #0b0f1a;
  --bg-soft: #101624;
  --text: #eef3ff;
  --muted: rgba(238, 243, 255, 0.76);
  --accent: #00d1ff;
  --accent-2: #7c4dff;
  --line: rgba(255, 255, 255, 0.1);
  --placeholder: rgba(255, 255, 255, 0.05);
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 209, 255, 0.1), transparent 20%),
    radial-gradient(circle at 86% 9%, rgba(124, 77, 255, 0.14), transparent 18%),
    linear-gradient(180deg, #070a12 0%, #0b0f1a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 95%);
  pointer-events: none;
}

/* =========================
   Dark Mode + Thin Scrollbar (All-in-One)
========================= */




/* =========================
   WebKit (Chrome, Edge, Safari)
========================= */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.dock-section::-webkit-scrollbar {
    width: 6px;
}

body::-webkit-scrollbar-track,
.dock-section::-webkit-scrollbar-track {
    background: #0b0f1a;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.dock-section::-webkit-scrollbar-thumb {
    background: #0b0f1a;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover,
.dock-section::-webkit-scrollbar-thumb:hover {
    background: #0b0f1a;
}

/* =========================
   Firefox
========================= */
body,
.dock-section {
    scrollbar-width: thin;
    scrollbar-color: #444 #1e1e1e;
}
/* 스크롤 시에만 보이게 (고급) */
body:not(:hover)::-webkit-scrollbar-thumb,
.dock-section:not(:hover)::-webkit-scrollbar-thumb {
    background: transparent;
}

.background-glow {
  position: fixed;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.18;
  pointer-events: none;
}

.background-glow--left {
  top: -10vw;
  left: -8vw;
  background: #00d1ff;
}

.background-glow--right {
  top: 12vh;
  right: -12vw;
  background: #7c4dff;
}

.hero,
.paper__body {
  position: relative;
  z-index: 1;
}

.hero {
  width: min(calc(100vw - 48px), 1100px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18vh 0 12vh;
  display: grid;
  align-content: center;
  gap: 18px;
}

.eyebrow,
.chapter__label {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 1.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow {
  font-size: 0.84rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.8rem, 4.8vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.2rem, 2.7vw, 1.92rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-top: 48px;
  margin-bottom: 14px;
}

.hero__subtitle,
.hero__lede,
p,
li,
figcaption {
  color: var(--muted);
}

.hero__subtitle {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__lede {
  max-width: 700px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.9;
}

.paper {
  padding: 0 0 120px;
}

.paper__body {
  width: min(calc(100vw - 48px), 1100px);
  margin: 0 auto;
}




.chapter,
.declaration {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.bridge-embed {
  border-top: 1px solid var(--line);
}

.bridge-embed__section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.bridge-embed__cover {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle, #121826, #000);
}

.bridge-embed__cover h1 {
  font-family: "Inter", sans-serif;
  font-size: 64px;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.1;
  background: linear-gradient(90deg, #00d1ff, #7c4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bridge-embed__cover p,
.bridge-embed__section p,
.bridge-embed__section h2 {
  font-family: "Inter", sans-serif;
  text-align: left;
}

.bridge-embed__cover p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  opacity: 0.85;
}

.bridge-embed__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  width: 100%;
  align-items: center;
}

.bridge-embed__section h2 {
  font-size: 40px;
  margin: 0 0 20px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.bridge-embed__section p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  text-align: left;
  text-justify: auto;
  opacity: 0.85;
}

.bridge-embed__wave {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, #00d1ff, #7c4dff);
  border-radius: 50%;
  filter: blur(80px);
  animation: bridge-wave 6s infinite linear;
}

.bridge-embed__line {
  width: 60px;
  height: 4px;
  background: #00d1ff;
  margin: 20px 0;
}

@keyframes bridge-wave {
  0% {
    transform: scale(1) translateX(0);
  }

  50% {
    transform: scale(1.2) translateX(50px);
  }

  100% {
    transform: scale(1) translateX(0);
  }
}

p,
li {
  margin: 0 0 1.15em;
  font-size: 1.08rem;
  line-height: 2;
  text-align: justify;
  text-justify: inter-word;
}

ol,
ul {
  margin: 0 0 1.4em 1.4em;
  padding: 0;
}

em {
  font-style: italic;
}

.image-placeholder {
  margin: 38px 0 22px;
}

.image-placeholder__frame {
  min-height: 280px;
  display: grid;
  place-items: center;
  background: var(--placeholder);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  color: rgba(238, 243, 255, 0.68);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-placeholder__image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.image-placeholder--wide .image-placeholder__frame {
  min-height: 360px;
}

.image-placeholder--wide .image-placeholder__image {
  min-height: 360px;
}

figcaption {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}

.editorial-note {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1rem;
}

blockquote {
  margin: 0 0 26px;
  padding: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.35;
  color: var(--text);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 720px) {
  body::before {
    background-size: 42px 42px;
  }

  .hero,
  .paper__body {
    width: min(calc(100vw - 28px), 1100px);
  }

  .hero {
    padding: 16vh 0 10vh;
  }

  .chapter,
  .declaration {
    padding: 56px 0;
  }

  .bridge-embed__section {
    min-height: auto;
    padding: 72px 7%;
  }

  .bridge-embed__cover {
    min-height: 100vh;
  }

  .bridge-embed__cover h1 {
    font-size: 40px;
  }

  .bridge-embed__container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bridge-embed__section h2 {
    font-size: 32px;
  }

  .bridge-embed__section p,
  .bridge-embed__cover p {
    font-size: 16px;
  }

  .bridge-embed__wave {
    height: 140px;
  }

  p,
  li {
    font-size: 1rem;
    line-height: 1.9;
  }

  .image-placeholder__frame {
    min-height: 220px;
  }

  .image-placeholder--wide .image-placeholder__frame {
    min-height: 260px;
  }

  .image-placeholder__image {
    min-height: 220px;
  }

  .image-placeholder--wide .image-placeholder__image {
    min-height: 260px;
  }
}

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

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

  .bridge-embed__wave {
    animation: none;
  }
}
