/* P01 · Trang chủ · desktop 1280–1440 (số đo theo Figma "Trang chủ" + "P01 · Hero biến thể B")
 * Màu lấy từ tokens.css. Gradient ghép từ token; chỗ cần độ trong suốt dùng color-mix trên token.
 */
:root {
  --gold: var(--c-background-secondary-default);      /* #ffc30e */
  --gold-soft: var(--c-background-page-secondary);    /* #ffe8a2 */
  --gold-deep: var(--c-background-secondary-strong);  /* #e6ad03 */
  --red: var(--c-background-brand-default);           /* #c70000 */
  --red-strong: var(--c-background-brand-strong);     /* #a50606 */
  --red-deep: var(--p-red-500);                       /* #7d0707 */
  --cream: var(--c-background-secondary-subtle);      /* #fcf7ed */
  --ivory: color-mix(in srgb, var(--gold-soft) 35%, white);
  --shade-red: color-mix(in srgb, var(--red-deep) 62%, black);     /* bóng đỏ đậm, suy từ token */
  --shade-brown: color-mix(in srgb, var(--c-text-warning) 38%, black);
}
section { position: relative; }

/* =========================================================
   HEADER (M17)
   ========================================================= */
.hdr { position: fixed; top: 22px; left: 0; right: 0; z-index: 50; width: 1267px; margin-inline: auto; pointer-events: none; }
.hdr__bar {
  pointer-events: auto; display: flex; align-items: center; gap: 0; height: 72px; padding: 0 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, color-mix(in srgb, var(--red) 55%, transparent), color-mix(in srgb, var(--red-deep) 60%, transparent));
  border: 1px solid color-mix(in srgb, var(--gold-soft) 45%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gold-soft) 55%, transparent), 0 12px 32px color-mix(in srgb, var(--red-deep) 35%, transparent);
  transition: height calc(var(--dur-base) * var(--spd)) var(--ease-out-soft), background-color calc(var(--dur-base) * var(--spd));
}
.hdr.is-scrolled .hdr__bar { height: 64px; background: color-mix(in srgb, var(--red-deep) 92%, transparent); }
.hdr__logo { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.hdr__logo img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 60%, transparent); transition: transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft); }
.hdr.is-scrolled .hdr__logo img { transform: scale(.9); }
.hdr__logo b { font-weight: 800; }
.hdr__nav { display: flex; align-items: center; gap: 40px; margin-left: 88px; }
.hdr__link { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 500; color: var(--c-text-inverse); position: relative; }
.hdr__link:first-child { color: var(--gold-soft); }
.hdr__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft); }
.hdr__link:hover::after { transform: scaleX(1); }
.hdr__vr { padding: 0 8px; border-radius: var(--radius-full); background: var(--gold); color: var(--red-strong); font-size: 16px; font-weight: 800; line-height: 24px; }
.hdr__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hdr__sos { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--c-text-inverse); background: var(--red); border: 2px solid var(--c-text-inverse); box-shadow: 0 4px 14px color-mix(in srgb, var(--red-deep) 50%, transparent); }
.hdr__round, .hdr__lang { height: 44px; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--c-text-inverse); background: color-mix(in srgb, white 12%, transparent); border: 1px solid color-mix(in srgb, var(--gold-soft) 45%, transparent); transition: background-color var(--dur-fast); }
.hdr__round { width: 44px; }
.hdr__lang { padding: 0 14px; font-weight: 700; }
.hdr__round:hover, .hdr__lang:hover { background: color-mix(in srgb, white 22%, transparent); }

/* =========================================================
   HERO · biến thể B (P01-A, M20, M02)
   ========================================================= */
.hero { height: 680px; overflow: hidden; background: var(--red-strong); isolation: isolate; }
.hero__lights > * { position: absolute; pointer-events: none; }
.hero__glow { left: 50%; top: 356px; width: 1800px; height: 1000px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, var(--red) 0%, color-mix(in srgb, var(--red) 55%, transparent) 55%, transparent 100%); }
.hero__top { left: 50%; top: 40px; width: 1100px; height: 360px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-soft) 42%, transparent), transparent); filter: blur(30px); }
.hero__bloom { left: 50%; top: 360px; width: 1300px; height: 620px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 38%, transparent), color-mix(in srgb, var(--gold) 12%, transparent) 60%, transparent); filter: blur(50px); }
.hero__vignette { inset: 0; background: radial-gradient(72% 95% at 50% 50%, transparent 55%, color-mix(in srgb, var(--shade-red) 60%, transparent) 100%); }
.hero__ribbon { left: calc(50% - 880px); top: 440px; width: 1760px; opacity: .9; }

.hero__stage { position: absolute; top: 0; left: 50%; width: 1440px; height: 680px; margin-left: -720px; }
.car { position: absolute; inset: 0; perspective: 1200px; perspective-origin: 720px 356px; }
.slide {
  position: absolute; left: 160px; top: 116px; width: 1120px; height: 480px; border-radius: 32px; overflow: hidden;
  background: var(--red-strong); display: block;
  transition: transform calc(1100ms * var(--spd)) var(--ease-in-out), opacity calc(700ms * var(--spd)) var(--ease-in-out), box-shadow calc(700ms * var(--spd));
  box-shadow: 0 24px 48px color-mix(in srgb, var(--shade-red) 45%, transparent);
  will-change: transform;
}
.slide.is-center { transform: none; z-index: 3; box-shadow: 0 24px 48px color-mix(in srgb, var(--shade-red) 45%, transparent), 0 0 36px color-mix(in srgb, var(--gold) 35%, transparent); }
.slide.is-left  { transform: translateX(-905px) rotateY(38deg) scale(.9); z-index: 1; cursor: pointer; }
.slide.is-right { transform: translateX(905px) rotateY(-38deg) scale(.9); z-index: 1; cursor: pointer; }
.slide.from-right { transform: translateX(1900px) rotateY(-38deg) scale(.9); z-index: 1; }
.slide.from-left  { transform: translateX(-1900px) rotateY(38deg) scale(.9); z-index: 1; }
.slide__img { width: 100%; height: 100%; object-fit: cover; }

/* Viền sáng tĩnh (doc 03): nét chuyển sắc chéo + đốm sáng góc, chỉ trên slide giữa */
.slide::before, .slide::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 6; opacity: 0; transition: opacity calc(700ms * var(--spd)) var(--ease-out-soft) calc(350ms * var(--spd)); }
.slide::before {
  padding: 2.5px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold-soft) 40%, white) 0%, var(--gold) 22%, color-mix(in srgb, var(--gold-soft) 22%, transparent) 50%, color-mix(in srgb, var(--gold) 75%, transparent) 82%, var(--gold-soft) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.slide::after {
  background:
    radial-gradient(420px 420px at 0 0, color-mix(in srgb, var(--gold-soft) 30%, transparent), transparent 70%),
    radial-gradient(420px 420px at 100% 100%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 70%),
    linear-gradient(90deg, transparent 6%, color-mix(in srgb, white 85%, transparent) 30%, color-mix(in srgb, var(--gold-soft) 60%, transparent) 70%, transparent 94%) top / 100% 2px no-repeat;
  mix-blend-mode: screen;
}
.slide.is-center::before, .slide.is-center::after { opacity: 1; }
.slide.is-left::before, .slide.is-right::before { opacity: .55; transition-delay: 0s; }
html.intro .slide::before, html.intro .slide::after { opacity: 0 !important; }

/* Slide 1: hero thật, khung 1120×480 */
.s1 { position: absolute; inset: 0; }
.s1 > *, .s1__art > *, .s1__copy > * { position: absolute; }
.s1__bg { left: 0; top: 0; width: 1120px; height: 511px; object-fit: cover; }
.s1__shade { left: 0; top: 0; width: 660px; height: 480px; background: linear-gradient(90deg, color-mix(in srgb, var(--red-deep) 88%, transparent) 0%, color-mix(in srgb, var(--red-deep) 62%, transparent) 50%, transparent 100%); }
.s1__art { inset: 0; }
.s1__halo { left: 516px; top: -67px; width: 547px; height: 547px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 70%, transparent), color-mix(in srgb, var(--gold) 25%, transparent) 55%, transparent); }
.s1__drum { left: 658px; top: 82px; width: 413px; height: 336px; object-fit: contain; }
.s1__floor { left: 266px; top: 422px; width: 836px; height: 125px; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%), linear-gradient(90deg, transparent, #000 25%); mask-composite: intersect; }
.s1__gate { left: 590px; top: 169px; width: 536px; height: 268px; object-fit: contain; }
.s1__bird--l { left: 972px; top: 18px; width: 141px; }
.s1__bird--m { left: 647px; top: 35px; width: 94px; }
.s1__clouds { left: -72px; top: 79px; width: 1229px; height: 512px; object-fit: contain; }
.s1__rib--1 { left: 719px; top: 230px; width: 415px; height: 248px; object-fit: contain; }
.s1__rib--2 { left: 309px; top: 456px; width: 769px; height: 271px; object-fit: contain; rotate: -6deg; }
.s1__pin {
  left: var(--x); top: var(--y); width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, white 78%, transparent), color-mix(in srgb, var(--gold-soft) 45%, transparent));
  border: 1px solid color-mix(in srgb, white 80%, transparent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--red-deep) 35%, transparent), inset 0 1px 0 white;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.s1__pin img { width: 40px; height: 40px; object-fit: contain; }
.s1__copy { inset: 0; }
.s1__badge { left: 70px; top: 27px; width: 348px; height: 88px; }
.s1__h1 { left: 49px; top: 117px; width: 482px; height: 174px; }
.s1__swoosh { left: 147px; top: 214px; width: 424px; height: 116px; }
.s1__sub { left: 66px; top: 311px; width: 480px; font-size: 20px; line-height: 33px; font-weight: 500; color: var(--c-text-inverse); text-shadow: 0 2px 8px color-mix(in srgb, var(--red-deep) 60%, transparent); }
.s1__cta { left: 65px; top: 405px; height: 52px; }

/* Nút mũi tên, chấm trang */
.car__nav {
  position: absolute; top: 328px; z-index: 10; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: var(--c-icon-inverse);
  background: linear-gradient(180deg, var(--red), var(--red-strong));
  border: 2px solid var(--gold-soft);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--shade-red) 40%, transparent), 0 0 16px color-mix(in srgb, var(--gold) 45%, transparent);
  transition: transform var(--dur-fast) var(--ease-out-soft), opacity calc(700ms * var(--spd));
}
.car__nav:hover { transform: scale(1.06); }
.car__nav:active { transform: scale(.96); }
.car__nav--prev { left: 132px; }
.car__nav--next { left: 1252px; }
.car__dots { position: absolute; left: 50%; top: 618px; translate: -50% 0; z-index: 10; display: flex; align-items: center; gap: 4px; }
.car__dot { width: 24px; height: 24px; display: grid; place-items: center; }
.car__dot span { display: block; width: 8px; height: 8px; border-radius: 4px; background: color-mix(in srgb, white 45%, transparent); position: relative; overflow: hidden; transition: width calc(var(--dur-base) * var(--spd)) var(--ease-out-soft); }
.car__dot[aria-current="true"] { width: 52px; }
.car__dot[aria-current="true"] span { width: 44px; height: 6px; background: color-mix(in srgb, var(--gold) 35%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--gold) 70%, transparent); }
.car__dot span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.car__dot[aria-current="true"] span::after { transform: scaleX(1); }
.car.is-playing ~ .car__dots .car__dot[aria-current="true"] span::after { animation: dotfill calc(7000ms * var(--spd)) linear forwards; }
.car.is-paused ~ .car__dots .car__dot[aria-current="true"] span::after { animation-play-state: paused; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Mây hai góc */
.hero__clouds { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hero__cloud { position: absolute; top: 380px; width: 400px; height: 300px; overflow: hidden; }
.hero__cloud img { position: absolute; top: -301px; width: 1707px; max-width: none; }
.hero__cloud--l { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent); mask-image: linear-gradient(90deg, #000 62%, transparent); }
.hero__cloud--l img { left: -134px; }
.hero__cloud--r { right: 0; -webkit-mask-image: linear-gradient(270deg, #000 62%, transparent); mask-image: linear-gradient(270deg, #000 62%, transparent); }
.hero__cloud--r img { left: -1174px; }
.hero__stage { z-index: 2; }
.car__nav, .car__dots { z-index: 11; }

/* mở màn: ẩn tạm khi JS chưa chạy, tự hiện sau 3 giây nếu JS lỗi */
html.intro .hero__stage, html.intro .hdr, html.intro .hero__ribbon, html.intro .hero__clouds { opacity: 0; animation: unhide 0s 3.5s forwards; }
html.intro.intro-run .hero__stage, html.intro.intro-run .hdr, html.intro.intro-run .hero__ribbon, html.intro.intro-run .hero__clouds { opacity: 1; animation: none; }
@keyframes unhide { to { opacity: 1; } }

/* =========================================================
   HỒI VĂN
   ========================================================= */
.hoivan {
  height: 45px;
  background:
    linear-gradient(var(--hv, color-mix(in srgb, var(--gold-deep) 45%, transparent)), var(--hv, color-mix(in srgb, var(--gold-deep) 45%, transparent))) top / 100% 1px no-repeat,
    linear-gradient(var(--hv, color-mix(in srgb, var(--gold-deep) 45%, transparent)), var(--hv, color-mix(in srgb, var(--gold-deep) 45%, transparent))) bottom / 100% 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='45'%3E%3Cpath d='M0 34.6H1V10.6H31V28.6H13V18.6H23M31 34.6H44' fill='none' stroke='%23d9a441' stroke-opacity='.55' stroke-width='2'/%3E%3C/svg%3E") left center / 44px 45px repeat-x;
}
.hoivan--gold { --hv: color-mix(in srgb, var(--gold) 35%, transparent);
  background:
    linear-gradient(var(--hv), var(--hv)) top / 100% 1px no-repeat,
    linear-gradient(var(--hv), var(--hv)) bottom / 100% 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='45'%3E%3Cpath d='M0 34.6H1V10.6H31V28.6H13V18.6H23M31 34.6H44' fill='none' stroke='%23ffc30e' stroke-opacity='.5' stroke-width='2'/%3E%3C/svg%3E") left center / 44px 45px repeat-x; }

/* =========================================================
   HỆ SINH THÁI DU LỊCH SỐ PHÚ THỌ (7+6 thẻ kính · nền Trống đồng + Rồng Phượng + Cờ ngũ sắc)
   ========================================================= */
.cats {
  height: 988px; overflow: hidden; isolation: isolate; scroll-margin-top: 84px;
  background: color-mix(in srgb, var(--gold-soft) 55%, var(--cream));
}
.cats__bg { position: absolute; inset: 44px 0 44px; z-index: 0; pointer-events: none; overflow: hidden; }
.cats__paper { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.cats__stage { position: absolute; inset: 0; width: 100%; }
.cats__dragon {
  position: absolute; left: clamp(8px, 1.4vw, 32px); top: 6px;
  width: clamp(220px, 19vw, 340px); height: auto; aspect-ratio: 760 / 691; object-fit: contain;
}
.cats__phoenix {
  position: absolute; right: clamp(8px, 1.4vw, 32px); top: 6px;
  width: clamp(220px, 19vw, 340px); height: auto; aspect-ratio: 700 / 625; object-fit: contain;
}
.cats__flags {
  --flag-w: clamp(230px, 19vw, 300px);
  position: absolute; inset: 0; width: 100%; z-index: 3; pointer-events: none; overflow: hidden;
}
.cats__flag {
  position: absolute; bottom: 8px;
  width: var(--flag-w); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.cats__flag--left { left: calc(var(--flag-w) * -0.18); }
.cats__flag--right { right: calc(var(--flag-w) * -0.18); }
.cats__flag-img { width: 100%; height: 100%; object-fit: contain; }
.cats__flag--left .cats__flag-img { transform: rotate(17.61deg); }
.cats__flag--right .cats__flag-img { transform: scaleX(-1) rotate(17.61deg); }
.cats .hoivan { position: relative; z-index: 2; }
.cats .hoivan--bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.cats__inner { z-index: 2; padding-top: 32px; }
.cats__head { text-align: center; }
.cats__head .sec-sub { max-width: 960px; margin-inline: auto; }
.cats__row { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 20px; margin-top: 32px; }
.cats__item { flex: 1 0 calc((100% - 80px) / 6); min-width: 0; }
.cats__row:has(> .cats__item:nth-child(13)) > .cats__item:nth-child(-n+7) { flex: 1 0 calc((100% - 96px) / 7); }
.cats__row:has(> .cats__item:nth-child(13)) > .cats__item:nth-child(n+8) { flex: 1 0 calc((100% - 80px) / 6); }
.cat {
  position: relative; height: 258px; border-radius: 20px; padding: 18px 8px 14px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: linear-gradient(122deg, rgb(255 255 255 / .62) 0%, color-mix(in srgb, var(--cream) 72%, rgb(255 247 233 / .34)) 72%);
  -webkit-backdrop-filter: blur(10px) saturate(1.12); backdrop-filter: blur(10px) saturate(1.12);
  border: 1.4px solid color-mix(in srgb, var(--gold-deep) 55%, white);
  box-shadow:
    inset 0 1px 1px rgb(255 255 255 / .72),
    inset 0 -4px 12px color-mix(in srgb, var(--gold-soft) 16%, transparent),
    0 0 6px color-mix(in srgb, var(--gold) 18%, transparent),
    0 8px 18px -6px color-mix(in srgb, var(--shade-brown) 18%, transparent);
  transition: transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft), border-color var(--dur-base);
}
.cat__glint {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
}
.cat__glint::before {
  content: ""; position: absolute; left: -24px; top: -64px; right: -24px; height: 134px; border-radius: 50%;
  background: linear-gradient(180deg, rgb(255 255 255 / .52), transparent);
}
.cat__glint::after {
  content: ""; position: absolute; left: 20px; top: -1px; width: 100px; height: 3px; border-radius: 999px;
  background: radial-gradient(closest-side, rgb(255 255 255 / .95), transparent);
}
.cat::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1.5px var(--gold), 0 14px 28px -8px color-mix(in srgb, var(--gold-deep) 30%, transparent);
  opacity: 0; transition: opacity calc(var(--dur-base) * var(--spd)) var(--ease-out-soft);
}
.cat__icon {
  position: relative; z-index: 1; width: 86px; height: 86px; flex: none; object-fit: contain;
  transition: transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft);
}
.cat__title {
  position: relative; z-index: 1; margin-top: 8px; font-size: 18px; line-height: 24px; font-weight: 700;
  color: var(--red); transition: color var(--dur-fast);
}
.cats__item:nth-child(n+8) .cat__title { font-size: 19px; line-height: 25px; }
.cat__link { color: inherit; text-decoration: none; }
.cat__link::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.cat__link:focus-visible { outline: none; }
.cat__desc {
  position: relative; z-index: 1; margin-top: 6px; font-size: 16px; line-height: 21px; font-weight: 500;
  color: var(--c-text-default);
}
.cat:has(.cat__link:hover),
.cat:has(.cat__link:focus-visible) { border-color: var(--gold); }
.cat:has(.cat__link:hover)::after,
.cat:has(.cat__link:focus-visible)::after { opacity: 1; }
.cat:has(.cat__link:focus-visible) { outline: 3px solid var(--c-border-brand-default); outline-offset: 2px; }
.cat:has(.cat__link:hover) .cat__title,
.cat:has(.cat__link:focus-visible) .cat__title { color: var(--red-strong); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.reduce) .cat:has(.cat__link:hover) { transform: translateY(-5px); }
  html:not(.reduce) .cat:has(.cat__link:hover) .cat__icon { transform: scale(1.06); }
}

/* =========================================================
   8 ĐIỂM ĐẾN · thẻ mái đình · chim Lạc bay
   ========================================================= */
.kp { height: 1382px; overflow: hidden; background: color-mix(in srgb, var(--gold-soft) 18%, var(--cream)); }
.kp__bg > * { position: absolute; pointer-events: none; }
.kp__top { left: 0; top: -85px; width: 100%; height: 810px; object-fit: cover; }
.kp__king { left: calc(50% + 244px); top: 518px; width: 687px; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
.kp__bottom { left: 0; bottom: -4px; width: 100%; height: 343px; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%); }
.kp__inner { z-index: 2; padding-top: 72px; }
.kp__grid { display: grid; grid-template-columns: repeat(4, 270px); column-gap: 40px; row-gap: 56px; margin-top: 34px; }
.kp__grid > li:nth-child(even) { margin-top: 64px; margin-bottom: -64px; }
.kp__more { display: flex; justify-content: center; margin-top: 152px; }

.dcard { position: relative; width: 270px; height: 396px; margin-top: 14px; }
.dcard__img { position: absolute; left: -11px; top: 0; width: 292px; height: 396px; clip-path: var(--roof); overflow: hidden; }
.dcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform calc(var(--dur-slow) * var(--spd)) var(--ease-out-soft); }
.dcard__glass { position: absolute; inset: 0; -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15); -webkit-mask-image: linear-gradient(180deg, transparent 42%, #000 64%); mask-image: linear-gradient(180deg, transparent 42%, #000 64%); }
.dcard__frame { position: absolute; left: -31px; top: -9px; width: 331px; height: 437px; pointer-events: none; }
.dcard__save { position: absolute; left: 212px; top: 59px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--c-text-inverse); background: color-mix(in srgb, white 22%, transparent); border: 1px solid color-mix(in srgb, white 60%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform var(--dur-fast) var(--ease-out-soft); }
.dcard__save[aria-pressed="true"] { color: var(--red); background: white; }
.dcard__save.is-pop { animation: pop calc(500ms * var(--spd)) var(--ease-out-soft); }
@keyframes pop { 40% { transform: scale(1.2); } 100% { transform: scale(1); } }
.dcard__body { position: absolute; left: 31px; top: 191px; width: 209px; }
.dcard__tag { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--radius-full); font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-subtle); background: color-mix(in srgb, white 70%, transparent); border: 1px solid color-mix(in srgb, white 90%, transparent); box-shadow: 0 2px 8px color-mix(in srgb, var(--red-deep) 10%, transparent); }
.dcard__name { margin-top: 14px; font-size: 28px; line-height: 1.3; font-weight: 700; color: var(--red); }
.dcard__desc { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--c-text-default); min-height: 24px; }
.dcard__go { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-weight: 700; color: var(--red-strong); }
.dcard__go span.dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: white; background: linear-gradient(180deg, var(--red), var(--red-strong)); box-shadow: 0 4px 10px color-mix(in srgb, var(--red-deep) 35%, transparent); transition: transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft); }
.dcard > a.dcard__link { position: absolute; inset: 0 0 0 0; z-index: 1; border-radius: 24px; }
.dcard__save { z-index: 2; }
.dcard:hover .dcard__img img { transform: scale(1.04); }
.dcard:hover .dcard__go span.dot { transform: translateX(4px); }

/* Chim Lạc bay (kịch bản 7.5) */
.birds { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bird { position: absolute; left: 0; top: 0; offset-rotate: 0deg; offset-anchor: 50% 50%; animation: fly linear infinite; animation-play-state: paused; opacity: 0; }
.lac { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 8px 12px color-mix(in srgb, var(--c-text-warning) 18%, transparent)); }
@keyframes bob {   /* thân nhấp lên khi cánh đập xuống (khớp khung 3–4 của mỗi lần vỗ) */
  0%, 20.67%, 41.33%, 62% { translate: 0 0; rotate: 0deg; }
  10%, 30.67%, 51.33%     { translate: 0 -5px; rotate: -2deg; }
  81%                     { translate: 0 6px; rotate: 2deg; }   /* lượn hạ dần */
  100%                    { translate: 0 0; rotate: 0deg; }
}
.bird--1 { width: 200px; --flap: calc(3.6s * var(--spd)); offset-path: path("M -260 230 C 320 120, 980 40, 2100 -40"); animation-duration: calc(26s * var(--spd)); animation-delay: -6s; }   /* dải trên, cạnh tiêu đề */
.bird--2 { width: 160px; --flap: calc(3.2s * var(--spd)); offset-path: path("M 2100 1300 C 1400 1200, 700 1330, -260 1240"); animation-duration: calc(30s * var(--spd)); animation-delay: -14s; }   /* dải dưới, bay ngược */
.bird--2 .lac { scale: -1 1; }
.bird--3 { width: 130px; --flap: calc(2.9s * var(--spd)); offset-path: path("M -260 700 C 300 640, 1200 740, 2100 650"); animation-duration: calc(34s * var(--spd)); animation-delay: -22s; }   /* khe giữa 2 hàng thẻ */
.kp.is-live .bird { animation-play-state: running; }
@keyframes fly {
  0%   { offset-distance: 0%;   opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
html.reduce .bird { animation: none; offset-path: none; opacity: 1; }
html.reduce .lac { animation: none; }
html.reduce .bird--1 { left: calc(50% + 520px); top: 70px; }
html.reduce .bird--2 { left: 24px; top: 700px; }
html.reduce .bird--3 { display: none; }

/* =========================================================
   CON SỐ (M12 · Figma 2045:7462)
   ========================================================= */
.nums { min-height: 843px; overflow: hidden; background: var(--c-background-page-default); padding: 64px 0 161px; }
.nums .sec-title { line-height: 43px; }
.nums .sec-sub { margin-top: 8px; font-size: 20px; line-height: 27px; color: var(--c-text-strong); }
.nums__clouds {
  position: absolute; left: 0; top: 381px; width: 100%; height: 480px;
  object-fit: cover; object-position: center bottom; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / .5) 19.5%, #000 39%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / .5) 19.5%, #000 39%, #000 100%);
}
.nums__stage { position: relative; margin-top: 19px; min-height: 521px; }
.nums__bird { position: absolute; z-index: 4; object-fit: contain; pointer-events: none; }
.nums__bird--1 { left: 110px; top: 45px; width: 187px; height: 118px; }
.nums__bird--2 { left: 308px; top: 38px; width: 125px; height: 79px; }
.nums__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 613px 563px;
  justify-content: space-between; align-items: end;
  min-height: 521px;
}
.num-big {
  position: relative; width: 613px; height: 375px;
  border-radius: 16px; color: var(--c-text-inverse);
  background: var(--red);
  border: 1px solid color-mix(in srgb, var(--c-border-brand-default) 22%, transparent);
  box-shadow: var(--shadow-1);
}
.num-big__clip {
  position: absolute; inset: 0; border-radius: inherit;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.num-big__drum-pos {
  position: absolute; left: 226px; top: -76px;
  width: 319px; height: 359px;
  display: flex; align-items: center; justify-content: center;
}
.num-big__drum-rot {
  flex: none; width: 162.31px; height: 324.62px;
  transform: rotate(34.98deg);
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgb(0 0 0 / .5) 19.5%, #000 39%, #000 100%);
  mask-image: linear-gradient(270deg, transparent 0%, rgb(0 0 0 / .5) 19.5%, #000 39%, #000 100%);
}
.num-big__drum { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.num-big__king-wrap {
  position: absolute; left: 0; right: 0; top: -160px; bottom: 0;
  overflow: hidden; border-radius: 0 0 16px 16px;
  pointer-events: none; z-index: 1;
}
.num-big__king {
  position: absolute; left: 363px; top: 38.73px;
  width: 364px; height: 546px; max-width: none;
  object-fit: cover; transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, transparent 5.63%, rgb(0 0 0 / .5) 37.63%, #000 69.63%, #000 100%);
  mask-image: linear-gradient(0deg, transparent 0%, transparent 5.63%, rgb(0 0 0 / .5) 37.63%, #000 69.63%, #000 100%);
}
.num-big__emblem {
  position: absolute; left: 35px; top: 36px;
  width: 227px; height: 144px;
  z-index: 2; pointer-events: none;
}
.num-big__laurel {
  position: absolute; top: 7px;
  width: 58px; height: 104px;
  object-fit: cover; max-width: none;
}
.num-big__laurel--l { left: 0; }
.num-big__laurel--r { left: 169px; transform: scaleX(-1); }
.num-big__num-img {
  position: absolute; left: 50%; top: -21px;
  width: 164px; height: 162px; max-width: none;
  transform: translateX(-50%); object-fit: contain;
}
.num-big__n { position: absolute; left: 35px; top: 36px; z-index: 2; font-size: 64px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.num-big__t {
  position: absolute; left: 24px; top: 167px; z-index: 2;
  width: 283px; font-size: 20px; line-height: 32px; font-weight: 500;
  color: var(--c-text-inverse);
}
.num-big__link {
  position: absolute; left: 24px; top: 303px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 4px;
  border-radius: var(--radius-full);
  font-size: 24px; line-height: 25px; font-weight: 500;
  color: var(--c-text-inverse);
}
.num-big__link .i { transition: transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft); }
.num-big__link:hover .i { transform: translateX(4px); }
.nums__list { display: grid; gap: 16px; width: 563px; }
.num {
  display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px;
  padding: 16px; border-radius: 16px;
  background: var(--c-background-page-default);
  border: 1px solid var(--c-border-default);
}
.num__n { font-size: 34px; line-height: 43px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.num__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.num__t { font-size: 20px; line-height: 27px; font-weight: 500; color: var(--c-text-strong); }
.num .num__link {
  min-height: 44px; padding: 8px 4px 8px 0; margin-top: 0;
  font-size: 24px; line-height: 24px; font-weight: 700;
  color: var(--red-strong);
}

/* =========================================================
   QUANH BẠN
   ========================================================= */
.near { height: 935px; overflow: hidden; padding-top: 72px; background: color-mix(in srgb, var(--gold-soft) 14%, white); }
.near__bg { position: absolute; left: 0; bottom: 0; width: 100%; height: 617px; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%); mask-image: linear-gradient(180deg, transparent, #000 35%); }
.near .chips { margin-top: 28px; margin-left: -4px; }
.near__body { display: grid; grid-template-columns: 568px 606px; justify-content: space-between; margin-top: 22px; }
.near__list { display: grid; gap: 16px; align-content: start; }
.nitem { display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; gap: 16px; padding: 12px; border-radius: 18px; background: color-mix(in srgb, white 86%, transparent); border: 1px solid color-mix(in srgb, var(--gold-soft) 70%, white); box-shadow: var(--glass-highlight), 0 8px 20px color-mix(in srgb, var(--gold-deep) 10%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft), opacity calc(var(--dur-base) * var(--spd)); }
.nitem:hover, .nitem:focus-within { transform: translateX(4px); }
.nitem img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; }
.nitem__cat { font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--red); }
.nitem__name { font-size: 20px; font-weight: 700; color: var(--c-text-strong); line-height: 1.35; }
.nitem__meta { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.nitem__st::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: currentColor; vertical-align: 1px; }
.nitem__st--ok { color: var(--c-text-success); font-weight: 600; }
.nitem__st--red { color: var(--red); font-weight: 600; }
.nitem__st--muted { color: var(--c-text-subtle); }
.nitem__st--muted::before { display: none; }
.nitem__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--red); background: white; border: 1px solid var(--c-border-secondary); box-shadow: var(--shadow-1); }
.nitem.is-out { display: none; }
.near__map { position: relative; height: 579px; border-radius: var(--radius-xl); overflow: hidden; border: 2px solid white; box-shadow: 0 20px 40px color-mix(in srgb, var(--gold-deep) 20%, transparent); }
.near__map > img { width: 100%; height: 100%; object-fit: cover; }
.near__now { position: absolute; left: 20px; top: 20px; padding: 6px 16px; border-radius: var(--radius-full); font-weight: 600; background: color-mix(in srgb, white 90%, transparent); border: 1px solid var(--c-border-secondary); box-shadow: var(--shadow-1); }
.near__open { position: absolute; right: 0; bottom: 18px; border-radius: var(--radius-full) 0 0 var(--radius-full); }
.pin { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; width: 20px; height: 20px; border-radius: 50%; background: var(--red); border: 3px solid white; box-shadow: 0 3px 8px color-mix(in srgb, var(--red-deep) 40%, transparent); transition: transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft), opacity calc(var(--dur-base) * var(--spd)); }
.pin--gold { width: 28px; height: 28px; background: radial-gradient(circle at 35% 35%, var(--gold-soft), var(--gold) 60%, var(--gold-deep)); }
.pin::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--red); opacity: 0; }
.pin.is-hot { transform: scale(1.15); z-index: 2; }
.pin.is-hot::after { animation: ring calc(700ms * var(--spd)) var(--ease-out-soft); }
@keyframes ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }
.pin__label { position: absolute; left: 22px; top: 50%; translate: 0 -50%; white-space: nowrap; padding: 4px 12px; border-radius: 10px; font-weight: 700; background: white; box-shadow: var(--shadow-2); opacity: 0; transform: translateX(-6px); transition: opacity calc(var(--dur-base) * var(--spd)), transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft); pointer-events: none; }
.pin--gold .pin__label, .pin.is-hot .pin__label { opacity: 1; transform: none; }
.pin.is-out { opacity: 0; transform: scale(.6); }

/* =========================================================
   ĂN GÌ (nền đỏ)
   ========================================================= */
.food { height: 1256px; padding-top: 72px; background: var(--red-strong) url("../assets/home/B5-an-gi-do.jpg") center top / cover no-repeat; }
.sec-title--inv { color: var(--c-text-inverse); }
.sec-title--inv em { color: var(--gold); }
.sec-sub--inv { color: color-mix(in srgb, var(--gold-soft) 55%, white); }
.food__grid { display: grid; grid-template-columns: repeat(4, 275px); justify-content: space-between; row-gap: 36px; margin-top: 56px; }
.fcard { position: relative; height: 422px; padding: 10px; border-radius: 20px; display: flex; flex-direction: column; background: linear-gradient(180deg, color-mix(in srgb, var(--red-strong) 60%, transparent), color-mix(in srgb, var(--red-deep) 80%, transparent)); border: 1.5px solid color-mix(in srgb, var(--gold) 55%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gold-soft) 35%, transparent), 0 14px 30px color-mix(in srgb, var(--shade-red) 35%, transparent); transition: transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft); }
.fcard::after { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 1.5px var(--gold), 0 0 28px color-mix(in srgb, var(--gold) 45%, transparent); opacity: 0; transition: opacity calc(var(--dur-base) * var(--spd)); }
.fcard:hover { transform: translateY(-4px); }
.fcard:hover::after { opacity: 1; }
.fcard__img { height: 180px; border-radius: 12px; overflow: hidden; }
.fcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform calc(var(--dur-slow) * var(--spd)) var(--ease-out-soft); }
.fcard:hover .fcard__img img { transform: scale(1.04); }
.fcard__body { display: flex; flex-direction: column; flex: 1; padding: 14px 6px 4px; color: var(--c-text-inverse); }
.fcard__tag { align-self: flex-start; padding: 2px 12px; border-radius: var(--radius-full); font-size: 16px; font-weight: 700; color: var(--c-text-on-secondary); background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }
.fcard__name { margin-top: 12px; font-size: 22px; line-height: 1.3; font-weight: 700; }
.fcard__desc { margin-top: 6px; font-size: 16px; line-height: 1.5; color: color-mix(in srgb, var(--gold-soft) 40%, white); }
.fcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 16px; }
.fcard__foot span { display: inline-flex; align-items: center; gap: 4px; }
.fcard__foot a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--gold); }
.fcard__foot a .i { transition: transform var(--dur-base) var(--ease-out-soft); }
.fcard__foot a:hover .i { transform: translateX(4px); }

/* =========================================================
   NGHỈ Ở ĐÂU
   ========================================================= */
.stay { height: 1652px; overflow: hidden; padding-top: 72px; background: color-mix(in srgb, var(--gold-soft) 10%, white); }
.stay__bg { position: absolute; left: 0; bottom: 0; width: 100%; height: 480px; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); }
.stay__bird { position: absolute; left: calc(50% - 115px); top: 92px; width: 150px; pointer-events: none; }
.stay .chips { margin-top: 28px; margin-left: -4px; }
.stay__grid { display: grid; grid-template-columns: repeat(3, 378px); justify-content: space-between; row-gap: 36px; margin-top: 28px; }
.scard { position: relative; padding: 10px; border-radius: 20px; background: color-mix(in srgb, white 94%, transparent); border: 1px solid color-mix(in srgb, var(--gold-soft) 70%, white); box-shadow: 0 14px 30px color-mix(in srgb, var(--gold-deep) 14%, transparent); transition: transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft), opacity calc(var(--dur-base) * var(--spd)); }
.scard:hover { transform: translateY(-4px); }
.scard.is-out { display: none; }
.scard__media { position: relative; height: 220px; border-radius: 14px; overflow: hidden; }
.scard__track { display: flex; height: 100%; transition: transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft); }
.scard__track img { flex: none; width: 100%; height: 100%; object-fit: cover; }
.scard__save, .scard__next { position: absolute; display: grid; place-items: center; border-radius: 50%; color: white; background: color-mix(in srgb, white 25%, transparent); border: 1px solid color-mix(in srgb, white 65%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.scard__save { right: 10px; top: 10px; width: 36px; height: 36px; }
.scard__save[aria-pressed="true"] { color: var(--red); background: white; }
.scard__next { right: 10px; top: 50%; width: 32px; height: 32px; margin-top: -16px; }
.scard__dots { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; display: flex; gap: 5px; }
.scard__dots i { width: 6px; height: 6px; border-radius: 3px; background: color-mix(in srgb, white 55%, transparent); transition: width var(--dur-base); }
.scard__dots i.on { width: 14px; background: white; }
.scard__body { padding: 14px 6px 4px; }
.scard__name { font-size: 22px; font-weight: 700; color: var(--c-text-strong); }
.scard__rate { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 16px; }
.scard__type { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 8px; font-weight: 600; color: var(--red-strong); background: var(--c-background-brand-subtle); }
.scard__stars { display: inline-flex; gap: 1px; color: var(--gold-deep); }
.scard__score { font-weight: 800; color: var(--red); }
.scard__loc { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--c-text-subtle); }
.scard__perks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.scard__ok { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--c-text-success); }
.scard__perk { padding: 2px 10px; border-radius: 8px; background: var(--c-background-page-subtle); font-weight: 500; }
.scard__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 16px; }
.scard__price small { display: block; font-size: 16px; color: var(--c-text-subtle); }
.scard__price b { display: block; font-size: 26px; line-height: 1.2; font-weight: 800; color: var(--red); }
.scard__price span { font-size: 16px; }

/* =========================================================
   SẮP CÓ HỘI (tâm linh)
   ========================================================= */
.fest { padding: 72px 0 80px; background: color-mix(in srgb, var(--gold-soft) 16%, var(--cream)); }
.fest__banner { display: grid; grid-template-columns: 640px 1fr; height: 400px; border-radius: var(--radius-xl); overflow: hidden; border: 1.5px solid color-mix(in srgb, var(--gold-deep) 55%, white); box-shadow: 0 20px 40px color-mix(in srgb, var(--gold-deep) 18%, transparent); }
.fest__photo img { width: 100%; height: 100%; object-fit: cover; }
.fest__panel { padding: 48px 56px; background: url("../assets/home/B7b-panel-kem.jpg") center / cover; }
.fest__title { margin-top: 4px; font-size: 56px; line-height: 1.15; font-weight: 800; color: var(--red); }
.fest__text { margin: 14px 0 24px; max-width: 420px; font-size: 20px; line-height: 1.5; font-weight: 500; }
/* Sắp có hội · timeline ngang (Figma 269:5223)
   Trục bắt đầu từ "Hôm nay"; 3 mốc tại --x (220 · 600 · 980); thẻ ngang 572px so le trên/dưới.
   Hình học: thẻ cao 172 · cuống 44 · tâm trục y = 252 · thẻ dưới bắt đầu y = 333. */
.ftl { position: relative; height: 505px; margin-top: 48px; }
.ftl__axis { position: absolute; inset: 0; pointer-events: none; }
.ftl__line { position: absolute; left: 14px; right: 0; top: 251px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold-deep) 20%, color-mix(in srgb, var(--gold) 90%, transparent) 82%, transparent); }
.ftl__today { position: absolute; left: 0; top: 238px; display: grid; justify-items: start; gap: 8px; }
.ftl__today i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--red) 14%, transparent); }
.ftl__today i::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px white; }
.ftl__today b { font-size: 18px; line-height: 25px; font-weight: 600; color: var(--red-strong); }
.ftl__list { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }

/* Mốc ngày nằm trên trục: ngày âm (đỏ) + khoảng tháng dương */
.ftl__stop { position: absolute; z-index: 2; left: var(--x); top: 252px; translate: -50% -50%; display: grid; justify-items: center; padding: 10px 16px; border-radius: 22px; white-space: nowrap; text-align: center;
  background: linear-gradient(180deg, white, var(--cream));   /* nền đặc: trục chạy phía sau không được lộ qua mốc */
  border: 1.2px solid color-mix(in srgb, var(--gold) 60%, white);
  box-shadow: inset 0 1.5px 1px white, 0 4px 12px rgb(0 0 0 / .12); }
.ftl__stop b { font-size: 18px; line-height: 25px; font-weight: 600; color: var(--red-strong); }
.ftl__stop span { font-size: 18px; line-height: 25px; font-weight: 500; color: var(--c-text-subtle); }
.is-featured .ftl__stop { background: linear-gradient(180deg, var(--red), var(--red-strong)); border-color: color-mix(in srgb, var(--gold) 85%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gold-soft) 60%, transparent), 0 8px 18px -4px color-mix(in srgb, var(--red-deep) 40%, transparent); }
.is-featured .ftl__stop b { color: color-mix(in srgb, var(--gold-soft) 35%, white); }
.is-featured .ftl__stop span { color: var(--gold-soft); }

/* Cuống nối mốc với thẻ, chấm vàng ở chỗ chạm thẻ */
.ftl__stem { position: absolute; left: calc(var(--x) - 1px); width: 2px; height: 44px; }
.ftl__stem::after { content: ""; position: absolute; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-deep); box-shadow: 0 0 0 2px white; }
.ftl__item--top .ftl__stem { top: 172px; transform-origin: 50% 100%; background: linear-gradient(0deg, var(--gold-deep), color-mix(in srgb, var(--gold) 35%, transparent)); }
.ftl__item--top .ftl__stem::after { top: -5px; }
.ftl__item--bottom .ftl__stem { top: 289px; transform-origin: 50% 0; background: linear-gradient(180deg, var(--gold-deep), color-mix(in srgb, var(--gold) 35%, transparent)); }
.ftl__item--bottom .ftl__stem::after { bottom: -5px; }

/* Thẻ sự kiện ngang: ảnh trái, tên · địa chỉ · 2 nút */
.ecard { position: absolute; left: var(--card-x); width: 572px; height: 172px; display: grid; grid-template-columns: 188px 1fr; gap: 20px; padding: 12px; border-radius: 26px;
  background: linear-gradient(180deg, color-mix(in srgb, white 74%, transparent), color-mix(in srgb, var(--cream) 48%, transparent));
  border: 1.5px solid color-mix(in srgb, var(--gold-soft) 80%, white);
  box-shadow: inset 0 1.5px 1px white, 0 16px 36px -8px color-mix(in srgb, var(--gold-deep) 24%, transparent); }
.ftl__item--top .ecard { top: 0; }
.ftl__item--bottom .ecard { top: 333px; }
.ecard__img { position: relative; height: 100%; border-radius: 18px; overflow: hidden; }
.ecard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform calc(var(--dur-slow) * var(--spd) * var(--sacred)) var(--ease-out-soft); }
.ecard:hover .ecard__img img { transform: scale(1.03); }
.ecard__chip { position: absolute; left: 10px; top: 10px; padding: 4px 12px; border-radius: var(--radius-full); font-size: 16px; font-weight: 700; color: var(--red); background: color-mix(in srgb, white 92%, transparent); box-shadow: 0 4px 12px rgb(0 0 0 / .15); }
.ecard__chip::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--red); vertical-align: 2px; }
.ecard__body { display: grid; align-content: start; gap: 10px; padding-top: 6px; min-width: 0; }
.ecard__name { font-size: 24px; line-height: 33px; font-weight: 700; color: var(--c-text-strong); }
.ecard__name a { color: inherit; text-decoration: none; }
.ecard__name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold-deep); }
.ecard__row { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; font-size: 18px; line-height: 25px; font-weight: 500; }
.ecard__ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--red); background: var(--c-background-brand-subtle); }
.ecard__btns { display: flex; gap: 10px; margin-top: 6px; }
.ecard__btns .btn[aria-pressed="true"] { background: var(--c-background-success-default); box-shadow: none; }

/* Hiện dần: trục vẽ từ trái sang, mốc nở ra, cuống mọc từ trục về phía thẻ, thẻ trồi lên (nhịp tâm linh × 1.3) */
[data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: 0 50%; }
[data-reveal="stop"] { transform: scale(.92); }
[data-reveal="stem"] { opacity: 1; transform: scaleY(0); }

/* =========================================================
   TOUR
   ========================================================= */
.tour { height: 880px; overflow: hidden; padding-top: 72px; background: white; }
.tour__bg { position: absolute; left: 0; bottom: 0; width: 100%; height: 480px; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%); }
.tour__grid { display: grid; grid-template-columns: repeat(3, 378px); justify-content: space-between; margin-top: 56px; }
.tcard { padding: 10px; border-radius: 20px; background: color-mix(in srgb, white 92%, transparent); border: 1px solid color-mix(in srgb, var(--gold-soft) 70%, white); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 30px color-mix(in srgb, var(--gold-deep) 16%, transparent); transition: transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft); }
.tcard:hover { transform: translateY(-4px); }
.tcard__img { position: relative; height: 210px; border-radius: 14px; overflow: hidden; }
.tcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform calc(var(--dur-slow) * var(--spd)) var(--ease-out-soft); }
.tcard:hover .tcard__img img { transform: scale(1.04); }
.tcard__dur { position: absolute; left: 10px; top: 10px; padding: 4px 12px; border-radius: var(--radius-full); font-weight: 700; color: var(--red-strong); background: color-mix(in srgb, white 80%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tcard__body { padding: 14px 6px 6px; }
.tcard__name { font-size: 22px; font-weight: 700; color: var(--c-text-strong); }
.tcard__d { margin-top: 6px; }
.tcard__route { margin-top: 8px; font-weight: 600; }
.tcard__route span + span::before { content: "•"; margin: 0 8px; color: var(--gold-deep); }
.tcard__price { margin-top: 8px; }
.tcard__price b { font-size: 20px; color: var(--red); }
.tcard__btns { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.tcard__self { font-weight: 700; color: var(--red); }
.tcard__self:hover { text-decoration: underline; text-underline-offset: 4px; }

/* =========================================================
   DẢI CTA
   ========================================================= */
.cta { height: 400px; display: grid; place-items: center; text-align: center; background: var(--red-strong) url("../assets/home/B8b-cta-do.jpg") center / cover; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: var(--radius-full); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent); background: color-mix(in srgb, var(--red-deep) 40%, transparent); }
.cta__badge .i { color: var(--gold); }
.cta__title { margin-top: 18px; font-size: 44px; line-height: 1.2; font-weight: 800; color: white; }
.cta__sub { margin: 10px 0 28px; font-size: 18px; color: color-mix(in srgb, var(--gold-soft) 45%, white); }
.cta__steps { display: flex; gap: 28px; margin: 24px 0 0; padding: 0; list-style: none; color: white; font-size: 18px; font-weight: 500; }
.cta__steps li { display: flex; align-items: center; gap: 8px; }
.cta__steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 700; border: 1.5px solid color-mix(in srgb, white 80%, transparent); }

/* =========================================================
   MÙA NÀY
   ========================================================= */
.season { height: 680px; overflow: hidden; }
.season__bg { position: absolute; left: 0; top: -60px; width: 100%; height: 800px; object-fit: cover; will-change: transform; }
.season__inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.season__card { width: 580px; padding: 36px 40px; border-radius: var(--radius-xl); color: white; background: color-mix(in srgb, var(--shade-brown) 48%, transparent); border: 1px solid color-mix(in srgb, white 28%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gold-soft) 40%, transparent), 0 20px 40px color-mix(in srgb, black 25%, transparent); }
.season__title { margin-top: 2px; font-size: 40px; line-height: 1.2; font-weight: 800; }
.season__text { margin-top: 14px; font-size: 18px; line-height: 1.6; color: color-mix(in srgb, white 92%, transparent); }
.season__quote { margin: 18px 0 0; padding-left: 16px; border-left: 3px solid var(--gold); font-size: 18px; font-weight: 500; color: var(--gold-soft); }
.season__quote cite { display: block; margin-top: 4px; font-style: normal; font-size: 16px; font-weight: 700; color: white; }
.season__btns { display: flex; gap: 12px; margin-top: 22px; }
.season__places { display: grid; gap: 14px; width: 400px; margin-top: 140px; }
.splace a { display: grid; grid-template-columns: 56px 1fr 20px; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 16px; color: white; background: color-mix(in srgb, var(--shade-brown) 42%, transparent); border: 1px solid color-mix(in srgb, white 30%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform calc(var(--dur-base) * var(--spd)) var(--ease-out-soft), background-color var(--dur-base); }
.splace a:hover { transform: translateX(-4px); background: color-mix(in srgb, var(--shade-brown) 58%, transparent); }
.splace img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.splace small { display: block; font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.splace b { font-size: 18px; }

/* =========================================================
   CẦN BIẾT
   ========================================================= */
.know { height: 639px; padding-top: 72px; background: var(--cream) url("../assets/home/B10n-can-biet.jpg") center bottom / cover no-repeat; }
.know__grid { display: grid; grid-template-columns: repeat(4, 282px); justify-content: space-between; margin-top: 36px; }
.know__card { display: flex; flex-direction: column; min-height: 320px; padding: 24px; border-radius: 20px; background: color-mix(in srgb, white 90%, transparent); border: 1px solid color-mix(in srgb, var(--gold-soft) 70%, white); box-shadow: 0 14px 30px color-mix(in srgb, var(--gold-deep) 12%, transparent); }
.know__card img { width: 72px; height: 72px; object-fit: contain; margin: -6px 0 6px -6px; }
.know__card h3 { font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--c-text-strong); }
.know__card p { margin-top: 10px; }
.know__card .link-arrow { margin-top: auto; padding-top: 14px; }
.know__wx { margin: 10px 0 0; display: grid; gap: 4px; }
.know__wx div { display: flex; justify-content: space-between; }
.know__wx dt { font-size: 18px; }
.know__wx dd { margin: 0; font-size: 20px; font-weight: 800; color: var(--red); }
.know__sos { display: flex; gap: 8px; margin-top: 12px; }
.know__sos a { padding: 4px 12px; border-radius: var(--radius-full); font-weight: 700; color: white; background: var(--red-strong); }

/* =========================================================
   FOOTER
   ========================================================= */
.ftr { position: relative; min-height: 500px; color: color-mix(in srgb, white 92%, transparent); background: var(--red-deep) url("../assets/home/B11-footer.jpg") center / cover; }
.ftr__grid { display: grid; grid-template-columns: 500px 240px 240px 1fr; padding-top: 56px; }
.ftr__logo { display: inline-flex; align-items: center; gap: 12px; font-size: 32px; font-weight: 700; color: var(--gold); }
.ftr__logo img { border-radius: 50%; }
.ftr__logo b { font-weight: 800; }
.ftr__tag { margin: 14px 0 10px; font-size: 20px; font-weight: 600; color: var(--gold-soft); }
.ftr__brand > p:not(.ftr__tag) { width: 380px; font-size: 16px; }
.ftr__lang { display: flex; gap: 8px; margin-top: 18px; }
.ftr__lang button { height: 40px; padding: 0 18px; border-radius: var(--radius-full); font-weight: 700; border: 1px solid color-mix(in srgb, white 40%, transparent); }
.ftr__lang .is-on { color: var(--red-strong); border-color: transparent; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }
.ftr nav { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ftr nav h2 { font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.ftr nav a, .ftr__motion { font-size: 18px; font-weight: 500; text-align: left; }
.ftr nav a:hover, .ftr__motion:hover { color: var(--gold-soft); }
.ftr__motion { display: inline-flex; align-items: center; gap: 10px; }
.ftr__motion::after { content: ""; width: 36px; height: 20px; border-radius: 10px; flex: none; background: color-mix(in srgb, white 25%, transparent) radial-gradient(circle 7px at 10px 50%, white 98%, transparent) no-repeat; transition: background-position var(--dur-base), background-color var(--dur-base); }
.ftr__motion[aria-checked="true"]::after { background-color: var(--gold-deep); background-position: 16px 0; }
.ftr__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 96px; padding: 22px 0 28px; border-top: 1px solid color-mix(in srgb, white 20%, transparent); }
.ftr__bottom a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--gold); }

/* Ảnh trang trí đặt tuyệt đối được phép rộng hơn khung cha */
.hero img, .s1 img, .cats__bg img, .cats__flags img, .dcard__frame, .kp__bg img, .birds img, .nums__bird, .stay__bird { max-width: none; }
.dcard__base { position: absolute; left: -31px; top: -9px; width: 331px; height: 437px; max-width: none; pointer-events: none; }
.dcard__glass { background: linear-gradient(180deg, transparent 44%, color-mix(in srgb, var(--ivory) 45%, transparent) 66%, color-mix(in srgb, var(--ivory) 78%, transparent) 100%); }
.ftr__grid { grid-template-columns: 460px 220px 240px 1fr; }
.season__bg { object-position: 78% 62%; }
.ftr__motion { white-space: nowrap; }

/* Thông báo khi máy bật "Giảm chuyển động" (chỉ cho prototype) */
.motion-note {
  position: fixed; left: 50%; bottom: 24px; z-index: 92; translate: -50% 0;
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 22px; border-radius: var(--radius-full);
  color: white; background: color-mix(in srgb, var(--c-background-page-inverse) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); box-shadow: var(--shadow-3);
}
.motion-note[hidden] { display: none; }
.motion-note p { font-size: 16px; white-space: nowrap; }
.motion-note b { color: var(--gold-soft); }
.motion-note__x { width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; color: white; background: color-mix(in srgb, white 12%, transparent); }
.motion-note__x:hover { background: color-mix(in srgb, white 22%, transparent); }

/* === HẠC VECTOR (sinh bởi tools/hac-svg.mjs) === */
.hac-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hac-fe { fill: url(#hacWing); }
.hac-fe--far { fill: url(#hacWingFar); }
.hac-fe, .hac-cv, .hac-tail { stroke: color-mix(in srgb, var(--c-text-warning) 58%, white); stroke-width: .9; stroke-linejoin: round; }
.hac-cv { fill: color-mix(in srgb, var(--p-orange-200) 48%, white); }
.hac-cv--far { fill: color-mix(in srgb, var(--p-orange-200) 58%, white); }
.hac-shaft { fill: none; stroke: color-mix(in srgb, var(--c-text-warning) 45%, white); stroke-width: .6; opacity: .4; }
.hac-white { fill: white; stroke: color-mix(in srgb, var(--c-text-warning) 40%, white); stroke-width: .8; }
.hac-black { fill: color-mix(in srgb, var(--p-red-500) 30%, black); }
.hac-crown { fill: var(--red); }
.hac-eye { fill: color-mix(in srgb, var(--p-red-500) 30%, black); }
.hac-beak { fill: url(#hacBeak); }
.hac-tail { fill: var(--red-strong); stroke: color-mix(in srgb, var(--red-deep) 70%, white); }
.hac-leg { fill: none; stroke: color-mix(in srgb, var(--p-orange-300) 45%, white); stroke-width: 2.4; stroke-linecap: round; }
/* Sinh bởi prototype/tools/hac-svg.mjs: hiện lần lượt 8 khung cánh (vỗ 3 lần rồi lượn) */
.hac-f { opacity: 0; animation: var(--flap, 3.6s) step-end infinite; animation-play-state: paused; }
.kp.is-live .hac-f { animation-play-state: running; }
@keyframes hacF0 { 0% { opacity: 1; } 3.47% { opacity: 0; } 20.67% { opacity: 1; } 24.14% { opacity: 0; } 41.33% { opacity: 1; } 44.81% { opacity: 0; } 100% { opacity: 1; } }
.hac-f--0 { animation-name: hacF0; }
@keyframes hacF1 { 0% { opacity: 0; } 3.47% { opacity: 1; } 5.9% { opacity: 0; } 24.14% { opacity: 1; } 26.57% { opacity: 0; } 44.81% { opacity: 1; } 47.24% { opacity: 0; } 100% { opacity: 0; } }
.hac-f--1 { animation-name: hacF1; }
@keyframes hacF2 { 0% { opacity: 0; } 5.9% { opacity: 1; } 7.82% { opacity: 0; } 26.57% { opacity: 1; } 28.48% { opacity: 0; } 47.24% { opacity: 1; } 49.15% { opacity: 0; } 100% { opacity: 0; } }
.hac-f--2 { animation-name: hacF2; }
@keyframes hacF3 { 0% { opacity: 0; } 7.82% { opacity: 1; } 9.9% { opacity: 0; } 28.48% { opacity: 1; } 30.57% { opacity: 0; } 49.15% { opacity: 1; } 51.23% { opacity: 0; } 100% { opacity: 0; } }
.hac-f--3 { animation-name: hacF3; }
@keyframes hacF4 { 0% { opacity: 0; } 9.9% { opacity: 1; } 13.03% { opacity: 0; } 30.57% { opacity: 1; } 33.69% { opacity: 0; } 51.23% { opacity: 1; } 54.36% { opacity: 0; } 100% { opacity: 0; } }
.hac-f--4 { animation-name: hacF4; }
@keyframes hacF5 { 0% { opacity: 0; } 13.03% { opacity: 1; } 16.85% { opacity: 0; } 33.69% { opacity: 1; } 37.51% { opacity: 0; } 54.36% { opacity: 1; } 58.18% { opacity: 0; } 100% { opacity: 0; } }
.hac-f--5 { animation-name: hacF5; }
@keyframes hacF6 { 0% { opacity: 0; } 16.85% { opacity: 1; } 20.67% { opacity: 0; } 37.51% { opacity: 1; } 41.33% { opacity: 0; } 58.18% { opacity: 1; } 62% { opacity: 0; } 100% { opacity: 0; } }
.hac-f--6 { animation-name: hacF6; }
@keyframes hacF7 { 0% { opacity: 0; } 62% { opacity: 1; } 100% { opacity: 0; } }
.hac-f--7 { animation-name: hacF7; }
html.reduce .hac-f { animation: none; opacity: 0; }
html.reduce .hac-f--7 { opacity: 1; }
/* === HẾT HẠC VECTOR === */
/* Thẻ mái đình: bỏ làm mờ ảnh (bạn yêu cầu 30/11/2026), chỉ giữ nhạt dần về nền kem ở chân thẻ */
.dcard__glass { -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-mask-image: none; mask-image: none; }
