/* ==========================================================
   "Hẹn gặp ở MỘC X": một bức tranh phong cảnh duy nhất (ghép từ file thiết kế),
   các lớp trôi lệch nhịp theo cuộn. Gọn — mọi minh hoạ dồn vào một chỗ.
   ========================================================== */
.meet {
  min-height: 118vh; padding: clamp(110px, 16vh, 170px) var(--gutter) 0;
  color: var(--ink);
  background: linear-gradient(180deg, #CDEBFA 0%, #E9F6FB 46%, #9BD15B 62%, #5DA83A 100%);
  overflow: hidden;
}
.meet::before { display: none; }
.meet-inner { position: relative; z-index: 2; align-items: start; }
.meet h2 { color: var(--green-deep); text-shadow: 0 2px 30px rgba(255, 255, 255, .6); }
.meet p { color: #355A41; }
.meet .mark-svg path { stroke: var(--green); }
.meet-badge { border-color: rgba(255, 255, 255, .9); box-shadow: 0 10px 30px -10px rgba(12, 46, 27, .4); }

/* Bảng đếm ngược: tấm giấy kem */
.countdown-panel {
  padding: clamp(20px, 2.4vw, 32px) clamp(20px, 2.6vw, 36px) 18px;
  background: rgba(255, 253, 246, .9); border-radius: 6px 36px 6px 6px;
  box-shadow: 0 30px 60px -30px rgba(12, 46, 27, .45), inset 0 0 0 1px rgba(15, 92, 48, .08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.countdown { border-top: 0; }
.countdown div { border-right-color: rgba(15, 92, 48, .12); padding-top: 0; }
.countdown strong { color: var(--green-deep); }
.countdown span { color: var(--muted); }
.countdown-note { color: var(--muted) !important; margin-top: 16px !important; }

/* Các lớp phong cảnh */
.landscape { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ls { position: absolute; max-width: none; height: auto; will-change: transform; user-select: none; }
.ls-sky { top: 0; left: 0; width: 100%; height: 68%; object-fit: cover; object-position: 50% 20%; }
.ls-wind { top: 9%; left: 30%; width: min(48vw, 900px); opacity: .85; animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { from { translate: -6vw 0; } to { translate: 6vw 0; } }
.ls-hills { left: 50%; bottom: 31%; width: max(118vw, 1500px); translate: -50% 0; }
.ls-field { right: 10vw; bottom: 22%; width: min(36vw, 640px); opacity: .95; }
.ls-tree-l { left: -5vw; bottom: 16%; width: min(30vw, 560px); }
.ls-tree-r { right: -8vw; bottom: 10%; width: min(34vw, 620px); }
.ls-ground { left: 50%; bottom: -1px; width: max(104vw, 1400px); translate: -50% 0; }
.ls-friends { left: clamp(16px, 7vw, 140px); bottom: 3%; width: min(30vw, 520px); filter: drop-shadow(0 18px 20px rgba(20, 60, 20, .25)); }

/* Phần sau (Hồi ức) nối liền bằng cỏ */
.memories-bg::before { background: linear-gradient(180deg, rgba(93, 168, 58, .9), rgba(93, 168, 58, 0)); }

@media (max-width: 899px) {
  .meet { min-height: 0; padding-bottom: 0; }
  .meet-inner { padding-bottom: 72vw; }
  .ls-sky { height: 64%; }
  .ls-wind { width: 90vw; left: 5vw; top: 4%; }
  .ls-hills { width: 240vw; bottom: 24vw; }
  .ls-field, .ls-tree-l { display: none; }
  .ls-tree-r { width: 52vw; right: -16vw; bottom: 10vw; }
  .ls-ground { width: 200vw; }
  .ls-friends { width: 72vw; left: 4vw; bottom: 2vw; }
}
@media (prefers-reduced-motion: reduce) { .ls-wind { animation: none; } }

/* ==========================================================
   Hiệu ứng kiểu unseen.co
   ========================================================== */
/* Ảnh hiện ra: khung mở từ dưới lên, ảnh thu nhỏ dần về đúng cỡ */
.reveal-img { clip-path: inset(100% 0 0 0 round 4px); transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1); }
.reveal-img img { scale: 1.28; transition: scale 1.6s cubic-bezier(.16, 1, .3, 1); }
.reveal-img.is-in { clip-path: inset(0 0 0 0 round 4px); }
.reveal-img.is-in img { scale: 1; }
html:not(.has-gsap) .reveal-img { clip-path: none; }
html:not(.has-gsap) .reveal-img img { scale: 1; }

/* Ảnh phóng nhẹ theo tốc độ cuộn ngang (như uv zoom của unseen) */
.season-photo--a img { transform: scale(calc(1 + var(--sv, 0))); transition: transform .35s ease-out; }
.season-photo--a:hover img { transform: scale(calc(1.1 + var(--sv, 0))); }

/* (Đã bỏ hiệu ứng tách màu đỏ/xanh khi kéo cuộn phim) */
@media (prefers-reduced-motion: reduce) {
  .reveal-img { clip-path: none; transition: none; }
  .reveal-img img { scale: 1; transition: none; }
}

/* ==========================================================
   Nối các phần kiểu "chồng thẻ": phần sau trượt lên phủ phần trước
   (bo góc + bóng), phần trước lùi nhẹ ra sau. Bỏ mép giấy xé cho gọn.
   ========================================================== */
.journey::before, .reels::before, .letters::before { display: none !important; }
/* (.stack-card / .stack-back đã bỏ: nối các phần xem css/seams.css) */
@media (max-width: 899px) {
  .letters-grid { grid-template-columns: minmax(0, 1fr); }
  .wish-list { columns: 1; }
}
main { overflow-x: clip; }
