/* Custom Monk-style Vertical Title Layout */
.monk-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.wealth-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wealth-row {
  display: flex;
  align-items: flex-start;
  line-height: 1.05;
}

.wealth-row:first-child {
  position: relative;
}

.script-wrap {
  position: absolute;
  right: 100%;
  top: 0;
}

.wealth-vertical .word-wrap {
  display: inline-block;
  overflow: visible;
}

.wealth-vertical .word-inner {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.wealth-char {
  font-family: 'Dahlia', serif;
  font-size: clamp(6rem, 21.5vh, 20rem);
  color: #2D241B;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: inline-block;
  line-height: 1.05;
}

.wealth-script {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(2rem, min(9vw, 7.5vh), 8rem);
  color: #8a7355;
  text-transform: none;
  margin-right: 25px;
  margin-top: 10px;
  white-space: nowrap;
  display: inline-block;
  line-height: 1;
}

.quote-wrap {
  position: absolute;
  left: 100%;
  bottom: clamp(-40px, -5vh, -20px);
  margin-left: 45px;
  text-align: left;
  width: clamp(310px, 24vw, 450px);
  opacity: 0;
  z-index: 10;
}

.landing-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.22rem, 1.45vw, 1.62rem);
  line-height: 1.45;
  color: #5c4a32;
  font-style: italic;
  text-align: justify;
}

.landing-quote::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 3.5em;
  font-weight: 700;
  float: left;
  line-height: 0.75;
  margin-right: 12px;
  margin-top: 4px;
  color: #2D241B;
}

.landing-author {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(1.8rem, 2.2vw, 2.8rem);
  color: #8a7355;
  margin-top: 12px;
  text-align: right;
  text-transform: none;
  letter-spacing: normal;
}

/* ── Content Viewports ── */
.tab-viewports {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.tab-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* ── Screen States inside a Tab ── */
.viewport-scroll-container {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* 1. Landing state (First Screen) */
.landing-screen {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 11vh 40px 0;
  z-index: 2;
  justify-content: flex-start;
}

.landing-screen > * {
  margin-top: 0;
  margin-bottom: 0;
}

.landing-eyebrow {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  color: #8a7355;
  margin-bottom: 8px;
}

.landing-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: #2D241B;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  text-transform: uppercase;
  max-width: 1100px;
}

/* Word slide-up text reveal classes */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.word-inner {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.landing-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: #5c4a32;
  max-width: 650px;
  line-height: 1.6;
}

/* Decorative Parallax Doves */
.dove-wrapper {
  position: absolute;
  width: 18vw;
  max-width: 250px;
  min-width: 140px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
  transition: transform 0.2s ease-out;
}

.dove-left {
  left: 6vw;
  top: 25%;
}

.dove-right {
  right: 6vw;
  top: 22%;
  transform: scaleX(-1);
}

.dove-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(42, 35, 24, 0.06));
}

/* 2. Reading state (Scroll-down Screen) */
.reading-screen {
  width: 100%;
  min-height: 100vh;
  padding: 100px 8% 280px;
  display: flex;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.reading-content {
  max-width: 800px;
  width: 100%;
}

.reading-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
}

.reading-divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, #5c4a32, transparent);
}

.reading-divider-dot {
  width: 5px;
  height: 5px;
  background: #5c4a32;
  border-radius: 50%;
}

.reading-body p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 1.58vw, 1.4rem);
  line-height: 1.85;
  color: #2D241B;
  margin-bottom: 1.8em;
  text-align: left;
}

.reading-body p:last-child {
  margin-bottom: 0;
}

.massive-quote-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  left: 0;
  right: 0;
  margin-top: 90px;
  margin-bottom: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Dahlia', serif;
  color: #2D241B;
  padding: 0 8%;
  box-sizing: border-box;
}

.massive-quote-line {
  font-size: clamp(2.5rem, 6.5vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  white-space: nowrap;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quote-intro-text {
  font-family: 'Dahlia', serif;
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  color: #2D241B;
  text-transform: none;
  letter-spacing: -0.01em;
  margin-right: 25px;
  display: inline-block;
  align-self: flex-end;
  margin-bottom: 0.12em;
}

.massive-quote-line.flex-line-right {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.massive-quote-line.flex-line-right .quote-line-divider {
  flex-grow: 1;
  height: 1px;
  background: rgba(42, 35, 24, 0.22);
  margin-left: 30px;
  max-width: 350px;
}

.massive-quote-line.flex-line-left {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.massive-quote-line.flex-line-left .quote-line-divider {
  flex-grow: 1;
  height: 1px;
  background: rgba(42, 35, 24, 0.22);
  margin-right: 30px;
  max-width: 350px;
}

/* Drop cap styling */
.reading-body p.has-dropcap::first-letter {
  font-family: 'Cinzel', serif;
  font-size: 4.8em;
  font-weight: 800;
  float: left;
  line-height: 0.8;
  margin-right: 14px;
  margin-top: 6px;
  color: #2D241B;
  text-shadow: 2px 2px 0 rgba(92, 74, 50, 0.1);
}

/* Pull Quotes */
.pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  line-height: 1.65;
  color: #5c4a32;
  padding: 30px 40px;
  border-left: 2px solid rgba(92, 74, 50, 0.3);
  margin: 48px 0;
  background: rgba(92, 74, 50, 0.02);
  border-radius: 0 8px 8px 0;
  position: relative;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  left: 15px;
  top: 6px;
  font-size: 5.5rem;
  color: rgba(92, 74, 50, 0.06);
  font-family: 'Cormorant Garamond', serif;
  line-height: 1;
}

/* Image frames */
.photo-frame {
  border: 1px solid rgba(42, 35, 24, 0.12);
  padding: 16px;
  border-radius: 6px;
  background: rgba(42, 35, 24, 0.015);
  margin: 48px 0;
  box-shadow:
    0 10px 30px rgba(42, 35, 24, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.5s ease;
}

.photo-frame:hover {
  border-color: rgba(92, 74, 50, 0.3);
  box-shadow: 0 15px 40px rgba(42, 35, 24, 0.1);
  transform: translateY(-4px);
}

.photo-frame img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  display: block;
  filter: sepia(0.1) brightness(0.96);
}

.photo-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #8a7355;
  text-align: center;
  margin-top: 14px;
  letter-spacing: 0.05em;
}

.photo-frame.float-right {
  float: right;
  width: 45%;
  margin: 10px 0 25px 30px;
}

.photo-frame.float-left {
  float: left;
  width: 45%;
  margin: 10px 30px 25px 0;
}

.photo-frame.full-width {
  width: 100%;
  float: none;
  clear: both;
  margin: 40px 0 48px;
}

.full-screen-image-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  left: 0;
  right: 0;
  margin-top: 45px;
  margin-bottom: 55px;
  border-top: none !important;
  border-bottom: none !important;
  border: none !important;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(42, 35, 24, 0.08);
}

.full-screen-image-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(216, 204, 191, 0.95) 0%, rgba(216, 204, 191, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

.full-screen-image-container::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(216, 204, 191, 0.95) 0%, rgba(216, 204, 191, 0) 100%);
  z-index: 3;
  pointer-events: none;
}

.full-screen-image {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: cover;
  display: block;
  border: none !important;
  filter: contrast(1.04) brightness(1.02);
  transform: scale(1.04);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  will-change: transform;
}

.full-bleed-banner {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  left: 0;
  right: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-top: 1.5px solid rgba(42, 35, 24, 0.2);
  border-bottom: 1.5px solid rgba(42, 35, 24, 0.2);
  background: #392f25;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.full-bleed-banner.parallax-banner img {
  width: 100%;
  height: auto;
  display: block;
  filter: none;
  transform: scale(1.1) translateY(0%);
  will-change: transform;
}

.clear-both {
  clear: both;
}

/* ── Bottom Sub-navigation ── */
.bottom-tabs-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: #d4c9b0;
  border-top: 2px solid #2a2318;
  border-bottom: 2px solid #2a2318;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  z-index: 100;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.03);
}

.sub-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
}

.sub-tab {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(42, 35, 24, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  position: relative;
  flex: 1;
  height: 100%;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.sub-tab:hover {
  background-color: rgba(42, 35, 24, 0.04);
}

.sub-tab.active {
  background-color: rgba(42, 35, 24, 0.02);
}

.sub-tab-inner-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.sub-tab-num {
  font-family: 'Caveat', cursive;
  font-size: 1.7rem;
  font-weight: 500;
  color: #8a7355;
  line-height: 1;
  font-style: italic;
  transition: color 0.3s ease;
}

.sub-tab-text {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #5c4a32;
  text-transform: uppercase;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.sub-tab:hover .sub-tab-text {
  color: #2a2318;
}

.sub-tab:hover .sub-tab-num {
  color: #5c4a32;
}

.sub-tab.active .sub-tab-text,
.sub-tab.active .sub-tab-num {
  color: #2a2318;
}

.sub-tab-underline {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  height: 4px;
  background: #2a2318;
  border-radius: 3px 5px 2px 4px / 2px 3px 5px 3px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sub-tab.active .sub-tab-underline {
  transform: scaleX(1);
}

.bottom-arrows {
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 2px solid #2a2318;
  padding-left: 30px;
  padding-right: 30px;
  height: 100%;
}

.bottom-arrow {
  background: transparent;
  border: none;
  color: #5c4a32;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bottom-arrow:hover {
  color: #2a2318;
  transform: scale(1.15);
}

.bottom-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.scroll-hint-down {
  position: absolute;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.scroll-hint-down:hover {
  opacity: 1;
}

.scroll-hint-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #5c4a32;
}

.scroll-hint-arrow {
  width: 1px;
  height: 35px;
  background: linear-gradient(180deg, #5c4a32, transparent);
  animation: pulseArrow 2s infinite ease-in-out;
}

@keyframes pulseArrow {
  0%, 100% {
    transform: scaleY(1);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1.3);
    opacity: 1;
  }
}

@media (max-width: 992px) {
  .bottom-tabs-bar {
    height: 65px;
  }
  .sub-tab-text {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }
  .sub-tab-num {
    font-size: 1.4rem;
  }
  .bottom-arrows {
    padding-left: 15px;
    padding-right: 15px;
  }
  .reading-screen {
    padding: 90px 6% 140px;
  }
  .wealth-row:first-child {
    flex-direction: column;
    align-items: center;
  }
  .script-wrap {
    position: static;
    margin-right: 0 !important;
    margin-bottom: 15px;
    text-align: center !important;
    align-items: center !important;
    width: 100% !important;
  }
  .script-wrap .word-wrap {
    text-align: center !important;
    align-items: center !important;
  }
  .script-wrap .wealth-script {
    margin-right: 0 !important;
    text-align: center !important;
  }
  .wealth-row:last-child {
    flex-direction: column;
    align-items: center;
  }
  .quote-wrap {
    position: static;
    margin-left: 0;
    margin-top: 25px;
    width: 90vw;
    max-width: 450px;
    text-align: center;
  }
  .landing-quote {
    text-align: center;
  }
  .landing-quote::first-letter {
    float: none;
    font-size: 1.2em;
    font-weight: normal;
    margin-right: 0;
    margin-top: 0;
    line-height: inherit;
  }
  .landing-author {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 16px 24px;
  }
  .logo {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
  }
  .back-btn {
    padding: 8px 14px;
    font-size: 0.65rem;
    gap: 6px;
  }
  .dove-wrapper {
    display: none;
  }
  .bottom-tabs-bar {
    height: 55px;
  }
  .bottom-arrows {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sub-tab-text {
    display: none;
  }
  .photo-frame.float-left,
  .photo-frame.float-right {
    float: none;
    width: 100%;
    margin: 30px 0;
  }
}

/* ── Next Chapter Hero Card ── */
.next-chapter-hero-wrapper {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 0;
  box-sizing: border-box;
}

.next-chapter-hero-card {
  width: 90%;
  max-width: 820px;
  margin: 0 auto;
  padding: 35px 45px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(138, 115, 85, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(45, 36, 27, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  z-index: 15;
}

.next-chapter-hero-card:hover {
  border-color: rgba(138, 115, 85, 0.6);
  box-shadow: 0 25px 50px rgba(45, 36, 27, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-4px);
}

.next-chapter-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.next-chapter-divider::before,
.next-chapter-divider::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, #8a7355, transparent);
}

.next-chapter-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #8a7355;
  font-weight: 600;
}

.next-chapter-action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #2D241B;
  gap: 20px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(138, 115, 85, 0.2);
  border-radius: 14px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.next-chapter-action-btn:hover {
  background: #2D241B;
  color: #F7F5F0;
  border-color: #2D241B;
  transform: scale(1.01);
}

.next-chapter-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.next-chapter-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #8a7355;
  font-weight: 600;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.next-chapter-action-btn:hover .next-chapter-num {
  color: #d4af37;
}

.next-chapter-name {
  font-family: 'Cormorant Garamond', 'Dahlia', serif;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
}

.next-chapter-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(138, 115, 85, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.next-chapter-action-btn:hover .next-chapter-icon-circle {
  background: #d4af37;
  color: #1a1612;
  transform: translateX(6px);
}

@media (max-width: 768px) {
  .next-chapter-hero-wrapper {
    min-height: calc(100vh - 100px);
    padding: 20px 0;
  }
  .next-chapter-hero-card {
    padding: 24px 20px;
    margin: 0 auto;
  }
  .next-chapter-action-btn {
    padding: 14px 16px;
  }
  .next-chapter-icon-circle {
    width: 40px;
    height: 40px;
  }
}



