/* ==========================================================================
   서가아래 (stack000) — Layered Paper-Cut & Depth Editorial Theme
   - 따뜻한 미색 도화지 + 숲속 딥그린 + 살구/앰버 크라프트 팔레트 유지
   - 다층 종이 컷아웃, 음각(Inset) 뎁스, 별빛 반짝임, WCAG AA 명암비·접근성 완비
   ========================================================================== */

:root {
  /* Paper & Canvas */
  --canvas: #f7f5ed;
  --canvas-warm: #f2eadb;
  --paper-white: #fffdf9;
  --parchment: #f7ead0;
  --kraft-soft: #e9d9bd;
  --kraft-line: #d4bf9c;

  /* Forest & Warm Accents (서가아래 · stack020 통일 팔레트) */
  --forest-deep: #183624;
  --forest-main: #224631;
  --forest-mid: #2f6b47;
  --forest-soft: #e6f0e8;

  --amber: #d88226;
  --amber-bright: #efaa46;
  --amber-soft: #f9e8c3;
  --terra: #c25333;

  /* Ink (WCAG AA 4.5:1 이상 명암비 확보) */
  --ink-primary: #231912;
  --ink-secondary: #534032;
  --ink-muted: #6f5b4a;

  /* Tactile Depth Shadows */
  --shadow-float-sm:
    0 2px 5px rgba(35, 25, 18, 0.06),
    0 10px 24px rgba(35, 25, 18, 0.08);
  --shadow-float-md:
    0 4px 10px rgba(35, 25, 18, 0.07),
    0 20px 44px rgba(35, 25, 18, 0.11);
  --shadow-float-lg:
    0 8px 18px rgba(35, 25, 18, 0.09),
    0 30px 64px rgba(35, 25, 18, 0.14);
  --shadow-inset-cutout:
    inset 6px 10px 20px rgba(42, 24, 10, 0.18),
    inset 2px 3px 6px rgba(42, 24, 10, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8);

  --radius-md: 18px;
  --radius-lg: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--canvas);
  color: var(--ink-primary);
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 실제 도화지 섬유 질감 오버레이 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* 키보드 접근성 포커스 링 */
a:focus-visible,
button:focus-visible {
  outline: 2.5px solid var(--amber);
  outline-offset: 3px;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline-color: var(--amber-bright);
  border-radius: 4px;
}

/* 숫자 0과 알파벳 O 혼동 방지 */
.code-num {
  font-family: 'JetBrains Mono', 'Noto Sans KR', monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--forest-main);
  color: #fffdf9;
  font-weight: 700;
  z-index: 120;
}

.skip-link:focus {
  left: 14px;
  top: 14px;
  border-radius: 10px;
}

.container {
  width: min(1140px, calc(100% - 44px));
  margin-inline: auto;
}

/* ==========================================================================
   Minimal Floating Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 237, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 191, 156, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
}

.brand-dot {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--paper-white);
  box-shadow: var(--shadow-float-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.brand-ko {
  font-family: 'Gowun Batang', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.brand-en {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(233, 217, 189, 0.55);
  color: var(--ink-primary);
}

.nav-pill {
  margin-left: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--forest-main);
  color: #fffdf9;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(34, 70, 49, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: var(--forest-mid);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(34, 70, 49, 0.3);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: none;
  border-radius: 12px;
  background: var(--paper-white);
  box-shadow: var(--shadow-float-sm);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink-primary);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ==========================================================================
   Tactile Pill Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: none;
  font-size: 0.93rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-sm {
  padding: 10px 17px;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--forest-mid) 0%, var(--forest-main) 100%);
  color: #fffdf9;
  box-shadow:
    0 4px 10px rgba(24, 54, 36, 0.22),
    0 12px 24px rgba(24, 54, 36, 0.16);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 6px 14px rgba(24, 54, 36, 0.26),
    0 16px 32px rgba(24, 54, 36, 0.22);
}

.btn-paper {
  background: var(--paper-white);
  color: var(--ink-primary);
  box-shadow: var(--shadow-float-sm);
}

.btn-paper:hover,
.btn-paper:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float-md);
}

.btn-paper.is-copied {
  background: var(--forest-soft);
  color: var(--forest-main);
}

/* ==========================================================================
   1. Hero Section — 4-Layer Paper-Cut Bookshelf + Starlight Cosmos
   ========================================================================== */
.hero-section {
  padding: 36px 0 44px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 36px;
}

.papercut-canvas {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
}

.papercut-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.parallax-layer {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* 또렷하고 우아한 별빛 반짝임 애니메이션 */
@keyframes starTwinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1.18) rotate(0deg);
  }
  45% {
    opacity: 0.22;
    transform: scale(0.72) rotate(12deg);
  }
  72% {
    opacity: 0.92;
    transform: scale(1.06) rotate(4deg);
  }
}

@keyframes dotShimmer {
  0%,
  100% {
    opacity: 0.95;
    transform: scale(1.25);
  }
  50% {
    opacity: 0.18;
    transform: scale(0.72);
  }
}

@keyframes nebulaBreath {
  0%,
  100% {
    opacity: 0.95;
  }
  50% {
    opacity: 0.58;
  }
}

.star-twinkle {
  transform-box: fill-box;
  transform-origin: center;
  will-change: opacity, transform;
  animation: starTwinkle 2.8s ease-in-out infinite;
}

.star-v1 {
  animation-duration: 2.7s;
  animation-delay: -0.4s;
}

.star-v2 {
  animation-duration: 3.3s;
  animation-delay: -1.4s;
}

.star-v3 {
  animation-duration: 2.4s;
  animation-delay: -0.9s;
}

.star-v4 {
  animation-duration: 3.8s;
  animation-delay: -2.2s;
}

.star-dot {
  transform-box: fill-box;
  transform-origin: center;
  will-change: opacity, transform;
  animation: dotShimmer 3.4s ease-in-out infinite;
}

.star-dot-1 {
  animation-duration: 2.8s;
  animation-delay: -0.6s;
}

.star-dot-2 {
  animation-duration: 4.1s;
  animation-delay: -1.7s;
}

.star-dot-3 {
  animation-duration: 3.2s;
  animation-delay: -2.5s;
}

.nebula-pulse {
  animation: nebulaBreath 8s ease-in-out infinite;
}

.nebula-delay {
  animation-delay: -4s;
}

.hero-copy-col {
  padding-left: 8px;
}

.editorial-index {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 18px;
}

.index-digits {
  font-size: clamp(4.2rem, 8.2vw, 6.4rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--ink-primary);
  letter-spacing: -0.04em;
}

.index-bar {
  display: inline-block;
  width: 58px;
  height: 7px;
  border-radius: 2px;
  background: var(--ink-primary);
  margin-bottom: 6px;
}

.hero-title {
  font-family: 'Gowun Batang', Georgia, serif;
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-title-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62em;
  font-weight: 700;
  color: var(--forest-mid);
  margin-left: 6px;
  vertical-align: middle;
}

.title-rule {
  display: block;
  width: 34px;
  height: 2.5px;
  background: var(--ink-primary);
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 0.99rem;
  color: var(--ink-secondary);
  max-width: 42ch;
  margin-bottom: 26px;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.editorial-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 191, 156, 0.7);
  font-size: 0.86rem;
}

.editorial-meta li {
  display: grid;
  grid-template-columns: 14px 56px 1fr;
  align-items: baseline;
  gap: 6px;
}

.meta-arrow {
  color: var(--ink-muted);
  font-weight: 700;
}

.meta-key {
  color: var(--ink-muted);
  font-weight: 600;
}

.meta-val {
  color: var(--ink-primary);
  font-weight: 700;
  word-break: keep-all;
}

.meta-accent {
  color: var(--terra);
}

/* ==========================================================================
   Paper Strata Section Dividers
   ========================================================================== */
.paper-strata,
.footer-strata {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  margin-bottom: -1px;
}

.paper-strata svg {
  display: block;
  width: 100%;
  height: 92px;
}

.footer-strata svg {
  display: block;
  width: 100%;
  height: 82px;
}

/* ==========================================================================
   Common Section Styling
   ========================================================================== */
.section {
  padding: 68px 0;
}

.section[id] {
  scroll-margin-top: 84px;
}

.section-head {
  margin-bottom: 34px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--forest-mid);
  background: var(--paper-white);
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-float-sm);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Gowun Batang', Georgia, serif;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 8px;
  word-break: keep-all;
}

.section-lead {
  font-size: 0.96rem;
  color: var(--ink-secondary);
  max-width: 56ch;
  word-break: keep-all;
}

/* ==========================================================================
   2. Archive Section — Floating Paper Card + Recessed Cutout Slot
   ========================================================================== */
.archive-section {
  background: var(--canvas-warm);
}

.archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.project-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--paper-white);
  border-radius: var(--radius-lg);
  padding: 18px;
  gap: 24px;
  box-shadow: var(--shadow-float-md);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float-lg);
}

.project-window {
  position: relative;
  border-radius: 140px 140px 20px 20px;
  overflow: hidden;
  background: var(--forest-deep);
  min-height: 290px;
  box-shadow:
    inset 0 10px 24px rgba(18, 32, 22, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.9);
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.project-window-bevel {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 6px 10px 22px rgba(24, 16, 8, 0.38);
  pointer-events: none;
}

.status-pill {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(24, 16, 8, 0.28);
}

.status-beta {
  background: var(--amber-bright);
  color: var(--ink-primary);
}

.status-live {
  background: var(--forest-mid);
  color: #fffdf9;
}

.status-dev {
  background: var(--parchment);
  color: var(--ink-secondary);
}

.project-body {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 12px 2px;
}

.project-index-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-index {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
}

.project-index-num {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 0.92;
  color: var(--ink-primary);
  letter-spacing: -0.04em;
}

.project-index-bar {
  width: 28px;
  height: 4px;
  background: var(--forest-mid);
  margin-bottom: 4px;
}

.project-reading-chip {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--forest-mid);
  background: var(--forest-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.project-title {
  font-family: 'Gowun Batang', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 2px;
}

.project-title-en {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.project-subtitle {
  font-size: 0.93rem;
  color: var(--ink-secondary);
  margin-bottom: 18px;
  word-break: keep-all;
}

.project-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 191, 156, 0.6);
  font-size: 0.84rem;
}

.project-meta-list li {
  display: grid;
  grid-template-columns: 12px 46px 1fr;
  gap: 6px;
}

.project-cta-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* 종이를 안쪽으로 파낸 음각(Inset) '다음 서가 준비 중' 컷아웃 */
.upcoming-cutout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  background: #e7dbc5;
  box-shadow: var(--shadow-inset-cutout);
  overflow: hidden;
}

.upcoming-inner-ring {
  width: 112px;
  height: 112px;
  border-radius: 44% 56% 52% 48% / 48% 44% 56% 52%;
  background: #dccaa9;
  box-shadow:
    inset 5px 8px 16px rgba(42, 24, 10, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.upcoming-core {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--paper-white);
  box-shadow: var(--shadow-float-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.upcoming-title {
  font-family: 'Gowun Batang', Georgia, serif;
  font-size: 1.24rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 8px;
}

.upcoming-desc {
  font-size: 0.89rem;
  color: var(--ink-secondary);
  max-width: 24ch;
  word-break: keep-all;
}

/* ==========================================================================
   3. Story Section — Floating Paper Sheets with Cutout Holes
   ========================================================================== */
.about-section {
  background: var(--canvas);
}

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

.story-sheet {
  position: relative;
  padding: 30px 26px 32px;
  border-radius: var(--radius-lg);
  background: var(--paper-white);
  box-shadow: var(--shadow-float-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.story-sheet:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float-md);
}

.sheet-cutout {
  width: 60px;
  height: 60px;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fffdf9;
  box-shadow:
    inset 4px 7px 14px rgba(24, 14, 6, 0.36),
    0 1px 0 rgba(255, 255, 255, 0.9);
}

.cutout-green {
  background: var(--forest-main);
}

.cutout-amber {
  background: var(--amber);
}

.cutout-terra {
  background: var(--terra);
}

.story-title {
  font-family: 'Gowun Batang', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.story-body {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  word-break: keep-all;
}

/* ==========================================================================
   4. Contact Section — Floating Paper Card over Warm Apricot Backdrop
   ========================================================================== */
.contact-section {
  padding-top: 20px;
  padding-bottom: 84px;
}

.contact-stage {
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(135deg, #f3d5a5 0%, #e7b878 100%);
  box-shadow:
    inset 0 6px 18px rgba(112, 66, 22, 0.16),
    var(--shadow-float-sm);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 30px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--paper-white);
  box-shadow: var(--shadow-float-md);
}

.contact-title {
  font-family: 'Gowun Batang', Georgia, serif;
  font-size: 1.48rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 8px;
  word-break: keep-all;
}

.contact-desc {
  font-size: 0.94rem;
  color: var(--ink-secondary);
  margin-bottom: 22px;
  word-break: keep-all;
}

.email-well {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--canvas);
  box-shadow: inset 3px 5px 12px rgba(42, 24, 10, 0.1);
}

.email-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.email-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.email-value {
  font-size: 1rem;
  color: var(--ink-primary);
  word-break: break-all;
}

.email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-feedback {
  min-height: 22px;
  margin-top: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--forest-mid);
}

.contact-side {
  padding-left: 28px;
  border-left: 1px solid rgba(212, 191, 156, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-title {
  font-family: 'Gowun Batang', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.side-desc {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin-bottom: 18px;
  word-break: keep-all;
}

.policy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  background: var(--canvas);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-primary);
  box-shadow: 0 2px 6px rgba(35, 25, 18, 0.06);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.policy-pill:hover,
.policy-pill:focus-visible {
  background: var(--parchment);
  transform: translateX(3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--forest-main);
  color: #f7f2e7;
  padding: 22px 0 38px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-credit {
  font-family: 'Gowun Batang', Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
}

.footer-sub {
  font-size: 0.82rem;
  color: #c8decb;
  margin-top: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.86rem;
  font-weight: 600;
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--amber-bright);
  text-decoration: underline;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* ==========================================================================
   Modal
   ========================================================================== */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 54, 36, 0.54);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.18s ease-out;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: min(560px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: var(--paper-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float-lg);
  overflow: hidden;
  animation: modalPopIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--canvas);
  border-bottom: 1px solid rgba(212, 191, 156, 0.6);
}

.modal-title {
  font-family: 'Gowun Batang', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: var(--paper-white);
  box-shadow: var(--shadow-float-sm);
  font-weight: 700;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.modal-close:hover {
  background: var(--parchment);
  transform: scale(1.05);
}

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.modal-body h3 {
  font-size: 0.98rem;
  color: var(--ink-primary);
  margin: 14px 0 6px;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p,
.modal-body li {
  margin-bottom: 6px;
  word-break: keep-all;
}

.modal-body ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(212, 191, 156, 0.5);
  display: flex;
  justify-content: flex-end;
  background: var(--canvas);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-layout,
  .archive-grid,
  .project-card,
  .story-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-copy-col {
    padding-left: 0;
  }

  .project-window {
    aspect-ratio: 16 / 10;
    min-height: 210px;
    border-radius: 120px 120px 18px 18px;
  }

  .contact-side {
    padding-left: 0;
    padding-top: 22px;
    border-left: none;
    border-top: 1px solid rgba(212, 191, 156, 0.7);
  }
}

@media (max-width: 720px) {
  .hero-section {
    padding: 20px 0 36px;
  }

  .papercut-canvas {
    max-width: 340px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 22px 20px;
    background: var(--paper-white);
    border-top: 1px solid rgba(212, 191, 156, 0.45);
    box-shadow: var(--shadow-float-md);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-pill {
    margin-left: 0;
    text-align: center;
  }

  .contact-stage {
    padding: 16px;
    border-radius: 24px;
  }

  .contact-card {
    padding: 24px 20px;
  }
}

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

  .parallax-layer,
  .project-card,
  .story-sheet,
  .btn,
  .modal-backdrop,
  .modal-dialog {
    transition: none !important;
    animation: none !important;
  }

  .star-twinkle,
  .star-dot,
  .nebula-pulse {
    animation: none !important;
    opacity: 0.9;
    transform: none !important;
  }
}
