/* ============================================================
   Ahmet Coşkun — Concept 2: Manuscript Archive
   style2.css — Mobile-first · Ottoman manuscript aesthetic
   ============================================================ */

:root {
  /* Paper palette */
  --paper: #FBF7F0;
  --ivory: #F7F1E6;
  --cream: #F0E8D8;
  --sand: #E4D9C4;
  --sand-deep: #D4C6AC;

  /* Accents — muted, never shiny */
  --olive: #6B7355;
  --olive-muted: #8A9178;
  --brown: #3C2F22;
  --brown-mid: #5A4634;
  --brown-deep: #241910;
  --bronze: #8B7355;
  --old-gold: #9A8558;
  --gold-soft: #B09A6E;

  /* Text */
  --ink: #2A2218;
  --ink-soft: #5A4D3C;
  --ink-faint: #8A7B66;
  --on-dark: #F3EBDC;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout — full-bleed; content uses viewport with side padding */
  --content-max: none;
  --gutter: 20px;
  --section-y: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-nav: 999px;
  --radius-soft: 14px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --section-y: 6.5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 64px;
    --section-y: 8rem;
  }
}

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

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

::selection {
  background: rgba(154, 133, 88, 0.22);
  color: var(--brown-deep);
}

:focus-visible {
  outline: 2px solid var(--old-gold);
  outline-offset: 3px;
}

/* ---------- Manuscript paper world ---------- */
.ms-page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 50% at 10% 0%, rgba(154, 133, 88, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 40% at 90% 20%, rgba(107, 115, 85, 0.05), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--ivory) 40%, var(--cream) 100%);
}

.ms-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.ms-geom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.022;
  background-image: url('../images/ottoman-pattern.svg');
  background-size: 260px;
  background-repeat: repeat;
}

/* ---------- Containers ---------- */
.page-shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  position: relative;
  z-index: 1;
}

.inner {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

/* ---------- Progress ---------- */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--bronze), var(--old-gold));
  z-index: 10000;
  transform-origin: left;
}

/* ---------- Floating Header ---------- */
.float-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}

.float-header {
  pointer-events: auto;
  max-width: none;
  width: 100%;
  margin-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem 0.65rem 1.1rem;
  background: rgba(251, 247, 240, 0.72);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(139, 115, 85, 0.18);
  border-radius: var(--radius-nav);
  box-shadow:
    0 10px 40px rgba(36, 25, 16, 0.08),
    0 2px 8px rgba(36, 25, 16, 0.04);
  transition: box-shadow 0.4s var(--ease), background 0.4s;
}

.float-header.is-solid {
  background: rgba(251, 247, 240, 0.9);
  box-shadow:
    0 14px 48px rgba(36, 25, 16, 0.12),
    0 2px 10px rgba(36, 25, 16, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.logo-seal {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--bronze);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: var(--bronze);
  letter-spacing: 0;
}

.nav-desk {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 1100px) {
  .nav-desk { display: flex; }
}

.nav-desk a {
  font-size: 0.78rem;
  font-weight: 450;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}

.nav-desk a:hover,
.nav-desk a.is-active {
  color: var(--brown);
  background: rgba(139, 115, 85, 0.1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tool-btn {
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.tool-btn.lang {
  width: auto;
  padding: 0 0.7rem;
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.12em;
  border-radius: 999px;
}

.tool-btn:hover {
  background: rgba(139, 115, 85, 0.12);
  color: var(--brown);
  transform: scale(1.05);
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: 50%;
}

@media (min-width: 1100px) {
  .burger { display: none; }
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--brown);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Fullscreen mobile menu */
.fs-menu {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(247, 241, 230, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s, visibility 0.45s;
  padding: var(--gutter);
}

.fs-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.fs-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 7vw, 2.75rem);
  font-weight: 400;
  color: var(--brown);
  padding: 0.4rem 1rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s, transform 0.45s, color 0.3s;
}

.fs-menu.is-open a {
  opacity: 1;
  transform: none;
}

.fs-menu a:nth-child(1) { transition-delay: 0.05s; }
.fs-menu a:nth-child(2) { transition-delay: 0.1s; }
.fs-menu a:nth-child(3) { transition-delay: 0.15s; }
.fs-menu a:nth-child(4) { transition-delay: 0.2s; }
.fs-menu a:nth-child(5) { transition-delay: 0.25s; }
.fs-menu a:nth-child(6) { transition-delay: 0.3s; }

.fs-menu a:hover { color: var(--old-gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, background 0.35s, color 0.35s, border-color 0.35s;
}

.btn-ink {
  background: var(--brown);
  color: var(--on-dark);
  border: 1px solid var(--brown);
}

.btn-ink:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(36, 25, 16, 0.22);
  background: var(--brown-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--brown);
  border: 1px solid rgba(139, 115, 85, 0.4);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(139, 115, 85, 0.1);
  border-color: var(--bronze);
  box-shadow: 0 8px 22px rgba(36, 25, 16, 0.08);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--old-gold);
  margin-bottom: 0.9rem;
}

.section-h {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--brown);
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  color: var(--ink-soft);
  font-weight: 350;
  max-width: 36rem;
  line-height: 1.8;
  margin-top: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
}

.reveal-blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(24px);
}

/* ---------- HERO — artistic asymmetric ---------- */
.hero2 {
  min-height: 100svh;
  padding-top: 6.5rem;
  padding-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero2-inner {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 900px) {
  .hero2-inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 2rem 3rem;
    align-items: center;
    min-height: calc(100svh - 8rem);
  }
}

.hero2-copy {
  order: 2;
  max-width: 34rem;
}

@media (min-width: 900px) {
  .hero2-copy {
    order: 1;
    padding-bottom: 2rem;
  }
}

.hero2-name {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  font-weight: 500;
  line-height: 1.02;
  color: var(--brown-deep);
  margin-bottom: 0.85rem;
}

.hero2-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-bottom: 1.35rem;
}

.hero2-roles span {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: var(--bronze);
}

.hero2-roles span:not(:last-child)::after {
  content: '·';
  margin-left: 0.85rem;
  opacity: 0.5;
  font-style: normal;
}

.hero2-body {
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  color: var(--ink-soft);
  line-height: 1.85;
  font-weight: 350;
  margin-bottom: 2rem;
  max-width: 30rem;
}

.hero2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Portrait composition — asymmetric */
.hero2-art {
  order: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

@media (min-width: 900px) {
  .hero2-art {
    order: 2;
    justify-content: flex-end;
    min-height: 520px;
    padding-right: 2%;
    padding-top: 1rem;
  }
}

.art-glow {
  position: absolute;
  width: 85%;
  height: 85%;
  right: 5%;
  top: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 133, 88, 0.28), transparent 68%);
  filter: blur(36px);
  z-index: 0;
  animation: glowBreathe 10s ease-in-out infinite alternate;
}

@keyframes glowBreathe {
  from { transform: scale(0.94); opacity: 0.65; }
  to { transform: scale(1.08); opacity: 1; }
}

.art-frame {
  position: relative;
  z-index: 2;
  width: min(78%, 340px);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .art-frame {
    width: min(72%, 400px);
    margin-right: 8%;
    transform: translate(4%, -2%);
  }
}

.art-frame-border {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(139, 115, 85, 0.35);
  pointer-events: none;
  z-index: 3;
}

.art-frame-border::before,
.art-frame-border::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  background: url('../images/corner-ms.svg') center / contain no-repeat;
  opacity: 0.7;
}

.art-frame-border::before { top: -6px; left: -6px; }
.art-frame-border::after { bottom: -6px; right: -6px; transform: rotate(180deg); }

.art-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sand);
  box-shadow:
    0 28px 60px rgba(36, 25, 16, 0.2),
    inset 0 0 0 1px rgba(139, 115, 85, 0.2);
}

.art-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.art-frame:hover .art-photo img {
  transform: scale(1.04);
}

.art-signature {
  position: absolute;
  z-index: 4;
  bottom: -8%;
  left: -18%;
  width: min(70%, 260px);
  opacity: 0.7;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(36, 25, 16, 0.08));
}

@media (min-width: 900px) {
  .art-signature {
    left: -22%;
    bottom: 4%;
    width: 280px;
  }
}

.scroll-cue {
  display: none;
}

@media (min-width: 900px) {
  .scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-faint);
    z-index: 5;
  }

  .scroll-cue-line {
    width: 1px;
    height: 42px;
    background: linear-gradient(180deg, var(--bronze), transparent);
    animation: cueDrop 2.2s ease-in-out infinite;
  }
}

@keyframes cueDrop {
  0% { transform: scaleY(0.4); opacity: 0.3; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.4); opacity: 0.3; }
}

/* ---------- Manuscript panel ---------- */
.ms-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 100%);
}

.manuscript {
  position: relative;
  background:
    linear-gradient(135deg, rgba(251, 247, 240, 0.95), rgba(240, 232, 216, 0.92));
  border: 1px solid rgba(139, 115, 85, 0.28);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow:
    0 20px 50px rgba(36, 25, 16, 0.08),
    inset 0 0 80px rgba(212, 198, 172, 0.25);
  max-width: 920px;
  margin-inline: auto;
}

.manuscript::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(139, 115, 85, 0.18);
  pointer-events: none;
}

.ms-corners {
  position: absolute;
  width: 36px;
  height: 36px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
}

.ms-corners--tl { top: 6px; left: 6px; }
.ms-corners--tr { top: 6px; right: 6px; transform: scaleX(-1); }
.ms-corners--bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.ms-corners--br { bottom: 6px; right: 6px; transform: scale(-1); }

.ms-seal {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  opacity: 0.75;
}

.manuscript h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 500;
  text-align: center;
  color: var(--brown);
  margin-bottom: 1.25rem;
}

.ms-body {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.9;
  color: var(--ink-soft);
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  font-weight: 400;
}

.ms-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.75rem;
}

.ms-actions {
  text-align: center;
}

/* ---------- Wooden bookshelf ---------- */
.shelf-section {
  background: var(--paper);
}

.shelf-head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.shelf-head .lead {
  margin-inline: auto;
}

.bookshelf {
  position: relative;
  background: linear-gradient(180deg, #5A4030 0%, #3C2A1E 55%, #2A1C14 100%);
  border-radius: 8px;
  padding: 1.75rem 1rem 1.25rem;
  box-shadow:
    inset 0 8px 24px rgba(0, 0, 0, 0.25),
    0 24px 48px rgba(36, 25, 16, 0.18);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(176, 154, 110, 0.4) transparent;
}

@media (min-width: 768px) {
  .bookshelf {
    padding: 2.25rem 1.75rem 1.5rem;
  }
}

.bookshelf-rail {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.85rem;
  min-height: 260px;
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .bookshelf-rail {
    justify-content: center;
    gap: 1.15rem;
    min-height: 300px;
  }
}

.shelf-plank {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: linear-gradient(180deg, #6B4A34, #3C281C);
  box-shadow: 0 -2px 0 rgba(176, 154, 110, 0.15);
  border-radius: 0 0 8px 8px;
}

.shelf-book {
  flex: 0 0 auto;
  width: 72px;
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 0.45s var(--ease), filter 0.4s;
  position: relative;
  z-index: 1;
  display: block;
  text-decoration: none;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .shelf-book { width: 88px; }
}

@media (min-width: 1024px) {
  .shelf-book { width: 100px; }
}

.shelf-book:hover,
.shelf-book:focus-visible {
  transform: translateY(-18px) scale(1.04);
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.35));
  z-index: 3;
  outline: none;
}

.shelf-book-spine {
  height: clamp(180px, 28vw, 240px);
  border-radius: 3px 5px 5px 3px;
  position: relative;
  box-shadow:
    3px 4px 10px rgba(0, 0, 0, 0.35),
    inset -6px 0 12px rgba(0, 0, 0, 0.2),
    inset 2px 0 0 rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
}

.shelf-book-spine::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,0.35), transparent);
}

.shelf-book-spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  letter-spacing: 0.12em;
  color: rgba(243, 235, 220, 0.9);
  text-align: center;
}

.shelf-book:nth-child(1) .shelf-book-spine { background: linear-gradient(180deg, #3D2E1F, #1A120C); height: clamp(170px, 26vw, 220px); }
.shelf-book:nth-child(2) .shelf-book-spine { background: linear-gradient(180deg, #4A3728, #241810); height: clamp(200px, 30vw, 255px); }
.shelf-book:nth-child(3) .shelf-book-spine { background: linear-gradient(180deg, #5C4030, #2C1E14); height: clamp(185px, 28vw, 235px); }
.shelf-book:nth-child(4) .shelf-book-spine { background: linear-gradient(180deg, #2E2418, #15100A); height: clamp(195px, 29vw, 248px); }
.shelf-book:nth-child(5) .shelf-book-spine { background: linear-gradient(180deg, #4A3A28, #241A10); height: clamp(175px, 27vw, 228px); }

.shelf-book-preview {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--paper);
  border: 1px solid rgba(139, 115, 85, 0.25);
  padding: 0.55rem 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--brown);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s;
  box-shadow: 0 8px 20px rgba(36, 25, 16, 0.12);
  border-radius: 6px;
}

.shelf-book:hover .shelf-book-preview,
.shelf-book:focus-visible .shelf-book-preview {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bookshelf-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 2;
}

.bookshelf-all {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 235, 220, 0.82);
  border: 1px solid rgba(176, 154, 110, 0.45);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: color 0.35s, background 0.35s, border-color 0.35s, transform 0.35s;
}

.bookshelf-all:hover,
.bookshelf-all:focus-visible {
  color: var(--on-dark);
  background: rgba(154, 133, 88, 0.22);
  border-color: var(--gold-soft);
  transform: translateY(-1px);
  outline: none;
}

.doc-head,
.gal2-head {
  position: relative;
}

.archive-all {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  border: 1px solid rgba(139, 115, 85, 0.4);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  transition: color 0.35s, background 0.35s, border-color 0.35s, transform 0.35s;
}

@media (min-width: 768px) {
  .doc-head .archive-all,
  .gal2-head .archive-all,
  .timeline2-head .archive-all {
    position: absolute;
    top: 0;
    right: 0;
    margin-bottom: 0;
    z-index: 2;
  }
}

.archive-all:hover,
.archive-all:focus-visible {
  color: var(--brown-deep);
  background: rgba(139, 115, 85, 0.1);
  border-color: var(--bronze);
  transform: translateY(-1px);
  outline: none;
}

/* ---------- Vertical Timeline ---------- */
.timeline2-section {
  background: linear-gradient(180deg, var(--ivory), var(--cream));
}

.timeline2-head {
  position: relative;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.timeline2-head .lead { margin-inline: auto; }

.v-timeline {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding-left: 1.5rem;
}

@media (min-width: 640px) {
  .v-timeline {
    padding-left: 0;
  }
}

.v-line {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(139, 115, 85, 0.25);
}

@media (min-width: 640px) {
  .v-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.v-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--bronze), var(--old-gold));
  box-shadow: 0 0 10px rgba(154, 133, 88, 0.35);
}

.v-item {
  position: relative;
  padding: 0 0 2.75rem 1.75rem;
}

@media (min-width: 640px) {
  .v-item {
    width: 50%;
    padding: 0 2.5rem 3.25rem;
  }

  .v-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 2.75rem;
    padding-left: 0;
  }

  .v-item:nth-child(even) {
    margin-left: 50%;
    text-align: left;
    padding-left: 2.75rem;
    padding-right: 0;
  }
}

.v-dot {
  position: absolute;
  left: 2px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--old-gold);
  z-index: 2;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 640px) {
  .v-item:nth-child(odd) .v-dot {
    left: auto;
    right: -6px;
  }

  .v-item:nth-child(even) .v-dot {
    left: -6px;
  }
}

.v-item:hover .v-dot,
.v-item.is-active .v-dot {
  background: var(--old-gold);
  transform: scale(1.25);
  box-shadow: 0 0 14px rgba(154, 133, 88, 0.45);
}

.v-year {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--old-gold);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.v-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.v-title a {
  color: inherit;
  text-decoration: none;
}

.v-title a:hover {
  color: var(--bronze);
}

.v-text {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 350;
}

/* ---------- Documentary videos ---------- */
.doc-section {
  background: var(--paper);
}

.doc-head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.doc-head .lead { margin-inline: auto; }

.doc-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .doc-grid {
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.35rem;
  }

  .doc-card:first-child {
    grid-row: 1 / 3;
  }
}

a.doc-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.doc-card {
  position: relative;
  overflow: hidden;
  background: var(--brown-deep);
  cursor: pointer;
  min-height: 220px;
}

.doc-card:first-child {
  min-height: 280px;
}

@media (min-width: 768px) {
  .doc-card:first-child { min-height: 100%; }
}

.doc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.9s var(--ease), filter 0.5s;
}

.doc-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.72);
}

.doc-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(36, 25, 16, 0.85) 100%);
  z-index: 1;
}

.doc-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1.5px solid rgba(176, 154, 110, 0.65);
  background: rgba(36, 25, 16, 0.35);
  backdrop-filter: blur(6px);
  z-index: 2;
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease), background 0.35s, box-shadow 0.35s;
}

.doc-play svg {
  width: 18px;
  height: 18px;
  fill: var(--gold-soft);
  margin-left: 2px;
}

.doc-card:hover .doc-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(154, 133, 88, 0.25);
  box-shadow: 0 0 28px rgba(154, 133, 88, 0.3);
}

.doc-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.35rem;
  z-index: 2;
}

.doc-meta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  color: var(--on-dark);
  margin-bottom: 0.3rem;
}

.doc-meta p {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.85;
}

.doc-grid--archive {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .doc-grid--archive {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }

  .doc-grid--archive .doc-card:first-child {
    grid-row: auto;
    min-height: 260px;
  }
}

@media (min-width: 1024px) {
  .doc-grid--archive {
    grid-template-columns: repeat(3, 1fr);
  }
}

.doc-grid--archive .doc-card {
  min-height: 240px;
}

/* ---------- Editorial gallery ---------- */
.gal2-section {
  background: var(--cream);
}

.gal2-head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.gal2-masonry {
  columns: 1;
  column-gap: 1rem;
}

@media (min-width: 560px) {
  .gal2-masonry { columns: 2; }
}

@media (min-width: 1024px) {
  .gal2-masonry { columns: 3; column-gap: 1.25rem; }
}

a.gal2-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gal2-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .gal2-item { margin-bottom: 1.25rem; }
}

.gal2-item img {
  width: 100%;
  transition: transform 0.85s var(--ease), filter 0.45s;
}

.gal2-item:hover img {
  transform: scale(1.07);
  filter: brightness(1.04) contrast(1.04);
}

.gal2-cap {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(36, 25, 16, 0.6));
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  transition: opacity 0.4s;
}

.gal2-item:hover .gal2-cap { opacity: 1; }

.gal2-cap span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--on-dark);
}

/* ---------- Gallery lightbox ---------- */
.ms-lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(36, 25, 16, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 4.25rem 3.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.ms-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.ms-lightbox-stage {
  max-width: min(1100px, 100%);
  max-height: 100%;
  text-align: center;
}

.ms-lightbox-stage img {
  max-width: 100%;
  max-height: calc(100svh - 11rem);
  width: auto;
  height: auto;
  margin-inline: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.ms-lightbox-stage figcaption {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.ms-lightbox-stage figcaption span:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--on-dark);
}

.ms-lightbox-stage figcaption span:last-child {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.ms-lightbox-close,
.ms-lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--on-dark);
  border: 1px solid rgba(176, 154, 110, 0.45);
  background: rgba(36, 25, 16, 0.35);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.ms-lightbox-close {
  top: 1.15rem;
  right: 1.15rem;
  width: 46px;
  height: 46px;
}

.ms-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.ms-lightbox-prev { left: 1rem; }
.ms-lightbox-next { right: 1rem; }

.ms-lightbox-close:hover,
.ms-lightbox-nav:hover,
.ms-lightbox-close:focus-visible,
.ms-lightbox-nav:focus-visible {
  background: rgba(154, 133, 88, 0.28);
  border-color: var(--gold-soft);
  outline: none;
}

.ms-lightbox-nav:hover,
.ms-lightbox-nav:focus-visible {
  transform: translateY(-50%) scale(1.06);
}

@media (max-width: 700px) {
  .ms-lightbox {
    padding: 4.25rem 1rem 2.5rem;
  }

  .ms-lightbox-prev { left: 0.45rem; }
  .ms-lightbox-next { right: 0.45rem; }
}

/* ---------- Quote ---------- */
.quote2-section {
  background: var(--ivory);
  text-align: center;
  padding-block: clamp(5rem, 12vw, 8.5rem);
}

.quote2-inner {
  max-width: 780px;
  margin-inline: auto;
}

.quote2-sep {
  width: 160px;
  height: 32px;
  margin: 0 auto 1.75rem;
  opacity: 0.55;
}

.quote2-text {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.2vw, 2.85rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--brown);
  margin-bottom: 1.5rem;
}

.quote2-attr {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--old-gold);
}

/* ---------- Legacy stats ---------- */
.legacy-section {
  background: var(--brown-deep);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}

.legacy-section .ms-geom {
  opacity: 0.04;
  filter: invert(1) sepia(0.4);
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .legacy-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.legacy-num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4rem);
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.legacy-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 235, 220, 0.55);
}

/* ---------- Closing CTA ---------- */
.closing-section {
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(154, 133, 88, 0.1), transparent 70%),
    var(--cream);
  text-align: center;
}

.closing-text {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--brown);
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* ---------- Footer — book ending ---------- */
.book-end {
  background: var(--brown-deep);
  color: var(--on-dark);
  position: relative;
  padding-top: 4.5rem;
  padding-bottom: 2.25rem;
}

.book-end::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.book-end-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 154, 110, 0.45), transparent);
  margin-bottom: 3rem;
}

.book-end-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .book-end-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
}

.book-end-brand .logo {
  color: var(--on-dark);
  margin-bottom: 1rem;
}

.book-end-brand .logo-seal {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}

.book-end-brand p {
  font-size: 0.9rem;
  color: rgba(243, 235, 220, 0.5);
  line-height: 1.75;
  font-weight: 300;
  max-width: 280px;
}

.book-end h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.book-end ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.book-end a {
  font-size: 0.88rem;
  color: rgba(243, 235, 220, 0.5);
  transition: color 0.3s, padding-left 0.3s;
}

.book-end a:hover {
  color: var(--gold-soft);
  padding-left: 3px;
}

.book-end-bottom {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 0.35rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(176, 154, 110, 0.2);
  font-size: 0.72rem;
  color: rgba(243, 235, 220, 0.35);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.book-end-credit {
  text-align: center;
}

.book-end-credit p {
  margin: 0;
}

.book-end a.book-end-studio {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: inherit;
  color: rgba(243, 235, 220, 0.28);
}

.book-end a.book-end-studio:hover {
  color: rgba(243, 235, 220, 0.48);
  padding-left: 0;
}

.to-top {
  position: absolute;
  right: 0;
  top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: rgba(243, 235, 220, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s, transform 0.3s;
}

.to-top:hover {
  color: var(--gold-soft);
  transform: translateY(-2px);
}

/* ---------- Search ---------- */
.search-layer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(36, 25, 16, 0.92);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  padding: var(--gutter);
}

.search-layer.is-open {
  opacity: 1;
  visibility: visible;
}

.search-panel {
  width: min(520px, 100%);
  position: relative;
}

.search-panel input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(176, 154, 110, 0.4);
  padding: 1rem 2.5rem 1rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  color: var(--on-dark);
  outline: none;
}

.search-panel input::placeholder {
  color: rgba(243, 235, 220, 0.3);
}

.search-close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  color: rgba(243, 235, 220, 0.5);
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  transition: color 0.3s, transform 0.3s;
}

.search-close:hover {
  color: var(--gold-soft);
  transform: rotate(90deg);
}

.search-suggest {
  margin-top: 1rem;
  list-style: none;
  max-height: min(52vh, 360px);
  overflow: auto;
  border-top: 1px solid rgba(176, 154, 110, 0.2);
}

.search-suggest a {
  display: block;
  padding: 0.85rem 0.15rem;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 154, 110, 0.12);
}

.search-suggest a:hover,
.search-suggest a.is-active {
  color: var(--gold-soft);
}

.search-suggest small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 235, 220, 0.45);
  margin-bottom: 0.2rem;
}

.search-suggest strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
}

.archive-search-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto 0;
  max-width: 520px;
}

.archive-search-form input {
  flex: 1;
  min-height: 46px;
  border: 1px solid rgba(139, 115, 85, 0.3);
  background: var(--ivory);
  padding: 0.65rem 0.9rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brown);
}

.archive-search-section {
  background: var(--paper);
  padding-top: 1.25rem;
}

.archive-search-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.archive-search-item a {
  display: block;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(139, 115, 85, 0.2);
  text-decoration: none;
  color: inherit;
}

.archive-search-item a:hover h2 {
  color: var(--bronze);
}

.archive-search-item h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0.35rem 0 0.4rem;
}

.archive-search-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.archive-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.archive-pager-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.archive-pager a {
  color: var(--bronze);
}

.archive-pager .is-current {
  color: var(--brown);
}

/* ---------- Loader ---------- */
.ms-loader {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: var(--paper);
  display: grid;
  place-items: center;
  transition: opacity 0.75s var(--ease), visibility 0.75s;
}

.ms-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ms-loader-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  color: var(--old-gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Editorial articles ---------- */
.articles2-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .articles2-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article2 {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(139, 115, 85, 0.25);
  transition: transform 0.4s var(--ease);
}

.article2:hover {
  transform: translateY(-4px);
}

.article2 h3 a {
  color: inherit;
  text-decoration: none;
}
.article2 h3 a:hover { color: #722F37; }

.article2 p {
  color: var(--ink-soft);
  font-weight: 350;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.article2 time {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ---------- Inner page intro ---------- */
.page-intro {
  padding-top: 8.5rem;
  padding-bottom: 2.5rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ivory), var(--paper));
}

.page-intro .lead {
  margin-inline: auto;
}

.page-crumb {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
}

.page-crumb a {
  color: var(--bronze);
  transition: color 0.3s;
}

.page-crumb a:hover {
  color: var(--brown);
}

.page-intro-sep {
  width: 160px;
  height: 32px;
  margin: 1.75rem auto 0;
  opacity: 0.5;
}

/* ---------- Book archive ---------- */
.book-archive-section {
  background: var(--paper);
  padding-top: 1.5rem;
}

.book-archive-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .book-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .book-archive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.75rem;
  }
}

.book-card {
  background: var(--ivory);
  border: 1px solid rgba(139, 115, 85, 0.18);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(36, 25, 16, 0.12);
}

.book-card-cover {
  background: linear-gradient(180deg, #5A4030 0%, #3C2A1E 55%, #2A1C14 100%);
  padding: 1.35rem 1.15rem 1.15rem;
  display: grid;
  place-items: center;
  min-height: 280px;
  box-shadow: inset 0 8px 24px rgba(0, 0, 0, 0.22);
}

.book-card-cover img {
  width: auto;
  height: clamp(200px, 42vw, 260px);
  max-width: 170px;
  object-fit: cover;
  box-shadow:
    6px 10px 24px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(176, 154, 110, 0.25);
}

.book-card-body {
  padding: 1.35rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-card-body .eyebrow {
  margin-bottom: 0.65rem;
}

.book-card-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.55rem);
  font-weight: 500;
  color: var(--brown);
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

.book-card-body p {
  color: var(--ink-soft);
  font-weight: 350;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.15rem;
  flex: 1;
}

.book-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.85rem;
  border-top: 1px solid rgba(139, 115, 85, 0.18);
}

.book-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.book-card-actions .btn {
  min-height: 42px;
  padding: 0.6rem 0.55rem;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  width: 100%;
}

.book-card-body h2 a {
  color: inherit;
  text-decoration: none;
}

.book-card-body h2 a:hover {
  color: var(--bronze);
}

.archive-detail-section {
  background: var(--paper);
  padding-top: 1.5rem;
}

.archive-detail {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .archive-detail {
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
  }

  .archive-detail--video {
    grid-template-columns: 1fr;
  }
}

.archive-detail-cover img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(139, 115, 85, 0.2);
}

.archive-embed {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--brown-deep);
}

.archive-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.archive-still,
.archive-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.archive-photo {
  max-width: 920px;
  margin-inline: auto;
}

.archive-empty {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink-soft);
  border: 1px dashed rgba(139, 115, 85, 0.35);
  padding: 2rem 1.25rem;
  background: rgba(251, 247, 240, 0.55);
}

.error-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem var(--gutter);
  background:
    radial-gradient(ellipse at 12% 18%, rgba(176, 154, 110, 0.14), transparent 42%),
    radial-gradient(ellipse at 88% 86%, rgba(107, 115, 85, 0.12), transparent 46%),
    var(--paper);
}

.error-screen-inner {
  width: min(36rem, 100%);
  text-align: center;
}

.error-screen .logo {
  justify-content: center;
  margin-bottom: 2.25rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  font-weight: 500;
  line-height: 0.9;
  color: var(--brown);
  letter-spacing: -0.04em;
}

.error-screen h1 {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 500;
  color: var(--brown);
}

.error-screen p {
  margin: 0.85rem auto 0;
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.error-screen-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .reveal-blur {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .art-glow { animation: none !important; }
}
