/* Lớp tinh chỉnh (20/11/2026, user: "những tinh tế nhỏ trong thiết kế mang lại ấn tượng và mê mẩn cho khách").
   Nạp SAU CÙNG, đi kèm js/finesse.js. Chỉ thêm, không đổi bố cục đã chốt. Gỡ thử: bỏ 2 dòng nạp trong index.html.
   Mục: 1 phông tự chứa · 2 chi tiết chữ · 3 viền tiêu điểm, vùng chọn · 4 nút · 5 tiêu đề trồi theo dòng · 6 ảnh kéo rèm
        7 danh sách + trang căn · 8 vòng con trỏ · 9 âm thanh nền · 10 vạch tiến độ đọc · 11 chân trang · 12 giảm chuyển động */

/* ===== 1 · Noto Serif Display tự chứa =====
   Trước: tải từ Google Fonts. Phòng họp không có mạng thì mọi tiêu đề và số lớn rơi về Times New Roman.
   6 file trong fonts/ (bản biến thiên 300–400, chia theo bảng chữ như Google: tiếng Việt, latin, latin mở rộng). */
@font-face { font-family: "Noto Serif Display"; font-style: italic; font-weight: 300; font-display: swap;
  src: url("../fonts/NotoSerifDisplay-Italic-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Noto Serif Display"; font-style: italic; font-weight: 300; font-display: swap;
  src: url("../fonts/NotoSerifDisplay-Italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Serif Display"; font-style: italic; font-weight: 300; font-display: swap;
  src: url("../fonts/NotoSerifDisplay-Italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 300 400; font-display: swap;
  src: url("../fonts/NotoSerifDisplay-Roman-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 300 400; font-display: swap;
  src: url("../fonts/NotoSerifDisplay-Roman-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 300 400; font-display: swap;
  src: url("../fonts/NotoSerifDisplay-Roman-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Vài nhãn vẽ bằng SVG / canvas còn gọi tên "Be Vietnam Pro" (bản đồ nhỏ 360°, tên điểm trên bản đồ nổi). Phông đó trước tải từ Google;
   giờ trỏ tên ấy về Mona Sans đã có sẵn, nên các nhãn này cùng một kiểu chữ với cả trang và không cần mạng. */
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/MonaSans-VF.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; }

:root {
  --fx-out: cubic-bezier(.16, 1, .3, 1);      /* ra nhanh, đáp êm: dùng cho mọi thứ "hiện ra" */
  --fx-gold: #c8ac78;                         /* vàng của sợi chỉ màn chào và chân trang */
}

/* ===== 2 · chi tiết chữ ===== */
html { -webkit-tap-highlight-color: transparent; }              /* chạm trên điện thoại không loé ô xám */
.display, .hero h1, .num, .facts dt, .nb-year, .nb-quote p { font-kerning: normal; font-optical-sizing: auto; text-rendering: optimizeLegibility; }
.lede, .nb-gloss, .nb-time p, .hero-sub, .fine, .acts span { text-wrap: pretty; }   /* không để một chữ rớt riêng dòng cuối */
.stage, .top, .pano, .menu-head, .lib-nav { -webkit-user-select: none; user-select: none; }   /* kéo tòa không bôi đen chữ */
.story img, .panel img, .menu img { -webkit-user-drag: none; }
.panel-body { scrollbar-width: thin; scrollbar-color: rgba(124,114,98,.35) transparent; }

/* ===== 3 · viền tiêu điểm (chỉ hiện khi đi bằng bàn phím) và vùng chọn chữ ===== */
a:focus-visible, button:focus-visible, [role="link"]:focus-visible, [tabindex]:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
.rows .row:focus-visible { outline-offset: -1px; }
::selection { background: rgba(124, 114, 98, .26); color: inherit; }
.story-foot ::selection, .menu ::selection, .film-box ::selection { background: rgba(200, 172, 120, .38); }

/* ===== 4 · nút: nền dâng từ dưới lên thay cho đổi màu tức thì ===== */
@media (hover: hover) {
  .btn.light, .btn.ghost, .btn.dark { position: relative; isolation: isolate; overflow: hidden; transition: color .55s var(--fx-out), border-color .55s var(--fx-out); }
  .btn.light::before, .btn.ghost::before, .btn.dark::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: #fff;
    transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--fx-out); }
  .btn.dark::before { background: var(--ink); }
  .btn.light:hover::before, .btn.ghost:hover::before, .btn.dark:hover::before,
  .btn.light:focus-visible::before, .btn.ghost:focus-visible::before, .btn.dark:focus-visible::before { transform: scaleY(1); }
  .btn.light:hover { background: transparent; }
  .btn.ghost:hover { background: rgba(20, 20, 20, .08); }
  .btn.dark:hover { background: transparent; }
  .btn.light:focus-visible, .btn.ghost:focus-visible { color: var(--ink); }
  .btn.dark:focus-visible { color: #fff; }
  .btn i { transition: transform .6s var(--fx-out); }
  .btn:hover i { transform: translateX(6px); }
}

/* ===== 5 · tiêu đề chương trồi lên theo từng dòng (js bọc mỗi dòng trong .ln > .ln-i) ===== */
/* chừa chỗ cho dấu tiếng Việt và chân chữ. Lề âm dồn hết xuống dưới: lề âm trên + dưới của hai khối kề nhau GỘP lại (chỉ lấy cái âm nhất, không cộng),
   nên bản đầu (margin −.2em trên, −.16em dưới) làm chỗ ngắt dòng bằng <br> rộng hơn chỗ tự xuống dòng .16em: tiêu đề 3 dòng nhìn lệch nhịp (user chụp 20/11/2026) */
.fx-lines .ln { display: block; overflow: hidden; padding: .2em .06em .16em; margin: 0 -.06em -.36em; }
.fx-lines .ln:first-child { margin-top: -.2em; }
.fx-lines .ln-i { display: block; transform: translateY(118%); transition: transform 1.25s var(--fx-out); transition-delay: calc(var(--l, 0) * 110ms + 80ms); will-change: transform; }
.fx-lines.fx-in .ln-i { transform: none; }

/* ===== 6 · ảnh và phim: kéo rèm từ dưới lên, hình lùi nhẹ về đúng cỡ ===== */
/* BẪY (lỗi thật ngày 20/11/2026, user: "sao mấy chỗ này trống vậy"): KHÔNG đặt clip-path lên chính khối .reveal. js/story.js thêm lớp .in bằng
   IntersectionObserver, mà Chrome coi khối bị clip-path che hết là "chưa vào màn hình" nên .in không bao giờ được thêm: 9 khung ảnh / phim trắng trơn.
   Rèm phải đặt lên phần tử CON (video, img); khung figure giữ nguyên hộp để trình duyệt còn thấy nó. Nền tối chuyển từ figure sang video / img. */
.story figure.reveal { opacity: 1; transform: none; background: transparent; }
.story figure.reveal > video, .story figure.reveal > img { background: #1a1c22; clip-path: inset(100% 0 0 0); transform: scale(1.12);
  transition: clip-path 1.5s var(--fx-out), transform 2.2s var(--fx-out); }
.story figure.reveal.in > video, .story figure.reveal.in > img { clip-path: inset(0 0 0 0); transform: none; }
.story figure.reveal > figcaption, .story figure.reveal > button { opacity: 0; transition: opacity .9s var(--fx-out) .7s; }
.story figure.reveal.in > figcaption, .story figure.reveal.in > button { opacity: 1; }
.story .gallery figure.reveal:nth-child(2) > * { transition-delay: .12s; }
.story .gallery figure.reveal:nth-child(3) > * { transition-delay: .24s; }
.story .gallery figure.reveal:nth-child(4) > * { transition-delay: .36s; }
.gallery figcaption, .lib-item span { transition: transform .7s var(--fx-out), opacity .7s; }
/* số liệu mở đầu: đường kẻ tự vẽ rồi số đếm lên (js) */
.facts div { position: relative; border-top-color: transparent; }
.facts div::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--fx-out); }
.facts.fx-in div::before { transform: scaleX(1); }
.facts div:nth-child(2)::before { transition-delay: .1s; } .facts div:nth-child(3)::before { transition-delay: .2s; } .facts div:nth-child(4)::before { transition-delay: .3s; }

/* ===== 7 · danh sách căn và trang căn ===== */
@keyframes fx-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fx-mask { from { transform: translateY(105%); } }
.rows.fx-go .row { animation: fx-rise .7s var(--fx-out) both; animation-delay: calc(var(--i, 12) * 34ms); }
.unit-view > * { animation: fx-rise .9s var(--fx-out) both; }
.unit-view > :nth-child(2) { animation-delay: .08s; } .unit-view > :nth-child(3) { animation-delay: .16s; }
.unit-view > :nth-child(4) { animation-delay: .24s; } .unit-view > :nth-child(5) { animation-delay: .32s; }
.unit-view .u-head { animation: none; overflow: hidden; padding-top: .1em; }
.unit-view .u-head > * { animation: fx-mask 1.1s var(--fx-out) both; }
.unit-view .u-head > :nth-child(2) { animation-delay: .1s; }
/* căn trước / căn kế tiếp, theo đúng thứ tự danh sách đang lọc (js) */
.u-more { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 6px; }
.u-more a { display: grid; gap: 4px; padding: 18px 0 20px; text-decoration: none; color: var(--ink); }
.u-more a + a { text-align: right; padding-left: 18px; border-left: 1px solid var(--line); }
.u-more a:first-child { padding-right: 18px; }
.u-more .k { font-family: var(--sans); font-stretch: 112%; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.u-more .n { font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1.05; color: var(--taupe); font-variant-numeric: lining-nums; transition: transform .6s var(--fx-out), color .3s; }
.u-more .n small { font-size: .52em; }
.u-more .t { font-size: 14px; color: var(--ink-2); }
.u-more a:hover .n { color: var(--ink); }
.u-more a:first-child:hover .n { transform: translateX(-5px); }
.u-more a + a:hover .n { transform: translateX(5px); }
.u-more a[aria-disabled="true"] { visibility: hidden; }

/* ===== 8 · con trỏ "kéo để xoay" trên tòa và dải ảnh (máy có chuột) =====
   user 21/11/2026: "đổi cho tôi cái cursor này với, nhìn phèn quá", rồi "con trỏ di chuyển theo trỏ chuột hệ thống nên làm như cứ lag lag mà hình dạng cũng ko đẹp".
   Bản cũ là một vòng do JS vẽ đuổi theo chuột → luôn trễ ít nhất một khung hình, kèm đĩa tối làm mờ nền. Giờ là ẢNH con trỏ (tools/make-cursor.py) để hệ điều
   hành tự vẽ: dính liền tay, không trễ. Đứng yên ‹ ◉ ›; đang kéo vòng thu lại, hai mũi dang ra. Điểm bấm ở tâm (24 12). Trình duyệt không nhận ảnh thì về grab / grabbing. */
.stage, .lib-strip { cursor: url("../img/cursor/keo.png") 24 12, grab; cursor: -webkit-image-set(url("../img/cursor/keo.png") 1x, url("../img/cursor/keo@2x.png") 2x) 24 12, grab; cursor: image-set(url("../img/cursor/keo.png") 1x, url("../img/cursor/keo@2x.png") 2x) 24 12, grab; }
.stage.dragging, .lib-strip.drag { cursor: url("../img/cursor/keo-giu.png") 24 12, grabbing; cursor: -webkit-image-set(url("../img/cursor/keo-giu.png") 1x, url("../img/cursor/keo-giu@2x.png") 2x) 24 12, grabbing; cursor: image-set(url("../img/cursor/keo-giu.png") 1x, url("../img/cursor/keo-giu@2x.png") 2x) 24 12, grabbing; }
.stage.zoomed, .stage.zoomed.dragging { cursor: move; }

/* ===== 9 · âm thanh nền (tắt sẵn, khách tự bật) ===== */
.fx-eq { display: inline-flex; align-items: center; gap: 3px; height: 12px; }
.fx-eq b { width: 1px; height: 100%; background: currentColor; transform: scaleY(.22); transform-origin: 50% 50%; transition: transform .5s var(--fx-out); }
.fx-snd[aria-pressed="true"] .fx-eq b { animation: fx-eq 1.3s ease-in-out infinite alternate; }
.fx-snd[aria-pressed="true"] .fx-eq b:nth-child(2) { animation-duration: .9s; animation-delay: -.4s; }
.fx-snd[aria-pressed="true"] .fx-eq b:nth-child(3) { animation-duration: 1.6s; animation-delay: -.9s; }
.fx-snd[aria-pressed="true"] .fx-eq b:nth-child(4) { animation-duration: 1.1s; animation-delay: -.2s; }
.fx-snd[aria-pressed="true"] .fx-eq b:nth-child(5) { animation-duration: 1.45s; animation-delay: -.7s; }
@keyframes fx-eq { from { transform: scaleY(.18); } to { transform: scaleY(1); } }
.fx-snd.wait .fx-eq { opacity: .5; }
.menu-foot .fx-snd { display: inline-flex; align-items: center; gap: 12px; margin: 10px 0 16px; padding: 8px 0; font: inherit; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.menu-foot .fx-snd em { font-style: normal; opacity: .62; }
@media (min-width: 861px) { .menu-foot .fx-snd { display: none; } }          /* máy bàn đã có nút trên thanh đầu */

/* ===== 10 · vạch tiến độ đọc brochure, nằm ở mép dưới thanh đầu ===== */
.fx-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--taupe); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; opacity: 0; transition: opacity .5s; pointer-events: none; }
.app.scrolled .fx-prog { opacity: 1; }

/* ===== 11 · chân trang ===== */
.foot-top { margin-top: 30px; display: inline-flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--sans); font-stretch: 112%; font-size: 11.5px; font-weight: 500; letter-spacing: .24em; margin-right: -.24em;
  text-transform: uppercase; text-decoration: none; color: rgba(243, 239, 233, .7); transition: color .4s; }
/* user 20/11/2026 (khoanh vạch dọc vàng phía trên chữ): "cái gì đây ta. để như này trống quá". Vạch 1×34 px trông như lỗi hiển thị → đổi thành vòng tròn
   mảnh có mũi tên lên, rõ là nút; thêm hàng lối tắt các chương (.foot-nav) giữa cụm logo và nút cho chân trang không còn mảng trống. */
.foot-top i { position: relative; width: 46px; height: 46px; border: 1px solid rgba(200, 172, 120, .55); border-radius: 50%; transition: border-color .4s, background .4s; }
.foot-top i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1px; height: 15px; margin: -7px 0 0 -.5px; background: currentColor; transition: transform .5s var(--fx-out); }
.foot-top i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -8px 0 0 -4px; border: solid currentColor; border-width: 1px 0 0 1px; transform: rotate(45deg); transition: transform .5s var(--fx-out); }
.foot-top:hover { color: #fff; }
.foot-top:hover i { border-color: var(--fx-gold); background: rgba(200, 172, 120, .1); }
.foot-top:hover i::before { transform: translateY(-3px); }
.foot-top:hover i::after { transform: translateY(-3px) rotate(45deg); }
.foot-nav { margin-top: 34px; padding: 20px 0; width: min(920px, 100%); border-top: 1px solid rgba(243, 239, 233, .14); border-bottom: 1px solid rgba(243, 239, 233, .14);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(18px, 3vw, 40px); }
.foot-nav a { position: relative; padding: 6px 0; font-family: var(--sans); font-stretch: 112%; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: rgba(243, 239, 233, .74); transition: color .35s; }
.foot-nav a::after { content: ""; position: absolute; left: 0; right: .2em; bottom: 0; height: 1px; background: var(--fx-gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--fx-out); }
.foot-nav a:hover, .foot-nav a:focus-visible { color: #fff; }
.foot-nav a:hover::after, .foot-nav a:focus-visible::after { transform: scaleX(1); }

/* ===== 12 · người dùng tắt chuyển động: mọi thứ hiện ngay ===== */
@media (prefers-reduced-motion: reduce) {
  .fx-lines .ln-i { transform: none; transition: none; }
  .story figure.reveal > video, .story figure.reveal > img { clip-path: none; transform: none; transition: none; }
  .story figure.reveal > figcaption, .story figure.reveal > button { opacity: 1; transition: none; }
  .facts div::before { transform: none; transition: none; }
  .rows.fx-go .row, .unit-view > *, .unit-view .u-head > * { animation: none; }
  .fx-snd[aria-pressed="true"] .fx-eq b { animation: none; transform: scaleY(.7); }
}

/* ===== 13 · trang căn: lối "Tầm nhìn từ căn" (mở 360° sân thượng đúng hướng căn) + chú thích trong 360° ===== */
.u-view { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.u-view .label { color: var(--ink-2); font-size: 11.5px; }
.u-view-go { font-size: 15px; color: var(--taupe); transition: color .3s; }
.u-view-go i { display: inline-block; font-style: normal; transition: transform .5s var(--fx-out); }
.u-view:hover .u-view-go { color: var(--ink); }
.u-view:hover .u-view-go i { transform: translateX(5px); }
.pano-hint.is-unit { max-width: calc(100% - 232px); letter-spacing: .12em; line-height: 1.5; }
@media (max-width: 860px) { .pano-hint.is-unit { max-width: calc(100% - 140px); font-size: 10.5px; letter-spacing: .06em; padding-right: 10px; } }
.pano-hint.is-unit { text-shadow: 0 0 4px rgba(0,0,0,.6), 0 1px 12px rgba(0,0,0,.8); padding: 14px 40px 14px 16px; margin: 0 0 -14px -16px; background: radial-gradient(ellipse at 35% 55%, rgba(10,14,24,.5), rgba(10,14,24,0) 72%); }

/* ===== 14 · chữ ký studio (user 20/11/2026: "chữ kí CG Record Studio nha https://cgrecordstudio.com/") ===== */
.foot-by { margin-top: 34px; padding-top: 22px; width: min(420px, 100%); border-top: 1px solid rgba(243, 239, 233, .14); display: grid; justify-items: center; gap: 7px;
  text-decoration: none; color: rgba(243, 239, 233, .62); transition: color .4s; }
.foot-by em { font-style: normal; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.foot-by b { position: relative; font-family: var(--sans); font-stretch: 118%; font-weight: 480; font-size: 13.5px; letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; color: #f3efe9; padding-bottom: 5px; }
.foot-by b::after { content: ""; position: absolute; left: 0; right: .3em; bottom: 0; height: 1px; background: var(--fx-gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--fx-out); }
/* logo studio đứng trước tên (user 20/11/2026: "CG Record studio đặt logo ở phía trước luôn á"); img/cgrecord-logo.png = bản trắng nền trong lấy từ cgrecordstudio.com */
.foot-by strong { display: inline-flex; align-items: center; gap: 14px; font-weight: inherit; }
.foot-by img { display: block; width: 34px; height: 34px; opacity: .92; transition: opacity .4s, transform .6s var(--fx-out); }
.foot-by:hover img { opacity: 1; transform: rotate(-8deg); }
.menu-foot .menu-by { display: inline-flex; align-items: center; gap: 7px; }
.menu-foot .menu-by img { display: block; width: 18px; height: 18px; }
.foot-by:hover { color: #f3efe9; }
.foot-by:hover b::after, .foot-by:focus-visible b::after { transform: scaleX(1); }
.menu-foot .menu-by { color: inherit; text-decoration: none; opacity: .78; transition: opacity .3s; }
.menu-foot .menu-by b { font-weight: 500; }
.menu-foot .menu-by:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ===== 15 · màn đầu máy bàn: góc phải dưới bớt chật (user 20/11/2026 đồng ý: "ok sửa") =====
   Trước: 4 tầng điều khiển luôn hiện (thẻ tìm trên tòa, dòng mặt trời, thanh giờ, nút xoay). Giờ dòng mặt trời (mọc / lặn, đổi tháng) chỉ hiện
   khi rê vào cụm điều khiển, đang chỉnh giờ, hoặc đang bật thẻ "Đang có nắng"; các thẻ tìm trên tòa mờ nhẹ lúc không dùng. Điện thoại giữ nguyên. */
@media (hover: hover) and (min-width: 861px) {
  .lens .sun-line { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--fx-out) .35s, transform .5s var(--fx-out) .35s; }
  .lens:hover .sun-line, .lens:focus-within .sun-line,
  .stage:has(.daybar:hover) .lens .sun-line, .stage:has(.daybar:focus-within) .lens .sun-line,
  .stage:has(.lchip[data-lens="nang"][aria-pressed="true"]) .lens .sun-line { opacity: 1; transform: none; transition-delay: 0s; }
  .lens .lens-chips { opacity: .66; transition: opacity .5s var(--fx-out) .25s; }
  .lens:hover .lens-chips, .lens:focus-within .lens-chips, .stage:has(.daybar:hover) .lens .lens-chips,
  .lens:has(.lchip[aria-pressed="true"]) .lens-chips { opacity: 1; transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) { .lens .sun-line, .lens .lens-chips { transition: none; } }

/* ===== 16 · bản đồ nổi 3D: thẻ thời gian của chặng Sân bay nằm chếch lên trên ghim, không che mô hình sân bay ===== */
.lm3-chip.k-bay { margin: -96px 0 0 24px; }
/* thẻ tên dự án trên bản đồ: bo góc nhẹ (user 20/11/2026: "cái này bo lại 1 xíu thui nha") */
.lm3-site, .lm3-chip { border-radius: 4px; }                     /* cả thẻ thời gian: "mấy cái label trong map 3D đó thì nên bo tròn nhẹ 1 xíu" */

/* ===== 17 · tiêu đề không ngắt sai nghĩa (user 21/11/2026: "viết như này làm tưởng là Thần Nobu", "chỗ nào tương tự thì sửa luôn") =====
   "gặp tinh / thần Nobu": cột trái chương mở đầu hẹp hơn dòng chữ nên dòng hai tự gãy. Nới cột trái (1,6 : 1) cho vừa đúng hai dòng như đã viết;
   trong index.html các cụm phải đi liền nhau ("tinh thần Nobu", "căn bếp") nối bằng dấu cách không ngắt. Viết tiêu đề mới nhớ làm như vậy. */
@media (min-width: 961px) { .intro-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); } }   /* dòng "gặp tinh thần Nobu" ở cỡ 78px rộng ~675px: cột trái phải ≥ 700px */

/* ===== 18 · lớp hiệu ứng nhỏ (user 21/11/2026: "trang có vẻ thiếu FX… thêm các chi tiết nhỏ mang tính chuyên nghiệp") =====
   Nguyên tắc: tiết chế, không đổi bố cục, không thêm việc cho luồng chính lúc cuộn (phần theo cuộn dùng animation-timeline của CSS, chạy trên bộ tổng hợp;
   trình duyệt chưa hỗ trợ thì đứng yên như cũ). Không đặt clip-path / transform lên chính khối .reveal (xem BẪY ở mục 6). */
/* a) chuyển động theo cuộn: phim tràn khổ trôi chậm hơn trang, chữ 心 lửng lơ, ảnh loại căn lùi về đúng cỡ khi cuộn tới */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .story .media.bleed:not(.day-frame) > video { scale: 1.14; animation: fx-par linear both; animation-timeline: view(); }
    .nb-kanji { animation: fx-drift linear both; animation-timeline: view(); }
    .type-img img { animation: fx-settle var(--fx-out) both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    .nb-quote { animation: fx-quote linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}
@keyframes fx-par { from { translate: 0 -5.5%; } to { translate: 0 5.5%; } }
@keyframes fx-drift { from { translate: 0 14%; } to { translate: 0 -14%; } }
@keyframes fx-settle { from { scale: 1.16; } to { scale: 1; } }
@keyframes fx-quote { from { border-left-color: transparent; translate: 14px 0; } to { translate: 0 0; } }
/* b) nút phát phim: vòng sáng lan ra mời bấm */
.film-play .fp-ring { position: relative; translate: var(--mx, 0) var(--my, 0); transition: translate .5s var(--fx-out), background .3s, transform .3s; }
/* vòng gợn bằng viền phóng to + mờ dần (card đồ hoạ tự chạy); bản đầu đổi box-shadow của nút có backdrop-filter → vẽ lại mỗi khung hình */
.film-play .fp-ring::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); pointer-events: none;
  animation: fx-pulse 2.8s var(--fx-out) infinite; }
@keyframes fx-pulse { 0% { transform: scale(1); opacity: .85; } 70%, 100% { transform: scale(1.62); opacity: 0; } }
.film-play:hover .fp-ring::after { animation-play-state: paused; }
.foot-top i { translate: var(--mx, 0) var(--my, 0); transition: translate .5s var(--fx-out), border-color .4s, background .4s; }   /* c) nút tròn hút nhẹ theo con trỏ (js) */
/* d) menu: các mục trồi lên lần lượt khi mở */
.app.menu-open .menu-list > li, .app.menu-open .menu-ch li, .app.menu-open .menu-foot > * { animation: fx-rise .8s var(--fx-out) both; }
.app.menu-open .menu-list > li:nth-child(1) { animation-delay: .16s; } .app.menu-open .menu-list > li:nth-child(2) { animation-delay: .23s; }
.app.menu-open .menu-list > li:nth-child(3) { animation-delay: .30s; } .app.menu-open .menu-list > li:nth-child(4) { animation-delay: .37s; }
.app.menu-open .menu-ch li { animation-delay: calc(.42s + var(--i, 0) * 28ms); }
.app.menu-open .menu-foot > * { animation-delay: .7s; }
/* e) ảnh trong trang căn: lùi rất chậm khi đang hiện; clip nội thất / tiện ích: nhích gần khi rê chuột */
.slides .slide.on .slide-img { animation: fx-ken 11s var(--fx-out) both; }
@keyframes fx-ken { from { transform: scale(1.075); } to { transform: none; } }
@media (hover: hover) { .story .gallery figure.reveal.in:hover > video { transform: scale(1.045); } }
/* f) thanh đầu tự ẩn khi cuộn xuống trong brochure, cuộn lên là hiện lại (js thêm .fx-hide); dùng bàn phím thì luôn hiện */
.top { transition: right 1s var(--ease), background .5s, color .5s, padding .5s, transform .65s var(--fx-out); }
.app.scrolled .top.fx-hide { transform: translateY(-102%); }
.app.scrolled .top.fx-hide:focus-within, .app.menu-open .top.fx-hide { transform: none; }
/* g) thanh chỉ chương bên phải (máy bàn): vạch của chương đang xem dài ra, rê chuột hiện tên, bấm để tới. mix-blend-mode cho vạch tự tương phản với mọi nền */
.fx-rail { position: fixed; z-index: 12; right: 18px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; align-items: flex-end; gap: 2px;
  mix-blend-mode: difference; opacity: 0; pointer-events: none; transition: opacity .6s; }
.fx-rail a { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 22px; padding-left: 20px; color: #fff; text-decoration: none; }
.fx-rail i { display: block; width: 14px; height: 1px; background: currentColor; opacity: .55; transition: width .6s var(--fx-out), opacity .4s; }
.fx-rail em { font-style: normal; font-family: var(--sans); font-stretch: 112%; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translateX(8px); transition: opacity .4s, transform .5s var(--fx-out); }
.fx-rail a[aria-current="true"] i { width: 34px; opacity: 1; }
.fx-rail:hover em, .fx-rail a:focus-visible em { opacity: 1; transform: none; }
.fx-rail a:hover i { width: 26px; opacity: 1; }
@media (hover: hover) and (min-width: 1100px) { .fx-rail { display: flex; } .app.scrolled:not(.panel-open):not(.pano-open) ~ .fx-rail, .app.scrolled:not(.panel-open):not(.pano-open) .fx-rail { opacity: 1; pointer-events: auto; } }
@media (prefers-reduced-motion: reduce) {
  .film-play .fp-ring::after, .slides .slide.on .slide-img, .app.menu-open .menu-list > li, .app.menu-open .menu-ch li, .app.menu-open .menu-foot > * { animation: none; }
  .top { transition: none; } .app.scrolled .top.fx-hide { transform: none; }
}

/* ===== 20 · cho trang được nghỉ khi đứng yên (js/finesse.js part "fx-idle"). Còn một hoạt ảnh lặp mãi đang chạy là trang dựng lại mỗi khung hình ===== */
.fx-zz, .fx-zz::before, .fx-zz::after, .fx-zz * { animation-play-state: paused !important; }    /* ra khỏi màn hình: dừng */
.fx-rs, .fx-rs::before, .fx-rs::after { animation: none !important; }                             /* quay lại: chạy lại từ đầu */
.scroll-cue i { animation-iteration-count: 5; }                                                    /* vạch gợi ý cuộn: 5 nhịp lúc vừa tới rồi đứng yên */
.app:not(.intro-done) .scroll-cue i, .app:not(.intro-done) .tour-start i::after { animation-play-state: paused; }   /* đếm nhịp từ lúc màn chào mở, không phí nhịp sau tấm màn */
/* làm mờ nền (backdrop-filter) phải tính lại mỗi khi thứ phía sau đổi. Thẻ thời gian trên bản đồ nổi trôi theo máy quay, nền dưới nó (canvas) đổi mỗi khung hình,
   mà thẻ gần như đục (90%) nên lớp mờ hầu như không thấy: bỏ mờ, tăng độ đục bù lại. Thanh trên của điện thoại cũng vậy (GPU điện thoại yếu, thanh đè lên mọi thứ đang cuộn) */
.lm3-chip { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .96); }
@media (max-width: 860px) { .app.scrolled .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(240, 238, 234, .96); } }

/* ===== 19 · bản đồ nổi 3D: kéo để dời, Shift + kéo để xoay (js/loc-map3d.js). Dòng hướng dẫn theo loại thiết bị ===== */
.lm3-head .h-touch { display: none; }
@media (hover: none) { .lm3-head .h-fine { display: none; } .lm3-head .h-touch { display: inline; } }
.lm3.drag.rot .lm3-ov { cursor: ew-resize; }
.lm3-chip.k-rong { margin: 30px 0 0 -120px; }                          /* thẻ Cầu Rồng nằm dưới ghim: không che lửa rồng phun về phía biển */
