/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #faf9f6;
  --color-text: #2c2c2c;
  --color-text-light: #6b6b6b;
  --color-accent: #c0785c;
  --color-accent-dark: #a8624a;
  --color-white: #ffffff;
  --color-dark: #1a1a1a;
  --color-border: #e5e1db;
  --color-card-bg: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-light);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 700px;
  padding: 0 1.5rem;
}

.hero-content h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-text);
}

.btn-dark {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-dark:hover {
  background: var(--color-text);
  color: var(--color-white);
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-body {
  padding: 1.5rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.card-body h3 {
  margin-bottom: 0.6rem;
}

.card-body h3 a:hover {
  color: var(--color-accent);
}

.card-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-footer .read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-accent);
}

.card-footer .read-more:hover {
  color: var(--color-accent-dark);
}

/* ===== FEATURED / LARGE CARD ===== */
.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-card-bg);
  box-shadow: var(--shadow-md);
}

.featured-card .card-image {
  aspect-ratio: auto;
  min-height: 400px;
}

.featured-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.featured-card .card-body h2 {
  margin-bottom: 1rem;
}

.featured-card .card-body h2 a:hover {
  color: var(--color-accent);
}

.featured-card .card-body p {
  -webkit-line-clamp: 5;
  margin-bottom: 1.5rem;
}

/* ===== DESTINATION GRID ===== */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.destination-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destination-card:hover img {
  transform: scale(1.08);
}

.destination-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--color-white);
}

.destination-card .overlay h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.destination-card .overlay span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ===== BLOG POST PAGE ===== */
.post-header {
  padding-top: 100px;
  text-align: center;
  margin-bottom: 2rem;
}

.post-header .post-tag {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.post-header h1 {
  max-width: 800px;
  margin: 0 auto 1rem;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.post-hero-image {
  width: 100%;
  max-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  max-width: 760px;
  margin: 0 auto;
}

.post-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.post-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(192, 120, 92, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-light);
}

.post-content img {
  border-radius: var(--radius);
  margin: 2rem 0;
  width: 100%;
}

.post-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.post-gallery img {
  border-radius: var(--radius);
  margin: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 100px;
}

.about-hero img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-hero h1 {
  margin-bottom: 1.5rem;
}

.about-hero p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  margin: 3rem 0;
}

.stat h3 {
  font-size: 2.5rem;
  color: var(--color-accent);
}

.stat p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ===== COUNTRIES GRID ===== */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.country-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.country-chip:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--color-accent);
}

.country-chip .flag {
  font-size: 1.6rem;
  line-height: 1;
}

.country-count {
  text-align: center;
  margin-bottom: 2.5rem;
}

.country-count .number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
}

.country-count .label {
  color: var(--color-text-light);
  font-size: 1.1rem;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  border-radius: var(--radius);
  padding: 4rem 2rem;
  margin: 2rem 0;
}

.newsletter h2 {
  margin-bottom: 0.5rem;
}

.newsletter p {
  opacity: 0.7;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about .nav-logo {
  color: var(--color-white);
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.footer ul li {
  margin-bottom: 0.6rem;
}

.footer ul li a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== PAGE HEADER (for listing pages) ===== */
.page-header {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, #f5f0eb 0%, #e8ddd4 100%);
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card .card-image {
    min-height: 260px;
  }

  .featured-card .card-body {
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .destination-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    height: 70vh;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .post-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .destination-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== HERO CINEMATIC ANIMATIONS ===== */

/* Ken Burns slow drift on background */
.hero-bg img.ken-burns {
  animation: kenBurns 22s ease-in-out infinite alternate;
  transform-origin: center center;
  will-change: transform;
}
@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.15) translate(-2%, -1.5%); }
}

/* Warm mouse-tracking glow */
.hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 194, 122, 0.32), rgba(192, 120, 92, 0.08) 40%, transparent 70%);
  transform: translate(-50%, -50%) translate(50vw, 35vh);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  transition: transform 0.12s ease-out, opacity 0.4s ease;
  opacity: 0;
  filter: blur(10px);
}
.hero:hover .hero-glow {
  opacity: 1;
}

/* Flying plane SVG */
.hero-plane-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.8s forwards;
}
.hero-plane-path {
  animation: dashFlow 1.8s linear infinite;
}
@keyframes dashFlow {
  to { stroke-dashoffset: -14; }
}
.hero-plane {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-particles span {
  position: absolute;
  bottom: -12px;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  animation: floatUp 14s linear infinite;
}
.hero-particles span:nth-child(1) { left: 6%;  animation-duration: 13s; animation-delay: 0s;   }
.hero-particles span:nth-child(2) { left: 18%; animation-duration: 17s; animation-delay: 2.5s; width: 4px; height: 4px; }
.hero-particles span:nth-child(3) { left: 32%; animation-duration: 11s; animation-delay: 4s;   width: 5px; height: 5px; }
.hero-particles span:nth-child(4) { left: 46%; animation-duration: 19s; animation-delay: 1s;   width: 3px; height: 3px; }
.hero-particles span:nth-child(5) { left: 60%; animation-duration: 14s; animation-delay: 3.5s; }
.hero-particles span:nth-child(6) { left: 74%; animation-duration: 16s; animation-delay: 0.5s; width: 5px; height: 5px; }
.hero-particles span:nth-child(7) { left: 86%; animation-duration: 12s; animation-delay: 5s;   width: 4px; height: 4px; }
.hero-particles span:nth-child(8) { left: 94%; animation-duration: 18s; animation-delay: 2s;   }
@keyframes floatUp {
  0%   { transform: translateY(0)      translateX(0);    opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) translateX(40px); opacity: 0; }
}

/* Word-by-word reveal on title */
.hero-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em 0.4em;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  padding: 0.12em 0.04em;
}
.hero-title .word > span {
  display: inline-block;
  transform: translateY(115%);
  animation: wordUp 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-title .word:nth-child(1) > span { animation-delay: 0.25s; }
.hero-title .word:nth-child(2) > span { animation-delay: 0.40s; }
.hero-title .word:nth-child(3) > span { animation-delay: 0.55s; }
.hero-title .word:nth-child(4) > span { animation-delay: 0.70s; }
.hero-title .word:nth-child(5) > span { animation-delay: 0.85s; }
@keyframes wordUp {
  to { transform: translateY(0); }
}

/* Accent "World" word with shimmering gradient */
.hero-title .word.accent > span {
  background: linear-gradient(90deg, #ffd89b 0%, #f4c27a 20%, #c0785c 50%, #f4c27a 80%, #ffd89b 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: wordUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both, shimmer 4.5s ease-in-out 1.6s infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* Subtitle + CTA reveal */
.hero-sub {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease-out 1.15s forwards;
}
.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease-out 1.35s forwards, ctaPulse 2.8s ease-in-out 2.4s infinite;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0    rgba(192, 120, 92, 0.55); }
  50%      { box-shadow: 0 0 0 16px rgba(192, 120, 92, 0);    }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Bouncing scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.8s forwards;
  text-decoration: none;
}
.hero-scroll-arrow {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0));
  position: relative;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  transform: translateX(-50%) rotate(45deg);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0);    opacity: 0.9; }
  50%      { transform: translateY(6px);  opacity: 0.5; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-plane-svg,
  .hero-particles,
  .hero-glow { display: none; }
  .hero-bg img.ken-burns,
  .hero-title .word > span,
  .hero-sub,
  .hero-cta,
  .hero-scroll,
  .hero-scroll-arrow {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ===== PAGE TRANSITION: JOURNAL SKY ===== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}

/* Soft cream curtain that matches site bg */
.page-transition::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(244, 194, 122, 0.10), transparent 55%),
    linear-gradient(180deg, #faf9f6 0%, #f5f0eb 60%, #ede6df 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.page-transition.is-active,
.page-transition.is-arriving {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.page-transition.is-active::before { opacity: 1; }
.page-transition.is-arriving::before {
  opacity: 1;
  animation: ptFade 0.7s ease-out 0.1s forwards;
}
@keyframes ptFade {
  to { opacity: 0; }
}

/* Drifting hand-drawn clouds */
.pt-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pt-cloud {
  position: absolute;
  color: var(--color-text-light);
  opacity: 0;
  will-change: transform, opacity;
}
.pt-cloud svg { display: block; }
.pt-cloud.c1 { top: 18%; left: -18%; width: 180px; }
.pt-cloud.c2 { top: 42%; left: -22%; width: 130px; color: var(--color-accent); opacity: 0; }
.pt-cloud.c3 { top: 62%; left: -14%; width: 210px; }
.pt-cloud.c4 { top: 30%; left: -10%; width: 100px; color: var(--color-accent); }

.page-transition.is-active .pt-cloud {
  animation: ptCloudDrift 2.2s linear forwards;
}
.page-transition.is-active .pt-cloud.c1 { animation-delay: 0.05s; animation-duration: 2.4s; }
.page-transition.is-active .pt-cloud.c2 { animation-delay: 0.20s; animation-duration: 2.0s; }
.page-transition.is-active .pt-cloud.c3 { animation-delay: 0.10s; animation-duration: 2.6s; }
.page-transition.is-active .pt-cloud.c4 { animation-delay: 0.35s; animation-duration: 2.2s; }
@keyframes ptCloudDrift {
  0%   { transform: translateX(0);      opacity: 0;   }
  15%  { opacity: 0.55; }
  85%  { opacity: 0.55; }
  100% { transform: translateX(140vw);  opacity: 0;   }
}

/* Sketch plane (SVG) flying across with dotted trail */
.pt-plane-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pt-plane-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pt-trail {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
  stroke-dashoffset: 1000;
  opacity: 0;
}
.page-transition.is-active .pt-trail {
  animation: ptTrail 1.4s ease-out 0.25s forwards;
}
@keyframes ptTrail {
  0%   { stroke-dashoffset: 1000; opacity: 0; }
  20%  { opacity: 0.9; }
  100% { stroke-dashoffset: 0;    opacity: 0.9; }
}

.pt-plane {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-text);
  width: 68px;
  opacity: 0;
  transform: translate(-20vw, 85vh) rotate(-28deg);
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}
.pt-plane svg { display: block; width: 100%; height: auto; }
.page-transition.is-active .pt-plane {
  animation: ptPlaneFly 1.6s cubic-bezier(0.4, 0.05, 0.5, 1) 0.25s forwards;
}
@keyframes ptPlaneFly {
  0%   { transform: translate(-15vw, 80vh) rotate(-26deg) scale(0.9); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(42vw, 40vh)  rotate(-28deg) scale(1.0); }
  85%  { transform: translate(78vw, 14vh)  rotate(-22deg) scale(1.05); opacity: 1; }
  100% { transform: translate(115vw, -8vh) rotate(-18deg) scale(1.1); opacity: 0; }
}

/* Three loading dots */
.pt-dots {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  opacity: 0;
  font-family: var(--font-heading);
}
.page-transition.is-active .pt-dots {
  opacity: 1;
  transition: opacity 0.3s ease 0.3s;
}
.pt-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.35;
  animation: ptDot 1.1s ease-in-out infinite;
}
.pt-dots span:nth-child(1) { animation-delay: 0s;    }
.pt-dots span:nth-child(2) { animation-delay: 0.18s; }
.pt-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes ptDot {
  0%, 100% { opacity: 0.25; transform: translateY(0)    scale(0.9); }
  50%      { opacity: 1;    transform: translateY(-6px) scale(1.1); }
}

/* Small caption */
.pt-caption {
  position: absolute;
  bottom: 21%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-text-light);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  opacity: 0;
  white-space: nowrap;
}
.page-transition.is-active .pt-caption {
  opacity: 1;
  transition: opacity 0.4s ease 0.35s;
}

/* Prevent body scroll during transition */
body.is-transitioning { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none !important; }
}
