/* ==========================================================
   MỘC · 10 năm – trắng + xanh lá
   ========================================================== */
:root {
  color-scheme: light;
  --paper: #FAFCF7;
  --paper-2: #F0F6EA;
  --sprout: #DDF2CF;
  --green: #139E49;
  --green-deep: #0F5C30;
  --ink: #0C2E1B;
  --muted: #4E6B59;
  --line: rgba(12, 46, 27, .14);
  --white: #FFFFFF;

  --sans: 'Be Vietnam Pro', system-ui, sans-serif;
  --serif: 'Newsreader', Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr-top, 20px) + var(--hdr-size, 56px) + var(--safe-t, 0px));
}
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--green); color: var(--white); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--paper);
}
.is-loaded .loader { display: none; }
.sponsors { margin: 72px auto 0; padding: 0 var(--gutter); max-width: 1100px; }
.sponsors img { width: 100%; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  /* z-index hạ chậm 0.6s để ngăn kéo trượt ra hết trước khi chìm xuống dưới các lớp khác */
  transition: transform .5s var(--ease), background-color .3s, box-shadow .3s, z-index 0s linear .6s;
}
.site-header { top: 20px; height: 56px; align-items: stretch; justify-content: flex-end; pointer-events: none; }
.site-header > * { pointer-events: auto; } /* header chỉ còn nút menu: vùng trống không chặn bấm */
.site-header.is-hidden { transform: translateY(calc(-100% - 24px)); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 13px; line-height: 1.15; background: var(--white); color: var(--green-deep); padding: 0 16px 0 6px; box-shadow: 0 8px 30px -12px rgba(0,0,0,.35); }
.brand img { width: 46px; height: 46px; object-fit: contain; }

/* ---------- Menu: nút 3 gạch + ngăn kéo trượt từ phải (navigation.js) ---------- */
:root {
  --hdr-top: 20px;      /* khoảng cách header tới mép trên */
  --hdr-size: 56px;     /* chiều cao header = cạnh nút menu */
  --drawer-w: 400px;
  --drawer-pad: 40px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-rr: env(safe-area-inset-right, 0px);
}
.site-header { top: calc(var(--hdr-top) + var(--safe-t)); height: var(--hdr-size); }
/* khi mở: header nổi trên lớp mờ để nút X vẫn bấm được; bỏ transform ngay lập tức
   (transform khác none sẽ làm ngăn kéo position:fixed bị "nhốt" trong header) */
.site-header.is-menu-open { z-index: 180; transform: none; transition: none; }

.menu-toggle {
  position: relative; z-index: 3; flex: none;
  display: grid; place-content: center; gap: 5px;
  width: var(--hdr-size); height: var(--hdr-size); padding: 0;
  border: 0; border-radius: 16px;
  background: var(--green-deep); color: var(--white); cursor: pointer;
  box-shadow: 0 10px 30px -14px rgba(12, 46, 27, .7), inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: background-color .3s, box-shadow .3s, scale .2s;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:hover { background: var(--green); }
.menu-toggle:active { scale: .94; }
.menu-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .45s var(--ease), opacity .25s, width .3s var(--ease);
}
.menu-toggle span:nth-child(2) { width: 14px; justify-self: end; }
.menu-toggle:hover span:nth-child(2) { width: 22px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 1;
  background: rgba(12, 46, 27, .28);
  -webkit-backdrop-filter: blur(5px) saturate(1.1); backdrop-filter: blur(5px) saturate(1.1);
  opacity: 0; visibility: hidden; touch-action: none;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.site-header.is-menu-open .nav-scrim { opacity: 1; visibility: visible; transition-delay: 0s; }

.main-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2;
  width: min(var(--drawer-w), 100vw);
  display: flex; flex-direction: column;
  padding: calc(var(--hdr-top) + var(--safe-t)) calc(var(--drawer-pad) + var(--safe-rr)) calc(28px + env(safe-area-inset-bottom, 0px)) var(--drawer-pad);
  background: radial-gradient(120% 55% at 100% 100%, var(--sprout) 0%, rgba(221, 242, 207, 0) 62%), var(--paper);
  color: var(--green-deep);
  border-radius: 28px 0 0 28px;
  box-shadow: -40px 0 90px -40px rgba(12, 46, 27, .55);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translate3d(calc(100% + 60px), 0, 0);
  visibility: hidden;
  transition: transform .6s var(--ease), visibility 0s linear .6s;
}
.main-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.main-nav-eyebrow {
  flex: none; display: flex; align-items: center; min-height: var(--hdr-size);
  margin: 0 0 clamp(20px, 5vh, 44px);
  font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.main-nav-eyebrow::before { content: ""; width: 22px; height: 1px; margin-right: 12px; background: currentColor; opacity: .6; }
.main-nav-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.main-nav a {
  position: relative; display: flex; align-items: center; gap: 18px;
  min-height: 84px; padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--green-deep); text-decoration: none;
  opacity: 0; translate: 28px 0;
  transition: opacity .45s var(--ease), translate .6s var(--ease);
}
.main-nav.is-open a { opacity: 1; translate: 0 0; }
.main-nav.is-open a:nth-child(1) { transition-delay: .12s; }
.main-nav.is-open a:nth-child(2) { transition-delay: .17s; }
.main-nav.is-open a:nth-child(3) { transition-delay: .22s; }
.main-nav.is-open a:nth-child(4) { transition-delay: .27s; }
.nav-num {
  flex: none; display: grid; place-items: center; width: 36px; height: 24px; border-radius: 99px;
  font: 600 12px/1 var(--sans); letter-spacing: .06em; font-variant-numeric: tabular-nums;
  color: var(--green); border: 1px solid rgba(19, 158, 73, .35);
  transition: background-color .3s, color .3s, border-color .3s;
}
.nav-label {
  font: 600 clamp(32px, 2.9vw, 42px)/1.05 var(--display, Georgia, serif);
  letter-spacing: -.015em; font-variation-settings: "SOFT" 100, "opsz" 72;
  transition: translate .45s var(--ease), color .3s;
}
.main-nav a::after {
  content: "→"; margin-left: auto; font: 500 20px/1 var(--sans); color: var(--green);
  opacity: 0; translate: -10px 0; transition: opacity .3s, translate .45s var(--ease);
}
.main-nav a:hover .nav-label, .main-nav a:focus-visible .nav-label { translate: 8px 0; color: var(--green); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { opacity: 1; translate: 0 0; }
.main-nav a.is-active .nav-label { color: var(--green); }
.main-nav a.is-active .nav-num { background: var(--green); border-color: var(--green); color: var(--white); }
.main-nav a:focus-visible { outline-offset: -3px; border-radius: 10px; }
.main-nav-foot {
  flex: none; margin-top: auto; padding-top: 32px;
  font: 600 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.main-nav-script {
  display: block; margin-bottom: 10px;
  font: 700 28px/1.1 var(--script, cursive); letter-spacing: 0; text-transform: none; color: var(--green);
}

/* khoá cuộn trang khi menu mở (bù bề rộng thanh cuộn để trang không giật) */
html.nav-locked { overflow: hidden; }
html.nav-locked body { padding-right: var(--nav-sbw, 0px); }
html.nav-locked .site-header { right: var(--nav-sbw, 0px); }

@media (max-width: 899px) {
  :root { --hdr-top: 12px; --hdr-size: 52px; --drawer-pad: 28px; }
  .main-nav { width: min(86vw, 360px); border-radius: 24px 0 0 24px; }
  .main-nav a { min-height: 68px; }
  .nav-label { font-size: clamp(28px, 8.4vw, 34px); }
  .main-nav-script { font-size: 24px; }
}
@media (max-height: 520px) {
  .main-nav-eyebrow { margin-bottom: 12px; }
  .main-nav a { min-height: 52px; padding: 8px 2px; }
  .nav-label { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav, .nav-scrim, .menu-toggle span { transition: none; }
  .main-nav a { opacity: 1; translate: 0 0; transition: none; }
  .nav-label, .main-nav a::after { transition: color .2s, opacity .2s; }
  .main-nav a:hover .nav-label, .main-nav a:focus-visible .nav-label { translate: 0 0; }
}

/* ---------- Hero: ảnh ghép nhiều mùa (kiểu LFS) ---------- */
.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; overflow: hidden;
  background: var(--ink); color: var(--white);
}
main > section:not(.hero), .site-footer { position: relative; z-index: 1; }
.hero-mosaic {
  position: absolute; inset: -2%;
  display: grid; gap: 4px;
  grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr);
  will-change: transform;
}
.tile { position: relative; overflow: hidden; background: var(--green-deep); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease, transform 8s linear; transform: scale(1.12); }
.tile img.is-on { opacity: 1; transform: scale(1); }
/* bố cục ô ghép 6×4 */
.tile:nth-child(1)  { grid-area: 1 / 1 / 3 / 3; }
.tile:nth-child(2)  { grid-area: 1 / 3 / 2 / 4; }
.tile:nth-child(3)  { grid-area: 1 / 4 / 2 / 5; }
.tile:nth-child(4)  { grid-area: 1 / 5 / 3 / 7; }
.tile:nth-child(5)  { grid-area: 2 / 3 / 4 / 5; }
.tile:nth-child(6)  { grid-area: 3 / 1 / 4 / 2; }
.tile:nth-child(7)  { grid-area: 3 / 2 / 5 / 3; }
.tile:nth-child(8)  { grid-area: 4 / 1 / 5 / 2; }
.tile:nth-child(9)  { grid-area: 3 / 5 / 4 / 6; }
.tile:nth-child(10) { grid-area: 3 / 6 / 5 / 7; }
.tile:nth-child(11) { grid-area: 4 / 3 / 5 / 4; }
.tile:nth-child(12) { grid-area: 4 / 4 / 5 / 5; }
.tile:nth-child(13) { grid-area: 4 / 5 / 5 / 6; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12,46,27,.55) 0%, rgba(12,46,27,0) 22%),
    linear-gradient(0deg, rgba(8,30,17,.88) 0%, rgba(8,30,17,.35) 42%, rgba(8,30,17,.05) 70%);
}
.hero-content {
  position: absolute; inset: auto 0 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: end; gap: 32px;
  padding: 0 var(--gutter) clamp(28px, 5vh, 56px);
}
.hero-title {
  font: 900 clamp(60px, 10.5vw, 196px)/.86 var(--sans);
  letter-spacing: -.055em;
  text-shadow: 0 4px 40px rgba(0,0,0,.25);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .word { display: inline-block; }
.hero-card {
  flex: none; display: flex; width: min(480px, 38vw); min-height: 204px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.55); border-radius: 10px 32px 10px 10px;
  background: linear-gradient(135deg, #139E49, #0F5C30); color: var(--white); text-decoration: none;
  box-shadow: 0 24px 64px -24px rgba(0,0,0,.7), 0 0 0 6px rgba(255,255,255,.12);
  transition: background .35s, box-shadow .35s, translate .35s;
}
.hero-card:hover { background: linear-gradient(135deg, #139E49, #0F5C30); box-shadow: 0 30px 72px -22px rgba(0,0,0,.75), 0 0 0 7px rgba(255,255,255,.18); }
.hero-card img { width: 34%; object-fit: cover; background: var(--white); }
.hero-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: clamp(14px, 1.6vw, 22px); }
.hero-card-kicker { color: #DDF2CF; font: 800 10px/1.2 var(--sans) !important; letter-spacing: .16em; text-transform: uppercase; }
.hero-card strong { font: 800 17px/1.15 var(--sans); letter-spacing: -.02em; }
.hero-countdown {
  display: grid;
  grid-template-columns: clamp(104px, 8vw, 118px) minmax(0, 1fr);
  align-items: end;
  column-gap: clamp(10px, 1.2vw, 16px);
  margin-top: auto;
  padding-top: 6px;
  min-height: clamp(68px, 6.5vw, 82px);
}
.hero-countdown-days { display: grid; grid-template-columns: 2.2ch; align-items: end; row-gap: 4px; min-width: 0; }
.hero-countdown-days b { display: block; width: 2.2ch; color: #E5FFAE; font: 800 clamp(48px, 5.2vw, 68px)/.82 var(--sans); letter-spacing: -.07em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; text-align: left; text-shadow: 0 3px 20px rgba(0,0,0,.2); }
.hero-countdown-days span { min-height: 12px; color: #E7F5D7; font: 700 9px/1.2 var(--sans) !important; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.hero-countdown-time { display: grid; grid-template-columns: repeat(3, minmax(48px, 1fr)); align-items: baseline; justify-content: stretch; column-gap: clamp(4px, .6vw, 8px); padding-bottom: 3px; }
.hero-countdown-time > span { display: flex; align-items: baseline; flex-wrap: nowrap; min-width: 0; white-space: nowrap; }
.hero-countdown-time b { display: block; width: 2ch; font: 700 clamp(15px, 1.6vw, 20px)/1 var(--sans); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; text-align: right; }
.hero-countdown-time i { margin-left: 4px; color: #DDF2CF; font: 600 9px/1 var(--sans); font-style: normal; }

/* ---------- Chuông đếm ngược nổi ---------- */
.countdown-bell {
  position: fixed;
  right: calc(var(--gutter) + 58px);
  bottom: 20px;
  z-index: 109;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: #0F5C30;
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(12, 46, 27, .65);
  cursor: pointer;
  transition: background-color .3s, transform .2s, opacity .3s;
  -webkit-tap-highlight-color: transparent;
}
.countdown-bell:hover { background: #139E49; }
.countdown-bell:active { transform: scale(.93); }
.countdown-bell[aria-expanded="true"] { background: #139E49; }
.countdown-bell svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.countdown-bell.is-near-back-top { bottom: 76px; }

.countdown-floating {
  position: fixed;
  right: var(--gutter);
  bottom: 82px;
  z-index: 109;
  width: min(430px, calc(100vw - 32px));
  padding: 18px 20px 16px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 12px 28px 12px 12px;
  background: linear-gradient(135deg, #139E49, #0F5C30);
  color: var(--white);
  box-shadow: 0 24px 64px -20px rgba(0, 0, 0, .7), 0 0 0 5px rgba(255, 255, 255, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.98);
  transform-origin: right bottom;
  pointer-events: none;
  transition: opacity .25s var(--ease), visibility 0s linear .25s, transform .25s var(--ease);
}
.countdown-floating.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}
.countdown-floating.is-near-back-top { bottom: 138px; }
.countdown-floating-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.countdown-floating-head { display: grid; gap: 5px; padding-right: 38px; }
.countdown-floating-head span { color: #DDF2CF; font: 800 9px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.countdown-floating-head strong { max-width: 300px; font: 800 17px/1.15 var(--sans); }
.countdown-floating-grid { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: end; gap: 10px; margin-top: 10px; }
.countdown-floating-days { display: grid; row-gap: 2px; }
.countdown-floating-days b { color: #E5FFAE; font: 800 58px/.82 var(--sans); letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.countdown-floating-days span { color: #E7F5D7; font: 700 8px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; }
.countdown-floating-time { display: grid; grid-template-columns: repeat(3, 1fr); align-items: baseline; gap: 4px; padding-bottom: 3px; }
.countdown-floating-time > span { display: flex; align-items: baseline; white-space: nowrap; }
.countdown-floating-time b { width: 2ch; font: 700 17px/1 var(--sans); font-variant-numeric: tabular-nums; text-align: right; }
.countdown-floating-time i { margin-left: 3px; color: #DDF2CF; font: 600 9px/1 var(--sans); font-style: normal; }
.hero-card em { justify-self: start; margin-top: 6px; font-style: normal; font-weight: 700; font-size: 14px; background: var(--white); color: var(--green-deep); padding: 4px 10px; }
.hero-caption { position: absolute; z-index: 2; right: var(--gutter); top: calc(var(--header-h) + 20px); font: italic 400 15px/1.3 var(--serif); color: rgba(255,255,255,.85); text-shadow: 0 1px 8px rgba(0,0,0,.5); transition: opacity .6s; }

/* ---------- Statement ---------- */
.statement {
  position: relative; background: var(--paper);
  border-radius: 28px 28px 0 0; margin-top: -28px;
  padding: clamp(56px, 6vh, 72px) var(--gutter);
}
.statement > * { max-width: 1400px; }
.statement-text { font: 600 clamp(28px, 3.9vw, 60px)/1.18 var(--sans); letter-spacing: -.025em; max-width: 24ch; }
.statement-text .w { opacity: .14; transition: opacity .2s; }
.no-motion .statement-text .w, html:not(.has-gsap) .statement-text .w { opacity: 1; }

/* ---------- Journey (10 mùa) ---------- */
.journey { position: relative; background-color: var(--tint, #EEF6E3); transition: background-color .9s ease; }
.journey-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 96px var(--gutter) 32px; }
.journey-head h2, .memories-head h2, .letters-head h2 { font: 800 clamp(40px, 6vw, 96px)/.95 var(--sans); letter-spacing: -.045em; max-width: 12ch; }
.journey-head p, .memories-head p, .letters-head p { max-width: 36ch; color: var(--muted); font: italic 400 19px/1.45 var(--serif); }

.journey-pin { position: relative; }
/* Mặc định (mobile / không có GSAP): vuốt ngang, snap */
.journey-track {
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 24px; scrollbar-width: none;
}
.journey-track::-webkit-scrollbar { display: none; }
.season { position: relative; flex: 0 0 min(86vw, 560px); scroll-snap-align: center; display: grid; gap: 20px; }
.season-numeral {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  right: -.04em; top: -.1em;
  font: 900 clamp(120px, 34vw, 220px)/.8 var(--sans); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(19, 158, 73, .55);
  background: linear-gradient(var(--green), var(--green)) 0 100% / 100% var(--fill, 100%) no-repeat;
  -webkit-background-clip: text; background-clip: text;
  opacity: .16;
}
.has-gsap .season-text .season-numeral { opacity: 1; }
.season-photos { position: relative; z-index: 1; aspect-ratio: 4 / 3.4; border: 0; padding: 0; background: none; cursor: zoom-in; text-align: left; }
.season-photo { position: absolute; overflow: hidden; background: var(--sprout); box-shadow: 0 18px 40px -18px rgba(12,46,27,.45); }
.season-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.season-photo--a { inset: 0 18% 14% 0; border-radius: 4px 80px 4px 4px; }
.season-photo--b { right: 0; bottom: 0; width: 42%; aspect-ratio: 1; border: 6px solid var(--white); border-radius: 4px; rotate: 3deg; }
.season-photo--c { right: 4%; top: 6%; width: 22%; aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--white); background: var(--white); }
.season-photo--c img { object-fit: contain; padding: 6%; }
.season-photos:hover .season-photo--a img, .season-photos:focus-visible .season-photo--a img { transform: scale(1.05); }
.season-more { position: absolute; left: 12px; bottom: calc(14% + 12px); z-index: 2; padding: 6px 12px; border-radius: 99px; background: rgba(250,252,247,.92); font-size: 13px; font-weight: 600; color: var(--green-deep); }
.season-text { position: relative; z-index: 1; display: grid; gap: 12px; align-content: start; }
.season-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--green-deep); font-size: 14px; font-weight: 600; }
.season-meta span + span { color: var(--muted); font-weight: 500; }
.season-title { font: 800 clamp(28px, 3.2vw, 52px)/1.02 var(--sans); letter-spacing: -.035em; max-width: 16ch; }
.season-slogan { font: italic 500 18px/1.4 var(--serif); color: var(--green); }
.season-caption { max-width: 58ch; font: 400 17px/1.7 var(--serif); color: #29452F; }

/* Rail chọn năm */
.journey-rail { padding: 8px var(--gutter) 40px; }
.journey-rail-progress { height: 2px; background: var(--line); margin-bottom: 14px; overflow: hidden; }
.journey-rail-progress span { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; transform: scaleX(.1); transition: transform .2s linear; }

/* Con trỏ có nhãn */
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  display: grid; place-items: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); color: transparent; font: 700 13px/1 var(--sans); white-space: nowrap;
  transition: width .45s var(--ease), height .45s var(--ease), color .2s, scale .2s;
}
@media (hover: hover) and (pointer: fine) {
  .has-gsap [data-cursor], .has-gsap [data-cursor] * { cursor: none; }
}
.journey-rail-years { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.rail-year { border: 0; background: none; padding: 6px 0; text-align: left; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; transition: color .3s; }
.rail-year b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); opacity: .35; transition: opacity .3s, color .3s; }
.rail-year:hover b, .rail-year.is-active b { opacity: 1; color: var(--green); }
.rail-year.is-active { color: var(--green-deep); }

/* Desktop có GSAP: ghim và lướt ngang theo cuộn */
@media (min-width: 900px) {
  .has-gsap .journey-pin { height: 100vh; height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: 100vw; overflow: hidden; }
  .has-gsap .journey-rail { width: 100vw; padding-bottom: 28px; }
  .has-gsap .season-text .season-numeral {
    position: static; display: block; margin: 0 0 -.06em -.05em;
    font-size: clamp(96px, min(15vw, 24vh), 260px); line-height: .82;
    -webkit-text-stroke-width: 2px;
  }
  .has-gsap .journey-track { overflow: visible; scroll-snap-type: none; gap: 0; padding: 0; width: max-content; will-change: transform; }
  .has-gsap .season {
    flex: 0 0 100vw; height: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
    gap: clamp(32px, 5vw, 96px); padding: calc(var(--header-h) + 8px) var(--gutter) 8px;
  }
  .has-gsap .season-text { order: -1; }
  .has-gsap .season-photos { height: min(66vh, 640px); aspect-ratio: auto; }
  .has-gsap .season-caption { font-size: clamp(16px, 1.25vw, 18px); }
}
@media (min-width: 900px) {
  html:not(.has-gsap) .season { flex-basis: min(70vw, 900px); grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ---------- Hẹn gặp (đếm ngược) ---------- */
.meet { background: var(--green-deep); color: var(--paper); padding: clamp(96px, 14vh, 160px) var(--gutter); overflow: hidden; position: relative; isolation: isolate; }
.meet::before { content: ""; position: absolute; right: -10vw; top: -20vw; width: 60vw; aspect-ratio: 1; border-radius: 0 50% 0 50%; background: rgba(255,255,255,.04); }
.meet-inner { position: relative; max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.meet-badge { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 28px; border: 3px solid rgba(255,255,255,.25); }
.meet h2 { font: 800 clamp(40px, 5.6vw, 88px)/.95 var(--sans); letter-spacing: -.045em; margin-bottom: 20px; }
.meet p { font: italic 400 20px/1.5 var(--serif); color: #C9E8C6; max-width: 34ch; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.22); }
.countdown div { padding: 24px 0 0; border-right: 1px solid rgba(255,255,255,.12); padding-left: clamp(8px, 1.6vw, 24px); }
.countdown div:first-child { padding-left: 0; }
.countdown div:last-child { border-right: 0; }
.countdown strong { display: block; font: 800 clamp(48px, 7.5vw, 128px)/.9 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 10px; font-size: 14px; color: #A9D8A6; }
.countdown-note { margin-top: 28px !important; font: 400 15px/1.5 var(--sans) !important; color: #A9D8A6 !important; }

/* ---------- Sách hồi ức ---------- */
.memories { position: relative; padding: clamp(96px, 14vh, 160px) 0 120px; background: #2E8B3E; overflow: hidden; isolation: isolate; color: var(--white); }
.memories-head, .letters-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 0 var(--gutter); margin-bottom: 56px; }
.book-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 32px); padding: 0 var(--gutter); }
.book-wrap { position: relative; width: min(1040px, 100%); }
.book-wrap::after { /* bóng đổ dưới sách */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -26px; height: 40px;
  background: radial-gradient(closest-side, rgba(12,46,27,.28), transparent); filter: blur(6px); z-index: -1;
}
.book { margin: 0 auto; }
.book:focus-visible { outline-offset: 8px; }
.page { background: transparent; overflow: visible; }
.page-inner { position: relative; width: 100%; height: 100%; }
.page-inner img { width: 100%; height: 100%; object-fit: cover; }
.page-num { position: absolute; bottom: 10px; font: 500 11px var(--sans); color: rgba(12,46,27,.6); background: rgba(255,255,255,.8); padding: 2px 8px; border-radius: 99px; }
.page--left .page-num { left: 12px; }
.page--right .page-num { right: 12px; }
.page-cover { background: var(--green-deep); color: var(--paper); }
.page-cover .page-inner { display: grid; place-content: center; justify-items: center; gap: 18px; padding: 10%; text-align: center; background:
  radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 55%),
  repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 6px), var(--green-deep); }
.page-cover img { width: 46%; height: auto; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,.3)); }
.page-cover h3 { font: 800 clamp(22px, 3vw, 40px)/1 var(--sans); letter-spacing: -.03em; }
.page-cover p { font: italic 400 clamp(14px, 1.4vw, 18px)/1.4 var(--serif); color: #C9E8C6; }
.page-cover--back h3 { font-size: clamp(18px, 2.2vw, 28px); }
.page-endpaper .page-inner { display: grid; place-content: center; padding: 12%; text-align: center; background: var(--paper-2); }
.page-endpaper p { font: italic 400 clamp(18px, 2vw, 26px)/1.4 var(--serif); color: var(--green-deep); }
.book-arrow { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s, opacity .3s, transform .3s var(--ease); }
.book-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.book-arrow:hover:not(:disabled) { background: var(--green); color: var(--white); transform: scale(1.06); }
.book-arrow:disabled { opacity: .3; cursor: default; }
.book-controls { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 48px; flex-wrap: wrap; padding: 0 var(--gutter); }
.book-indicator { font-weight: 600; font-variant-numeric: tabular-nums; }
.sound-toggle { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: none; border-radius: 99px; padding: 8px 16px; cursor: pointer; font-size: 14px; }
.sound-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.sound-toggle[aria-pressed="false"] .sound-dot { background: var(--line); }
/* Fallback nếu thư viện lật trang không tải được */
.book.is-fallback { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.book.is-fallback .page { aspect-ratio: 1; }

/* ---------- Tâm tình ---------- */
.letters { position: relative; overflow: hidden; padding: clamp(96px, 14vh, 160px) 0; background-color: var(--paper-2); }
.letters-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); padding: 0 var(--gutter); align-items: start; }
.wish-form { display: grid; gap: 8px; padding: clamp(24px, 3vw, 40px); background: var(--white); border-radius: 4px 48px 4px 4px; box-shadow: 0 30px 60px -40px rgba(12,46,27,.35); }
.wish-form label { font-size: 14px; font-weight: 600; margin-top: 12px; }
.wish-form label span { font-weight: 400; color: var(--muted); }
.wish-form input[type="text"], .wish-form textarea { width: 100%; border: 0; border-bottom: 1.5px solid var(--line); background: transparent; padding: 10px 0; font: 400 18px/1.5 var(--serif); resize: vertical; transition: border-color .3s; }
.wish-form input[type="text"]:focus, .wish-form textarea:focus { outline: none; border-color: var(--green); }
.wish-form input[type="file"] { font-size: 14px; padding: 8px 0; }
.wish-form input[type="file"]::file-selector-button { margin-right: 12px; border: 1px solid var(--line); background: var(--paper-2); border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.image-preview-wrap { position: relative; width: 160px; }
.image-preview-wrap img { width: 160px; height: 120px; object-fit: cover; border-radius: 4px; }
.remove-image { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--ink); color: var(--white); cursor: pointer; }
.submit-button { margin-top: 24px; justify-self: start; border: 0; border-radius: 99px; padding: 16px 32px; background: var(--green); color: var(--white); font-weight: 600; font-size: 16px; cursor: pointer; transition: background .3s, transform .3s var(--ease); }
.submit-button:hover:not(:disabled) { background: var(--green-deep); transform: translateY(-2px); }
.submit-button:disabled { opacity: .6; }
.form-note { margin-top: 8px; color: var(--muted); font-size: 14px; }
.wish-privacy-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.wish-wall h3 { font: 700 20px/1.2 var(--sans); margin-bottom: 20px; }
.wish-list { columns: 2 260px; column-gap: 16px; }
.wish-entry { break-inside: avoid; margin: 0 0 16px; padding: 20px; background: var(--white); border-radius: 4px; border-left: 3px solid var(--green); }
.wish-entry-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.wish-entry h3 { font: 700 16px/1.3 var(--sans); }
.wish-entry time { font-size: 12px; color: var(--muted); }
.wish-entry p { font: 400 17px/1.55 var(--serif); }
.wish-entry img { margin-top: 12px; width: 100%; border-radius: 4px; }
.wish-empty { font: italic 400 18px/1.5 var(--serif); color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; background: var(--ink); color: var(--paper); padding: 140px var(--gutter) 32px; overflow: hidden; }
.footer-big { font: 900 clamp(90px, 22.5vw, 360px)/.78 var(--sans); letter-spacing: -.07em; color: var(--green); margin-left: -.04em; }
.footer-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.footer-row p { font: italic 400 20px/1.4 var(--serif); color: #C9E8C6; }
.back-top { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--green); padding-bottom: 2px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 180; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 24px; background: rgba(8, 30, 17, .94); color: var(--paper); }
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.lightbox-figure img { max-height: 80vh; width: auto; max-width: 100%; border-radius: 4px; }
.lightbox-figure figcaption { font: italic 400 17px var(--serif); color: #C9E8C6; }
.lightbox-close { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border: 0; background: none; color: var(--paper); font-size: 36px; cursor: pointer; }
.lightbox-nav { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: none; color: var(--paper); cursor: pointer; display: grid; place-items: center; }
.lightbox-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lightbox-nav:hover { background: var(--green); border-color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .brand span { display: none; }
  /* header + menu ngăn kéo: xem khối "Menu" ở đầu tệp */
  .brand { padding-right: 6px; }

  .hero-mosaic { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(5, 1fr); }
  .tile:nth-child(n) { grid-area: auto; }
  .tile:nth-child(1) { grid-area: span 2 / span 2; }
  .tile:nth-child(5) { grid-area: span 2 / span 1; }
  .tile:nth-child(n+12) { display: none; }
  .hero-content { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-title { font-size: clamp(52px, 16vw, 110px); }
  .hero-card { width: 100%; min-height: 0; }
  .hero-card img { width: 96px; }
  .hero-caption { display: none; }
  .journey-head, .memories-head, .letters-head { flex-direction: column; align-items: start; gap: 16px; }
  .journey-rail { position: relative; }
  .journey-rail-years { grid-template-columns: repeat(10, 64px); overflow-x: auto; scrollbar-width: none; }
  .meet-inner, .letters-grid { grid-template-columns: 1fr; }
  .countdown strong { font-size: clamp(40px, 13vw, 72px); }
  .book-arrow { position: absolute; bottom: -76px; z-index: 5; }
  .book-arrow--prev { left: var(--gutter); }
  .book-arrow--next { right: var(--gutter); }
  .book-controls { margin-top: 32px; flex-direction: column; gap: 12px; }
  .lightbox { grid-template-columns: 1fr; padding: 64px 12px 24px; }
  .lightbox-nav { position: absolute; bottom: 20px; }
  .lightbox-nav--prev { left: 20px; }
  .lightbox-nav--next { right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .loader { display: none; }
}
