/* Mwanzo Homepage — The Beginning Journey layout */

:root {
  --cream: #faf7f2;
  --cream-dark: #f0ebe3;
  --ink-deep: #0c1814;
  --gold-line: rgba(212, 160, 23, 0.45);
}

body.home-journey {
  background: var(--cream);
}

/* Sticky go2 header — journey hero sits below */
.home-journey .journey-open {
  min-height: calc(100vh - var(--header-total));
  min-height: calc(100dvh - var(--header-total));
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Chapter rail removed */
.journey-open {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.journey-open-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.journey-open-poster,
.journey-open-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journey-open-media video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.journey-open-media.video-ready video {
  opacity: 1;
}
.journey-open-media.video-ready .journey-open-poster {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.journey-open-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,20,16,0.35) 0%, transparent 35%),
    linear-gradient(105deg, rgba(8,20,16,0.88) 0%, rgba(8,20,16,0.55) 42%, rgba(8,20,16,0.2) 100%);
  z-index: 1;
}
.journey-open-inner {
  position: relative;
  z-index: 2;
  width: min(1400px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(6rem, 14vh, 9rem) 0 clamp(2.5rem, 6vh, 4rem);
  padding-left: clamp(0rem, 5vw, 4rem);
}
.journey-coords {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.journey-open h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  line-height: 0.95;
  color: #fff;
  max-width: 11ch;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.journey-open h1 em {
  font-style: italic;
  color: var(--amber-soft);
  display: block;
  font-size: 0.92em;
}
.journey-open-lead {
  margin-top: 1.5rem;
  max-width: 42ch;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}
.journey-open-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.journey-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.journey-scroll-cue span {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--amber-soft), transparent);
  animation: journey-scroll-pulse 2s ease infinite;
}
@keyframes journey-scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Contradiction pairs — Bhutan-inspired */
.journey-pairs {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
}
.journey-pairs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.journey-pair {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.35s;
}
.journey-pair:last-child { border-right: none; }
.journey-pair:hover { background: var(--cream); }
.journey-pair strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.2;
  color: var(--forest);
  margin-bottom: 0.65rem;
}
.journey-pair span { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }

/* Chapter sections */
.journey-chapter {
  position: relative;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}
.journey-chapter--dark {
  background: var(--ink-deep);
  color: #fff;
}
.journey-chapter--forest { background: var(--forest); color: #fff; }
.journey-chapter--cream { background: var(--cream); }

.journey-chapter-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
  color: var(--gold-line);
  margin-bottom: -0.5rem;
  font-weight: 600;
}
.journey-chapter--dark .journey-chapter-num,
.journey-chapter--forest .journey-chapter-num { color: rgba(212,160,23,0.25); }

.journey-chapter-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.journey-chapter-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  max-width: 14ch;
  font-weight: 600;
}
.journey-chapter-head p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 46ch;
  align-self: end;
}
.journey-chapter--dark .journey-chapter-head p,
.journey-chapter--forest .journey-chapter-head p { color: rgba(255,255,255,0.72); }

/* Impact ledger — unique to Mwanzo */
.impact-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
}
.impact-ledger-item {
  background: rgba(0,0,0,0.2);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  text-align: center;
}
.impact-ledger-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--amber-soft);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.impact-ledger-item span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* Editorial bento — experiences */
.journey-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
}
.bento-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(10,47,36,0.12);
}
.bento-card--hero { grid-column: span 7; grid-row: span 2; min-height: 420px; }
.bento-card--tall { grid-column: span 5; grid-row: span 2; min-height: 420px; }
.bento-card--wide { grid-column: span 8; }
.bento-card--half { grid-column: span 4; }
.bento-card--third { grid-column: span 4; }
.bento-card img,
.bento-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bento-card-body {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(8,20,16,0.92));
  color: #fff;
  margin-top: auto;
}
.bento-card--light .bento-card-body {
  background: linear-gradient(transparent, rgba(250,247,242,0.95));
  color: var(--ink);
}
.bento-card-tag {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber-soft);
  margin-bottom: 0.4rem;
}
.bento-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.bento-card p { font-size: 0.85rem; opacity: 0.85; margin-bottom: 0.65rem; }
.bento-card a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber-soft);
}
.bento-card--light a { color: var(--forest); }

/* Dual origin split */
.journey-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.journey-split-panel {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.journey-split-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journey-split-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(8,20,16,0.88));
}
.journey-split-content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.journey-split-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-soft);
  margin-bottom: 0.5rem;
}
.journey-split-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}
.journey-split-content p { font-size: 0.92rem; opacity: 0.85; max-width: 36ch; }

/* Horizon CTA */
.journey-horizon {
  position: relative;
  padding: clamp(5rem, 12vw, 8rem) 0;
  text-align: center;
  background: var(--forest);
  color: #fff;
  overflow: hidden;
}
.journey-horizon::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-soft), transparent);
}
.journey-horizon h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 18ch;
  margin: 0 auto 1rem;
  line-height: 1.1;
}
.journey-horizon p {
  max-width: 48ch;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
}

/* Packages strip — horizontal scroll */
.journey-packages-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.journey-package-pill {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.journey-package-pill:hover { transform: scale(1.02); }
.journey-package-pill img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.journey-package-pill div { padding: 1rem 1.15rem; }
.journey-package-pill h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.journey-package-pill .meta { font-size: 0.78rem; color: var(--muted); }
.journey-package-pill .price { font-weight: 600; color: var(--forest); font-size: 0.9rem; margin-top: 0.35rem; }

/* Reveal animation — never hide trust/reviews content */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reviews-band,
.reviews-band[data-reveal] {
  opacity: 1;
  transform: none;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* SEO links — footer only on home */
.home-seo-links {
  padding: 1.5rem 0;
  background: var(--ink-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.home-seo-links-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.78);
}
.home-seo-links a {
  color: rgba(255,255,255,0.78);
}
.home-seo-links a:hover { color: #fff; }

.home-journey .mobile-nav {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

@media (max-width: 1024px) {
  .journey-pairs-grid { grid-template-columns: 1fr 1fr; }
  .journey-pair:nth-child(2) { border-right: none; }
  .journey-pair:nth-child(1),
  .journey-pair:nth-child(2) { border-bottom: 1px solid var(--line); }
  .journey-chapter-head { grid-template-columns: 1fr; }
  .journey-bento { grid-template-columns: 1fr; }
  .bento-card--hero,
  .bento-card--tall,
  .bento-card--wide,
  .bento-card--half,
  .bento-card--third { grid-column: span 1; grid-row: span 1; min-height: 280px; }
  .impact-ledger { grid-template-columns: 1fr 1fr; }
  .journey-split { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .journey-pairs-grid { grid-template-columns: 1fr; }
  .journey-pair { border-right: none !important; border-bottom: 1px solid var(--line); }
  .impact-ledger { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .journey-scroll-cue span { animation: none; }
}
