/* ── Design tokens (mirror index.css) ── */
:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --border: rgba(255, 255, 255, 0.07);
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #505050;
  --accent: #e8d5b0;
  --accent-glow: rgba(232, 213, 176, 0.25);
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: "Georgia", "Times New Roman", serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Scroll progress line ── */
.scroll-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background: var(--accent);
  z-index: 100;
  transition: width 0.1s linear;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Layout ── */
.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Top bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 0;
  opacity: 0;
  animation: fadeIn 0.5s var(--ease-out-expo) 0.1s both;
}

.topbar-id {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.topbar-nav a {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: none;
  padding-bottom: 0;
  transition: color 0.2s;
}

.topbar-nav a:hover {
  color: var(--text-secondary);
  border-bottom: none;
}

/* ── Hero ── */
.hero {
  padding: 96px 0 64px;
  flex: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) 0.15s both;
  border-bottom: none;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text-primary);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-title span {
  display: block;
  padding-left: 0.08em;
  color: var(--text-secondary);
}

.hero-divider {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.3s both;
}

/* ── Prose body ── */
.prose {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 540px;
}

.prose p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out-expo) both;
}

.prose p:nth-child(1) { animation-delay: 0.35s; }
.prose p:nth-child(2) { animation-delay: 0.42s; }
.prose p:nth-child(3) { animation-delay: 0.49s; }
.prose p:nth-child(4) { animation-delay: 0.56s; }

/* ── Inline image trigger ── */
.img-trigger {
  display: block;
  margin: 8px 0 4px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  width: fit-content;
}

.img-thumb {
  display: block;
  width: 200px;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
  opacity: 0.75;
  transition: opacity 0.25s, border-color 0.25s;
  filter: grayscale(20%);
}

.img-trigger:hover .img-thumb {
  opacity: 1;
  border-color: var(--accent);
}

.img-caption {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-inner {
  position: relative;
  max-width: 720px;
  width: 100%;
  transform: translateY(16px);
  transition: transform 0.35s var(--ease-out-expo);
}

.modal-backdrop.open .modal-inner {
  transform: translateY(0);
}

.modal-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.modal-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modal-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Footer ── */
.footer {
  padding: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-out-expo) 0.7s both;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  border-bottom: none;
}

.footer-year {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ── Vertical rule decoration ── */
.v-rule {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out-expo) 0.8s both;
}

.v-rule-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.v-rule-text {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 64px 0 48px; }
  .v-rule { display: none; }
  .topbar-nav { gap: 14px; }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}