@charset "UTF-8";
/* ============ TOKENS ============ */
:root {
  --void: #000000;
  --ink: #070605;
  --obsidian: #0c0a08;
  --charcoal: #161311;
  --bone: #EEE3CF;
  /* Sáng hơn #a89c84 — đọc tốt hơn trên nền đen, vẫn secondary vs --bone */
  --bone-dim: #bdb2a3;
  --bone-fade: rgba(238, 227, 207, .55);
  --champagne: #D8B785;
  --amber: #E9B766;
  --amber-soft: #C99A50;
  --amber-glow: rgba(233, 183, 102, .55);
  --line: rgba(238, 227, 207, .10);
  --line-strong: rgba(238, 227, 207, .22);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  /* Type scale (mono / meta): desktop 1920 — tăng thêm một bậc dễ đọc */
  --type-mono-min: clamp(10px, 0.85vw, 12px);
  --type-mono-xs: 12px;
  --type-mono-sm: 13px;
  --type-mono-md: 14px;
  --type-sans-caption: 15px;
  --type-body: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  line-height: 1.55;
  font-size: var(--type-body);
}

img {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* film grain + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  background: radial-gradient(ellipse 130% 90% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 91;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ============ TOP NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 36px;
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone-dim);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
  pointer-events: none;
}
.nav > * {
  pointer-events: auto;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav .brand img {
  height: 18px;
  opacity: 1;
}
@media screen and (max-width: 900px) {
  .nav .brand span {
    font-size: calc(var(--type-mono-xs) - 4px);
  }
}
.nav .meta {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav .reg {
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 9px 16px;
  color: var(--bone);
  transition: 0.4s ease;
}
.nav .reg .reg__orbit {
  display: none;
}
.nav .reg .reg__label {
  display: inline-block;
}
.nav .reg:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.nav .reg:hover .reg__label {
  color: var(--amber);
}

@keyframes nav-reg-orbit-dash {
  to {
    stroke-dashoffset: -100;
  }
}
@keyframes nav-reg-cta-breathe {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(233, 183, 102, 0.45), 0 0 18px rgba(233, 183, 102, 0.2), 0 0 36px rgba(233, 183, 102, 0.08);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(233, 183, 102, 0.65), 0 0 26px rgba(233, 183, 102, 0.35), 0 0 52px rgba(233, 183, 102, 0.16);
  }
}
/* Desktop: góc phải nav; CTA nhẹ hơn + viền conic chạy + thở nhẹ */
@media (min-width: 901px) {
  .nav {
    padding: 22px clamp(28px, 2.4vw, 48px) 24px;
  }
  .nav .meta {
    gap: clamp(24px, 2.2vw, 40px);
    align-items: center;
  }
  .nav .meta > span:first-of-type {
    color: var(--bone);
    font-size: clamp(12px, 0.42vw + 11px, 11px);
    letter-spacing: 0.24em;
    font-weight: 100;
  }
  .nav .reg {
    --reg-orbit: 3px;
    position: relative;
    z-index: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    overflow: visible;
    isolation: isolate;
    padding: var(--reg-orbit);
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
  }
  .nav .reg .reg__orbit {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .nav .reg .reg__orbit-path {
    fill: none;
    stroke: var(--amber);
    stroke-width: 2px;
    vector-effect: non-scaling-stroke;
    stroke-linejoin: miter;
    stroke-linecap: square;
    stroke-dasharray: 34 66;
    animation: nav-reg-orbit-dash 2.5s linear infinite;
  }
  .nav .reg .reg__label {
    position: relative;
    z-index: 3;
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 24px;
    border-radius: 0;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-align: center;
    color: var(--amber);
    text-shadow: 0 0 20px rgba(233, 183, 102, 0.45), 0 0 42px rgba(233, 183, 102, 0.2);
    background: linear-gradient(165deg, rgba(18, 15, 12, 0.82) 0%, rgba(8, 7, 6, 0.92) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, text-shadow 0.35s ease;
    animation: nav-reg-cta-breathe 2.6s ease-in-out infinite;
  }
  .nav .reg::after {
    content: "";
    position: absolute;
    inset: var(--reg-orbit);
    z-index: 2;
    border-radius: 0;
    background: linear-gradient(165deg, rgba(14, 12, 10, 0.94) 0%, rgba(6, 5, 4, 0.98) 100%);
    pointer-events: none;
  }
  .nav .reg:hover .reg__label {
    color: var(--void);
    text-shadow: none;
    background: linear-gradient(165deg, rgb(245, 210, 150) 0%, var(--amber) 55%, var(--amber-soft) 100%);
    animation: none;
    box-shadow: 0 0 0 1px rgba(233, 183, 102, 0.55);
  }
  .nav .reg:hover .reg__orbit-path {
    animation-play-state: paused;
    stroke: var(--champagne);
    opacity: 0.95;
  }
  .nav .reg:hover::after {
    background: linear-gradient(165deg, rgba(233, 183, 102, 0.12) 0%, rgba(12, 10, 9, 0.55) 100%);
  }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .nav .reg .reg__orbit-path {
    animation: none;
    stroke-opacity: 0.5;
  }
  .nav .reg .reg__label {
    animation: none;
  }
}
/* ============ CHAPTER RAIL — 6 MAIN SECTIONS ============ */
.rail {
  position: fixed;
  left: clamp(12px, 1.6vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 75;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 24px);
  font-family: var(--mono);
  font-size: var(--type-mono-min);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.rail a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bone-dim);
  opacity: 0.45;
  transition: 0.5s ease;
}
.rail a .num {
  font-size: var(--type-mono-xs);
  color: var(--bone-dim);
  min-width: 14px;
}
.rail a .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bone-dim);
  transition: 0.5s ease;
}
.rail a .lab {
  transform: translateX(-6px);
  opacity: 0;
  transition: 0.5s ease;
  white-space: nowrap;
}
.rail a:hover, .rail a.active {
  opacity: 1;
  color: var(--bone);
}
.rail a:hover .dot, .rail a.active .dot {
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber-glow);
}
.rail a:hover .lab, .rail a.active .lab {
  transform: translateX(0);
  opacity: 1;
}

/* ============ PROGRESS THREAD ============ */
.thread {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  z-index: 81;
}
.thread span {
  display: block;
  height: 100%;
  background: linear-gradient(to right, var(--champagne), var(--amber));
  width: 0;
  transition: width 0.15s ease;
}

/* ============ COMMON ============ */
section {
  position: relative;
  width: 100%;
}

.eyebrow {
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.eyebrow .em {
  color: var(--amber);
}

.transition-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.22vw, 20px);
  color: var(--bone-dim);
  letter-spacing: 0.01em;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 14px;
}
.transition-line::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--champagne);
  opacity: 0.5;
  flex-shrink: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 {
  transition-delay: 0.18s;
}
.reveal.delay-2 {
  transition-delay: 0.36s;
}
.reveal.delay-3 {
  transition-delay: 0.54s;
}
.reveal.delay-4 {
  transition-delay: 0.72s;
}
.reveal.delay-5 {
  transition-delay: 0.9s;
}
.reveal.delay-6 {
  transition-delay: 1.08s;
}
.reveal.delay-7 {
  transition-delay: 1.26s;
}

/* ============ 1 · THE THRESHOLD ============ */
.threshold {
  --kv-art-max: 1920px;
  /* 0 @ 900px wide, 1 @ 1920 — scales typography & chrome between mobile + desktop artboards */
  --th-p: clamp(0, calc((100vw - 900px) / 1020px), 1);
  --kv-safe-pad: calc(16px + (48px - 16px) * var(--th-p));
  --kv-light-w: calc(140px + (540px - 140px) * var(--th-p));
  /* Prefer svh then dvh — avoids 100vh vs mobile browser chrome; dvh tracks visible viewport */
  min-height: max(680px, 100svh);
  min-height: max(680px, 100dvh);
  height: 100svh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* ~midpoint toward 1920 artboard: drop vertical feather on side lights */
}
@media (min-width: 1400px) {
  .threshold .kv .pos-light-left,
  .threshold .kv .pos-light-right {
    -webkit-mask-image: none;
    mask-image: none;
  }
}
@media (max-height: 560px) and (orientation: landscape) {
  .threshold {
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    --kv-light-w: clamp(48px, 12vw, 160px);
  }
  .threshold .center .threshold-hero-mark {
    height: min(42svh, 220px);
    width: min(88vw, 720px);
  }
  .threshold .kv .pos-light-right {
    opacity: 0.65;
  }
  .threshold .threshold-bottom .scroll-cue--threshold {
    gap: 6px;
  }
  .threshold .threshold-bottom .scroll-cue--threshold .stem {
    height: 22px;
  }
}
@media (max-width: 900px) {
  .threshold {
    /* Mobile: never lock to legacy 100vh — use dynamic viewport + scroll if content exceeds visible area */
    min-height: max(100svh, 640px);
    min-height: max(100dvh, 640px);
    height: auto;
    max-height: none;
    /* Column flex: full-width stack — avoids row + flex-start pinning content to the left */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    overflow-x: hidden;
    /* Cuộn dọc do document xử lý — tránh scrollport lồng + overscroll contain chặn chuyển section trên mobile */
    overflow-y: visible;
    --kv-light-w: clamp(48px, 12vw, 140px);
  }
  .threshold::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 32%, rgba(0, 0, 0, 0.14) 58%, rgba(0, 0, 0, 0.82) 100%);
  }
  .threshold .kv {
    /* Stretch KV to full scroll height of section (in-flow height from .center) */
    position: absolute;
    inset: 0;
    min-height: 100%;
  }
  .threshold .kv .hero-container {
    width: 100%;
    max-width: none;
    min-height: 100%;
    box-shadow: inset 0 0 48px 16px rgba(0, 0, 0, 0.16);
  }
  .threshold .kv .pos-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    transform: none;
  }
  .threshold .kv .pos-bg img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center center;
    transform-origin: center center;
    animation: kv-wave-bg-mob 8.33s ease-in-out infinite alternate;
    will-change: transform;
    mix-blend-mode: normal;
  }
  .threshold .kv .pos-light-left,
  .threshold .kv .pos-light-right {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 96%, transparent 100%);
  }
  .threshold .center .threshold-hero-mark img {
    width: 100%;
    height: auto;
    margin-inline: auto;
    /* svh fallback, then dvh — cap KV art when browser chrome reduces visible height */
    max-height: min(36svh, 300px);
    max-height: min(32dvh, 36svh, 300px);
    object-fit: contain;
  }
  .threshold .threshold-dej {
    font-size: clamp(28px, 8vw, 52px);
  }
  .threshold .logo-revision {
    width: 100%;
    justify-content: center;
  }
  .threshold .logo-revision img {
    max-width: 118px;
    width: min(52vw, 118px);
    margin-inline: auto;
  }
  .threshold .center {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: none;
    min-height: 0;
    margin-inline: 0;
    box-sizing: border-box;
    /* Clear fixed .nav + safe area; extra breathing room vs URL bar */
    padding: max(72px, env(safe-area-inset-top, 0px) + 56px) 18px max(28px, env(safe-area-inset-bottom, 0px) + 20px);
    gap: clamp(10px, 2.5svh, 14px);
    gap: min(14px, max(10px, 2.5dvh));
    justify-content: flex-start;
    align-items: center;
  }
  .threshold .threshold-intro {
    flex: 0 0 auto;
    max-width: 100%;
  }
  .threshold .center .threshold-hero-mark {
    flex: 1 1 auto;
    min-height: 0;
    width: min(80vw, 100%);
    max-width: 100%;
    height: auto;
    align-self: center;
    margin-inline: auto;
  }
  .threshold .threshold-type-row {
    margin-top: 0;
  }
  .threshold .threshold-bottom {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    max-width: 100%;
  }
  .threshold .threshold-bottom__col {
    align-items: center;
    text-align: center;
    margin-top: 0;
  }
  .threshold .threshold-bottom__col--dates {
    order: 1;
  }
  .threshold .threshold-bottom__col--venue {
    order: 2;
  }
  .threshold .threshold-bottom__col--center {
    order: 3;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    gap: 0.5em;
    justify-content: flex-start;
  }
  .threshold .threshold-bottom .scroll-cue--threshold {
    margin-top: 6px;
  }
  .threshold .threshold-bottom__col--center .threshold-tagline {
    max-width: 100%;
  }
  .threshold .threshold-meta__main,
  .threshold .threshold-meta__sub {
    text-align: center;
  }
}
@media (max-width: 480px) {
  .threshold {
    --kv-light-w: clamp(32px, 10vw, 80px);
  }
  .threshold .kv .pos-light-right {
    display: none !important;
  }
}
@media (max-width: 420px) {
  .threshold {
    min-height: max(100svh, 560px);
    min-height: max(100dvh, 560px);
  }
  .threshold .center {
    padding: max(62px, env(safe-area-inset-top, 0px) + 46px) 14px max(18px, env(safe-area-inset-bottom, 0px) + 14px);
    gap: clamp(8px, 1.8dvh, 12px);
  }
  .threshold .logo-revision img {
    width: min(44vw, 100px);
  }
  .threshold .threshold-intro {
    font-size: clamp(10px, 2.85vw, 12px);
    line-height: 1.48;
    letter-spacing: 0.1em;
    max-width: 30ch;
    text-wrap: balance;
  }
  .threshold .center .threshold-hero-mark {
    flex: 0 0 auto;
    width: min(72vw, 270px);
  }
  .threshold .center .threshold-hero-mark img {
    max-height: min(40dvh, 85vh);
  }
  .threshold .threshold-bottom {
    gap: 12px;
    padding-top: 12px;
    margin-top: 4px;
  }
  .threshold .threshold-meta__main {
    font-size: clamp(11px, 2.8vw, 12px);
    letter-spacing: 0.1em;
  }
  .threshold .threshold-meta__sub {
    font-size: clamp(10px, 2.5vw, 11px);
    line-height: 1.35;
  }
  .threshold .threshold-tagline {
    font-size: clamp(14px, 4.2vw, 16px);
    line-height: 1.4;
  }
}
@media (max-width: 420px) and (max-height: 540px) {
  .threshold {
    min-height: 100svh;
    min-height: 100dvh;
  }
  .threshold .center {
    padding: max(56px, env(safe-area-inset-top, 0px) + 40px) 12px max(14px, env(safe-area-inset-bottom, 0px) + 10px);
    gap: clamp(6px, 1.2dvh, 10px);
  }
  .threshold .threshold-intro {
    font-size: clamp(9px, 2.5vw, 10px);
    line-height: 1.4;
    letter-spacing: 0.085em;
  }
  .threshold .center .threshold-hero-mark {
    width: min(68vw, 236px);
  }
  .threshold .center .threshold-hero-mark img {
    max-height: min(20dvh, 98px);
  }
  .threshold .threshold-bottom {
    gap: 10px;
    padding-top: 10px;
    margin-top: 2px;
  }
  .threshold .threshold-bottom__col--center {
    gap: 0.34em;
    padding-top: 10px;
  }
  .threshold .threshold-bottom .scroll-cue--threshold {
    font-size: 9px;
    letter-spacing: 0.34em;
  }
  .threshold .threshold-bottom .scroll-cue--threshold .stem {
    height: 18px;
  }
  .threshold .threshold-meta__main {
    font-size: 10px;
    line-height: 1.28;
  }
  .threshold .threshold-meta__sub {
    font-size: 9px;
    line-height: 1.24;
  }
  .threshold .threshold-tagline {
    font-size: clamp(12px, 3.5vw, 14px);
    line-height: 1.32;
  }
}
@media (prefers-reduced-motion: reduce) {
  .threshold .kv .pos-bg img,
  .threshold .kv .pos-light-left img,
  .threshold .kv .pos-light-right img {
    animation: none !important;
  }
  .threshold.in .center .kv-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .threshold .kv .pos-bg img {
    transform: none !important;
  }
}
.threshold .kv {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  transform: scale(1.06);
  transform-origin: center center;
  transition: transform 11.67s ease-out;
  overflow: hidden;
  background: #000;
}
.threshold .kv .hero-container {
  position: relative;
  width: min(100%, var(--kv-art-max));
  max-width: var(--kv-art-max);
  height: 100%;
  margin: 0 auto;
  flex: 0 0 auto;
  aspect-ratio: auto;
  background-color: #000;
  overflow: hidden;
  box-shadow: none;
}
.threshold .kv .hero-container img {
  mix-blend-mode: screen;
  display: block;
}
@media (min-width: 901px) {
  .threshold .kv .pos-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 120%;
    transform: translate(-50%, -50%);
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
  }
  .threshold .kv .pos-bg img {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    transform-origin: center center;
    animation: kv-wave-bg-desk 8.33s ease-in-out infinite alternate;
    mix-blend-mode: normal;
  }
}
.threshold .kv .pos-light-left,
.threshold .kv .pos-light-right {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: var(--kv-light-w);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.threshold .kv .pos-light-left img,
.threshold .kv .pos-light-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
  flex-shrink: 0;
}
.threshold .kv .pos-light-left {
  left: 0;
}
.threshold .kv .pos-light-left img {
  object-position: right center;
  animation: kvBreatheLightLeft 11.67s ease-in-out infinite alternate;
}
.threshold .kv .pos-light-right {
  right: 0;
  left: auto;
}
.threshold .kv .pos-light-right img {
  object-position: left center;
  animation: kvBreatheLightRight 13.33s ease-in-out infinite alternate-reverse;
}
.threshold.in .kv {
  transform: scale(1);
}
.threshold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.92) 100%);
  pointer-events: none;
}
.threshold .center {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: min(860px + 100px * var(--th-p), 94vw);
  width: 100%;
  margin-inline: auto;
  padding: max(56px, env(safe-area-inset-top, 0px) + 48px) var(--kv-safe-pad) max(14px, env(safe-area-inset-bottom, 0px) + 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(10px + 10px * var(--th-p));
  max-height: 100svh;
  max-height: 100dvh;
  min-height: 0;
  box-sizing: border-box;
}
.threshold .logo-revision {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.threshold .logo-revision img {
  height: auto;
  width: 90%;
  max-width: calc(160px + 40px * var(--th-p));
}
.threshold .threshold-intro {
  font-family: var(--sans);
  font-weight: 300;
  font-size: calc(10px + 2px * var(--th-p));
  line-height: 1.65;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 227, 207, 0.92);
  max-width: 38em;
  margin: 0;
}
.threshold .threshold-intro strong {
  font-weight: 600;
  color: var(--bone);
}
.threshold .threshold-unlock {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: calc(15px + 5px * var(--th-p));
  letter-spacing: calc(0.32em + 0.06em * var(--th-p));
  text-transform: uppercase;
  color: var(--amber);
  text-shadow: 0 0 28px var(--amber-glow);
}
.threshold .threshold-hero-mark {
  margin: 0;
  padding: 0;
  border: 0;
  width: min(92vw, var(--kv-art-max) * 0.88);
  max-width: 100%;
  height: min(248px + 392px * var(--th-p), min(58svh, 72vh));
  display: flex;
  align-items: center;
  justify-content: center;
}
.threshold .threshold-hero-mark img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 12px 40px rgba(233, 183, 102, 0.22));
}
.threshold .threshold-type-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  margin-top: -0.25em;
}
.threshold .threshold-dej {
  font-family: var(--sans);
  font-weight: 500;
  font-size: calc(52px + 36px * var(--th-p));
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--bone);
}
.threshold .threshold-exhibition {
  font-family: var(--sans);
  font-weight: 300;
  font-size: calc(10px + 3px * var(--th-p));
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: var(--champagne);
}
.threshold .threshold-bottom__col {
  display: flex;
  flex-direction: column;
  gap: 0.28em;
  min-width: 0;
}
@media (min-width: 901px) {
  .threshold .threshold-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: calc(12px + 16px * var(--th-p));
    width: 100%;
    max-width: calc(780px + 140px * var(--th-p));
    margin-top: calc(2px + 6px * var(--th-p));
    padding-top: calc(12px + 8px * var(--th-p));
    border-top: 1px solid var(--line);
    text-align: left;
  }
  .threshold .threshold-bottom__col--dates {
    text-align: left;
    align-items: flex-start;
    margin-top: calc(-22px + -14px * var(--th-p));
  }
  .threshold .threshold-bottom__col--venue {
    text-align: right;
    align-items: flex-end;
    margin-top: calc(-22px + -14px * var(--th-p));
  }
  .threshold .threshold-bottom__col--center {
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
  }
}
.threshold .threshold-bottom .scroll-cue--threshold {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  margin: 0;
  padding: 0;
  gap: calc(9px + 2px * var(--th-p));
  font-family: var(--mono);
  font-size: calc(9px + 2px * var(--th-p));
  letter-spacing: calc(0.38em + 0.07em * var(--th-p));
  text-transform: uppercase;
  color: var(--bone-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.threshold .threshold-bottom .scroll-cue--threshold .stem {
  width: 1px;
  height: calc(26px + 4px * var(--th-p));
  background: linear-gradient(to bottom, transparent, var(--champagne));
  animation: stem 2.6s ease-in-out infinite;
}
.threshold .threshold-meta__main {
  font-family: var(--sans);
  font-weight: 500;
  font-size: calc(12px + 2px * var(--th-p));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  line-height: 1.35;
}
.threshold .threshold-meta__sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: calc(11px + 2px * var(--th-p));
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  line-height: 1.45;
}
.threshold .threshold-tagline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: calc(15px + 3px * var(--th-p));
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--bone-fade);
  max-width: 22em;
  margin: 0;
}
.threshold .center .kv-reveal {
  opacity: 0;
  transform: translateY(18px);
}
.threshold.in .center .kv-reveal {
  animation: rise 1.15s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}
.threshold.in .center .kv-reveal:nth-child(2) {
  animation-delay: 0.12s;
}
.threshold.in .center .kv-reveal:nth-child(3) {
  animation-delay: 0.22s;
}
.threshold.in .center .kv-reveal:nth-child(4) {
  animation-delay: 0.32s;
}
.threshold.in .center .kv-reveal:nth-child(5) {
  animation-delay: 0.42s;
}

@keyframes kv-wave-bg-desk {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.05);
    opacity: 1;
  }
}
@keyframes kv-wave-bg-mob {
  0% {
    transform: scale(1) translateY(-0.6%);
    opacity: 0.94;
  }
  100% {
    transform: scale(1.035) translateY(0.6%);
    opacity: 1;
  }
}
@keyframes kvBreatheLightLeft {
  0% {
    filter: brightness(0.98) contrast(1.08) saturate(1.02);
    opacity: 0.97;
  }
  100% {
    filter: brightness(1.035) contrast(1.1) saturate(1.035);
    opacity: 1;
  }
}
@keyframes kvBreatheLightRight {
  0% {
    filter: brightness(0.985) contrast(1.08) saturate(1.02);
    opacity: 0.97;
  }
  100% {
    filter: brightness(1.04) contrast(1.1) saturate(1.035);
    opacity: 1;
  }
}
@keyframes stem {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ============ 2 · THE MISCONCEPTION ============ */
.misconception {
  padding: 24vh 6vw;
  background: #000;
  position: relative;
  overflow: hidden;
  min-height: 110vh;
}

.misconception .video-bed {
  position: absolute;
  right: -6vw;
  top: 0;
  bottom: 0;
  width: 55vw;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, #000 30%, transparent 85%);
}

.misconception .video-bed .video-bed__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  display: block;
  pointer-events: none;
  /* Tone baked at encode — avoid CSS filter on each decoded WebP frame (smoother playback) */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.misconception .typo-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  user-select: none;
}

.misconception .typo-bg .row {
  white-space: nowrap;
  font-size: clamp(60px, 9vw, 140px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(238, 227, 207, 0.025);
  animation: drift 80s linear infinite;
}

.misconception .typo-bg .row:nth-child(2) {
  animation-duration: 100s;
  animation-direction: reverse;
  color: rgba(217, 170, 90, 0.04);
}

.misconception .typo-bg .row:nth-child(3) {
  animation-duration: 90s;
  color: rgba(238, 227, 207, 0.03);
}

@keyframes drift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-25%);
  }
}
.misconception .grid {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6vh;
}

.misconception .num {
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.55em;
  color: var(--amber);
  text-transform: uppercase;
}

.misconception h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(36px, 4.8vw, 76px);
  line-height: 1.2;
  color: var(--bone);
  letter-spacing: -0.005em;
  max-width: 20ch;
}

.misconception .body {
  font-family: var(--serif);
  font-size: clamp(21px, 1.62vw, 29px);
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 45ch;
}

.misconception .body em {
  color: var(--bone);
  font-style: italic;
}

.misconception .pivot {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.45;
  color: var(--champagne);
  margin-top: 2vh;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.misconception .pivot .arr {
  color: var(--amber);
  font-style: normal;
  flex-shrink: 0;
}

.misconception .pivot em {
  color: var(--amber);
  font-style: italic;
}

.misconception .transition-line {
  margin-top: 4vh;
  max-width: 60ch;
}

/* ============ 3 · THE WRONG PROBLEM ============ */
.wrong {
  padding: 22vh 6vw;
  background: #000;
  position: relative;
  overflow: hidden;
  min-height: 120vh;
}

/* dots: full-viewport bleed + ~15% brighter (was too faint on padded layout) */
.wrong canvas.dots,
#dotsCanvas {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 100vw;
  max-width: none;
  height: 100%;
  min-height: 100lvh;
  z-index: 0;
  opacity: 1;
  filter: brightness(1.15);
}

.wrong::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 100vw;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 70% at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.425) 80%);
}

.wrong .grid {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  align-items: center;
  min-height: 90vh;
}

.wrong .meta {
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--bone-dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.wrong .meta span:first-child {
  color: var(--amber);
}

.wrong h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 80px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--bone);
  max-width: 16ch;
  margin-bottom: 0.6em;
}

.wrong h2 em {
  font-style: italic;
  color: var(--amber);
}

.wrong .body {
  font-family: var(--serif);
  font-size: clamp(18px, 1.55vw, 26px);
  line-height: 1.7;
  color: var(--bone-dim);
  max-width: 46ch;
}

.wrong .body p {
  margin-bottom: 1em;
}

.wrong .body em {
  color: var(--bone);
  font-style: italic;
}

.wrong .transition-line {
  margin-top: 6vh;
}

/* ============ 4 · THE PLACE WE IGNORED ============ */
.place {
  padding: 24vh 6vw;
  background: radial-gradient(ellipse 120% 80% at 50% 50%, #1a120a 0%, #060403 60%, #000 100%);
  position: relative;
  overflow: hidden;
  min-height: 120vh;
}

.place .video-bed {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.place .video-bed .video-bed__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  display: block;
  pointer-events: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .misconception .video-bed .video-bed__media,
  .place .video-bed .video-bed__media {
    opacity: 0.2;
    filter: blur(0.5px);
  }
}
.place .glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 80vh;
  z-index: 1;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(217, 170, 90, 0.18) 0%, transparent 75%);
  pointer-events: none;
  animation: glowBreath 7s ease-in-out infinite;
}

@keyframes glowBreath {
  0%, 100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}
.place .grid {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
  min-height: 90vh;
}

.place .num {
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.55em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 2vh;
}

.place h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.32;
  color: var(--bone);
  letter-spacing: -0.005em;
}

.place h2 em {
  font-style: italic;
  color: var(--amber);
}

.place h2 .l {
  display: block;
}

.place .right {
  font-family: var(--serif);
  font-size: clamp(20px, 1.52vw, 25px);
  line-height: 1.7;
  color: var(--bone-dim);
  max-width: 42ch;
  align-self: end;
}

.place .right em {
  color: var(--bone);
  font-style: italic;
}

.place .right .accent {
  color: var(--amber);
  font-style: italic;
}

.place .transition-line {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 8vh auto 0;
  font-style: italic;
  font-size: clamp(24px, 1.9vw, 28px);
  color: var(--champagne);
}

.place .transition-line::before {
  background: var(--amber);
  opacity: 0.7;
  width: 48px;
}

/* ============ 5 · THE D.E.J. REVEAL (CLIMAX) ============ */
.reveal-section {
  padding: 0;
  background: #000;
  position: relative;
}

/* #reveal: fullscreen-width block; hero stack fills viewport while scrolling */
#reveal.reveal-section {
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
}

/* 5.a · fullscreen stack: altar (back) → glow → network (top) + label above canvas */
.reveal-altar {
  height: 170vh;
  min-height: 100vh;
  position: relative;
  background: #000;
  width: 100%;
}

.reveal-altar .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse 80% 60% at 50% 55%, #1a120a 0%, #050302 60%, #000 100%);
}

.reveal-altar .altar {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: 90vw;
  max-width: 90vw;
  height: min(72vh, 98vw);
  transform: translateX(-50%) scale(0.9);
  transform-origin: 50% 100%;
  background-image: url("../../img/dej-altar.png");
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.85));
  opacity: 0;
  transition: opacity 2.4s ease, transform 2.6s cubic-bezier(0.2, 0.75, 0.2, 1);
}

@media (max-width: 900px) and (orientation: portrait) {
  .reveal-altar .altar {
    background-image: url("../../img/dej-altar-mb.png");
  }
}
.reveal-altar.in-stage .altar {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.reveal-altar .glow-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 50% 50% at 50% 55%, rgba(233, 183, 102, 0.22) 0%, transparent 70%);
  filter: blur(40px);
  animation: altarGlow 6s ease-in-out infinite;
}

@keyframes altarGlow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
.reveal-altar #networkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  opacity: 0.48;
  pointer-events: none;
}

.reveal-altar .floor-tag {
  position: absolute;
  left: 50%;
  top: 8vh;
  transform: translateX(-50%);
  z-index: 8;
  pointer-events: none;
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.55em;
  color: var(--amber);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 1.5s ease 0.8s;
}

.reveal-altar.in-stage .floor-tag {
  opacity: 1;
}

.reveal-altar .floor-tag::before,
.reveal-altar .floor-tag::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--amber);
  opacity: 0.6;
}

/* 5.b · the climax copy */
.reveal-copy {
  padding: 18vh 6vw 22vh;
  background: #000;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.reveal-copy::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--amber), transparent);
}

.reveal-copy .num {
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.55em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 50px;
}

.reveal-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5.4vw, 88px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--bone);
  max-width: 24ch;
  margin: 0 auto;
}

.reveal-copy h2 em {
  font-style: italic;
  color: var(--amber);
}

.reveal-copy h2 q {
  quotes: '"' '"';
}

.reveal-copy .body {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 38ch;
  margin: 50px auto 0;
}

.reveal-copy .body em {
  color: var(--bone);
  font-style: italic;
}

.reveal-copy .body .accent {
  color: var(--amber);
  font-style: italic;
}

/* credibility band — folded into reveal */
.reveal-credibility {
  padding: 14vh 6vw 4vh;
  background: #000;
  position: relative;
  border-top: 1px solid var(--line);
}

.reveal-credibility .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr;
  gap: 8vw;
  align-items: center;
}

.reveal-credibility .logos {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-start;
}

.reveal-credibility .logos .slot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reveal-credibility .logos img {
  height: 42px;
  opacity: 0.92;
  object-fit: contain;
  object-position: left center;
}

.reveal-credibility .logos .vigo img {
  filter: brightness(0) invert(1) opacity(0.85);
}

.reveal-credibility .logos .role {
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.4em;
  color: var(--bone-dim);
  text-transform: uppercase;
}

.reveal-credibility .text {
  font-family: var(--serif);
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.7;
  color: var(--bone);
  max-width: 51ch;
}

.reveal-credibility .text em {
  color: var(--amber);
  font-style: italic;
}

.reveal-credibility .text .em-bone {
  color: var(--bone);
  font-style: italic;
}

/* CTA for reveal section */
.reveal-cta {
  padding: 6vh 6vw 24vh;
  background: #000;
  text-align: center;
}

.reveal-cta .cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 20px 38px;
  border: 1px solid var(--line-strong);
  transition: all 0.5s ease;
  cursor: pointer;
  background: transparent;
}

.reveal-cta .cta:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.reveal-cta .cta .arr {
  transition: transform 0.5s ease;
  font-style: normal;
}

.reveal-cta .cta:hover .arr {
  transform: translateX(6px);
}

/* ============ 6 · THE INVITATION ============ */
.invitation {
  min-height: 100vh;
  background: #000;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.invitation .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
}

.invitation .visual {
  position: relative;
  overflow: hidden;
  background: #0a0806;
}

/* Layered Photo Corner (cùng ghép như flower.html — tỉ lệ 4:5 khung gốc, fill bằng cover) */
.invitation .photo-corner-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
}

.invitation .photo-corner-stack .pc-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.invitation .photo-corner-stack .pc-bg {
  z-index: 1;
  transform: scale(1.08);
  transition: transform 4s ease-out;
}

.invitation.in-vis .photo-corner-stack .pc-bg {
  transform: scale(1);
}

.invitation .photo-corner-stack .pc-flower-left {
  z-index: 2;
  object-position: 20% 52%;
  transform-origin: 26% 96%;
  animation: pcSwayLeft 9.5s cubic-bezier(0.45, 0.03, 0.55, 0.97) infinite;
}

.invitation .photo-corner-stack .pc-flower-right {
  z-index: 3;
  object-position: 80% 52%;
  transform-origin: 74% 96%;
  animation: pcSwayRight 11s cubic-bezier(0.45, 0.03, 0.55, 0.97) infinite;
  animation-delay: -1.2s;
}

.invitation .photo-corner-stack .pc-product {
  z-index: 4;
  object-position: 50% 46%;
}

.invitation .photo-corner-stack .pc-light {
  z-index: 5;
  mix-blend-mode: screen;
  opacity: 0.9;
  /* Đẩy chùm sáng lên — object-position + transform để không đè lên sản phẩm */
  object-position: 50% 14%;
  transform-origin: 50% 18%;
  transform: translateY(-8.5%) scale(1.07);
  animation: pcLightAmbience 11s ease-in-out infinite;
}

.invitation .photo-corner-stack .pc-light-bloom {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  background: radial-gradient(ellipse 78% 52% at 50% 22%, rgba(255, 248, 230, 0.5) 0%, transparent 55%), radial-gradient(ellipse 36% 30% at 68% 28%, rgba(233, 183, 102, 0.22) 0%, transparent 52%), radial-gradient(ellipse 28% 22% at 32% 30%, rgba(255, 220, 175, 0.14) 0%, transparent 48%);
  filter: blur(26px);
  transform: translateY(-4%);
  animation: pcBloomDrift 12s ease-in-out infinite;
}

.invitation.in-vis .photo-corner-stack .pc-light-bloom {
  animation: pcBloomDrift 12s ease-in-out infinite, pcBloomFadeIn 2.8s ease-out forwards;
}

@keyframes pcBloomFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.62;
  }
}
@keyframes pcBloomDrift {
  0%, 100% {
    transform: translateY(-4%) scale(1);
  }
  50% {
    transform: translateY(-7%) scale(1.03);
  }
}
@keyframes pcLightAmbience {
  0%, 100% {
    opacity: 0.86;
    transform: translateY(-8.5%) scale(1.07) translateX(0);
  }
  40% {
    opacity: 0.95;
    transform: translateY(-10.5%) scale(1.05) translateX(0.4%);
  }
  70% {
    opacity: 0.9;
    transform: translateY(-7%) scale(1.08) translateX(-0.35%);
  }
}
@keyframes pcSwayLeft {
  0%, 100% {
    transform: rotate(-0.38deg);
  }
  50% {
    transform: rotate(0.48deg);
  }
}
@keyframes pcSwayRight {
  0%, 100% {
    transform: rotate(0.42deg);
  }
  50% {
    transform: rotate(-0.45deg);
  }
}
.invitation .visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 0%, rgba(233, 183, 102, 0) 30%, rgba(233, 183, 102, 0.18) 50%, rgba(233, 183, 102, 0) 70%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 2.4s ease-out 1.8s;
}

.invitation.in-vis .visual::before {
  transform: translateX(100%);
}

.invitation .visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
}

.invitation .visual .frame-tag {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 3;
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.5em;
  color: var(--bone);
  text-transform: uppercase;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line-strong);
}

.invitation .copy {
  padding: 18vh 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  position: relative;
}

.invitation .num {
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.55em;
  color: var(--amber);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.invitation .num::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--amber);
  opacity: 0.6;
}

.invitation h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--bone);
  max-width: 18ch;
}

.invitation h2 em {
  font-style: italic;
  color: var(--amber);
}

.invitation .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.5;
  color: var(--champagne);
  letter-spacing: 0.005em;
}

.invitation .details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
  align-items: baseline;
}

.invitation .details .key {
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.45em;
}

.invitation .details .val {
  color: var(--bone);
  font-size: 14px;
  letter-spacing: 0.18em;
  line-height: 1.6;
}

.invitation .details .val-small {
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.6;
  color: var(--bone-dim);
}

.invitation .note {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 42ch;
}

.invitation .cta-wrap {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.invitation .cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #000;
  padding: 20px 38px;
  border: 1px solid var(--amber);
  background: var(--amber);
  transition: all 0.5s ease;
  cursor: pointer;
}

.invitation .cta:hover {
  background: var(--bone);
  border-color: var(--bone);
}

.invitation .cta .arr {
  transition: transform 0.5s ease;
}

.invitation .cta:hover .arr {
  transform: translateX(6px);
}

.invitation .small-note {
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.32em;
  color: var(--bone-dim);
  text-transform: uppercase;
}

/* ============ FOOTER ============ */
footer {
  padding: 40px 6vw 28px;
  background: #000;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.32em;
  color: var(--bone-dim);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* ============ MOBILE (global) — #threshold: fluid 900↔1920 via .threshold --th-p; ≤900px overrides trong .threshold ============ */
@media (max-width: 900px) {
  .nav {
    padding: 18px 22px;
  }
  .nav .meta {
    display: none;
  }
  .rail {
    display: none;
  }
  .misconception .video-bed {
    width: 100vw;
    right: 0;
    opacity: 0.7;
  }
  .misconception .grid {
    gap: 4vh;
  }
  .wrong .grid,
  .place .grid,
  .reveal-credibility .inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .wrong .meta {
    writing-mode: horizontal-tb;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
  }
  /* dotsCanvas: ~+50% footprint + ~20% brighter vs desktop tuning (still inside .wrong overflow) */
  .wrong canvas.dots,
  #dotsCanvas {
    width: 150vw;
    min-height: 150lvh;
    min-height: 150dvh;
    filter: brightness(1.38);
  }
  .place .right {
    align-self: start;
  }
  .reveal-altar {
    height: 110vh;
  }
  .reveal-altar .stage {
    position: relative;
    height: 100vh;
  }
  .invitation .grid {
    grid-template-columns: 1fr;
  }
  .invitation .visual {
    min-height: 60vh;
  }
  .invitation .photo-corner-stack .pc-light-bloom {
    filter: blur(18px);
  }
  .invitation .copy {
    padding: 10vh 6vw;
  }
  .invitation .details {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  body.has-mobile-reg-cta {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-reg-cta[hidden] {
    display: none !important;
    pointer-events: none;
  }
  .mobile-reg-cta:not([hidden]) {
    box-sizing: border-box;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 15px 22px calc(15px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(233, 183, 102, 0.32);
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.58), 0 -1px 0 rgba(233, 183, 102, 0.22), inset 0 1px 0 rgba(233, 183, 102, 0.07);
    background: linear-gradient(180deg, rgba(36, 30, 22, 0.95) 0%, rgba(14, 12, 9, 0.97) 45%, rgba(6, 5, 4, 0.99) 100%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-family: var(--mono);
    font-size: var(--type-mono-xs);
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: var(--champagne);
    text-shadow: 0 0 20px rgba(233, 183, 102, 0.12);
    transition: color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, text-shadow 0.28s ease;
  }
}
@media (max-width: 900px) and (hover: hover) {
  .mobile-reg-cta:not([hidden]):hover {
    color: var(--amber);
    border-top-color: rgba(233, 183, 102, 0.48);
    box-shadow: 0 -14px 42px rgba(0, 0, 0, 0.62), 0 -1px 0 rgba(233, 183, 102, 0.35), inset 0 1px 0 rgba(233, 183, 102, 0.12);
    text-shadow: 0 0 28px rgba(233, 183, 102, 0.2);
  }
}
@media (max-width: 900px) {
  .mobile-reg-cta:not([hidden]):active {
    color: var(--amber);
    border-top-color: rgba(233, 183, 102, 0.4);
  }
}
@media (min-width: 901px) {
  .mobile-reg-cta {
    display: none !important;
    pointer-events: none;
  }
}
/* ============ REGISTER MODAL (popup đăng ký) ============ */
body.register-modal-open {
  overflow: hidden;
}

.register-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.register-modal[hidden] {
  display: none !important;
}

.register-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.register-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: min(92dvh, 880px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color-scheme: dark;
  background: linear-gradient(165deg, var(--charcoal) 0%, var(--obsidian) 55%, #080706 100%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(233, 183, 102, 0.08), 0 28px 80px rgba(0, 0, 0, 0.65);
  padding: 28px 26px 26px;
}

.register-modal__flow {
  display: flex;
  flex-direction: column;
}

.register-modal__flow[hidden] {
  display: none !important;
}

.register-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--bone-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  font-family: var(--sans);
}

.register-modal__close:hover {
  color: var(--amber);
  border-color: var(--amber-soft);
  background: rgba(233, 183, 102, 0.06);
}

.register-modal__head {
  padding-right: 36px;
  margin-bottom: 22px;
}

.register-modal__kicker {
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 10px;
}

.register-modal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 4.5vw, 34px);
  line-height: 1.15;
  color: var(--bone);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.register-modal__lead {
  font-size: calc(var(--type-sans-caption) - 4px);
  line-height: 1.55;
  color: var(--bone-fade);
  font-weight: 300;
}

.register-modal__notice {
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.06em;
  color: var(--amber-soft);
  border: 1px solid rgba(201, 154, 80, 0.35);
  padding: 10px 12px;
  margin-bottom: 16px;
  line-height: 1.45;
}

.register-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.register-modal__form[hidden] {
  display: none !important;
}

.register-modal__field label {
  display: block;
  font-family: var(--mono);
  font-size: var(--type-mono-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 8px;
}

.register-modal__field .req {
  color: var(--amber);
}

.register-modal__field input,
.register-modal__field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--bone);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-modal__field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  accent-color: var(--amber);
  background-color: rgba(12, 10, 8, 0.98);
  background-image: linear-gradient(45deg, transparent 50%, var(--amber-soft) 50%), linear-gradient(135deg, var(--amber-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  color: #f2ebe0;
}

.register-modal__field select option {
  background-color: #14110e;
  color: #f4ede3;
  font-weight: 400;
}

.register-modal__field select option:disabled {
  color: rgba(180, 168, 148, 0.5);
}

.register-modal__field select option:checked {
  background-color: rgba(233, 183, 102, 0.42);
  color: #0d0c0a;
  font-weight: 500;
}

.register-modal__field input::placeholder {
  color: rgba(168, 156, 132, 0.65);
}

.register-modal__field input:focus,
.register-modal__field select:focus {
  outline: none;
  border-color: var(--amber-soft);
  box-shadow: 0 0 0 1px rgba(233, 183, 102, 0.2);
}

.register-modal__field input[aria-invalid=true],
.register-modal__field select[aria-invalid=true] {
  border-color: rgba(232, 165, 152, 0.55);
}

.register-modal__field-error {
  font-size: var(--type-mono-md);
  line-height: 1.45;
  color: #e8a598;
  margin: 6px 0 0;
  min-height: 0;
}

.register-modal__field-error[hidden] {
  display: none !important;
}

.register-modal__error--global {
  margin-top: 4px;
}

.register-modal__recaptcha-legal {
  display: block;
  margin-top: 10px;
  font-size: var(--type-mono-min);
  letter-spacing: 0.1em;
  line-height: 1.65;
  color: var(--bone-dim);
  text-transform: none;
}

.register-modal__recaptcha-legal a {
  color: var(--champagne);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.register-modal__recaptcha-legal a:hover {
  color: var(--amber);
}

.register-modal__recaptcha {
  margin: 4px 0 2px;
  min-height: 78px;
}

.register-modal__error {
  font-size: var(--type-sans-caption);
  color: #e8a598;
  line-height: 1.45;
  margin: 0;
}

.register-modal__recaptcha-hint {
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: var(--bone-dim);
  text-transform: uppercase;
  margin: 4px 0 0;
  opacity: 0.85;
}

.register-modal__submit {
  margin-top: 8px;
  width: 100%;
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 16px 20px;
  border: 1px solid var(--amber-soft);
  background: transparent;
  color: var(--amber);
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
}

.register-modal__submit:hover:not(:disabled) {
  background: var(--amber);
  color: var(--void);
  border-color: var(--amber);
}

.register-modal__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Chỉ hiện một trạng thái: tránh xung đột [hidden] vs display từ class spinner */
.register-modal__submit-spinner {
  display: none;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.18em;
}

.register-modal__submit--loading .register-modal__submit-label {
  display: none !important;
}

.register-modal__submit--loading .register-modal__submit-spinner {
  display: inline-flex !important;
}

.register-modal__submit--secondary {
  margin-top: 0;
}

.register-modal__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(233, 183, 102, 0.25);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: register-spin 0.7s linear infinite;
}

@keyframes register-spin {
  to {
    transform: rotate(360deg);
  }
}
.register-modal__success {
  text-align: center;
  padding: 12px 4px 8px;
}

.register-modal__success-kicker {
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}

.register-modal__success-title {
  font-family: var(--serif);
  font-size: clamp(23px, 4.1vw, 29px);
  font-weight: 400;
  color: var(--bone);
  line-height: 1.35;
  margin-bottom: 14px;
}

.register-modal__success-title strong {
  font-weight: 500;
  color: var(--amber);
}

.register-modal__success-qrblock {
  margin: 18px auto 0;
  max-width: 300px;
}

.register-modal__success-qr-frame {
  display: inline-flex;
  padding: 12px;
  margin-bottom: 18px;
  background: #faf7f2;
  border: 1px solid rgba(233, 183, 102, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 14px 36px rgba(0, 0, 0, 0.4);
}

.register-modal__success-qr-frame img {
  display: block;
  width: 220px;
  height: 220px;
}

.register-modal__success-hint {
  font-size: 15px;
  line-height: 1.65;
  color: var(--bone-fade);
  margin: 0 auto 16px;
  max-width: 38ch;
}

.register-modal__success-download {
  margin: 0 auto 24px;
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: var(--type-mono-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  background: transparent;
  border: 1px solid var(--amber-soft);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.register-modal__success-download:hover {
  background: rgba(233, 183, 102, 0.12);
  border-color: var(--amber);
}

.register-modal__success-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bone-fade);
  margin-bottom: 24px;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.mb-only {
  display: none;
}

@media screen and (max-width: 900px) {
  .threshold .center {
    min-height: 90svh;
    justify-content: center;
  }
  .reveal-copy h2 {
    font-size: clamp(28px, 5.4vw, 88px);
  }
  .pc-only {
    display: none;
  }
  .mb-only {
    display: block;
  }
  .reveal-altar .floor-tag {
    width: 95vw;
    text-align: center;
    font-size: calc(var(--type-mono-xs) - 2px);
  }
  #threshold .logo-revision.kv-reveal img {
    width: 30vw;
  }
  .misconception .pivot.reveal.delay-5.in {
    gap: 5px;
    font-size: 32px;
    margin-top: 10vh;
    margin-bottom: 5vh;
  }
  #place #hightlight-dej {
    margin-top: 15vh;
    display: block;
    gap: 5px;
  }
  #place #hightlight-dej::before {
    width: 20px;
    margin-right: 5px;
  }
  #place #hightlight-dej span {
    font-size: clamp(40px, 1.9vw, 28px);
  }
  #reveal .reveal-cta .cta {
    padding: 15px 10px;
  }
  #reveal .reveal-cta .cta span {
    letter-spacing: 0.2em;
  }
}
