/* ============================================================
   SANTANA MEDIA — STYLES
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --bg-card: #161616;
  --line: rgba(232, 230, 225, 0.1);
  --line-soft: rgba(232, 230, 225, 0.06);
  --text: #e8e6e1;
  --muted: rgba(232, 230, 225, 0.6);
  --muted-2: rgba(232, 230, 225, 0.4);
  --muted-3: rgba(232, 230, 225, 0.25);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1480px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*, *::before, *::after { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--text); color: var(--bg); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

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

/* ====================== Typography ====================== */
.overline {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
}
.display .line { display: block; }
.display .italic { font-style: italic; color: rgba(232, 230, 225, 0.78); }

.display-lg {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--text);
}

.brand-mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand-mark.light { color: var(--muted); font-weight: 300; margin-left: 0.18em; }
.brand-mark.big { font-size: 2rem; }

/* ====================== Navbar ====================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 18px 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: padding 0.5s var(--ease), background 0.5s var(--ease);
}
.nav.scrolled { padding: 12px 0; background: rgba(10, 10, 10, 0.85); }
.nav-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) { .nav-row { padding: 0 40px; } }
@media (min-width: 1200px) { .nav-row { padding: 0 64px; } }

.brand { display: inline-flex; align-items: baseline; }
.nav-links { display: none; gap: 30px; }
@media (min-width: 1100px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  transition: color 0.4s var(--ease);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--text); border-bottom-color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-icon {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
@media (min-width: 640px) { .nav-icon { display: inline-flex; } }
.nav-icon:hover { color: var(--text); border-color: var(--text); }

.btn-book {
  display: none;
  padding: 10px 22px;
  border: 1px solid var(--text);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  transition: all 0.5s var(--ease);
}
@media (min-width: 640px) { .btn-book { display: inline-flex; } }
.btn-book:hover { background: var(--text); color: var(--bg); }

.hamburger {
  width: 32px; height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 4px;
  margin-left: 4px;
}
.hamburger span {
  display: block;
  height: 1px;
  width: 22px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ====================== Mobile / Full Menu ====================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-inner {
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 768px) { .menu-inner { padding: 40px 64px; } }

.menu-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.menu-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.menu-close {
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 12px 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.4s var(--ease), color 0.4s var(--ease);
}
.menu-list a em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--muted-2);
  font-weight: 400;
  min-width: 36px;
}
.menu-list a:hover { padding-left: 16px; }

.menu-contact {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.menu-contact .menu-eyebrow { margin-bottom: 16px; display: inline-block; }
.menu-contact-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.4s var(--ease);
}
.menu-contact-row:hover { padding-left: 12px; }
.mc-value {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--text);
}
.mc-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.menu-foot {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 640px) {
  .menu-foot { flex-direction: row; justify-content: space-between; align-items: center; }
}
.menu-tel { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.1em; }
.menu-book {
  padding: 14px 26px;
  border: 1px solid var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  transition: all 0.5s var(--ease);
}
.menu-book:hover { background: var(--text); color: var(--bg); }

/* ====================== Hero ====================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 60px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video, .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-grade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.25) 35%, rgba(10,10,10,0.92) 100%);
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
@media (min-width: 768px) { .hero-content { padding: 0 40px; } }
@media (min-width: 1200px) { .hero-content { padding: 0 64px; } }

.hero .overline { margin-bottom: 28px; color: rgba(232, 230, 225, 0.7); }
.hero .display { max-width: 16ch; }
.hero-lede {
  margin-top: 32px;
  max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: rgba(232, 230, 225, 0.78);
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-line {
  padding: 16px 32px;
  border: 1px solid var(--text);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  transition: all 0.5s var(--ease);
}
.btn-line:hover { background: var(--text); color: var(--bg); }
.btn-line.ghost { border-color: var(--muted-3); color: var(--muted); }
.btn-line.ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.hero-foot {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
}
@media (min-width: 768px) { .hero-foot { padding: 0 40px; } }
@media (min-width: 1200px) { .hero-foot { padding: 0 64px; } }
.hero-foot-left { animation: bounceDown 2.4s var(--ease) infinite; }
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ====================== Marquee ====================== */
.marquee-section {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 28px 0;
  overflow: hidden;
  background: var(--bg);
}
.marquee { overflow: hidden; }
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: rgba(232, 230, 225, 0.55);
}
.marquee-track .dot {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.6em;
  color: var(--muted-3);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ====================== Studio Intro ====================== */
.studio { padding: 120px 0; }
@media (min-width: 768px) { .studio { padding: 180px 0; } }
.studio-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) { .studio-inner { padding: 0 40px; grid-template-columns: 4fr 8fr; gap: 60px; } }
@media (min-width: 1200px) { .studio-inner { padding: 0 64px; grid-template-columns: 3fr 9fr; gap: 100px; } }

.studio-body {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--text);
  max-width: 24ch;
}

/* ====================== Chapters ====================== */
.chapters { padding: 60px 0 120px; }
.chapters-head {
  max-width: var(--max);
  margin: 0 auto 50px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
@media (min-width: 768px) { .chapters-head { padding: 0 40px; } }
@media (min-width: 1200px) { .chapters-head { padding: 0 64px; } }
.chapters-count { font-size: 0.75rem; letter-spacing: 0.25em; color: var(--muted-2); text-transform: uppercase; }

.chapters-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .chapters-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 0 40px; } }
@media (min-width: 1024px) { .chapters-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0 64px; } }

.chapter {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-card);
  transition: transform 0.7s var(--ease);
}
.chapter-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.chapter-media img, .chapter-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.chapter:hover .chapter-media img,
.chapter:hover .chapter-media video { transform: scale(1.05); }
.chapter-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.1) 30%, rgba(10,10,10,0.85) 100%);
}

.chapter-meta {
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  z-index: 2;
}
@media (min-width: 768px) { .chapter-meta { left: 28px; right: 28px; bottom: 28px; } }

.chapter-num {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232, 230, 225, 0.7);
  margin-bottom: 10px;
}
.chapter-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}
.chapter-sub {
  font-size: 0.85rem;
  color: rgba(232, 230, 225, 0.65);
  margin-bottom: 18px;
}
.chapter-link {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: opacity 0.4s var(--ease);
}
.chapter:hover .chapter-link { opacity: 0.7; }

/* ====================== Contact section ====================== */
.contact { padding: 120px 0; border-top: 1px solid var(--line-soft); }
@media (min-width: 768px) { .contact { padding: 160px 0; } }
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .contact-inner { padding: 0 40px; } }
@media (min-width: 1200px) { .contact-inner { padding: 0 64px; } }
.contact .overline { margin-bottom: 24px; }
.contact .display-lg { margin-bottom: 48px; max-width: 14ch; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 60px;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.contact-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.contact-card:hover { border-color: var(--text); background: rgba(232, 230, 225, 0.02); }
.cc-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.cc-value {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 400;
  color: var(--text);
  word-break: break-word;
}
.cc-arrow {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}
.contact-card:hover .cc-arrow { transform: translate(3px, -3px); color: var(--text); }

.contact-line {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  margin-bottom: 14px;
  max-width: 30ch;
}
.contact-note {
  color: var(--muted);
  max-width: 48ch;
  font-size: 0.95rem;
}

/* ====================== Footer ====================== */
.footer { padding: 60px 0 32px; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer-inner { padding: 0 40px; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
}
@media (min-width: 1200px) { .footer-inner { padding: 0 64px; } }

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 400;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  font-size: 0.95rem;
  transition: opacity 0.4s var(--ease);
}
.footer-col ul a em {
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer-col ul a:hover { opacity: 0.6; }
.footer-cats a { color: var(--text); }
.footer-tag {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 30ch;
}

.footer-bottom {
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; padding: 24px 24px 0; } }
@media (min-width: 768px) { .footer-bottom { padding: 24px 40px 0; } }
@media (min-width: 1200px) { .footer-bottom { padding: 24px 64px 0; } }

/* ====================== Reveal animations ====================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.up {
  opacity: 0;
  transform: translateY(40px);
  animation: heroIn 1.2s var(--ease) forwards;
}
.up:nth-child(1) { animation-delay: 0.2s; }
.up:nth-child(2) { animation-delay: 0.4s; }
.up:nth-child(3) { animation-delay: 0.7s; }
.up:nth-child(4) { animation-delay: 0.9s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CATEGORY PAGE STYLES
   ============================================================ */

.cat-hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  padding-top: 120px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.cat-hero-bg { position: absolute; inset: 0; z-index: 0; }
.cat-hero-bg img, .cat-hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cat-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 80px;
  width: 100%;
}
@media (min-width: 768px) { .cat-hero-content { padding: 0 40px 100px; } }
@media (min-width: 1200px) { .cat-hero-content { padding: 0 64px 100px; } }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}
.back-link:hover { color: var(--text); }

.cat-num {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
  display: block;
}
.cat-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 10vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 18px;
}
.cat-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  color: rgba(232, 230, 225, 0.75);
  max-width: 40ch;
}

/* === Gallery === */
.gallery-section {
  padding: 80px 0 120px;
}
@media (min-width: 768px) { .gallery-section { padding: 120px 0 160px; } }

.gallery {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 768px) { .gallery { padding: 0 40px; gap: 40px; } }
@media (min-width: 1200px) { .gallery { padding: 0 64px; gap: 56px; } }

.g-item {
  position: relative;
  width: 100%;
  background: var(--bg-card);
  overflow: hidden;
}
.g-item img, .g-item video {
  display: block;
  width: 100%;
  height: auto;
  /* aspect ratio is set inline based on natural dimensions */
  object-fit: contain;
}
.g-item.video-item video {
  width: 100%;
  height: auto;
}

/* Adaptive sizing — preserve true aspect ratio.
   The container width centers and constrains based on orientation
   set by JS via data-orient attribute. */
.g-item[data-orient="portrait"], .g-item[data-orient="tall"] {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.g-item[data-orient="square"] {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.g-item[data-orient="landscape"], .g-item[data-orient="ultrawide"] {
  max-width: 100%;
}

.g-loading {
  position: relative;
  background: linear-gradient(110deg, var(--bg-card) 8%, #1c1c1c 18%, var(--bg-card) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
  aspect-ratio: 3 / 4;
}
@keyframes shimmer { to { background-position-x: -200%; } }

/* === Next chapter === */
.next-chapter {
  border-top: 1px solid var(--line);
  padding: 80px 0;
}
@media (min-width: 768px) { .next-chapter { padding: 100px 0; } }
.next-chapter-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .next-chapter-inner { padding: 0 40px; } }
@media (min-width: 1200px) { .next-chapter-inner { padding: 0 64px; } }
.next-chapter a {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.4s var(--ease);
}
.next-chapter a:hover { opacity: 0.7; }
.nc-label { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-2); }
.nc-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--text);
}
.nc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text);
}

/* === Page contact strip on category pages === */
.cat-contact {
  padding: 80px 0;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.cat-contact h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 32px;
}
.cat-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
