/* =========================================================
   Tích Tịch Tình Tang – Board Game Cổ Tích Việt Nam
   Bảng màu & phong cách lấy từ proposal của dự án.
   ========================================================= */

:root {
  --red-950: #2a0703;
  --red-900: #3b0c05;
  --red-800: #4f1208;
  --red-700: #651a0d;
  --red-600: #7d2513;

  --gold-50: #fff6e2;
  --gold-100: #fbecc8;
  --gold-200: #f6dca4;
  --gold-300: #eec57a;
  --gold-500: #d99a3a;
  --sun: #f2a33a;

  --teal-950: #062625;
  --teal-900: #08302f;
  --teal-800: #0b3f3d;
  --teal-700: #0e4f4c;
  --teal-500: #1a6d68;
  --teal-300: #4fa597;

  --ink: var(--gold-100);
  --ink-soft: rgba(251, 236, 200, 0.78);
  --line: rgba(246, 220, 164, 0.2);

  --f-display: "Playfair Display", Georgia, serif;
  --f-body: "Lora", Georgia, serif;
  --f-ui: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
  --card-ratio: 400 / 672;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.7;
  color: var(--ink);
  background: var(--red-800);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../assets/img/bg-texture.jpg") center / cover no-repeat, var(--red-800);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
strong { color: var(--gold-100); font-weight: 600; }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

:where(a, button):focus-visible {
  outline: 2px solid var(--gold-200);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ---------- Typography ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--f-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }

.h2 {
  margin-bottom: 1.25rem;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.1;
  color: var(--gold-200);
  text-wrap: balance;
}
p { color: var(--ink-soft); text-wrap: pretty; }
p + p { margin-top: 1rem; }
.lead { font-size: 1.12em; color: var(--gold-100); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--f-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), background-color 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled] { cursor: progress; opacity: 0.75; transform: none; }

.btn--gold {
  color: var(--red-900);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-300) 45%, var(--gold-500));
  box-shadow: 0 12px 30px -12px rgba(242, 163, 58, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
}
.btn--gold:hover { box-shadow: 0 18px 40px -12px rgba(242, 163, 58, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn--gold:hover::after { transform: translateX(120%); }

.btn--ghost {
  color: var(--gold-100);
  border-color: rgba(246, 220, 164, 0.5);
  background: rgba(42, 7, 3, 0.3);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(246, 220, 164, 0.14); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; pointer-events: none; }
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-300), var(--gold-300), var(--sun));
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--nav-h);
  transition: background-color 0.4s, box-shadow 0.4s, transform 0.6s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(42, 7, 3, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(246, 220, 164, 0.12);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold-200);
}
.nav__brand img { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(246, 220, 164, 0.45); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
  font-family: var(--f-ui);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__menu a { position: relative; padding: 0.3rem 0; text-decoration: none; white-space: nowrap; color: var(--gold-100); }
.nav__menu a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold-300);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav__menu a:hover::after,
.nav__menu a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__menu a.is-active { color: var(--gold-200); }
.nav__menu .nav__cta {
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(246, 220, 164, 0.55);
  border-radius: 999px;
  transition: background-color 0.3s, color 0.3s;
}
.nav__menu .nav__cta:hover { background: var(--gold-200); color: var(--red-900); }
.nav__toggle { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 3vh) 0 20vh;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 50% 12%, rgba(242, 163, 58, 0.32), transparent 70%),
    radial-gradient(90% 55% at 50% 115%, rgba(6, 38, 37, 0.75), transparent 70%);
}
.hero__scene { position: absolute; inset: 0; pointer-events: none; }

.layer {
  position: absolute;
  will-change: transform;
  animation: layer-in 1.8s var(--ease-out) both;
  animation-delay: var(--in-d, 0.1s);
}
.layer img { width: 100%; }
@keyframes layer-in {
  from { opacity: 0; translate: var(--in-x, 0) var(--in-y, 60px); }
}

.l-sun { top: -9%; left: 0; right: 0; margin-inline: auto; width: clamp(280px, 32vw, 500px); --in-y: 120px; --in-d: 0s; }
.sun { animation: sun-glow 7s ease-in-out 1.8s infinite alternate; filter: drop-shadow(0 0 40px rgba(242, 163, 58, 0.55)); }
@keyframes sun-glow {
  to { transform: scale(1.06) rotate(4deg); filter: drop-shadow(0 0 70px rgba(242, 163, 58, 0.8)); }
}

.l-mountain-l { left: -3%; top: 3%; width: clamp(200px, 25vw, 400px); --in-x: -120px; --in-y: 0; --in-d: 0.15s; }
.l-mountain-r { right: -3%; top: 1%; width: clamp(200px, 25vw, 400px); --in-x: 120px; --in-y: 0; --in-d: 0.15s; }
.l-pagoda { right: 8%; top: 17%; width: clamp(64px, 7.5vw, 125px); --in-y: -40px; --in-d: 0.5s; }
.l-ribbon { right: 23%; top: 9%; width: clamp(120px, 13vw, 220px); opacity: 0.85; --in-x: 60px; --in-d: 0.6s; }
.l-cloud1 { left: 12%; top: 21%; width: clamp(170px, 21vw, 350px); --in-x: -80px; --in-y: 0; --in-d: 0.4s; }
.l-cloud2 { right: 13%; top: 37%; width: clamp(140px, 17vw, 290px); --in-x: 80px; --in-y: 0; --in-d: 0.5s; }
.l-cloud3 { left: 5%; top: 52%; width: clamp(90px, 9vw, 160px); --in-x: -60px; --in-y: 0; --in-d: 0.7s; }
.l-lotus-l { left: 2%; bottom: 14%; width: clamp(120px, 14vw, 240px); --in-d: 0.8s; }
.l-lotus-r { right: 4%; bottom: 13%; width: clamp(110px, 11.5vw, 200px); --in-d: 0.9s; }
.l-waves-l { left: -5%; bottom: -3%; width: clamp(320px, 43vw, 720px); --in-x: -60px; --in-y: 80px; --in-d: 0.3s; }
.l-waves-r { right: -5%; bottom: -2%; width: clamp(320px, 43vw, 720px); --in-x: 60px; --in-y: 80px; --in-d: 0.3s; }

.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Sea strip – sóng chạy ngang liên tục */
.sea {
  --sea-h: clamp(70px, 9vw, 130px);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--sea-h);
  z-index: 1;
}
.sea-row {
  /* wave-strip.png là ô lặp liền mạch (ảnh gốc ghép với bản lật gương), tỉ lệ 2914×177 */
  --tile: calc(var(--sea-h) * 16.4633);
  position: absolute;
  inset: 0;
  background: url("../assets/img/wave-strip.png") 0 100% / var(--tile) 100% repeat-x;
  animation: sea 92s linear infinite;
}
.sea-row--back {
  bottom: 38%;
  opacity: 0.55;
  filter: brightness(0.75) saturate(1.1);
  animation-duration: 140s;
  animation-direction: reverse;
}
@keyframes sea { to { background-position-x: calc(-1 * var(--tile)); } }

/* Hero content */
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__eyebrow {
  font-family: var(--f-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-300);
  animation: fade-up 1.2s var(--ease-out) 0.2s both;
}
.hero__title {
  margin: 0.6rem 0 1.4rem;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 9.6rem);
  line-height: 0.98;
  color: var(--gold-200);
  text-shadow: 0 6px 40px rgba(42, 7, 3, 0.65), 0 1px 0 rgba(255, 246, 226, 0.25);
}
.hero__title .line { display: block; white-space: nowrap; }
.hero__title .line:first-child { translate: -0.35em 0; }
.hero__title .line:last-child { translate: 0.35em 0; }
.char {
  display: inline-block;
  animation: char-in 1.2s var(--ease-out) both;
  animation-delay: calc(0.45s + var(--i) * 0.05s);
}
@keyframes char-in {
  from { opacity: 0; transform: translateY(0.45em) rotate(10deg); filter: blur(10px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.hero__tagline {
  max-width: 36em;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--gold-100);
  text-shadow: 0 2px 16px rgba(42, 7, 3, 0.8);
  animation: fade-up 1.2s var(--ease-out) 1.2s both;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
  animation: fade-up 1.2s var(--ease-out) 1.4s both;
}
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 40px);
  z-index: 3;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(246, 220, 164, 0.7);
  border-radius: 14px;
  animation: fade-up 1s var(--ease-out) 2s both;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-200);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Generic looping motions (dùng thuộc tính transform; parallax đặt trên wrapper) */
.float { animation: float 7s ease-in-out infinite; }
.float--d1 { animation-delay: -1.7s; }
.float--d2 { animation-delay: -3.4s; }
.float--d3 { animation-delay: -5.1s; }
@keyframes float { 50% { transform: translateY(-14px); } }

.drift { animation: drift 16s ease-in-out infinite alternate; }
.drift--rev { animation-duration: 21s; animation-direction: alternate-reverse; }
.drift--slow { animation-duration: 26s; }
@keyframes drift { from { transform: translateX(-24px); } to { transform: translateX(36px); } }

.sway { transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite alternate; }
.sway--rev { animation-delay: -3s; animation-duration: 7s; }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }

.bob { animation: bob 5s ease-in-out infinite alternate; }
.bob--rev { animation-delay: -2.5s; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(12px); } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative;
  z-index: 3;
  margin-top: -1rem; /* phủ nhẹ lên mép dưới lớp sóng để không lộ khe */
  padding: 1.05rem 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, var(--teal-700), var(--teal-900));
  border-block: 1px solid rgba(238, 197, 122, 0.45);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.7);
}
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.3vw, 1.9rem);
  white-space: nowrap;
  color: var(--gold-200);
}
.marquee__group i { font-style: normal; font-size: 0.7em; color: var(--sun); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding-block: clamp(84px, 11vw, 160px); }
.section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 76px); }
.section__head.center { margin-inline: auto; text-align: center; }
.section__head.center .kicker { justify-content: center; }
.section__head.center .kicker::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.section__sub { font-family: var(--f-ui); font-size: 0.95rem; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), clip-path 1.5s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal--zoom { transform: scale(0.9); }
.js .reveal--mask { transform: none; overflow: hidden; clip-path: inset(14% 10% 14% 10% round 48px); }
.js .reveal--mask.is-visible { clip-path: inset(0 0 0 0 round 0); }
.js .reveal--mask img { transform: scale(1.15); transition: transform 1.8s var(--ease-out); }
.js .reveal--mask.is-visible img { transform: none; }

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.facts { display: grid; gap: 0.9rem; margin-top: 2rem; }
.fact {
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(14, 79, 76, 0.55), rgba(8, 48, 47, 0.3));
  border: 1px solid rgba(79, 165, 151, 0.35);
  transition: border-color 0.3s, background-color 0.3s;
}
.fact:hover { border-color: rgba(238, 197, 122, 0.6); }
.fact dt {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-family: var(--f-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-200);
  background: var(--teal-700);
}
.fact dd { color: var(--gold-100); }
.fact__big { font-family: var(--f-display); font-weight: 700; font-size: 1.55rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-200) !important; }

.intro__art { position: relative; aspect-ratio: 1 / 1.02; }
.intro__moon-wrap { position: absolute; top: 2%; right: 4%; width: 58%; }
.intro__moon { filter: drop-shadow(0 0 70px rgba(242, 163, 58, 0.45)); }
.intro__mist { position: absolute; left: -4%; bottom: 14%; width: 108%; max-width: none; }
.intro__road { position: absolute; left: 14%; bottom: 0; width: 72%; }
.intro__cards-wrap { position: absolute; left: 0; top: 18%; width: 100%; }
.intro__cards { filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.5)); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line);
}
.stat { padding: 1.8rem 1.4rem 0; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  color: var(--gold-200);
}
.stat span { font-family: var(--f-ui); font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Idea ---------- */
.idea { background: linear-gradient(180deg, transparent, rgba(6, 38, 37, 0.42) 25%, rgba(6, 38, 37, 0.42) 75%, transparent); }
.idea__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.idea__art img { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45)); }
.tales { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.tales li {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 220, 164, 0.45);
  background: rgba(42, 7, 3, 0.35);
  font-family: var(--f-ui);
  font-size: 0.88rem;
  color: var(--gold-100);
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease-out);
}
.tales li:hover { background: var(--gold-200); color: var(--red-900); transform: translateY(-3px); }

/* ---------- Goals ---------- */
.goals__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); }
.goal { text-align: center; }
.goal__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 1.4rem; }
.goal__art::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, var(--gold-50), var(--gold-200) 55%, var(--gold-500));
  box-shadow: 0 0 0 1px rgba(246, 220, 164, 0.5), 0 0 70px rgba(242, 163, 58, 0.35);
  transition: transform 0.8s var(--ease-out);
}
.goal:hover .goal__art::before { transform: scale(1.06); }
.goal__art img { position: relative; width: 92%; filter: drop-shadow(0 18px 18px rgba(59, 12, 5, 0.35)); }
.goal p { font-size: 0.98rem; }

/* ---------- Card showcase ---------- */
.cards__row { display: flex; justify-content: center; gap: clamp(14px, 2.6vw, 38px); }
.tcard { width: clamp(150px, 20vw, 260px); display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.js .tcard.reveal { transform: translateY(140px) rotate(0deg); }
.js .tcard.reveal.is-visible,
.no-js .tcard { transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg)); }
.tcard__btn {
  all: unset;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--card-ratio);
  border-radius: 14px;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.6s var(--ease-out);
}
.tcard__btn:hover { --lift: -10px; transition-duration: 0.15s; }
.tcard__btn:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 6px; }
.tcard__tag {
  font-family: var(--f-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.flip__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease-in-out);
}
.is-flipped > .flip__inner,
.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 34px 50px -22px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(246, 220, 164, 0.25);
}
.flip__face img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.tcard__back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.6rem 1.3rem;
  text-align: center;
}
.tcard__back em { font-family: var(--f-ui); font-style: normal; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-300); }
.tcard__back b { font-family: var(--f-display); font-style: italic; font-size: clamp(1.5rem, 2.2vw, 2rem); color: var(--gold-200); }
.tcard__back span { font-size: 0.92rem; line-height: 1.55; color: var(--gold-100); }
.tcard__back b::after { content: ""; display: block; width: 40px; height: 1px; margin: 0.7rem auto 0.4rem; background: var(--gold-300); }

.glare {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 246, 226, 0.45), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transform: translateZ(2px);
  transition: opacity 0.4s;
}
.tcard__btn:hover .glare { opacity: 1; }

/* Mặt sau lá bài */
.card-back {
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 163, 58, 0.22), transparent 62%),
    repeating-linear-gradient(45deg, rgba(246, 220, 164, 0.07) 0 1.5px, transparent 1.5px 13px),
    repeating-linear-gradient(-45deg, rgba(246, 220, 164, 0.07) 0 1.5px, transparent 1.5px 13px),
    linear-gradient(160deg, var(--red-600), var(--red-900));
  box-shadow:
    inset 0 0 0 7px var(--red-800),
    inset 0 0 0 8.5px var(--gold-300),
    inset 0 0 0 13px var(--red-800),
    inset 0 0 0 14px rgba(238, 197, 122, 0.5),
    0 30px 50px -22px rgba(0, 0, 0, 0.75);
}
.card-back--logo::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 64%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 10px;
  background: url("../assets/img/logo.jpg") center / cover;
  box-shadow: 0 0 0 2px var(--gold-300), 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* ---------- Draw a card ---------- */
.draw { background: radial-gradient(60% 60% at 72% 50%, rgba(14, 79, 76, 0.5), transparent 70%); }
.draw__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.draw__intro .btn { margin-top: 1.6rem; }
.draw__result {
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  min-height: 9.5rem;
  border-left: 2px solid var(--sun);
  background: linear-gradient(90deg, rgba(42, 7, 3, 0.55), transparent);
  border-radius: 0 14px 14px 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.draw__result.is-shown { opacity: 1; transform: none; }
.draw__type { font-family: var(--f-ui); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-300); }
.draw__name { margin: 0.2rem 0 0.5rem; font-family: var(--f-display); font-style: italic; font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--gold-200); line-height: 1.15; }
.draw__desc { font-size: 0.98rem; }

.draw__table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 35%, rgba(26, 109, 104, 0.6), rgba(8, 48, 47, 0.85)),
    var(--teal-900);
  border: 1px solid rgba(79, 165, 151, 0.4);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.4), 0 50px 90px -50px rgba(0, 0, 0, 0.8);
}
/* --sx/--sy/--sr: độ lệch mỗi lá trong chồng bài; --shuffle-x/--shuffle-r: độ văng khi xáo */
.deck { --sx: -3px; --sy: -4px; --sr: -1.4deg; --shuffle-x: 58%; --shuffle-r: 14deg; position: relative; aspect-ratio: var(--card-ratio); cursor: pointer; }
.deck__card {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  transform: translate(calc(var(--i) * var(--sx)), calc(var(--i) * var(--sy))) rotate(calc(var(--i) * var(--sr)));
  transition: transform 0.6s var(--ease-out);
}
.deck:hover .deck__card { transform: translate(calc(var(--i) * var(--sx) * 2), calc(var(--i) * var(--sy) * 2)) rotate(calc(var(--i) * var(--sr) * 1.85)); }
.deck.is-shuffling .deck__card:nth-child(odd) { animation: shuffle-l 0.7s var(--ease-in-out) 2; animation-delay: calc(var(--i) * 45ms); }
.deck.is-shuffling .deck__card:nth-child(even) { animation: shuffle-r 0.7s var(--ease-in-out) 2; animation-delay: calc(var(--i) * 45ms); }
@keyframes shuffle-l { 50% { transform: translate(calc(var(--shuffle-x) * -1), -5%) rotate(calc(var(--shuffle-r) * -1)); } }
@keyframes shuffle-r { 50% { transform: translate(var(--shuffle-x), -5%) rotate(var(--shuffle-r)); } }

.draw__slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: var(--card-ratio);
  border-radius: 14px;
  border: 1.5px dashed rgba(246, 220, 164, 0.45);
}
.draw__slot::before {
  content: "Lá bài của bạn";
  padding: 0 1rem;
  text-align: center;
  text-wrap: balance;
  font-family: var(--f-ui);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 220, 164, 0.6);
}
.dcard { position: absolute; inset: 0; perspective: 1400px; opacity: 0; transition: opacity 0.3s; }
.dcard.is-in { opacity: 1; }
.dcard__front { transform: rotateY(180deg); }

/* ---------- Mechanics ---------- */
.mech__track { --medal: clamp(140px, 15vw, 210px); position: relative; }
.mech__line {
  position: absolute;
  top: calc(var(--medal) / 2);
  left: 12.5%; right: 12.5%;
  height: 2px;
  background: rgba(246, 220, 164, 0.15);
}
.mech__line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-300), var(--sun));
  box-shadow: 0 0 14px var(--sun);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.mech__steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 44px); }
.mech__step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.medal {
  position: relative;
  width: var(--medal);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--gold-300), 0 0 0 9px rgba(238, 197, 122, 0.14), 0 30px 50px -20px rgba(0, 0, 0, 0.65);
  transition: transform 0.7s var(--ease-out);
}
.medal img { width: 100%; height: 100%; object-fit: cover; }
.js .mech__step.reveal { transform: none; }
.js .mech__step.reveal .medal { transform: scale(0.5) rotate(-120deg); transition: transform 1.3s var(--ease-out) calc(var(--d) * 140ms); }
.js .mech__step.reveal.is-visible .medal { transform: none; }
.mech__step:hover .medal { transform: rotate(10deg) scale(1.05) !important; transition-delay: 0s !important; }
.mech__num { margin: 1.5rem 0 0.2rem; font-family: var(--f-ui); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3em; color: var(--sun); }
.mech__step h3 { margin-bottom: 0.5rem; font-family: var(--f-display); font-style: italic; font-size: 1.75rem; color: var(--gold-200); }
.mech__step p { font-size: 0.96rem; }
.mech__note {
  width: fit-content;
  max-width: 100%;
  margin: clamp(44px, 5vw, 70px) auto 0;
  padding: 1rem 1.8rem;
  border: 1px solid rgba(246, 220, 164, 0.35);
  border-radius: 14px;
  background: rgba(42, 7, 3, 0.45);
  text-align: center;
  color: var(--gold-100);
}

/* ---------- Values ---------- */
.values { overflow: hidden; }
.values__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.values__list { margin-top: 2rem; border-top: 1px solid var(--line); }
.value { display: grid; grid-template-columns: 3.2rem 1fr; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.value::before { content: attr(data-num); font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.4rem; line-height: 1.4; color: var(--sun); }
.value h3 { margin-bottom: 0.3rem; font-family: var(--f-display); font-size: 1.32rem; font-weight: 700; color: var(--gold-200); }
.value p { font-size: 0.97rem; }
.values__main { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45)); }
.values__clouds-wrap { position: absolute; top: 4%; right: -6%; width: min(44vw, 640px); pointer-events: none; opacity: 0.85; }

/* ---------- Partner ---------- */
.partner__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.partner__art img { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45)); }
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.6rem; }
.chips li {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 165, 151, 0.5);
  background: rgba(14, 79, 76, 0.6);
  font-family: var(--f-ui);
  font-size: 0.85rem;
  color: var(--gold-100);
}
.chips--gold li { border-color: rgba(246, 220, 164, 0.45); background: rgba(246, 220, 164, 0.1); }

/* ---------- Đội ngũ: cố vấn + các ban ---------- */
.stats.stats--team { grid-template-columns: repeat(3, 1fr); margin-top: clamp(28px, 3vw, 40px); }
.stats--team .stat:nth-child(3) { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.stats--team .stat span { display: block; line-height: 1.45; }

.kicker--center { justify-content: center; }
.kicker--center::after { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }

.team { margin-top: clamp(90px, 11vw, 150px); }
.advisors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin-top: 1.6rem; }
.advisor {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding: 0.9rem 2.2rem 0.9rem 0.9rem;
  border: 1px solid rgba(246, 220, 164, 0.3);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(125, 37, 19, 0.6), rgba(42, 7, 3, 0.35));
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.7);
}
.advisor__photo {
  flex: none;
  width: clamp(92px, 9vw, 124px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--gold-300), 0 0 0 9px rgba(238, 197, 122, 0.14);
}
.advisor__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.advisor:hover .advisor__photo img { transform: scale(1.07); }
.advisor__name { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.25; color: var(--gold-200); }
.advisor__role { margin-top: 0.35rem; font-family: var(--f-ui); font-size: 0.88rem; line-height: 1.5; }

.crew { margin-top: clamp(80px, 10vw, 130px); }
.crew__tabs { display: none; }
.js .crew__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; margin: 1.4rem 0 clamp(40px, 5vw, 64px); }
.crew__tab {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(246, 220, 164, 0.35);
  border-radius: 999px;
  background: rgba(42, 7, 3, 0.35);
  font-family: var(--f-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold-100);
  cursor: pointer;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s, transform 0.35s var(--ease-out);
}
.crew__tab:hover { border-color: var(--gold-300); transform: translateY(-2px); }
.crew__tab[aria-selected="true"] {
  border-color: transparent;
  background: linear-gradient(180deg, var(--gold-200), var(--gold-500));
  color: var(--red-900);
  font-weight: 600;
  box-shadow: 0 12px 26px -12px rgba(242, 163, 58, 0.8);
}

.crew__panel { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 84px); align-items: center; }
/* Không có JS: các ban xếp nối tiếp nhau; có JS: chỉ hiện ban đang chọn */
.crew__panel + .crew__panel { margin-top: clamp(60px, 8vw, 100px); }
.js .crew__panel + .crew__panel { margin-top: 0; }
.js .crew__panel:not(.is-active) { display: none; }
.crew__panel:focus-visible { outline: 2px solid var(--gold-200); outline-offset: 12px; border-radius: 12px; }

.crew__poster { position: relative; isolation: isolate; width: 100%; max-width: 540px; justify-self: center; }
.crew__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--teal-500), var(--teal-900));
  box-shadow: 0 0 0 1px rgba(246, 220, 164, 0.3);
  transform: rotate(5deg) translate(3%, 2%);
}
.crew__poster img {
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 246, 226, 0.5), 0 40px 60px -30px rgba(0, 0, 0, 0.85);
  transform: rotate(-2deg);
}

.crew__name { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; color: var(--gold-200); }
.crew__count { margin-top: 0.7rem; font-family: var(--f-ui); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-300); }
.crew__desc { max-width: 58ch; margin-top: 1rem; font-size: 0.98rem; line-height: 1.65; }
.crew__leads { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.crew__lead {
  margin: 0;
  padding: 0.85rem 1.3rem;
  border: 1px solid rgba(246, 220, 164, 0.45);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(242, 163, 58, 0.16), rgba(42, 7, 3, 0.3));
  line-height: 1.3;
}
.crew__lead small { display: block; margin-bottom: 0.3rem; font-family: var(--f-ui); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sun); }
.crew__lead b { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: clamp(1.2rem, 1.7vw, 1.45rem); color: var(--gold-100); }
.crew__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.8rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.crew__list li { position: relative; padding-left: 1.4rem; font-family: var(--f-ui); font-size: 0.95rem; line-height: 1.5; color: var(--gold-100); }
.crew__list li::before { content: "✦"; position: absolute; left: 0; top: 0.1em; font-size: 0.75em; color: var(--sun); }
.crew__list--roles { gap: 0.9rem 1.8rem; }
.crew__list--roles b { display: block; font-weight: 600; }
.crew__list--roles span { display: block; font-size: 0.8rem; color: var(--ink-soft); }

/* Hiệu ứng khi đổi ban (chạy lại mỗi lần panel được hiện) */
.js .crew__panels.is-visible .crew__panel.is-active .crew__poster img { animation: poster-in 0.9s var(--ease-out) both; }
.js .crew__panels.is-visible .crew__panel.is-active .crew__poster::before { animation: poster-back-in 1.2s var(--ease-out) both; }
.js .crew__panels.is-visible .crew__panel.is-active :is(.crew__name, .crew__count, .crew__desc, .crew__leads, .crew__list li) {
  animation: fade-up 0.7s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes poster-in { from { opacity: 0; transform: translateY(28px) rotate(-8deg) scale(0.94); } }
@keyframes poster-back-in { from { opacity: 0; transform: rotate(0deg) translate(0, 0); } }

.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; margin-top: clamp(90px, 11vw, 150px); }
.partner-why .why { margin-top: 0; }
.why__list { margin-top: 1.6rem; }
.why__list li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.why__list li + li { margin-top: 1rem; }
.why__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.6em;
  width: 11px; height: 11px;
  background: var(--sun);
  transform: rotate(45deg);
  box-shadow: 0 0 14px var(--sun);
}
.support { margin-top: 2.2rem; }
.support__label { font-family: var(--f-ui); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-300); }
.support .chips { margin-top: 0.8rem; }
.why__cta { margin-top: 2rem; }
.icon-doc { flex: none; }

.why__art { position: relative; aspect-ratio: 1; }
.why__moon-wrap { position: absolute; inset: 0; }
.why__moon { width: 100%; filter: drop-shadow(0 0 60px rgba(242, 163, 58, 0.3)); }
.why__bulb { position: absolute; left: -4%; top: 4%; width: 30%; filter: drop-shadow(0 0 30px rgba(242, 163, 58, 0.6)); }
.why__quote {
  position: absolute;
  right: -2%; bottom: 3%;
  width: min(80%, 400px);
  padding: 1.6rem 1.9rem;
  border-radius: 48% 52% 46% 54% / 58% 52% 48% 42%;
  background: radial-gradient(circle at 30% 25%, var(--gold-50), var(--gold-200));
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 246, 226, 0.6);
  text-align: center;
}
.why__quote span { display: block; font-family: var(--f-display); font-style: italic; font-size: 1rem; color: var(--red-700); text-wrap: balance; }
.why__quote strong { display: block; margin-top: 0.25rem; text-wrap: balance; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.4rem); line-height: 1.2; text-transform: uppercase; color: var(--red-800); }

/* ---------- Thanks ---------- */
.thanks { overflow: hidden; text-align: center; }
.thanks__gate {
  position: absolute;
  left: 50%; top: 50%;
  width: min(620px, 86%);
  translate: -50% -50%;
  opacity: 0.2;
  pointer-events: none;
}
.thanks__inner { position: relative; display: grid; place-items: center; min-height: 52vh; }
.thanks__quote p {
  max-width: 19em;
  margin-inline: auto;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1.25;
  color: var(--gold-200);
  text-wrap: balance;
}
.thanks__quote cite {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--f-ui);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-300);
  text-wrap: balance;
}
.js .thanks__quote.reveal { transform: none; opacity: 1; }
.word { display: inline-block; }
.js .word { opacity: 0; transform: translateY(0.5em); filter: blur(6px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out), filter 0.9s; transition-delay: calc(var(--i) * 60ms); }
.js .is-visible .word { opacity: 1; transform: none; filter: blur(0); }
.js .thanks__quote cite { opacity: 0; transition: opacity 1s 1.2s; }
.js .thanks__quote.is-visible cite { opacity: 1; }

/* ---------- Contact ---------- */
.contact { padding-bottom: 0; overflow: hidden; }
.contact__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.icon-fb { flex: none; }
.contact__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 2rem;
  padding: clamp(24px, 3.2vw, 42px);
  border-radius: 24px;
  border: 1px solid rgba(246, 220, 164, 0.22);
  background: rgba(42, 7, 3, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact__wide { grid-column: 1 / -1; }
.contact__list dt { margin-bottom: 0.25rem; font-family: var(--f-ui); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-300); }
.contact__list dd { font-size: 1.04rem; color: var(--gold-100); overflow-wrap: break-word; }
/* Tên bên trái, số điện thoại bên phải; màn hẹp thì số xuống dòng dưới tên */
.contact__sponsor dd > span { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 1rem; }
.contact__sponsor dd > span + span { margin-top: 0.35rem; }
.contact__sponsor dd a { white-space: nowrap; }
.contact__list a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
.contact__list a:hover { background-size: 100% 1px; }

.contact__scene { position: relative; height: clamp(260px, 30vw, 420px); margin-top: clamp(20px, 4vw, 60px); pointer-events: none; }
.contact__moon-wrap { position: absolute; right: 12%; top: 0; width: clamp(160px, 20vw, 300px); }
.contact__lake { position: absolute; right: -2%; bottom: 8%; width: min(62%, 780px); opacity: 0.9; }
.boat { position: absolute; left: 8%; bottom: 30%; z-index: 1; width: clamp(130px, 15vw, 230px); animation: boat-move 30s ease-in-out infinite alternate; }
.boat__img { animation: boat-bob 4s ease-in-out infinite alternate; transform-origin: 50% 80%; }
@keyframes boat-move { to { translate: 32vw 0; } }
@keyframes boat-bob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(8px) rotate(2deg); } }
.contact__lotus { position: absolute; bottom: 10%; z-index: 2; }
.contact__lotus--l { left: 2%; width: clamp(80px, 9vw, 140px); }
.contact__lotus--r { right: 3%; width: clamp(110px, 12vw, 190px); }
.sea--footer { --sea-h: clamp(80px, 9vw, 130px); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--red-950); border-top: 1px solid rgba(238, 197, 122, 0.25); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 2rem; padding-block: 1.8rem; }
.footer p { font-family: var(--f-ui); font-size: 0.82rem; }
.footer__copy { color: rgba(251, 236, 200, 0.55); }
.footer__social {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(246, 220, 164, 0.4);
  border-radius: 50%;
  color: var(--gold-200);
  transition: background-color 0.3s, color 0.3s, transform 0.45s var(--ease-out);
}
.footer__social:hover { background: var(--gold-200); color: var(--red-900); transform: translateY(-2px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .intro__grid, .idea__grid, .values__grid, .partner__grid, .why, .contact__grid, .draw__grid { grid-template-columns: 1fr; }
  .intro__art { max-width: 520px; width: 100%; margin-inline: auto; }
  .idea__art, .partner__art, .values__art { max-width: 560px; margin-inline: auto; }
  .partner__art { order: 2; }
  .why__art { max-width: 520px; width: 100%; margin-inline: auto; }
  .advisors { grid-template-columns: 1fr; max-width: 600px; margin-inline: auto; }
  .crew__panel { grid-template-columns: 1fr; }
  .crew__poster { max-width: 460px; }
  .goals__list { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .mech__steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .mech__line { display: none; }
  .cards__row { flex-wrap: wrap; row-gap: 2.4rem; }
  .tcard { width: clamp(140px, 40vw, 240px); }
  /* Khi bài xuống 2 hàng: bỏ thế xòe quạt (lệch cao thấp), chỉ giữ độ nghiêng nhẹ */
  .js .tcard.reveal.is-visible,
  .no-js .tcard { transform: rotate(calc(var(--r, 0deg) * 0.3)); }
  /* Kết quả rút bài chỉ chiếm chỗ khi đã có lá, tránh khoảng trống dưới nút */
  .draw__result:not(.is-shown) { display: none; }
  .draw__result.is-shown { animation: fade-up 0.7s var(--ease-out) both; }
  /* Mobile: bàn bài nằm ngay dưới mô tả, nút & kết quả xuống dưới */
  .draw__grid { row-gap: 0; }
  .draw__intro { display: contents; }
  .draw__table { order: 1; max-width: 560px; width: 100%; margin: 1.6rem auto 0; }
  .draw__intro .btn { order: 2; justify-self: start; }
  .draw__result { order: 3; }
  .values__clouds-wrap { width: 70vw; top: 1%; }
}

/* Menu thu gọn (7 mục không còn đủ chỗ dưới ~930px) */
@media (max-width: 960px) {
  .nav__toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 44px; height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .nav__toggle span { display: block; width: 24px; height: 2px; margin-inline: auto; background: var(--gold-200); transition: transform 0.45s var(--ease-out); }
  .nav--open .nav__toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav--open .nav__toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav.nav--open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    font-size: 1.35rem;
    background: radial-gradient(80% 50% at 50% 45%, rgba(125, 37, 19, 0.45), transparent 70%), var(--red-950);
    clip-path: circle(0 at calc(100% - 44px) 36px);
    visibility: hidden;
    transition: clip-path 0.7s var(--ease-in-out), visibility 0s 0.7s;
  }
  .nav--open .nav__menu { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; transition: clip-path 0.7s var(--ease-in-out), visibility 0s; }
  .nav__brand { position: relative; z-index: 2; }
}

@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .nav__brand span { font-size: 1.05rem; }
  .hero { padding-bottom: 24vh; }
  .hero__title .line:first-child { translate: -0.18em 0; }
  .hero__title .line:last-child { translate: 0.18em 0; }
  .l-mountain-l, .l-mountain-r { width: 40vw; top: 7%; }
  .l-pagoda { width: 15vw; top: 15%; right: 6%; }
  .l-ribbon, .l-cloud3 { display: none; }
  .l-cloud1 { width: 40vw; top: 26%; left: -6%; }
  .l-cloud2 { width: 34vw; top: 70%; right: -4%; }
  .l-sun { width: 70vw; top: -6%; }
  .l-lotus-l { width: 26vw; bottom: 12%; }
  .l-lotus-r { width: 22vw; bottom: 12%; }
  .l-waves-l, .l-waves-r { width: 78vw; }
  .hero__eyebrow { font-size: 0.66rem; letter-spacing: 0.16em; }
  .l-pagoda { width: 13vw; top: 11%; right: 4%; }
  .scroll-cue { display: none; }
  .section { padding-block: 68px; }
  .contact { padding-bottom: 0; }
  .kicker { gap: 0.6rem; font-size: 0.7rem; letter-spacing: 0.2em; }
  .kicker::before, .kicker--center::after, .section__head.center .kicker::after { width: 22px; }
  /* Cơ chế: dạng dòng thời gian dọc – huy hiệu bên trái, chữ bên phải */
  .mech__steps { row-gap: 2.2rem; }
  .mech__step { position: relative; display: grid; grid-template-columns: var(--medal) 1fr; grid-template-rows: auto auto 1fr; column-gap: 1.2rem; align-items: start; text-align: left; }
  .mech__step .medal { grid-row: 1 / -1; }
  .mech__step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(var(--medal) / 2 - 1px);
    top: calc(var(--medal) + 10px);
    bottom: calc(-2.2rem + 10px);
    width: 2px;
    background: linear-gradient(var(--gold-300), rgba(242, 163, 58, 0.25));
  }
  .mech__num { margin: 0.4rem 0 0; }
  .mech__step h3 { margin-bottom: 0.3rem; font-size: 1.55rem; line-height: 1.2; }
  .mech__step p { font-size: 0.95rem; }
  .why__quote { right: 0; bottom: 0; width: 86%; padding: 1.1rem 1.4rem; }
  .why__quote span { font-size: 0.88rem; }
  .why__quote strong { font-size: 1rem; }
  .thanks__inner { min-height: 40vh; }
  .thanks__quote cite { letter-spacing: 0.18em; }
  .contact__list a { display: inline-block; padding-block: 0.55rem; margin-block: -0.55rem; }
  .contact__sponsor dd > span { flex-direction: column; align-items: flex-start; }
  .contact__sponsor dd > span + span { margin-top: 0.7rem; }
  /* Cảnh hồ: nới rộng ảnh hồ để giấu mép cắt bên trái, thuyền nằm trên mặt nước */
  .contact__scene { height: 320px; }
  .contact__lake { width: 120%; max-width: none; right: -10%; bottom: 6%; }
  .boat { width: 110px; left: 4%; bottom: 24%; }
  .goals__list { grid-template-columns: 1fr; gap: 1.6rem; }
  .goal { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; text-align: left; }
  .goal__art { margin-bottom: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-inline: 0.9rem 0; }
  .mech__track { --medal: 92px; }
  .mech__steps { grid-template-columns: 1fr; }
  .contact__list { grid-template-columns: 1fr; }
  .advisor { padding: 0.8rem 1.2rem 0.8rem 0.8rem; border-radius: 28px; }
  .js .crew__tabs { gap: 0.45rem; }
  .crew__tab { padding: 0.5rem 0.95rem; font-size: 0.82rem; }
  .crew__poster { width: 90%; }
  .crew__list { grid-template-columns: 1fr; }
  .draw__table { gap: 18px; padding: 22px; }
  /* Chồng bài gọn lại để không lòi ra khỏi khung bàn; xáo bài không văng ra ngoài màn hình */
  .deck { --sx: -1.5px; --sy: -2.5px; --sr: -0.7deg; --shuffle-x: 14%; --shuffle-r: 6deg; }
  .footer__inner { flex-direction: column; text-align: center; }
}
