/* ============================================================
   SUNBII Technology — Design System v3
   Đỏ sâu #D84315 · Vàng #FBC02D · Đêm #263238 · Kem #FEF5F2
   Thêm: preloader, custom cursor, manifesto, horizontal showcase,
   values, numbers, hero glow — giữ nguyên toàn bộ class chính sách.
   ============================================================ */

:root {
  --red: #d84315;
  --red-deep: #bf360c;
  --gold: #fbc02d;
  --dark: #263238;
  --dark-2: #1d262b;
  --cream: #fef5f2;
  --paper: #fffdfa;
  --ink: #2b3439;
  --ink-soft: #5b6a72;
  --line: rgba(38, 50, 56, 0.12);
  --radius: 18px;
  --shadow-lg: 0 24px 60px -24px rgba(38, 50, 56, 0.28);
  --font: "Be Vietnam Pro", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: initial; scroll-padding-top: 96px; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--dark); }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container--narrow { width: min(860px, 92%); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--dark); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 120;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.65s ease, visibility 0.65s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.pre-inner { text-align: center; width: min(340px, 80vw); }
.pre-logo { margin: 0 auto 1.4rem; height: 58px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.pre-num {
  font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 900; line-height: 1;
  color: var(--gold); font-variant-numeric: tabular-nums;
}
.pre-bar { height: 2px; background: rgba(255, 255, 255, 0.14); margin: 1.5rem 0 1rem; overflow: hidden; }
.pre-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 0.25s ease;
}
.pre-note { font-size: 0.7rem; letter-spacing: 0.34em; color: rgba(255, 255, 255, 0.55); }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 130; pointer-events: none;
  border-radius: 50%; opacity: 0;
}
.cursor-dot { width: 7px; height: 7px; background: var(--gold); transform: translate(-50%, -50%); }
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid rgba(216, 67, 21, 0.6);
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.25s;
}
.cursor-ring.is-hover { width: 60px; height: 60px; border-color: var(--gold); }
@media (hover: none), (max-width: 900px) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  padding: 0.85rem 1.7rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.02rem; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-solid { background: var(--red); color: #fff; box-shadow: 0 12px 28px -12px rgba(216, 67, 21, 0.55); }
.btn-solid:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--dark); border: 1.5px solid rgba(38, 50, 56, 0.3); }
.btn-ghost:hover { border-color: var(--dark); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--dark); box-shadow: 0 12px 28px -12px rgba(251, 192, 45, 0.6); }
.btn-gold:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  background: rgba(255, 253, 250, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(38, 50, 56, 0.25); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0; gap: 1rem;
}
.brand-logo { height: 54px; width: auto; transition: height 0.3s var(--ease-out); }
.site-header.is-scrolled .brand-logo { height: 44px; }

.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.9rem); }
.nav-link {
  position: relative; text-decoration: none; font-weight: 600; font-size: 0.94rem;
  color: var(--ink); padding: 0.3rem 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 2px; transition: width 0.3s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; z-index: 85;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--dark); transition: 0.3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.8rem 1.4rem 1.4rem; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a { padding: 0.65rem 0.4rem; text-decoration: none; font-weight: 600; border-bottom: 1px dashed var(--line); }
.mobile-menu .btn { border-bottom: 0; margin-top: 0.8rem; }

.scroll-progress { height: 2.5px; background: transparent; }
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 0.08s linear;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(52% 42% at 82% 8%, rgba(251, 192, 45, 0.14), transparent 60%),
    radial-gradient(60% 50% at 12% 88%, rgba(216, 67, 21, 0.14), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  overflow: hidden;
  padding: 8.5rem 0 4.5rem;
}
#emberCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-glow {
  position: absolute; left: 0; top: 0;
  width: 520px; height: 520px; border-radius: 50%;
  transform: translate3d(-600px, -600px, 0) translate(-50%, -50%);
  background: radial-gradient(circle, rgba(251, 192, 45, 0.20), rgba(216, 67, 21, 0.08) 45%, transparent 68%);
  pointer-events: none;
  transition: opacity 0.5s;
  will-change: transform;
}
.hero-inner { position: relative; z-index: 2; }

.eyebrow {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.28em;
  color: var(--red); text-transform: uppercase; margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.8rem, 7.5vw, 6.2rem);
  font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; color: var(--dark);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(95deg, var(--red) 20%, var(--gold) 70%, var(--red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin-top: 1.5rem; max-width: 58ch; font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: var(--ink-soft);
}
.hero-sub strong { color: var(--dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
  margin-top: 3.2rem; max-width: 720px;
  border-top: 1px solid var(--line); padding-top: 1.6rem;
}
.hero-stats dt { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; color: var(--red); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-stats dd { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 44px; border: 2px solid rgba(38, 50, 56, 0.35); border-radius: 999px;
}
.hero-scroll span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 9px; margin-left: -2px;
  border-radius: 4px; background: var(--red);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0%, 100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } }

.line-mask {
  display: block; overflow: hidden;
  position: relative; isolation: isolate; transform: translateZ(0);
}
.line {
  display: block; transform: translateY(112%); will-change: transform;
  padding-block: 0.09em; margin-block: -0.09em;
}
html.no-js .line { transform: none; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--dark); color: rgba(255, 253, 250, 0.9);
  overflow: hidden; padding: 0.9rem 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 2.4rem; width: max-content;
  will-change: transform;
}
.marquee-track span { font-weight: 800; letter-spacing: 0.3em; font-size: 0.85rem; white-space: nowrap; }
.marquee-track i { color: var(--gold); font-style: normal; }

/* ---------- Sections chung ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section--alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.section-title {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 900; line-height: 1.06; letter-spacing: -0.025em; color: var(--dark);
}
.section-title em {
  font-style: normal;
  background: linear-gradient(95deg, var(--red) 15%, var(--gold) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-lead { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.05rem; max-width: 56ch; }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--dark); color: #eef1f2; overflow: hidden; }
.manifesto .eyebrow { color: var(--gold); }
.manifesto-text {
  font-size: clamp(1.7rem, 4.4vw, 3.4rem);
  font-weight: 800; line-height: 1.28; letter-spacing: -0.02em;
  max-width: 1000px;
}
.manifesto-text .mw {
  display: inline-block; opacity: 0.14;
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out), filter 0.5s;
  transform: translateY(0.15em);
}
.manifesto-text .mw.is-lit { opacity: 1; transform: translateY(0); }
.manifesto-text em { font-style: normal; color: var(--gold); }
.manifesto-text em .mw { color: inherit; }
html.no-js .manifesto-text .mw { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .manifesto-text .mw { opacity: 1 !important; transform: none !important; }
}

.manifesto-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem;
  margin-top: clamp(2.6rem, 6vw, 4.4rem);
}
.manifesto-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, background 0.3s;
}
.manifesto-item:hover { transform: translateY(-5px); border-color: rgba(251, 192, 45, 0.4); background: rgba(251, 192, 45, 0.05); }
.mi-index {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: #fff; font-weight: 900; font-size: 0.95rem; margin-bottom: 1rem;
}
.manifesto-item h3 { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.manifesto-item p { font-size: 0.92rem; color: rgba(238, 241, 242, 0.72); }

/* ---------- Horizontal showcase ---------- */
.showcase { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); }
.showcase-pin {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.showcase-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.showcase-head .section-title { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.showcase-hint {
  margin-top: 0.9rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.3em;
  color: var(--red);
}
.showcase-track {
  display: flex; gap: 1.4rem; padding-inline: max(4vw, calc((100vw - 1180px) / 2));
  will-change: transform;
}
.panel {
  position: relative; flex: 0 0 auto;
  width: min(520px, 82vw);
  display: flex; flex-direction: column;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.panel:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.panel-index {
  position: absolute; top: 1rem; left: 1.2rem; z-index: 2;
  font-weight: 900; font-size: 0.85rem; letter-spacing: 0.16em;
  color: var(--dark); background: rgba(255, 255, 255, 0.9);
  border-radius: 999px; padding: 0.35rem 0.85rem;
  backdrop-filter: blur(4px);
}
.panel-media {
  height: 230px; background-size: cover; background-position: center;
  transition: transform 0.6s var(--ease-out), filter 0.4s;
}
.panel:hover .panel-media { transform: scale(1.045); }
.panel-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.panel-body h3 { font-size: 1.35rem; font-weight: 800; color: var(--dark); }
.panel-body p { font-size: 0.94rem; color: var(--ink-soft); flex: 1; }
.panel-end {
  align-items: center; justify-content: center; text-align: center;
  background: var(--dark); color: rgba(255, 255, 255, 0.85);
  font-weight: 900; font-size: 1.4rem; line-height: 1.5; letter-spacing: 0.06em;
}
.panel-end em { font-style: normal; color: var(--gold); }

@media (max-width: 1023px) {
  .showcase-track { flex-direction: column; padding-inline: 4%; }
  .panel { width: 100%; }
  .panel-end { padding: 2.4rem 1rem; }
  .showcase-hint { display: none; }
}

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.value-card {
  position: relative; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.8rem; overflow: hidden;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.6s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
}
.value-card.is-tilting {
  will-change: transform;
  transition: box-shadow 0.4s, border-color 0.3s; /* đang tilt: transform phản tức thì */
}
.value-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(216, 67, 21, 0.35); }
/* Quầng sáng theo chuột — vùng gradient CỐ ĐỊNH chỉ được DỊCH bằng transform
   (composite-only, không repaint như background-position) */
.value-card::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 560px; height: 380px; margin: -190px 0 0 -280px;
  background: radial-gradient(closest-side, rgba(251, 192, 45, 0.15), rgba(251, 192, 45, 0));
  transform: translate3d(var(--gx, 0px), var(--gy, 0px), 0);
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.value-card:hover::before { opacity: 1; }
.value-num {
  position: relative;
  font-weight: 900; font-size: 0.8rem; letter-spacing: 0.2em;
  color: var(--red);
  display: inline-block; margin-bottom: 1rem;
  border-bottom: 2px solid var(--gold); padding-bottom: 0.3rem;
}
.value-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--dark); margin-bottom: 0.55rem; position: relative; }
.value-card p { font-size: 0.95rem; color: var(--ink-soft); position: relative; }

/* ---------- Numbers ---------- */
.numbers {
  background:
    radial-gradient(46% 60% at 85% 20%, rgba(251, 192, 45, 0.14), transparent 60%),
    var(--dark);
  color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.numbers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.number-item b {
  display: block; font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 900;
  color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.number-item span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.66); }

/* ---------- Ecosystem media filters (dùng chung cho panel) ---------- */
.eco-media--warm { filter: sepia(0.2) saturate(1.1); }
.eco-media--dark { filter: saturate(0.9) brightness(0.92); }
.eco-media--gold { filter: sepia(0.3) saturate(1.25); }
.eco-media--red { filter: sepia(0.45) hue-rotate(-25deg) saturate(1.2); }
.eco-link {
  font-weight: 700; font-size: 0.85rem; color: var(--red);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.eco-link i { font-style: normal; transition: transform 0.3s; }
.panel:hover .eco-link i, .eco-card:hover .eco-link i { transform: translateX(3px); }

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
.project-card {
  display: flex; flex-direction: column; background: var(--cream);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-card--wide { grid-column: 1 / -1; flex-direction: row; }
.project-card--wide .project-media { width: 46%; min-height: 300px; }
.project-media {
  height: 210px; background-size: cover; background-position: center;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.project-card:hover .project-media { transform: scale(1.05); }
.project-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.project-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.22em; color: var(--red); }
.project-body h3 { font-size: 1.35rem; font-weight: 800; color: var(--dark); }
.project-body p { font-size: 0.94rem; color: var(--ink-soft); flex: 1; }
.text-cta {
  font-weight: 700; font-size: 0.92rem; color: var(--dark); text-decoration: none;
  display: inline-flex; gap: 0.4rem; align-items: center; width: fit-content;
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.text-cta:hover { color: var(--red); }
.text-cta i { font-style: normal; transition: transform 0.3s; }
.text-cta:hover i { transform: translateX(4px); }

/* ---------- Pride ---------- */
.pride {
  background:
    radial-gradient(46% 40% at 88% 12%, rgba(251, 192, 45, 0.13), transparent 60%),
    var(--dark);
  color: #eef1f2;
}
.pride .eyebrow { color: var(--gold); }
.pride .section-title { color: #fff; }
.pride .section-title em {
  background: linear-gradient(95deg, var(--gold), #ffe082 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pride-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.pride-copy p { color: rgba(238, 241, 242, 0.78); margin-top: 1.2rem; max-width: 56ch; }
.pride-quote {
  margin-top: 1.6rem; padding-left: 1.2rem;
  border-left: 3px solid var(--gold); font-size: 1.05rem; font-style: italic;
  color: rgba(238, 241, 242, 0.9);
}
.founder-card {
  margin-top: 2rem; padding: 1.3rem 1.4rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; backdrop-filter: blur(6px);
}
.founder-name { font-weight: 700; }
.founder-link { color: var(--gold); text-decoration: none; border-bottom: 1px dashed rgba(251, 192, 45, 0.5); }
.founder-link:hover { border-bottom-style: solid; }
.founder-note { font-size: 0.85rem !important; color: rgba(238, 241, 242, 0.6) !important; margin-top: 0.3rem !important; }
.founder-links { margin-top: 0.9rem !important; }
.pride-figure img { border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.pride-figure figcaption { margin-top: 0.9rem; font-size: 0.82rem; color: rgba(238, 241, 242, 0.55); text-align: center; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--red), var(--gold));
  border-radius: 2px; opacity: 0.45;
}
.timeline-item { position: relative; padding: 0 0 2.2rem 1rem; display: grid; grid-template-columns: 130px 1fr; gap: 1.2rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.2rem; top: 0.42rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--red);
  box-shadow: 0 0 0 4px rgba(216, 67, 21, 0.14);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-year { font-weight: 900; color: var(--red); font-size: 1.05rem; letter-spacing: 0.02em; }
.timeline-item h3 { font-size: 1.12rem; font-weight: 800; color: var(--dark); margin-bottom: 0.3rem; }
.timeline-item p { color: var(--ink-soft); font-size: 0.95rem; max-width: 60ch; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-list details {
  background: var(--cream); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.05rem 1.3rem; transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-list details[open] { border-color: rgba(216, 67, 21, 0.4); box-shadow: 0 16px 40px -28px rgba(216, 67, 21, 0.5); }
.faq-list summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--dark);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 1.02rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--red);
  border-radius: 2px; transition: transform 0.3s var(--ease-out);
}
.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after { width: 2px; height: 16px; }
details[open] .faq-icon::after { transform: rotate(90deg); }
.faq-body { margin-top: 0.8rem; color: var(--ink-soft); font-size: 0.95rem; }
.faq-body a { color: var(--red); font-weight: 600; }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(180deg, var(--dark-2), var(--dark));
}
.contact .eyebrow { color: var(--gold); }
.contact .section-title { color: #fff; }
.contact .section-title em {
  background: linear-gradient(95deg, var(--gold), #ffe082);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.contact .section-lead { margin-inline: auto; color: rgba(255, 255, 255, 0.72); }
.contact-inner { position: relative; z-index: 2; }
#emberCanvasFooter { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.55; }
.contact-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
  margin: 2.4rem auto; max-width: 980px;
}
.contact-card {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px; padding: 1.3rem 1rem; text-decoration: none;
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease-out), border-color 0.3s, background 0.3s;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(251, 192, 45, 0.55); background: rgba(251, 192, 45, 0.08); }
.contact-card b { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--gold); }
.contact-card span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.78); word-break: break-word; }
.contact .btn-gold { margin-top: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
  padding: 3.4rem 0 2.6rem;
}
.footer-brand p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 1rem; max-width: 34ch; }
.footer-brand a { color: var(--red); font-weight: 600; text-decoration: none; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--ink-soft) !important; font-weight: 600; }
.footer-social a:hover { color: var(--red) !important; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer nav h3 {
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 0.5rem;
}
.site-footer nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 0.92rem;
  transition: color 0.25s, transform 0.25s; width: fit-content;
}
.site-footer nav a:hover { color: var(--red); transform: translateX(3px); }
.footer-banner img { width: 100%; height: auto; object-fit: cover; }
.footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding: 1.1rem 0; border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--ink-soft);
}

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  z-index: 95; width: min(720px, 94%);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--dark); color: rgba(255, 255, 255, 0.85);
  padding: 0.95rem 1.3rem; border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
  font-size: 0.86rem;
  opacity: 0; transform: translateX(-50%) translateY(20px);
  animation: cookieIn 0.5s var(--ease-out) 0.6s forwards;
}
@keyframes cookieIn { to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.cookie-bar a { color: var(--gold); font-weight: 600; }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-bar .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.cookie-bar .btn-solid { background: var(--gold); color: var(--dark); }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--dark); color: #fff; font-size: 1.1rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.to-top:hover { transform: translateY(-3px); background: var(--red); }

/* ---------- Reveal states ---------- */
.reveal { opacity: 0; transform: translateY(26px); will-change: transform, opacity; }
html.no-js .reveal, html.gsap-fail .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .line { transform: none !important; }
  .marquee-track, .hero-scroll span { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .manifesto-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card--wide { flex-direction: column; }
  .project-card--wide .project-media { width: 100%; min-height: 0; height: 210px; }
  .pride-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .timeline-item { grid-template-columns: 1fr; gap: 0.3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .cookie-bar { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   POLICY PAGES (chính sách) — giữ nguyên cho 4 trang con
   ============================================================ */
.policy-hero {
  background:
    radial-gradient(50% 60% at 85% 0%, rgba(251, 192, 45, 0.16), transparent 60%),
    linear-gradient(180deg, #fff, var(--cream));
  padding: 9.5rem 0 3.4rem;
}
.breadcrumb { font-size: 0.84rem; color: var(--ink-soft); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--red); text-decoration: none; font-weight: 600; }
.policy-hero h1 {
  margin-top: 1rem; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900;
  letter-spacing: -0.02em; color: var(--dark); line-height: 1.1;
}
.policy-meta { margin-top: 1rem; font-size: 0.85rem; color: var(--ink-soft); }

.policy-body { padding: 3rem 0 4.5rem; }
.policy-body .container { max-width: 860px; }
.policy-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.6rem); margin-bottom: 1.4rem;
}
.policy-card h2 {
  font-size: 1.35rem; color: var(--dark); margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.policy-card h2 .h-index {
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.16em; color: #fff;
  background: var(--red); border-radius: 8px; padding: 0.28rem 0.6rem; flex-shrink: 0;
}
.policy-card h3 { font-size: 1.05rem; color: var(--dark); margin: 1.2rem 0 0.4rem; }
.policy-card p, .policy-card li { color: var(--ink-soft); font-size: 0.96rem; }
.policy-card ul, .policy-card ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
.policy-card strong { color: var(--dark); }
.policy-card a { color: var(--red); font-weight: 600; }
.policy-card table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; font-size: 0.9rem; }
.policy-card th, .policy-card td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; }
.policy-card th { background: var(--cream); color: var(--dark); font-weight: 700; }
.policy-note {
  background: rgba(251, 192, 45, 0.12); border: 1px solid rgba(251, 192, 45, 0.4);
  border-radius: 12px; padding: 1rem 1.2rem; margin-top: 1rem;
  font-size: 0.92rem; color: var(--ink);
}
.policy-toc {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem;
}
.policy-toc a {
  font-size: 0.82rem; font-weight: 600; text-decoration: none; color: var(--dark);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.9rem; transition: 0.25s;
}
.policy-toc a:hover { border-color: var(--red); color: var(--red); }
