/* ═══════════════════════════════════════════
   hhee studio letter — warm editorial
   ═══════════════════════════════════════════ */

:root {
  --paper: #edebe6;
  --paper-deep: #f3d765;
  --ink: #17130f;
  --ink-soft: #5b5650;
  --accent: var(--ink);
  --line: rgba(23, 19, 15, 0.16);
  --line-strong: rgba(23, 19, 15, 0.35);
  --serif: 'MaruBuri', 'Noto Serif KR', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 5vw, 72px);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--paper-deep); color: var(--ink); }

em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-deep);
  padding: 0.03em 0.32em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ── 종이 질감 ─────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.5%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ── 헤더 ─────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  transform: translateY(-100%);
  animation: header-in 0.9s var(--ease-out) 1.4s forwards;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
@keyframes header-in { to { transform: translateY(0); } }

.header.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 13px var(--gutter);
}

.masthead {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.masthead-main {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.masthead-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-subscribe {
  display: inline-block;
  font-size: 0.86rem;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s;
  will-change: transform;
}
.btn-subscribe:hover { background: var(--paper-deep); color: var(--ink); }

/* ── 모바일 메뉴 ───────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 120;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path 0.6s var(--ease-out);
  pointer-events: none;
}
.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - 44px) 44px);
  pointer-events: auto;
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--ink);
  text-decoration: none;
  padding: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.mobile-menu.is-open a { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.29s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.36s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.43s; }
.mobile-menu.is-open a:last-child { color: var(--accent); }

/* ── 읽기 진행 바 ──────────────────────── */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
}

/* ── 히어로 ───────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 90px;
  position: relative;
}

/* ── 히어로 배경 사진 + 켄번즈 ─────────── */
.hero-photo { overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 45%;
  transform-origin: 0% 45%;
  animation: hero-kenburns 26s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(23, 19, 15, 0.32), transparent 24%);
}
@keyframes hero-kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.11) translate(-0.8%, -1.2%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
}
@media (max-width: 640px) {
  .hero-photo {
    min-height: 0;
    display: block;
    padding: 62px 0 0;
  }
  .hero-bg { position: static; }
  .hero-bg img {
    aspect-ratio: 1536 / 1024;
    height: auto;
    object-position: center;
  }
  .hero-bg::after { content: none; }
}
/* 사진 시안이 히어로 그 자체 — 텍스트 레이어는 화면에서 숨김 */
.hero-photo .hero-meta,
.hero-photo .hero-bottom,
.hero-photo .hero-ornament,
.hero-photo .scroll-cue { display: none; }
.hero-photo .hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* 사진 위 헤더는 밝은 잉크로 (스크롤 전까지 · 사진이 헤더 뒤로 오는 데스크톱만) */
@media (min-width: 641px) {
  body:has(.hero-photo) .header:not(.scrolled) .nav-link,
  body:has(.hero-photo) .header:not(.scrolled) .masthead-main,
  body:has(.hero-photo) .header:not(.scrolled) .masthead-sub { color: #f6f2ea; }
  body:has(.hero-photo) .header:not(.scrolled) .menu-toggle span { background: #f6f2ea; }
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: clamp(24px, 4vh, 44px);
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 0.9s forwards;
}
.hero-meta-divider {
  width: 44px; height: 1px;
  background: var(--line-strong);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 8.2vw, 6.6rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-title .line-inner {
  display: block;
  transform: translateY(115%);
  animation: line-rise 1.15s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) .line-inner { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 0.3s; }
.hero-title .line:nth-child(3) .line-inner { animation-delay: 0.45s; }
@keyframes line-rise { to { transform: translateY(0); } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-bottom {
  margin-top: clamp(32px, 6vh, 64px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 1.2s forwards;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 540px;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-now {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}
.hero-now-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.rotator {
  position: relative;
  display: block;
  height: 1.9em;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--accent);
  min-width: 13em;
}
.rotator-word {
  position: absolute;
  left: 0; top: 0;
  line-height: 1.9em;
  white-space: nowrap;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.65s var(--ease-out), opacity 0.5s;
}
.rotator-word.is-active { transform: translateY(0); opacity: 1; }
.rotator-word.is-leaving { transform: translateY(-110%); opacity: 0; }

.hero-ornament {
  position: absolute;
  right: clamp(12px, 6vw, 110px);
  top: 16%;
  width: clamp(150px, 22vw, 300px);
  color: var(--ink);
  opacity: 0;
  animation: ornament-in 1.6s var(--ease-out) 1s forwards;
  pointer-events: none;
}
@keyframes ornament-in { to { opacity: 0.4; } }
.hero-ornament .orbit {
  transform-origin: center;
  animation: orbit-spin 60s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.ornament-caption {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.12em;
  fill: currentColor;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-soft);
  opacity: 0;
  animation: fade-up 1s var(--ease-out) 1.7s forwards;
}
.scroll-cue-line {
  display: block;
  width: 52px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: cue-sweep 2.2s var(--ease-out) infinite;
}
@keyframes cue-sweep {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
.scroll-cue-text {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── 마키 ─────────────────────────────── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--paper-deep);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-move 30s linear infinite;
}
.marquee-content {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  white-space: nowrap;
  color: var(--ink-soft);
  padding-right: 12px;
}
@keyframes marquee-move { to { transform: translateX(-50%); } }

/* ── 섹션 공통 ─────────────────────────── */
.section-index {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: clamp(28px, 5vh, 56px);
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: clamp(40px, 7vh, 80px);
}

/* 스크롤 리빌 */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── 매니페스토 ────────────────────────── */
.manifesto {
  padding: clamp(110px, 18vh, 200px) var(--gutter);
  max-width: 1100px;
}
.manifesto-body { max-width: 900px; }
.scrub-line {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.13;
  transition: opacity 0.35s linear;
}

/* ── 장면 콜라주 ───────────────────────── */
.collage {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  padding: clamp(70px, 10vh, 130px) var(--gutter) clamp(90px, 13vh, 160px);
  overflow: hidden;
}
.collage-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: clamp(36px, 6vh, 64px);
}
.collage-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 28px);
  max-width: 1400px;
  margin: 0 auto;
}
.collage-item { position: relative; }
.item-a { grid-column: 1 / 6; grid-row: 1 / 3; }
.item-b { grid-column: 6 / 10; grid-row: 1; margin-top: clamp(30px, 6vw, 90px); }
.item-c { grid-column: 10 / 13; grid-row: 1; }
.item-d { grid-column: 6 / 9; grid-row: 2; margin-top: clamp(20px, 3vw, 44px); }
.item-e { grid-column: 9 / 13; grid-row: 2; margin-top: clamp(50px, 8vw, 120px); }

.collage-img {
  overflow: hidden;
  border-radius: 3px;
  position: relative;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s var(--ease-out);
}
.collage-item.in-view .collage-img { clip-path: inset(0 0 0 0); }
.collage-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.24) saturate(0.8) contrast(0.92) brightness(1.02);
  transition: transform 0.9s var(--ease-out);
}
.item-a .collage-img { aspect-ratio: 4 / 5; }
.item-b .collage-img { aspect-ratio: 3 / 4; }
.item-c .collage-img { aspect-ratio: 1 / 1; }
.item-d .collage-img { aspect-ratio: 1 / 1; }
.item-e .collage-img { aspect-ratio: 16 / 11; }
.collage-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--paper);
  mix-blend-mode: multiply;
  opacity: 0.14;
  pointer-events: none;
}
.collage-item:hover .collage-img img { transform: scale(1.045); }

.collage-caption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.collage-word {
  position: absolute;
  z-index: 5;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  text-shadow: 0 1px 30px rgba(244, 240, 232, 0.35);
  pointer-events: none;
  white-space: nowrap;
  will-change: translate;
}
.word-1 {
  top: 9%;
  left: 6%;
  font-size: clamp(2.6rem, 7vw, 6rem);
}
.word-2 {
  top: 52%;
  right: 2%;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  letter-spacing: -0.01em;
}

/* ── 받게 되는 것 ──────────────────────── */
.contents-section {
  padding: clamp(90px, 14vh, 170px) var(--gutter);
  border-top: 1px solid var(--line);
}
.content-list { list-style: none; }
a.content-row {
  display: grid;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.content-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: baseline;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(26px, 4vh, 40px) 12px;
  border-bottom: 1px solid var(--line);
  cursor: default;
  position: relative;
  transition: padding-left 0.45s var(--ease-out);
}
.content-row:first-child { border-top: 1px solid var(--line); }
.content-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--paper-deep);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}
.content-row:hover { padding-left: 28px; }
.content-row:hover::before { transform: scaleY(1); }

.content-num {
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.content-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.content-desc {
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  max-width: 560px;
}
.content-arrow {
  font-size: 1.3rem;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.content-row:hover .content-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── 워크숍 ───────────────────────────── */
.workshop-lead {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 640px;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.workshop-note {
  margin-top: clamp(28px, 4vh, 48px);
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* ── 지난 편지 ─────────────────────────── */
.letters {
  padding: clamp(90px, 14vh, 170px) var(--gutter);
  border-top: 1px solid var(--line);
}
.letter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 36px);
}
.letter-card { cursor: pointer; }
.letter-visual {
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  transition: background 0.5s;
}
.letter-visual svg {
  width: 72%;
  color: var(--ink);
  transition: transform 0.7s var(--ease-out);
}
.letter-card:hover .letter-visual { background: var(--ink); }
.letter-card:hover .letter-visual svg {
  color: var(--paper);
  transform: scale(1.06) rotate(-1.5deg);
}
.letter-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(4px);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  transition: background 0.5s, color 0.5s, border-color 0.5s;
}
.letter-card:hover .letter-tag {
  background: var(--accent);
  color: var(--paper);
  border-color: transparent;
}
.letter-vol {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.letter-card { text-decoration: none; color: var(--ink); }
.letter-card.is-coming { opacity: 0.55; }
.letter-card.is-coming:hover { opacity: 0.8; }
.letter-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.letters-all {
  display: inline-block;
  margin-top: clamp(36px, 6vh, 60px);
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.letters-all:hover { color: var(--accent); border-color: var(--accent); }

/* ── 구독 ─────────────────────────────── */
.subscribe {
  padding: clamp(110px, 18vh, 210px) var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
}
.subscribe .section-index { text-align: center; }
.subscribe-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: clamp(40px, 6vh, 70px);
}

.subscribe-form {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(16px, 3vw, 28px);
  max-width: 620px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.field {
  position: relative;
  flex: 1 1 300px;
}
.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 4px;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.field input::placeholder { color: var(--ink-soft); opacity: 0.7; }
.field-line {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.field input:focus ~ .field-line { transform: scaleX(1); }
.field.is-error input { border-bottom-color: var(--accent); }
.field.is-error { animation: shake 0.4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 15px 34px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  will-change: transform;
}
.btn-submit:hover { background: var(--paper-deep); color: var(--ink); }
.btn-submit-arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}
.btn-submit:hover .btn-submit-arrow { transform: translateX(5px); }

.subscribe-done {
  max-width: 620px;
  margin: 0 auto;
}
.subscribe-done.is-visible { animation: fade-up 0.8s var(--ease-out); }
.done-mark {
  width: 64px;
  color: var(--accent);
  margin-bottom: 18px;
}
.done-circle {
  stroke-dasharray: 183;
  stroke-dashoffset: 183;
  animation: draw 1s var(--ease-out) 0.1s forwards;
}
.done-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.6s var(--ease-out) 0.75s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.9rem;
  margin-bottom: 8px;
}
.done-sub { color: var(--ink-soft); }

.subscribe-note {
  margin-top: clamp(36px, 5vh, 56px);
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* ── 푸터 ─────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(50px, 8vh, 90px) var(--gutter) 34px;
  overflow: hidden;
}
.footer-big {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.4rem, 13vw, 12rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  opacity: 0.08;
  white-space: nowrap;
  margin-bottom: clamp(30px, 5vh, 60px);
  user-select: none;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ═══════════════════════════════════════════
   아티클 상세 페이지
   ═══════════════════════════════════════════ */
.article { padding-top: 74px; }

.article-head {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 90px) var(--gutter) clamp(36px, 5vh, 60px);
  text-align: center;
}
.back-link {
  display: inline-block;
  font-size: 0.84rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: clamp(28px, 5vh, 48px);
  transition: color 0.3s;
}
.back-link:hover { color: var(--accent); }

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: clamp(22px, 3.5vh, 34px);
}
.article-vol { color: var(--accent); }
.article-cat {
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
}

.article-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: clamp(24px, 4vh, 40px);
}
.article-standfirst {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.9;
  color: var(--ink-soft);
}

.article-hero {
  max-width: 1200px;
  margin: 0 auto clamp(40px, 6vh, 72px);
  padding: 0 var(--gutter);
}
.article-hero img {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: sepia(0.2) saturate(0.85) contrast(0.94);
}
.article-hero figcaption,
.article-fig figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 2;
}
.article-body p { margin-bottom: 1.7em; color: var(--ink); }
.article-body strong { font-weight: 600; }
.article-body .lead { font-size: 1.08em; }
.dropcap {
  float: left;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.82;
  padding: 0.05em 0.12em 0 0;
  color: var(--accent);
}
.article-outro {
  border-top: 1px solid var(--line);
  padding-top: 1.8em;
  color: var(--ink-soft) !important;
}
.article-beat {
  font-family: var(--serif);
  font-size: 1.2em;
  color: var(--ink);
  text-align: center;
  margin: clamp(28px, 4vh, 44px) 0 !important;
  letter-spacing: -0.01em;
}

.article-h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: clamp(44px, 6vh, 72px) 0 0.8em;
}

.article-fig {
  margin: clamp(36px, 5vh, 56px) 0;
}
.article-fig img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  filter: sepia(0.2) saturate(0.85) contrast(0.94);
}
.fig-wide {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1100px;
  padding: 0 var(--gutter);
}
.article-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
  margin: clamp(36px, 5vh, 56px) 0;
}
.article-duo .article-fig { margin: 0; }
.article-duo img { aspect-ratio: 1 / 1; }

.pull-quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  margin: clamp(48px, 7vh, 80px) 0;
  padding: 0 clamp(0px, 3vw, 40px);
  position: relative;
}
.pull-quote::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto clamp(24px, 4vh, 36px);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(44px, 6vh, 70px) 0 0;
}
.article-tag {
  font-size: 0.84rem;
  color: var(--ink-soft);
  padding: 6px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  cursor: default;
}
.article-tag:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: transparent;
}

.article-sign {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: clamp(40px, 6vh, 64px);
  padding-top: clamp(28px, 4vh, 40px);
  border-top: 1px solid var(--line);
}
.sign-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
}
.sign-place { font-size: 0.84rem; color: var(--ink-soft); }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(70px, 11vh, 130px);
}
.article-nav-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(32px, 5vh, 54px) var(--gutter);
  background: var(--paper);
  text-decoration: none;
  transition: background 0.4s;
}
.article-nav-item:hover { background: var(--paper-deep); }
.article-nav-item.next { text-align: right; align-items: flex-end; }
.nav-dir { font-size: 0.8rem; color: var(--accent); }
.nav-vol { font-size: 0.8rem; color: var(--ink-soft); }
.nav-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 22em;
}

/* ═══════════════════════════════════════════
   아카이브 목록 페이지
   ═══════════════════════════════════════════ */
.archive { padding-top: 74px; }
.archive-head {
  padding: clamp(56px, 9vh, 110px) var(--gutter) clamp(32px, 5vh, 52px);
  max-width: 1200px;
  margin: 0 auto;
}
.archive-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: clamp(20px, 3vh, 32px);
}
.archive-lead {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 520px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 var(--gutter) clamp(40px, 6vh, 64px);
  max-width: 1200px;
  margin: 0 auto;
}
.filter-chip {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.filter-chip:hover { border-color: var(--ink); }
.filter-chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.chip-num {
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 40px);
  padding: 0 var(--gutter) clamp(80px, 12vh, 150px);
  max-width: 1200px;
  margin: 0 auto;
}
.archive-card {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.archive-card.is-hidden { display: none; }
.archive-card.is-coming { opacity: 0.5; }
.archive-card.is-coming:hover { opacity: 0.78; }
.archive-visual {
  aspect-ratio: 5 / 4;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
  transition: background 0.5s;
}
.archive-visual svg {
  width: 62%;
  color: var(--ink);
  transition: transform 0.7s var(--ease-out), color 0.5s;
}
.archive-card:hover .archive-visual { background: var(--ink); }
.archive-card:hover .archive-visual svg { color: var(--paper); transform: scale(1.06) rotate(-1.5deg); }
.archive-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(4px);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  transition: background 0.5s, color 0.5s, border-color 0.5s;
}
.archive-card:hover .archive-tag { background: var(--accent); color: var(--paper); border-color: transparent; }
.archive-info { display: flex; flex-direction: column; gap: 8px; }
.archive-vol { font-size: 0.78rem; color: var(--accent); letter-spacing: 0.04em; }
.archive-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.archive-more {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 2px;
  transition: color 0.3s;
}
.archive-card:hover .archive-more { color: var(--accent); }
.shop-note {
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-soft);
  padding: 0 var(--gutter) clamp(70px, 10vh, 120px);
}

.archive-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 0 var(--gutter) clamp(80px, 12vh, 150px);
}

/* ── 반응형 ───────────────────────────── */
@media (max-width: 980px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .letter-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .hero-ornament { display: none; }
  .collage-grid { grid-template-columns: repeat(6, 1fr); }
  .item-a { grid-column: 1 / 5; grid-row: auto; }
  .item-b { grid-column: 5 / 7; grid-row: auto; margin-top: clamp(40px, 12vw, 80px); }
  .item-c { grid-column: 1 / 3; grid-row: auto; margin-top: 0; }
  .item-d { display: none; }
  .item-e { grid-column: 3 / 7; grid-row: auto; margin-top: clamp(24px, 8vw, 56px); }
  .word-1 { top: 4%; }
  .word-2 { top: 66%; right: 4%; }
}
@media (max-width: 640px) {
  .header-nav { display: none; }
  .menu-toggle { display: flex; }
  .content-row { grid-template-columns: 44px 1fr; }
  .content-arrow { display: none; }
  .content-row:hover { padding-left: 12px; }
  .hero { padding-top: 100px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
  .archive-grid { grid-template-columns: 1fr; max-width: 440px; }
  .article-duo { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-item.next { text-align: left; align-items: flex-start; }
  .pull-quote { text-align: left; }
  .pull-quote::before { margin-left: 0; }
}

/* ── 모션 최소화 설정 존중 ─────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .line-inner { transform: none; }
  .hero-meta, .hero-bottom, .scroll-cue, .header { opacity: 1; transform: none; animation: none; }
  .hero-ornament { opacity: 0.4; animation: none; }
  .reveal { opacity: 1; transform: none; }
  .scrub-line { opacity: 1; }
  .collage-img { clip-path: none; }
}
