/* 19/11/2026: trang "Ve Nha Bo" (/gioi-thieu) ke chuyen theo cuon - templates/static/ve_nha_bo_tpl.php + public/js/nhabo-story.js.
   Moi selector nam duoi .nb-story. Lop .nb-story--motion chi gan khi hieu ung chay (co JS, khong bat "giam chuyen dong"):
   khong co lop nay thi trang la mot cuon doc binh thuong, du noi dung. Mau / chu theo token Nha Bo (public/css/nhabo.css). */
.nb-story {
    --sv-olive: var(--nb-olive, #7D803D);
    --sv-olive-dark: var(--nb-olive-dark, #3F4824);
    --sv-cream: var(--nb-cream, #F5F2E9);
    --sv-paper: #FBF9F3;
    --sv-gold: var(--nb-gold, #B99A52);
    --sv-gold-light: #E2C98C;
    --sv-text: var(--nb-text, #202018);
    --sv-muted: var(--nb-text-muted, #77746C);
    --sv-line: var(--nb-bg-muted, #D8D3C4);
    --sv-serif: var(--nb-home-serif, 'Cormorant Garamond'), 'Times New Roman', Georgia, serif;
    --sv-sans: var(--nb-font-body, 'Be Vietnam Pro', system-ui, sans-serif);
    --sv-label: var(--nb-font-heading, 'Montserrat', 'Be Vietnam Pro', system-ui, sans-serif);
    --sv-radius: var(--nb-radius-lg, 20px);
    --sv-hdr: 64px;          /* cao header dinh khi cuon - JS do lai */
    background: var(--sv-cream);
    color: var(--sv-text);
    font-family: var(--sv-sans);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: clip;
}
/* 26/11/2026: breadcrumb chung chi co padding tren; trang nay mo bang khoi phim toi nen chu breadcrumb dinh sat mep khoi -> them dem duoi */
.nb-breadcrumbs:has(+ .wrap-home .nb-story) { padding-bottom: 15px; }
.nb-story img { display: block; max-width: 100%; height: auto; }
.nb-story :where(h1, h2, h3, p, figure, ol) { margin: 0; }   /* :where - khong lan margin rieng cua tung khoi ben duoi */
.nb-story__wrap { max-width: var(--nb-container, 1240px); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.nb-story__band { position: relative; padding-block: clamp(88px, 12vw, 168px); }
.nb-story__band--paper { background: var(--sv-paper); }
.nb-story__band--dark { background: var(--sv-olive-dark); color: var(--sv-cream); }

.nb-story__eyebrow { font-family: var(--sv-label); font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--sv-gold); margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.nb-story__eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; flex: 0 0 auto; }
.nb-story__h2 { font-family: var(--sv-serif); font-weight: 500; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 24px; color: var(--sv-olive-dark); text-wrap: balance; }
.nb-story__band--dark .nb-story__h2 { color: var(--sv-cream); }
.nb-story__h2 em { font-style: italic; color: var(--sv-olive); }
.nb-story__band--dark .nb-story__h2 em { color: var(--sv-gold); }
.nb-story__lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 60ch; color: var(--sv-muted); }
.nb-story__band--dark .nb-story__lead { color: #D9D4C2; }

/* ---------- Mo man: phong thay do ---------- */
.nb-story__film { position: relative; background: var(--sv-olive-dark); color: var(--sv-cream); }
.nb-story__stage { position: relative; height: min(92vh, 940px); min-height: 560px; overflow: hidden; background: radial-gradient(ellipse 70% 80% at 62% 50%, #5A6537 0%, #3F4824 48%, #262C16 100%); }
.nb-story__room { position: absolute; inset: 0; z-index: 1; }
.nb-story__arch { border-radius: 50% 50% 14px 14px / 33.4% 33.4% 14px 14px; overflow: hidden; }
.nb-story__mirror { position: absolute; left: 62%; top: 52%; height: 74%; aspect-ratio: 2 / 3; max-width: 100%; transform: translate(-50%, -50%); z-index: 2; background: #2A301A; box-shadow: 0 0 0 2px #C9AE6A, 0 0 0 11px rgba(185, 154, 82, .14), 0 0 0 12px rgba(201, 174, 106, .45), 0 40px 90px rgba(0, 0, 0, .5); }
/* Khong hieu ung (giam chuyen dong / khong JS): khung phim thanh bo cuc doc - guong, chu mo dau, 6 cau */
.nb-story:not(.nb-story--motion) .nb-story__stage { height: auto; min-height: 0; overflow: visible; padding-top: 40px; }
.nb-story:not(.nb-story--motion) .nb-story__room { position: relative; height: min(68vh, 620px); }
.nb-story:not(.nb-story--motion) .nb-story__mirror { left: 50%; top: 50%; height: 100%; width: auto; }
.nb-story:not(.nb-story--motion) .nb-story__shade, .nb-story:not(.nb-story--motion) .nb-story__cue { display: none; }
.nb-story:not(.nb-story--motion) .nb-story__intro { position: static; padding-top: 40px; }
.nb-story .nb-story__mirror img, .nb-story .nb-story__flyer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.nb-story__mirror img { opacity: 0; }
.nb-story__mirror img:first-child { opacity: 1; }
.nb-story__flyer { position: absolute; z-index: 3; display: none; box-shadow: 0 0 0 1.5px rgba(226, 201, 140, .75), 0 16px 34px rgba(0, 0, 0, .38); background: #2A301A; animation: nbStoryBob 4.8s ease-in-out infinite alternate; will-change: transform; }
.nb-story__flyer.is-still { animation: none; }
.nb-story--motion .nb-story__flyer { display: block; }
@keyframes nbStoryBob { from { translate: 0 -7px; } to { translate: 0 9px; } }
.nb-story__flash { position: absolute; z-index: 7; opacity: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 248, 228, .95), rgba(255, 240, 200, .35) 55%, rgba(255, 240, 200, 0)); mix-blend-mode: screen; }
.nb-story__spark { position: absolute; z-index: 8; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #F1DEA6; box-shadow: 0 0 10px 2px rgba(241, 222, 166, .8); opacity: 0; pointer-events: none; }
.nb-story__shade { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(180deg, rgba(32, 32, 24, 0) 52%, rgba(32, 32, 24, .72) 100%), linear-gradient(90deg, rgba(32, 32, 24, .5), rgba(32, 32, 24, 0) 46%); }
.nb-story__intro, .nb-story__beats, .nb-story__hud { z-index: 5; }
.nb-story__intro { position: absolute; left: 0; right: 0; bottom: clamp(72px, 12vh, 128px); }
.nb-story__intro .nb-story__eyebrow, .nb-story__cue, .nb-story__kicker { color: var(--sv-gold-light); }
.nb-story__title { font-family: var(--sv-serif); font-weight: 500; font-size: clamp(46px, 6.4vw, 100px); line-height: .96; letter-spacing: -.015em; margin: 0 0 18px; max-width: 11ch; color: var(--sv-cream); text-wrap: balance; }
.nb-story__title em { color: var(--sv-gold-light); }
.nb-story__sub { max-width: 44ch; font-size: clamp(16px, 1.5vw, 19px); color: #EDE8D9; }
.nb-story__cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font-family: var(--sv-label); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.nb-story__cue i { width: 40px; height: 1px; background: currentColor; }
/* Khong hieu ung: 6 cau xep doc ngay duoi khung anh */
.nb-story__beats { display: grid; gap: 30px; padding-block: 56px 80px; }
.nb-story__kicker { font-family: var(--sv-label); font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 8px; }
.nb-story__line { font-family: var(--sv-serif); font-style: italic; font-weight: 500; font-size: clamp(32px, 4.4vw, 68px); line-height: 1.04; color: var(--sv-cream); max-width: 15ch; text-wrap: balance; }
.nb-story__hud { display: none; }
.nb-story--motion .nb-story__stage { height: calc(100vh - var(--sv-hdr)); height: calc(100svh - var(--sv-hdr)); min-height: 0; }
.nb-story--motion .nb-story__beats { position: absolute; inset: 0; display: block; padding: 0; pointer-events: none; }
/* Thanh thoi gian dat cao hon nut goi / len dau trang noi o goc duoi (dung chung toan site) */
.nb-story--motion .nb-story__beat { position: absolute; left: 0; right: 0; bottom: clamp(140px, 20vh, 190px); opacity: 0; }
.nb-story--motion .nb-story__hud { display: flex; position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 100px); align-items: center; gap: 14px; font-family: var(--sv-label); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #EDE8D9; font-variant-numeric: tabular-nums; }
.nb-story__bar { flex: 1; height: 2px; border-radius: 2px; background: rgba(245, 242, 233, .25); position: relative; overflow: hidden; }
.nb-story__bar i { position: absolute; inset: 0; background: var(--sv-gold-light); transform-origin: 0 50%; transform: scaleX(.186); }
@media (min-width: 768px) {
    .nb-story__intro .nb-story__wrap > *, .nb-story__beat .nb-story__wrap > * { max-width: min(44vw, 620px); }
}
/* May tinh bang dung doc (JS gan .nb-story--tall): bo cuc nhu dien thoai - guong tren, chu duoi */
.nb-story--tall .nb-story__stage { background: radial-gradient(ellipse 90% 60% at 50% 36%, #5A6537 0%, #3F4824 50%, #262C16 100%); }
.nb-story--tall .nb-story__shade { background: linear-gradient(180deg, rgba(32, 32, 24, 0) 48%, rgba(32, 32, 24, .85) 78%); }
.nb-story--tall .nb-story__intro .nb-story__wrap > *, .nb-story--tall .nb-story__beat .nb-story__wrap > * { max-width: 640px; }
@media (max-width: 767.98px) {
    .nb-story__stage { background: radial-gradient(ellipse 90% 60% at 50% 36%, #5A6537 0%, #3F4824 50%, #262C16 100%); }
    .nb-story__mirror { left: 50%; top: 33%; height: auto; width: 50%; }
    .nb-story--motion .nb-story__cue { display: none; }
    .nb-story:not(.nb-story--motion) .nb-story__room { height: min(56vh, 460px); }   /* thanh thoi gian ben duoi da ghi "Cuon de tua" */
    .nb-story__shade { background: linear-gradient(180deg, rgba(32, 32, 24, 0) 48%, rgba(32, 32, 24, .85) 78%); }
    .nb-story__sub { font-size: 15px; }
    .nb-story__title { font-size: clamp(40px, 11vw, 56px); }
    .nb-story--motion .nb-story__beat { bottom: 136px; }
    .nb-story--motion .nb-story__hud { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
    .nb-story__line { font-size: clamp(28px, 8.4vw, 40px); }
}

/* ---------- Chuong 1 ---------- */
.nb-story__memo { font-family: var(--sv-serif); font-weight: 500; font-size: clamp(28px, 3.9vw, 54px); line-height: 1.22; color: var(--sv-olive-dark); max-width: 31ch; text-wrap: pretty; }
.nb-story__origin { display: grid; gap: 28px; margin-top: clamp(48px, 7vw, 88px); max-width: 760px; margin-left: auto; }
.nb-story__quote { font-family: var(--sv-serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; color: var(--sv-olive); border-left: 1px solid var(--sv-gold); padding-left: 24px; }
.nb-story__own { font-size: 18px; color: var(--sv-text); }
.nb-story__own p { margin: 0 0 1em; }
.nb-story__own img { border-radius: var(--sv-radius); height: auto; }
.nb-story__gyp { position: absolute; right: max(16px, 4vw); top: clamp(40px, 6vw, 80px); width: clamp(120px, 16vw, 220px); opacity: .85; pointer-events: none; }

/* ---------- Chuong 2: dai dip ---------- */
.nb-story__reelHead { display: grid; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.nb-story__count { margin-top: 12px; font-family: var(--sv-label); font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--sv-olive); font-variant-numeric: tabular-nums; }
.nb-story__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-inline: clamp(16px, 4vw, 48px); }
.nb-story__viewport::-webkit-scrollbar { display: none; }
.nb-story__viewport:focus-visible { outline: 2px solid var(--sv-gold); outline-offset: 4px; }
.nb-story__track { display: flex; gap: clamp(16px, 2vw, 28px); width: max-content; padding-bottom: 8px; }
.nb-story__occ { flex: 0 0 auto; width: min(78vw, 360px); scroll-snap-align: start; }
.nb-story__occImg { border-radius: var(--sv-radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--sv-line); max-width: 100%; }
.nb-story .nb-story__occImg img { width: 100%; height: 100%; object-fit: cover; }
.nb-story__occ figcaption { padding: 18px 4px 0; }
.nb-story__occ h3 { font-family: var(--sv-serif); font-weight: 500; font-size: 30px; line-height: 1.1; margin: 0 0 6px; color: var(--sv-olive-dark); }
.nb-story__occ p { color: var(--sv-muted); font-size: 15px; }
.nb-story__occ--text .nb-story__occImg { display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; background: var(--sv-olive); color: var(--sv-cream); }
.nb-story__big { font-family: var(--sv-serif); font-style: italic; font-weight: 500; font-size: clamp(34px, 3vw, 44px); line-height: 1.08; }

/* ---------- Chuong 3: hanh trinh ---------- */
.nb-story__journey { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.nb-story__aside { position: relative; }
.nb-story__sprig { width: clamp(110px, 12vw, 170px); margin-top: 32px; transform-origin: 50% 100%; }
.nb-story__steps { position: relative; padding-left: 44px; }
.nb-story__stepsList { list-style: none; padding: 0; display: grid; gap: clamp(36px, 5vw, 64px); }
.nb-story__stepsTrack, .nb-story__stepsFill { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; }
.nb-story__stepsTrack { background: var(--sv-line); }
.nb-story__stepsFill { background: var(--sv-olive); transform-origin: 50% 0; }
.nb-story__step { position: relative; transition: opacity .5s; }
.nb-story__dot { position: absolute; left: -44px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--sv-olive); color: var(--sv-cream); display: grid; place-items: center; font-family: var(--sv-label); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 6px var(--sv-paper); transition: background .4s, color .4s; }
.nb-story__tag { font-family: var(--sv-label); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sv-gold); margin: 0 0 4px; }
.nb-story__step h3 { font-family: var(--sv-serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 0 0 8px; color: var(--sv-olive-dark); }
.nb-story__step p:not(.nb-story__tag) { color: var(--sv-muted); max-width: 52ch; }
.nb-story__step strong { color: var(--sv-text); font-weight: 600; }
.nb-story--motion .nb-story__step { opacity: .35; }
.nb-story--motion .nb-story__dot { background: #fff; color: var(--sv-muted); box-shadow: 0 0 0 6px var(--sv-paper), inset 0 0 0 1.5px var(--sv-line); }
.nb-story--motion .nb-story__step.is-on { opacity: 1; }
.nb-story--motion .nb-story__step.is-on .nb-story__dot { background: var(--sv-olive); color: var(--sv-cream); box-shadow: 0 0 0 6px var(--sv-paper); }

/* ---------- Chuong 4: phong thu ---------- */
.nb-story__fitting { position: relative; border-radius: var(--sv-radius); overflow: hidden; aspect-ratio: 1800 / 606; max-width: 100%; margin-bottom: clamp(40px, 5vw, 64px); background: var(--sv-olive-dark); }
.nb-story .nb-story__fitting img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; }
.nb-story__curtain { position: absolute; top: 0; bottom: 0; width: 50.5%; background: repeating-linear-gradient(90deg, #3F4824 0 22px, #4B5630 22px 34px, #363E1E 34px 52px); }
.nb-story__curtain--l { left: 0; transform: translateX(-101%); box-shadow: inset -18px 0 30px rgba(0, 0, 0, .25); }
.nb-story__curtain--r { right: 0; transform: translateX(101%); box-shadow: inset 18px 0 30px rgba(0, 0, 0, .25); }
.nb-story__curtain::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: var(--sv-gold); opacity: .7; }
.nb-story__fitGrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.nb-story__promises { border-top: 1px solid var(--sv-line); }
.nb-story__promise { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--sv-line); }
.nb-story__promise svg { width: 28px; height: 28px; stroke: var(--sv-olive); fill: none; stroke-width: 1.4; margin-top: 4px; }
.nb-story__promise h3 { margin: 0 0 4px; font-family: var(--sv-serif); font-size: 26px; font-weight: 500; line-height: 1.2; color: var(--sv-olive-dark); }
.nb-story__promise p { color: var(--sv-muted); font-size: 15.5px; }
.nb-story__visit { display: grid; gap: 14px; margin-top: 28px; padding: 22px 24px; border-radius: var(--sv-radius); background: #fff; box-shadow: var(--nb-shadow, 0 4px 10.2px rgba(86, 77, 58, .08)); }
.nb-story__visit div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.nb-story__visit small { font-family: var(--sv-label); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sv-gold); }
.nb-story__visit span { overflow-wrap: anywhere; }

/* ---------- Chuong 5: khach quen ---------- */
.nb-story__loyal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.nb-story__ladder { padding: 36px 28px 30px; border-radius: var(--sv-radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(217, 212, 194, .22); }
.nb-story__ladderLabel { font-family: var(--sv-label); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sv-gold); }
.nb-story__rail { position: relative; height: 4px; border-radius: 4px; background: rgba(217, 212, 194, .22); margin: 18px 6px 0; }
.nb-story__railFill { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--sv-olive), var(--sv-gold)); transform-origin: 0 50%; }
.nb-story__stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.nb-story__stops div { font-size: 14px; line-height: 1.45; color: #D9D4C2; }
.nb-story__stops div:nth-child(2) { text-align: center; }
.nb-story__stops div:nth-child(3) { text-align: right; }
.nb-story__stops b { display: block; font-family: var(--sv-serif); font-size: 24px; font-weight: 600; color: var(--sv-cream); line-height: 1.15; margin-bottom: 4px; }
.nb-story__ladderNote { margin-top: 22px; font-size: 14px; color: #BDB7A2; }
.nb-story__ladderNote a { color: var(--sv-gold-light); text-decoration: underline; text-underline-offset: 3px; }
.nb-story__ladderNote a:hover { color: var(--sv-cream); }

/* ---------- Ket ---------- */
.nb-story__finale { text-align: center; overflow: hidden; }
.nb-story__finale .nb-story__h2 { margin-inline: auto; max-width: 14ch; }
.nb-story__finale .nb-story__lead { margin: 0 auto; }
.nb-story__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.nb-story__logo { width: clamp(112px, 12vw, 150px); margin: 56px auto 0; border-radius: 50%; box-shadow: 0 0 0 1px var(--sv-line), 0 0 0 7px var(--sv-cream), 0 0 0 8px rgba(185, 154, 82, .45); }
.nb-story__deco { position: absolute; width: clamp(120px, 15vw, 210px); bottom: 6%; pointer-events: none; }
.nb-story__deco--l { left: 2%; transform: scaleX(-1) rotate(-8deg); }
.nb-story__deco--r { right: 2%; transform: rotate(-6deg); }

/* ---------- Le rong ---------- */
@media (min-width: 768px) {
    .nb-story__journey { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
    .nb-story__aside { position: sticky; top: 120px; align-self: start; }
    .nb-story__fitGrid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); }
    .nb-story__loyal { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); }
    /* Chuong 2 vua mot man hinh khi ghim */
    .nb-story__band.nb-story__reel { padding-block: 40px 48px; }
    .nb-story__reelHead { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 48px; align-items: end; margin-bottom: 28px; }
    .nb-story__reelHead .nb-story__eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
    .nb-story__reelHead .nb-story__h2 { margin: 0; font-size: clamp(36px, 4.2vw, 58px); }
    .nb-story__reelHead .nb-story__lead { font-size: 16px; }
    .nb-story__occ { width: calc(min(46vh, 470px) * .75); }
    .nb-story__occImg { height: min(46vh, 470px); aspect-ratio: auto; }
    .nb-story__occ h3 { font-size: 26px; }
    .nb-story__occ figcaption { padding-top: 12px; }
}
@media (max-width: 767.98px) {
    .nb-story__fitting { aspect-ratio: 4 / 5; }
    .nb-story .nb-story__fitting img { object-position: 42% 40%; }
    .nb-story__gyp { opacity: .45; top: 10px; right: 8px; width: 92px; }
    .nb-story__sprig { display: none; }
    .nb-story__journey { gap: 36px; }
    .nb-story__deco { opacity: .5; }
    .nb-story__ladder { padding: 28px 18px 24px; }
    .nb-story__stops b { font-size: 20px; }
    .nb-story__cta .nb-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .nb-story *, .nb-story *::before, .nb-story *::after { transition: none !important; animation: none !important; }
}
