/* ======================================
   MAT44 — CANONICAL COLOR PALETTE
   Locked: Marketing + App
   ====================================== */

:root {
  /* Core Neutrals */
  --mat44-charcoal: #2B2B2B;
  --mat44-off-white: #F6F7F8;
  --mat44-light-gray: #ECEFF1;

  /* Calm Accents */
  --mat44-sky: #A7C7E7;
  --mat44-mint: #8ED1C2;
  --mat44-peach: #F4B6A6;

  /* Optional Tech Accent (VERY LIMITED USE) */
  --mat44-tech-teal: #4FD1C5;
  --mat44-tech-violet: #8B5CF6;

  /* Shadows */
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-tiny: 0 2px 10px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

body {
  color: var(--mat44-charcoal);
  background: var(--mat44-off-white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.55;
}

header, footer {
  padding: 1rem 2rem;
  background: #f7f7f7;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

footer {
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: none;
}

nav a {
  margin-right: 1rem;
  text-decoration: none;
  color: #333;
}

nav a:hover {
  text-decoration: underline;
}

main {
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Coming Soon Banner */
.coming-soon-banner {
  background: #eef3ff;
  color: #223;
  padding: 0.75rem 2rem;
  text-align: center;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ======================================
   OPTION #3 — CSS-ONLY HERO MOTION
   ====================================== */

.hero {
  margin: 1.5rem 0 2.5rem 0;
}

.hero-card {
  position: relative;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.15rem 1.25rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* subtle top accent line */
.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--mat44-sky), var(--mat44-mint), var(--mat44-peach));
  opacity: 0.55;
}

/* tiny ambient “breath” */
@media (prefers-reduced-motion: no-preference) {
  .hero-card {
    animation: heroBreath 4.5s ease-in-out infinite;
  }
}
@keyframes heroBreath {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(43,43,43,0.72);
  margin-bottom: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(167,199,231,0.25);
  border: 1px solid rgba(167,199,231,0.45);
  font-weight: 600;
  color: rgba(43,43,43,0.78);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mat44-mint);
  box-shadow: 0 0 0 6px rgba(142,209,194,0.18);
}

@media (prefers-reduced-motion: no-preference) {
  .pill-dot {
    animation: pulseDot 1.8s ease-in-out infinite;
  }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

.hero-title {
  margin: 0 0 0.25rem 0;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: rgba(43,43,43,0.78);
}

/* “typing” box */
.typing-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(236,239,241,0.7);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  margin: 0.85rem 0 0.95rem 0;
  overflow: hidden;
}

/* helper to hide elements until JS reveals them */
.hero-hidden {
  display: none;
}

/* Typewriter effect */
.typewriter {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
  border-right: 2px solid rgba(43,43,43,0.6);
}

/* Adjusted for "Loading today’s verse…" length (safe for both lines) */
@media (prefers-reduced-motion: no-preference) {
  .typewriter {
    width: 0;
    animation: typing 2.1s steps(22, end) forwards, caret 0.85s step-end infinite;
  }
}
@keyframes typing {
  from { width: 0; }
  to { width: 22ch; }
}
@keyframes caret {
  50% { border-color: transparent; }
}

/* Supporting line fades in */
.hero-fadein {
  opacity: 0;
  color: rgba(43,43,43,0.78);
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-fadein {
    animation: fadeInUp 0.9s ease forwards;
  }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Small “action row” (visual only) */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(246,247,248,0.9);
  font-size: 0.9rem;
  color: rgba(43,43,43,0.72);
  box-shadow: var(--shadow-tiny);
}

.chip .spark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mat44-sky);
  opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
  .chip.listen .spark {
    background: var(--mat44-tech-teal);
    animation: pulseDot 1.6s ease-in-out infinite;
  }
}

/* Basic polish */
hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 2rem 0;
}

h1, h2 {
  line-height: 1.2;
}

ul {
  padding-left: 1.2rem;
}
/* ======================================
   Scroll Reveal (Calm float-up on scroll)
   ====================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional: stagger support via data-delay */
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 230ms; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ======================================
   Why Paraguay — Video Hero + Side Photos
   ====================================== */

.hero-video {
  margin: 1.25rem 0 2rem 0;
}

.hero-video-frame {
  border-radius: 18px;
  overflow: hidden;
  background: var(--mat44-light-gray);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
}

.hero-video video {
  width: 100%;
  height: auto;
  display: block;
}

.hero-video-caption {
  font-size: 0.95rem;
  opacity: 0.82;
  margin-top: 0.6rem;
}

/* Side-by-side section layout */
.split {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.25rem;
  align-items: start;
}

/* Photo stack (right side) */
.photo-stack {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.photo-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--mat44-light-gray);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-note {
  font-size: 0.9rem;
  padding: 0.75rem 0.85rem;
  opacity: 0.85;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
}

/* Mobile: remove sticky and stack naturally */
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
  .photo-stack {
    position: static;
  }
}
/* ======================================
   Hero: World Zoom (no video)
   ====================================== */

.world-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--mat44-light-gray);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  margin: 1rem 0 2rem;
  background: white;
}

.world-hero-inner {
  position: relative;
  height: 360px;
}

@media (max-width: 900px) {
  .world-hero-inner { height: 260px; }
}

.world-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* The “camera” group inside the SVG */
.world-camera {
  transform-origin: 50% 50%;
  transform: scale(1) translate(0px, 0px);
  transition: transform 1200ms ease;
}

/* When zoomed: move focus toward Western Hemisphere */
.world-hero.is-zoomed .world-camera {
  transform: scale(1.75) translate(120px, 10px);
}

/* Overlay gradient for readability */
.world-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.12),
    rgba(0,0,0,0.06)
  );
  pointer-events: none;
}

.world-hero-copy {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.1rem;
  color: white;
}

.world-hero-copy h1 {
  margin: 0 0 0.35rem 0;
  font-size: 2rem;
  line-height: 1.1;
}

.world-hero-copy p {
  margin: 0;
  max-width: 70ch;
  opacity: 0.95;
}

@media (prefers-reduced-motion: reduce) {
  .world-camera { transition: none; }
}
/* ======================================
   Casa de SAM — Projection Bars (2035)
   ====================================== */

.projection-block {
  margin-top: 1.75rem;
  padding: 1.25rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--mat44-light-gray);
  background: rgba(255,255,255,0.65);
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

.projection-bars {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.projection-bars .bar {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.95rem;
}

.projection-bars .bar span {
  opacity: 0.85;
  font-weight: 600;
}

.projection-bars .track {
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--mat44-light-gray);
  background: rgba(236,239,241,0.6);
  overflow: hidden;
}

.projection-bars .fill {
  height: 100%;
  border-radius: 999px;
  transform-origin: left;
  transform: scaleX(0);
  animation: mat44Fill 900ms ease-out forwards;
  background: linear-gradient(90deg, var(--mat44-sky), var(--mat44-mint));
}

.projection-bars .bar.highlight .fill {
  background: linear-gradient(90deg, var(--mat44-mint), var(--mat44-peach));
  filter: saturate(1.05);
}

.projection-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Width utility classes so we don’t hardcode inline percentages */
.fill.w-18 { width: 18%; }
.fill.w-30 { width: 30%; }
.fill.w-42 { width: 42%; }
.fill.w-65 { width: 65%; }

@keyframes mat44Fill {
  to { transform: scaleX(1); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .projection-bars .fill {
    animation: none;
    transform: scaleX(1);
  }
}
/* ======================================
   Casa de SAM — Facts "Bubble" Style
   ====================================== */

.sticky-box {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--mat44-light-gray);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 14px 30px rgba(0,0,0,0.06);
}

.facts-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}

.fact {
  margin: 0 0 0.85rem 0;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, rgba(167,199,231,0.22), rgba(246,247,248,0.55));
  box-shadow: 0 10px 18px rgba(0,0,0,0.05);
}

.fact b {
  display: inline-block;
  margin-bottom: 0.15rem;
}

.fact .source-pill {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.8);
  opacity: 0.95;
}

/* Give each fact a slightly different tint (keeps it lively but still calm) */
.fact.tint-mint {
  background: linear-gradient(180deg, rgba(142,209,194,0.22), rgba(246,247,248,0.55));
}

.fact.tint-peach {
  background: linear-gradient(180deg, rgba(244,182,166,0.22), rgba(246,247,248,0.55));
}

/* Ticker: make it feel like a "briefing strip" */
.ticker {
  margin-top: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(236,239,241,0.55);
  overflow: hidden;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: mat44Ticker 22s linear infinite;
}

.ticker-track span {
  display: inline-block;
  margin-right: 1.5rem;
  font-size: 0.92rem;
  opacity: 0.9;
}

@keyframes mat44Ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}



