/* ============================================
   MEET THE LOCALS — Cinematic Profile Article
   Immersive multi-profile documentary layout
   ============================================ */

/* ============================================
   MOSAIC HERO — 4-portrait grid
   ============================================ */
.mtl-hero-wrapper {
  position: relative;
}

.mtl-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--color-midnight, #0a1628);
}

.mtl-hero__mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.mtl-hero__portrait {
  position: relative;
  overflow: hidden;
}

.mtl-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.mtl-hero__portrait--1 img {
  animation: heroKB1 30s ease-out forwards;
  object-position: center 35%;
}

.mtl-hero__portrait--2 img {
  animation: heroKB2 28s ease-out forwards;
  object-position: center 30%;
}

.mtl-hero__portrait--3 img {
  animation: heroKB3 32s ease-out forwards;
  object-position: center 25%;
}

.mtl-hero__portrait--4 img {
  animation: heroKB4 26s ease-out forwards;
  object-position: 60% 62%;
}

@keyframes heroKB1 {
  0% { transform: scale(1.15) translate(10px, 5px); }
  100% { transform: scale(1.02) translate(0, 0); }
}

@keyframes heroKB2 {
  0% { transform: scale(1.12) translate(-8px, 8px); }
  100% { transform: scale(1.01) translate(0, 0); }
}

@keyframes heroKB3 {
  0% { transform: scale(1.18) translate(5px, -5px); }
  100% { transform: scale(1.03) translate(0, 0); }
}

@keyframes heroKB4 {
  0% { transform: scale(1.1) translate(-10px, -3px); }
  100% { transform: scale(1) translate(0, 0); }
}

.mtl-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(10, 22, 40, 0.1) 0%,
      rgba(10, 22, 40, 0) 20%,
      rgba(10, 22, 40, 0.05) 50%,
      rgba(10, 22, 40, 0.55) 75%,
      rgba(10, 22, 40, 0.95) 90%,
      rgba(10, 22, 40, 1) 100%
    );
}

/* Vignette */
.mtl-hero__overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(10, 22, 40, 0.5) 100%);
}

/* Grid line accents */
.mtl-hero__overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 40%;
  background: linear-gradient(to bottom, rgba(212, 165, 116, 0.3), transparent);
  transform: translateX(-50%);
}

.mtl-hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl) var(--space-5xl);
  color: var(--color-warm-white, #FBF9F6);
  text-align: center;
}

.mtl-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: mtlFadeUp 1s ease-out 0.3s forwards;
}

@keyframes mtlFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mtl-hero__category {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-lg);
  background: linear-gradient(135deg, var(--color-gold, #d4a574), #c49a6c);
  color: var(--color-midnight, #0a1628);
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-full, 9999px);
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.4);
}

.mtl-hero__divider {
  width: 4px;
  height: 4px;
  background: var(--color-gold, #d4a574);
  border-radius: 50%;
  opacity: 0.6;
}

.mtl-hero__region {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-lg);
  font-size: var(--text-xs, 0.75rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full, 9999px);
}

.mtl-hero__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: mtlFadeUp 1s ease-out 0.5s forwards;
}

.mtl-hero__subtitle {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.1rem, 2.5vw, var(--text-xl, 1.25rem));
  font-style: italic;
  font-weight: 400;
  color: var(--color-aurora, #7dd3c0);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;
  animation: mtlFadeUp 1s ease-out 0.7s forwards;
}

/* Scroll indicator */
.mtl-hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs, 0.75rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: mtlFadeUp 1s ease-out 1s forwards;
}

.mtl-hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-gold, #d4a574), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================
   ARTICLE INTRO — overrides on art-intro
   ============================================ */
.mtl-article .art-intro__inner {
  padding: var(--space-5xl) var(--space-xl) var(--space-3xl);
}

.mtl-article .art-lead {
  padding: var(--space-3xl) 0 var(--space-2xl);
  margin-bottom: 0;
}

/* ============================================
   PROFILE NAVIGATION — Sticky
   ============================================ */
.mtl-profile-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3xl);
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-warm-white, #FBF9F6);
  border-bottom: 1px solid var(--color-mist, #e8e5e0);
  position: relative;
  z-index: 50;
  transition: box-shadow 0.3s;
}

.mtl-profile-nav.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Spacer to prevent content jump when nav becomes fixed */
.mtl-profile-nav-spacer {
  display: none;
}

.mtl-profile-nav-spacer.is-active {
  display: block;
}

.mtl-profile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-text-secondary, #4a4a4a);
  transition: color 0.3s, transform 0.3s;
}

.mtl-profile-nav__item:hover {
  color: var(--color-text-primary, #1a1a1a);
  transform: translateY(-2px);
}

.mtl-profile-nav__item img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.mtl-profile-nav__item.is-active img {
  border-color: var(--color-gold, #d4a574);
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.4);
}

.mtl-profile-nav__item span {
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.mtl-profile-nav__item.is-active span {
  color: var(--color-text-primary, #1a1a1a);
  font-weight: 600;
}

.mtl-profile-nav__item.is-active span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-gold, #d4a574);
  border-radius: 1px;
}

/* ============================================
   CHAPTER OPENER — Full-width portrait
   ============================================ */
.mtl-chapter-opener {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.mtl-chapter-opener__image {
  position: absolute;
  inset: 0;
}

.mtl-chapter-opener__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Per-profile face positioning */
.mtl-chapter-opener--audun .mtl-chapter-opener__image img {
  object-position: center 40%;
}

.mtl-chapter-opener--linda .mtl-chapter-opener__image img {
  object-position: center 45%;
}

.mtl-chapter-opener__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10, 22, 40, 0.05) 0%,
      rgba(10, 22, 40, 0) 30%,
      rgba(10, 22, 40, 0.6) 70%,
      rgba(10, 22, 40, 0.95) 100%
    );
}

.mtl-chapter-opener__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3xl) var(--space-2xl);
  z-index: 2;
}

.mtl-chapter-opener__island {
  display: inline-block;
  font-size: var(--text-xs, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold, #d4a574);
  margin-bottom: var(--space-md);
  padding: var(--space-xs) var(--space-lg);
  background: rgba(212, 165, 116, 0.12);
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: var(--radius-full, 9999px);
}

.mtl-chapter-opener__name {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--color-warm-white, #FBF9F6);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* Alternate layout - name on right side */
.mtl-profile--alt .mtl-chapter-opener__content {
  text-align: right;
}

/* Accent color variation */
.mtl-profile--alt .mtl-chapter-opener__island {
  color: var(--color-aurora, #7dd3c0);
  background: rgba(125, 211, 192, 0.12);
  border-color: rgba(125, 211, 192, 0.3);
}

/* ============================================
   PULLQUOTE — Full-width dark section
   ============================================ */
.mtl-pullquote {
  position: relative;
  padding: var(--space-5xl) var(--space-xl);
  background: linear-gradient(135deg, var(--color-midnight, #0a1628) 0%, #0d1a2a 100%);
  text-align: center;
  overflow: hidden;
}

/* Animated background orbs */
.mtl-pullquote::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(212, 165, 116, 0.06) 0%, transparent 60%);
  animation: orbFloat 15s ease-in-out infinite;
}

.mtl-pullquote::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(107, 144, 128, 0.06) 0%, transparent 60%);
  animation: orbFloat 18s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -20px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

.mtl-pullquote__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.mtl-pullquote__mark {
  display: block;
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 10rem;
  font-weight: 300;
  line-height: 0.5;
  background: linear-gradient(180deg, var(--color-gold, #d4a574), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  margin-bottom: var(--space-lg);
}

.mtl-pullquote p {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.4rem, 3.5vw, var(--text-3xl, 2rem));
  font-style: italic;
  font-weight: 400;
  color: var(--color-warm-white, #FBF9F6);
  line-height: 1.5;
  margin: 0;
}

/* Quote attribution */
.mtl-pullquote__cite {
  display: block;
  margin-top: var(--space-lg);
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: var(--text-base, 1rem);
  font-style: normal;
  font-weight: 500;
  color: var(--color-gold, #d4a574);
  letter-spacing: 0.05em;
}

/* Accent color variation for alternate profiles */
.mtl-profile--alt .mtl-pullquote__mark {
  background: linear-gradient(180deg, var(--color-aurora, #7dd3c0), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   STORY TEXT — Prose sections
   ============================================ */
.mtl-story {
  background: var(--color-warm-white, #FBF9F6);
}

.mtl-story__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.mtl-story__inner p {
  font-size: var(--text-lg, 1.125rem);
  line-height: 1.9;
  color: var(--color-text-secondary, #4a4a4a);
  margin-bottom: var(--space-xl);
}

.mtl-story__inner p:last-child {
  margin-bottom: 0;
}

.mtl-story__inner a {
  color: var(--color-pine, #2d6a3f);
  text-decoration: underline;
  text-decoration-color: var(--color-aurora, #7dd3c0);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s, color 0.3s;
}

.mtl-story__inner a:hover {
  color: var(--color-forest, #1a4d2e);
  text-decoration-color: var(--color-pine, #2d6a3f);
}

/* First story block after pullquote gets extra top padding */
.mtl-pullquote + .mtl-story .mtl-story__inner {
  padding-top: var(--space-4xl);
}

/* ============================================
   INLINE FIGURES — overrides on art-figure
   ============================================ */
.mtl-article .art-figure {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   MANIFESTO BLOCK — Linda's "I saw..." list
   ============================================ */
.mtl-manifesto {
  position: relative;
  padding: var(--space-5xl) var(--space-xl);
  background: linear-gradient(135deg, var(--color-midnight, #0a1628) 0%, #0f1d30 100%);
  text-align: center;
  overflow: hidden;
}

.mtl-manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(125, 211, 192, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(212, 165, 116, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.mtl-manifesto__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.mtl-manifesto__line {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  color: var(--color-warm-white, #FBF9F6);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  padding: 0;
}

.mtl-manifesto__line:last-child {
  margin-bottom: 0;
}

/* All manifesto lines in white */
.mtl-manifesto__line--saw {
  color: var(--color-warm-white, #FBF9F6);
}

/* ============================================
   CLOSING CTA — overrides on art-closing
   ============================================ */
.mtl-article .art-closing {
  padding: var(--space-5xl) var(--space-xl);
}

.mtl-article .art-closing::before {
  background: linear-gradient(90deg, var(--color-gold, #d4a574), var(--color-aurora, #7dd3c0));
  margin-bottom: var(--space-3xl);
}

.mtl-article .art-closing__inner {
  max-width: 600px;
}

.mtl-article .art-closing__text {
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* ============================================
   PROFILE DIVIDER
   ============================================ */
.mtl-profile-divider {
  background: var(--color-warm-white, #FBF9F6);
  text-align: center;
  padding: var(--space-4xl) var(--space-xl) var(--space-xl);
}

.mtl-profile-divider__line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-mist, #e8e5e0);
  vertical-align: middle;
}

.mtl-profile-divider__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-gold, #d4a574);
  border-radius: 50%;
  margin: 0 var(--space-md);
  vertical-align: middle;
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 768px) {
  .mtl-hero__content {
    padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
  }

  .mtl-hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .mtl-hero__scroll {
    display: none;
  }

  .mtl-article .art-intro__inner {
    padding: var(--space-4xl) var(--space-lg) var(--space-2xl);
  }

  /* Profile nav: smaller portraits, tighter spacing */
  .mtl-profile-nav {
    gap: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
  }

  .mtl-profile-nav__item img {
    width: 42px;
    height: 42px;
  }

  .mtl-profile-nav__item span {
    font-size: var(--text-xs, 0.75rem);
  }

  /* Chapter opener: less height */
  .mtl-chapter-opener {
    height: 55vh;
    min-height: 380px;
  }

  .mtl-chapter-opener__content {
    padding: var(--space-2xl) var(--space-lg);
  }

  .mtl-chapter-opener__name {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  /* Pullquote: tighter */
  .mtl-pullquote {
    padding: var(--space-4xl) var(--space-lg);
  }

  .mtl-pullquote__mark {
    font-size: 7rem;
  }

  /* Story text */
  .mtl-story__inner {
    padding: var(--space-2xl) var(--space-lg);
  }

  /* Figure — spread variant full-width on tablet */
  .mtl-article .art-figure--spread {
    max-width: 100%;
  }

  /* Manifesto */
  .mtl-manifesto {
    padding: var(--space-4xl) var(--space-lg);
  }

  /* Divider: tighter on mobile */
  .mtl-profile-divider {
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  }

  /* Closing */
  .mtl-article .art-closing {
    padding: var(--space-4xl) var(--space-lg);
  }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 480px) {
  .mtl-hero__mosaic {
    gap: 1px;
  }

  .mtl-profile-nav {
    gap: var(--space-lg);
  }

  .mtl-profile-nav__item img {
    width: 36px;
    height: 36px;
  }

  .mtl-chapter-opener {
    height: 50vh;
    min-height: 320px;
  }

  .mtl-pullquote__mark {
    font-size: 5rem;
  }

  .mtl-manifesto__line {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .mtl-hero__portrait img {
    animation: none;
    transform: none;
  }

  .mtl-hero__meta,
  .mtl-hero__title,
  .mtl-hero__subtitle,
  .mtl-hero__scroll {
    opacity: 1;
    animation: none;
  }

  .mtl-pullquote::before,
  .mtl-pullquote::after {
    animation: none;
  }

  .mtl-hero__scroll-line {
    animation: none;
  }
}
