/* Webinar Dòng Tiền, "the stage": photographs of the live classes carry the page; Be Vietnam Pro
   set heavy on them; the program yellow owns whole bands (register, closing), not just buttons.
   Motion after kylezantos/design-motion-principles (production-polish lens): one orchestrated hero
   entrance, the four evenings' photos revealed as they arrive, a cross-fade when the testimonial
   video changes; transform/opacity/clip-path only, content visible without script, and nothing
   moves under prefers-reduced-motion. Shared by the landing and the thank-you page. */
:root {
  --ink: #120f0a; --night: #17130d; --paper: #fbf7ef; --yellow: #ffb627; --yellow-deep: #f59e0b; --amber: #9a5b00;
  --text: #241f17; --muted: #6b6255; --on-dark: #f4efe6; --on-dark-muted: #c9c0b1; --line: rgba(18, 15, 10, .14);
  --error: #b42318;
  --font: 'Be Vietnam Pro', system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; font: 400 17px/1.6 var(--font); color: var(--text); background: var(--paper); }
[hidden] { display: none !important; }
/* A heading phrase never splits; wide screens set long headings in exactly two lines (.l). */
.nb { white-space: nowrap; }
@media (min-width: 901px) { .l { display: block; white-space: nowrap; } }
.when, .journey-head p, .closing p, .gallery-caption, .vision-list p, .abilities dd { text-wrap: balance; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.center { text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 2px solid var(--yellow); border-radius: 999px; background: var(--yellow); color: var(--ink); font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .16s var(--ease-out), background-color .18s ease-out, border-color .18s ease-out, color .18s ease-out; }
.btn:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #2b241a; border-color: #2b241a; }
.kicker { margin: 0 0 14px; font-weight: 700; font-size: 15px; color: var(--yellow); }

/* 1. Hero: the full room behind, centered headline, the introduction video large below. */
.hero { position: relative; overflow: clip; color: #fff; text-align: center; background: var(--night); }
.hero-bg { position: absolute; inset: 0; background: url(img/DSC04158.webp) center 30% / cover no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(10, 8, 5, .78); }
.hero .wrap { position: relative; z-index: 2; padding: 64px 0 72px; }
.hero h1 { font-weight: 700; font-size: clamp(30px, 4vw, 56px); line-height: 1.06; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-video { width: 100%; max-width: clamp(480px, calc((100svh - 400px) * 16 / 9), 880px); margin: 36px auto 0; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .18); }
.hero-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 2. Register: the band IS the yellow. */
.register { background: var(--yellow); color: var(--ink); }
.register .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); gap: 64px; align-items: center; padding: 88px 0; }
.register h2 { font-weight: 700; font-size: clamp(26px, 2.6vw, 37px); line-height: 1.05; }
.register .when { margin: 18px 0 0; font-weight: 800; font-size: 20px; }
.benefits { margin: 26px 0 0; padding: 0; list-style: none; }
.benefits li { position: relative; padding: 10px 0 10px 34px; border-top: 1px solid rgba(18, 15, 10, .18); font-weight: 500; }
.benefits li::before { content: ''; position: absolute; left: 4px; top: 18px; width: 14px; height: 8px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg); }
.signup { padding: 32px; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -30px rgba(80, 50, 0, .45); scroll-margin-top: 16px; }
.signup label { display: block; margin: 16px 0 6px; font-weight: 700; font-size: 14px; }
.signup label:first-child { margin-top: 0; }
.signup input, .signup select { width: 100%; height: 52px; padding: 0 18px; border: 1.5px solid #e6dccb; border-radius: 12px; font: inherit; color: var(--text); background: var(--paper); transition: border-color .18s ease-out; }
.signup input:hover, .signup select:hover { border-color: #cdbd9f; }
.signup input:focus-visible, .signup select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--yellow-deep); background: #fff; }
.signup .btn { width: 100%; margin-top: 22px; }
.honeypot { position: absolute; left: -9999px; }
.form-error { margin: 14px 0 0; color: var(--error); font-size: 14px; }

/* 3. Vision: one wide photo of the audience, four lines set on it. */
.vision { position: relative; color: #fff; background: var(--night) url(img/DSC03045.webp) center / cover no-repeat; }
.vision::before { content: ''; position: absolute; inset: 0; background: rgba(12, 10, 6, .82); }
.vision .wrap { position: relative; padding: 110px 0; }
.vision h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.04; }
.vision-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 56px 0 0; padding: 0; list-style: none; counter-reset: v; }
.vision-list li { counter-increment: v; padding-top: 18px; border-top: 3px solid var(--yellow); }
.vision-list li::before { content: '0' counter(v); display: block; margin-bottom: 10px; font-weight: 700; font-size: 15px; color: var(--yellow); }
.vision-list h3 { font-size: 21px; font-weight: 700; line-height: 1.2; }
.vision-list p { margin: 8px 0 0; font-size: 15px; color: var(--on-dark-muted); }

/* 4. The four evenings: each one beside a photo from the room. */
.journey { padding: 110px 0 60px; }
.journey-head { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.journey-head .kicker { color: var(--amber); }
.journey-head h2 { font-weight: 700; font-size: clamp(26px, 2.7vw, 38px); line-height: 1.05; }
.journey-head p { margin: 0; color: var(--muted); }
.day { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 80px; }
.day:nth-of-type(even) .day-photo { order: 2; }
.day-photo { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; }
.day-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.day-photo .num { position: absolute; left: 18px; bottom: 14px; font-weight: 700; font-size: 64px; line-height: 1; color: var(--yellow); text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.day-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 0; font-size: 14px; color: var(--muted); }
.day-meta strong { padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--yellow); font-size: 13px; }
.day h3 { margin-top: 14px; font-weight: 700; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.1; }
.day ul { margin: 20px 0 0; padding: 0; list-style: none; }
.day li { padding: 10px 0; border-top: 1px solid var(--line); }
.journey .cta-row { margin-top: 72px; }

/* 5. Abilities: a dense typographic passage between two photographic ones. */
.abilities { background: var(--ink); color: #fff; }
.abilities .wrap { display: grid; gap: 40px; padding: 96px 0; }
.abilities h2 { font-weight: 700; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.06; }
.abilities h2 .hl { color: var(--yellow); }
.abilities dl { margin: 0; }
.abilities dl div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.abilities dt { font-weight: 700; font-size: 19px; }
.abilities dd { margin: 0; color: var(--on-dark-muted); }

/* 6. Mentor: the portrait from the stage, large. */
.mentor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); }
.mentor-photo { min-height: 640px; background: url(img/DSC07233.webp) center 20% / cover no-repeat; }
.mentor-copy { padding: 96px 64px; max-width: 640px; }
.mentor-copy .kicker { color: var(--amber); }
.mentor-copy h2 { font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.mentor-copy ul { margin: 24px 0 0; padding: 0; list-style: none; }
.mentor-copy li { position: relative; padding: 9px 0 9px 30px; }
.mentor-copy li::before { content: ''; position: absolute; left: 3px; top: 17px; width: 12px; height: 7px; border-left: 3px solid var(--yellow-deep); border-bottom: 3px solid var(--yellow-deep); transform: rotate(-45deg); }
.mentor-copy blockquote { margin: 26px 0 0; padding: 18px 22px; border-radius: 14px; background: #fff; font-weight: 600; font-size: 19px; line-height: 1.45; }
.mentor-copy .btn { margin-top: 28px; }

/* 7. Gallery: the rooms themselves. */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 6px; padding: 6px; background: var(--ink); }
.gallery div { background-size: cover; background-position: center; }
.gallery .big { grid-row: span 2; }
.gallery-caption { margin: 0; padding: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* 8. Testimonials (richlife videos): one large player, a name per person. */
.testimonials { padding: 100px 0; }
.testimonials .kicker { color: var(--amber); }
.testimonials h2 { font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.06; text-align: center; }
.testimonial-frame { position: relative; max-width: 900px; margin: 44px auto 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.testimonial-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.testimonial-cover { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; cursor: pointer; background-size: cover; background-position: center; }
.testimonial-cover .play { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); transition: transform .2s var(--ease-out); }
.testimonial-cover .play::after { content: ''; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--ink); }
.testimonial-cover:hover .play { transform: scale(1.06); }
.testimonial-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.testimonial-card { padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font: 600 14px var(--font); cursor: pointer; transition: background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out; }
.testimonial-card:hover { border-color: var(--ink); }
.testimonial-card[aria-selected="true"] { background: var(--ink); color: var(--yellow); border-color: var(--ink); }

/* 9. Closing: the whole hall, the yellow action. */
.closing { position: relative; color: #fff; text-align: center; background: var(--night) url(img/DSC8280.webp) center / cover no-repeat; }
.closing::before { content: ''; position: absolute; inset: 0; background: rgba(12, 10, 6, .72); }
.closing .wrap { position: relative; padding: 140px 0; }
.closing h2 { max-width: 30ch; margin: 0 auto; font-weight: 700; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; }
.closing p { margin: 20px auto 0; max-width: 46ch; color: var(--on-dark); }
.closing .facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; }
.closing .facts span { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 14px; font-weight: 600; }
.closing .btn { margin-top: 36px; min-height: 60px; padding: 0 40px; font-size: 18px; }

.footer { padding: 36px 0; background: var(--ink); color: #8f8678; font-size: 13px; }
.footer p { margin: 0 0 6px; }
.footer-brand { color: var(--yellow); font-weight: 700; }
.footer a { color: var(--on-dark); }
.legal { max-width: 900px; margin-top: 14px !important; font-size: 12px; line-height: 1.7; }

/* Motion. Hidden starting states exist only when script has marked the page (html.motion) and the
   visitor has not asked for reduced motion, so content is always there without it. */
@media (prefers-reduced-motion: no-preference) {
  /* The hero arrives once: the room settles, then kicker, the two headline lines, actions, video. */
  html.motion .hero-bg { transform: scale(1.06); transition: transform 2.4s var(--ease-out); }
  html.motion .hero.in .hero-bg { transform: scale(1); }
  html.motion .hero .rise { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 120ms); }
  html.motion .hero.in .rise { opacity: 1; transform: none; }
  /* Each evening's photo opens as it scrolls into view; its number follows. */
  html.motion .day-photo { clip-path: inset(10% 6% 10% 6% round 18px); transition: clip-path .9s var(--ease-out); }
  html.motion .day-photo img { transform: scale(1.08); transition: transform 1.2s var(--ease-out); }
  html.motion .day-photo .num { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out) .35s, transform .6s var(--ease-out) .35s; }
  html.motion .day.in .day-photo { clip-path: inset(0 0 0 0 round 18px); }
  html.motion .day.in .day-photo img { transform: none; }
  html.motion .day.in .day-photo .num { opacity: 1; transform: none; }
  /* A changed testimonial video fades in instead of popping. */
  .testimonial-frame > * { animation: frame-in .45s var(--ease-out); }
}
@keyframes frame-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .register .wrap, .journey-head, .day, .mentor { grid-template-columns: 1fr; }
  .day:nth-of-type(even) .day-photo { order: 0; }
  .day { gap: 28px; margin-top: 56px; }
  .vision-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mentor-photo { min-height: 420px; }
  .mentor-copy { padding: 56px 24px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .hero .wrap { padding: 48px 0 56px; }
  .hero-video { max-width: 100%; margin-top: 28px; }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1; padding: 0 12px; font-size: 15px; white-space: nowrap; }
  .register .wrap { padding: 56px 0; gap: 32px; }
  .signup { padding: 22px; }
  .vision .wrap { padding: 72px 0; }
  .vision-list { grid-template-columns: 1fr; }
  .journey { padding-top: 72px; }
  .abilities .wrap { padding: 64px 0; }
  .abilities dl div { grid-template-columns: 1fr; gap: 4px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px 140px; }
  .gallery .big { grid-column: span 2; grid-row: auto; }
  .testimonials { padding: 72px 0; }
  .closing .wrap { padding: 90px 0; }
}

/* Thank-you page: the same paper and yellow, one card on the room's photograph. */
.flow { min-height: 100dvh; position: relative; background: var(--night) url(img/DSC03045.webp) center / cover no-repeat; }
.flow::before { content: ''; position: absolute; inset: 0; background: rgba(12, 10, 6, .82); }
.flow-wrap { position: relative; display: flex; flex-direction: column; align-items: center; width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 56px 0; }
.flow-brand { margin: 0 0 20px; color: var(--yellow); font-weight: 700; font-size: 15px; text-align: center; }
.card { width: min(580px, 100%); padding: 40px; border-radius: 20px; background: var(--paper); color: var(--text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.card h1 { font-weight: 700; font-size: 30px; line-height: 1.15; }
.lead { margin: 14px 0 0; }
.repeat-note { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--amber); font-size: 14px; }
.step { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-title { margin: 0; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.step-text { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.step-wait { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: #fff; font-size: 14px; }
.button-zalo { display: flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 18px; border-radius: 999px; background: #0068ff; color: #fff; font: 700 17px/1 var(--font); text-decoration: none; box-shadow: 0 14px 28px -14px rgba(0, 104, 255, .7); transition: background-color .18s ease-out, transform .16s var(--ease-out); }
.button-zalo:hover { background: #0057d6; }
.button-zalo:active { transform: scale(.97); }
/* The email reminder: short, on the program yellow so it is not missed. */
.email-note { margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: #fff; border-left: 4px solid var(--yellow-deep); color: var(--ink); }
.email-title { margin: 0; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.email-text { margin: 4px 0 0; font-size: 15px; }
.email-text + .email-text { margin-top: 8px; }
.schedule { margin: 22px 0 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.schedule:empty { display: none; }
.schedule li { padding: 11px 0; border-top: 1px solid var(--line); }
.schedule li:last-child { border-bottom: 1px solid var(--line); }
.schedule .now { font-weight: 700; }
.schedule .past { color: var(--muted); text-decoration: line-through; }
.help { margin: 24px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
@media (max-width: 600px) { .card { padding: 26px 22px; } .card h1 { font-size: 26px; } .flow-wrap { padding: 28px 0; } }
