/* Trang Dự án — mẫu anh duyệt 20/11 (DuAn-mau-dong). File này do tay giữ; trang HTML do du-an/_cong-cu/dung_du_an.py sinh. */
  :root { --deep: #24397F; }  /* navy đậm, chỉ dùng trong trang dự án */
  .cond { font-family: var(--cond); text-transform: uppercase; letter-spacing: .04em; }
  /* Bông tuyết: cắt phần dấu từ logo final (không vẽ lại) */
  .flake { display: inline-block; aspect-ratio: 694/706; background: url(../nhan-dien/logo/bong-tuyet-trang.svg) center / contain no-repeat; }
  .flake.c { background-image: url(../nhan-dien/logo/bong-tuyet-mau.svg); }

  /* ---------- 1. Đầu trang = khung ảnh Thủy Đông (băng navy trên + ảnh + băng navy dưới) ---------- */
  .fr { background: var(--navy); color: #fff; }
  .fr .band-t { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; font-size: 14px; font-weight: 600; }
  .fr .band-t b { color: var(--ice); font-weight: 700; }
  .fr .band-t .ph { font: 600 16px var(--mono); color: var(--yellow); text-decoration: none; white-space: nowrap; }
  .fr .shot { position: relative; height: min(calc(100svh - 64px - 48px - 270px), 600px); min-height: 340px; overflow: hidden; background: #0e1838; }
  .fr .shot img { width: 100%; height: 118%; object-fit: cover; will-change: transform; animation: kb 16s ease-out both; }
  @keyframes kb { from { scale: 1.12; } to { scale: 1; } }
  .fr .shot .flake { position: absolute; right: 24px; top: 24px; height: 72px; opacity: .9; }
  .fr .shot .lbl-temp { position: absolute; left: max(16px, calc((100vw - var(--maxw)) / 2 + 32px)); top: 24px; background: var(--navy); padding: 12px 16px; display: flex; align-items: baseline; gap: 8px; }
  .fr .shot .lbl-temp b { font: 700 36px/1 var(--sc-font-display); letter-spacing: -.02em; }
  .fr .shot .lbl-temp span { font: 600 12px/1 var(--mono); color: var(--sky); text-transform: uppercase; letter-spacing: .06em; }
  .fr .band-b { padding-block: 32px 40px; display: grid; grid-template-columns: 8fr 4fr; gap: 48px; align-items: end; border-top: 4px solid var(--sky); }
  .fr .crumb { color: rgba(255,255,255,.7); padding: 0; margin: 0 0 16px; }
  .fr .crumb a { color: rgba(255,255,255,.7); }
  .fr h1 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0; text-wrap: balance; }
  .fr .tags { display: flex; gap: 8px; margin-bottom: 16px; }
  .fr .tags span { font: 700 14px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; padding: 8px 12px; background: #fff; color: var(--navy); }
  .fr .tags span + span { background: var(--ice); color: var(--deep); }
  .fr .meta { display: grid; gap: 12px; margin: 0; }
  .fr .meta div { border-left: 4px solid var(--ice); padding-left: 12px; font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.75); }
  .fr .meta b { display: block; font: 600 20px/1.3 var(--sc-font-display); text-transform: none; letter-spacing: 0; color: #fff; }
  .slide-d { animation: sd .8s cubic-bezier(.2,.7,.2,1) both; } @keyframes sd { from { translate: 0 -100%; opacity: 0; } }
  .rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; } .rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; } .rise.d3 { animation-delay: .36s; }
  @keyframes rise { from { opacity: 0; translate: 0 24px; } }

  /* ---------- 2. Số liệu: tiếp băng navy, chia ô bằng vạch xanh nhạt ---------- */
  .st { background: var(--deep); color: #fff; }
  .st .row { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); }
  .st .c { padding: 32px 24px; border-left: 1px solid rgba(147,188,227,.35); }
  .st .c:first-child { border-left: 0; padding-left: 0; }
  /* Icon nét tròn, đơn giản (19/11) */
  .st .ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: rgba(147,188,227,.16); color: var(--ice); }
  .st .ic svg { width: 24px; height: 24px; }
  .st b { display: block; font: 700 clamp(42px, 4.4vw, 60px)/1 var(--sc-font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .st b small { font: 600 18px var(--sc-font-display); color: var(--sky); margin-left: 4px; letter-spacing: 0; }
  .st .tx > span { display: block; margin-top: 8px; font: 600 14px/1.3 var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--sky); }
  .st .bar { height: 4px; background: rgba(147,188,227,.25); }
  .st .bar i { display: block; height: 100%; width: 0; background: var(--ice); transition: width 1.6s cubic-bezier(.2,.7,.2,1); }
  .st.in .bar i { width: 100%; }

  /* ---------- 3. Giới thiệu + bảng thông số kiểu báo giá ---------- */
  .in3 { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; padding-block: 96px; align-items: start; }
  .kick { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 700 14px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }
  .kick .flake { height: 24px; }
  .in3 h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.25; letter-spacing: -.015em; font-weight: 700; margin: 0 0 16px; text-wrap: balance; }
  .in3 .lead { color: var(--g70); font-size: 18px; line-height: 1.6; margin: 0 0 32px; }
  .pic { margin: 0; }
  .pic .im { overflow: hidden; clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.2,.7,.2,1); }
  .pic.rv { opacity: 1; translate: 0 0; }
  .pic.rv:not(.in) .im { clip-path: inset(0 0 100% 0); }
  .pic img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; scale: 1.08; transition: scale 1.6s cubic-bezier(.2,.7,.2,1); }
  .pic.in img { scale: 1; }
  .pic figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; border-top: 2px solid var(--navy); margin-top: 12px; font: 600 14px/1.3 var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--navy); }
  .pic figcaption span { font: 500 12px var(--mono); color: var(--g70); letter-spacing: .04em; text-transform: none; }
  .bg { width: 100%; border-collapse: collapse; font-size: 16px; }
  .bg caption { text-align: left; background: var(--navy); color: #fff; padding: 12px 16px; font: 700 14px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; }
  .bg th { width: 34%; text-align: left; vertical-align: top; background: var(--g10); font: 600 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--g70); padding: 14px 16px; border-bottom: 1px solid #fff; }
  .bg td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 500; line-height: 1.45; }
  .bg tr { transition: background .25s; } .bg tr:hover td { background: var(--tint); }
  .bg tr.rv { opacity: 0; translate: 16px 0; } .bg tr.rv.in { opacity: 1; translate: 0 0; }

  /* ---------- 4. Trước / sau ---------- */
  .bs { background: var(--g10); padding-block: 96px; }
  .hd2 { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
  .hd2 h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.25; letter-spacing: -.015em; margin: 0; font-weight: 700; }
  .hd2 p { margin: 0; color: var(--g70); max-width: 30em; }
  .ba-top { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); color: #fff; font: 700 16px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; }
  .ba-top span { padding: 14px 16px; } .ba-top span + span { text-align: right; color: var(--ice); }
  .ba { --p: 50%; position: relative; aspect-ratio: 16/9; overflow: hidden; user-select: none; touch-action: pan-y; background: #ccd; }
  .ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
  .ba .after { clip-path: inset(0 0 0 var(--p)); }
  .ba .line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(12,24,60,.35); pointer-events: none; }
  .ba .knob { position: absolute; top: 50%; left: var(--p); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; pointer-events: none;
              box-shadow: 0 4px 16px rgba(12,24,60,.28); backdrop-filter: blur(6px); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
  .ba .knob svg { width: 24px; height: 24px; }
  .ba:hover .knob, .ba:active .knob { transform: scale(1.08); }
  .ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
  .ba input:focus-visible ~ .knob { box-shadow: 0 0 0 3px var(--ice), 0 4px 16px rgba(12,24,60,.28); }
  .ba .hint { position: absolute; top: calc(50% + 32px); left: var(--p); translate: -50% 0; padding: 4px 10px; border-radius: 999px; background: rgba(12,24,60,.6); color: #fff; font: 500 12px var(--mono); white-space: nowrap; pointer-events: none; transition: opacity .4s; }
  .ba.used .hint { opacity: 0; }

  /* ---------- 5. Vấn đề → Giải pháp → Kết quả: 3 cột, đầu cột navy như bảng báo giá ---------- */
  .sy { padding-block: 96px; }
  .sy > h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.25; letter-spacing: -.015em; margin: 0 0 40px; font-weight: 700; }
  .cols { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
  .col + .col { border-left: 1px solid var(--line); }
  .col .h { position: relative; display: flex; align-items: baseline; gap: 12px; background: var(--navy); color: #fff; padding: 16px 24px; overflow: hidden; }
  .col .h::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--ice); transition: width 1s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
  .col.in .h::after { width: 100%; }
  .col .h b { font: 700 36px/1 var(--sc-font-display); color: var(--sky); letter-spacing: -.02em; }
  .col .h span { font: 700 18px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; }
  .col .b { padding: 24px; }
  .col h3 { font-size: 20px; line-height: 1.4; font-weight: 700; margin: 0 0 16px; }
  .col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
  .col li { position: relative; padding-left: 20px; line-height: 1.5; }
  .col li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--navy); }
  .col.k .h { background: var(--deep); }
  .col.k .b { background: var(--navy); color: #fff; height: 100%; }
  .col.k li::before { background: var(--ice); }
  .col.k { display: flex; flex-direction: column; } .col.k .b { flex: 1; }

  /* ---------- 6. Ảnh tiến độ: mỗi ảnh một khung có băng navy dưới ---------- */
  .rs { padding-block: 0 96px; overflow: hidden; }
  .rs .top { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
  .rs h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.25; letter-spacing: -.015em; margin: 0; font-weight: 700; }
  .nav { display: flex; align-items: stretch; border: 1px solid var(--navy); }
  .nav button { width: 48px; height: 48px; border: 0; background: #fff; color: var(--navy); font-size: 20px; cursor: pointer; transition: background .2s, color .2s; }
  .nav button:hover { background: var(--navy); color: #fff; }
  .nav .cnt { display: grid; place-items: center; min-width: 80px; background: var(--navy); color: #fff; font: 600 14px var(--mono); }
  .reel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
          padding-inline: max(16px, calc((100vw - var(--maxw)) / 2 + 32px)); scroll-padding-inline: max(16px, calc((100vw - var(--maxw)) / 2 + 32px)); }
  .reel::-webkit-scrollbar { display: none; }
  .reel figure { flex: 0 0 min(60vw, 600px); margin: 0; scroll-snap-align: start; cursor: zoom-in; background: var(--navy); }
  .reel .im { position: relative; aspect-ratio: 4/3; overflow: hidden; }
  .reel img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .reel .im .flake { position: absolute; right: 12px; top: 12px; height: 32px; z-index: 1; opacity: .85; }
  .reel figure:hover img { transform: scale(1.05); }
  .reel figcaption { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: #fff; font: 600 16px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .05em; border-top: 4px solid var(--sky); }
  .reel figcaption b { font: 700 16px/1 var(--mono); color: var(--ice); }
  .reel .end { flex: 0 0 8px; }
  .prog { height: 4px; background: var(--g10); margin-top: 24px; } .prog i { display: block; height: 100%; width: 0; background: var(--navy); transition: width .2s; }

  /* Xem ảnh lớn */
  .lb { border: 0; padding: 0; max-width: 100vw; max-height: 100svh; width: 100vw; height: 100svh; background: rgba(20,32,74,.97); color: #fff; }
  .lb::backdrop { background: rgba(20,32,74,.97); }
  .lb[open] { display: grid; grid-template-rows: 1fr auto; }
  .lb img { width: 100%; height: 100%; object-fit: contain; padding: 56px 16px 0; }
  .lb .bb { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px max(16px, env(safe-area-inset-left, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)); font: 600 16px var(--cond); text-transform: uppercase; letter-spacing: .05em; }
  .lb button { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; font-size: 20px; cursor: pointer; }
  .lb .x { position: absolute; top: calc(8px + env(safe-area-inset-top, 0px)); right: 8px; }

  /* ---------- 7. Công trình cùng loại (nền navy, thẻ có băng tên) ---------- */
  .rl { background: var(--navy); color: #fff; padding-block: 80px; }
  .rl .top { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
  .rl h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.25; letter-spacing: -.015em; margin: 0; font-weight: 700; }
  .rl .top a { color: var(--ice); font: 700 14px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
  .rg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .rc { display: flex; flex-direction: column; color: #fff; text-decoration: none; background: var(--deep); border-bottom: 4px solid var(--sky); transition: border-color .3s; }
  .rc .im { aspect-ratio: 4/3; overflow: hidden; }
  .rc img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .rc div { padding: 16px; }
  .rc span { font: 600 12px/1 var(--mono); color: var(--sky); letter-spacing: .04em; }
  .rc h3 { font-size: 18px; line-height: 1.4; font-weight: 600; margin: 8px 0 0; text-wrap: balance; }
  .rc:hover img { transform: scale(1.06); } .rc:hover { border-color: var(--ice); }


  /* Nhấn mạnh: <strong> = đậm navy (số liệu), <mark> = nền xanh nhạt tô dần như bút dạ (ý chính) */
  main strong { font-weight: 700; color: var(--navy); }
  /* 20/11: anh muốn tô xanh nhạt hơn (trước là --ice #3EC3EF) */
  mark { color: var(--deep); font-weight: 700; background: linear-gradient(#BFEBFA, #BFEBFA) 0 88% / 0 .5em no-repeat; padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1s cubic-bezier(.2,.7,.2,1) .35s; }
  .in mark { background-size: 100% .5em; }
  .col.k strong { color: #fff; }
  .col.k mark { color: #fff; background-image: linear-gradient(rgba(62,195,239,.35), rgba(62,195,239,.35)); }
  .bg td strong { color: var(--navy); }

  /* Hiện dần khi cuộn */
  .rv { opacity: 0; translate: 0 32px; transition: opacity .8s cubic-bezier(.2,.7,.2,1), translate .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
  .rv.in { opacity: 1; translate: 0 0; }

  @media (max-width: 860px) {
    .fr .band-t { font-size: 12px; min-height: 40px; }
    .fr .band-t .svc { display: none; }
    .fr .shot { height: 46svh; min-height: 280px; }
    .fr .shot .flake { height: 48px; right: 16px; top: 16px; }
    .fr .shot .lbl-temp { top: 16px; padding: 8px 12px; } .fr .shot .lbl-temp b { font-size: 28px; }
    .fr .band-b { grid-template-columns: 1fr; gap: 24px; padding-block: 24px 32px; }
    .fr h1 { font-size: 32px; }
    .fr .meta { grid-template-columns: auto 1fr; gap: 16px; }
    /* Điện thoại: ô bo tròn 2 cột, ô đầu nằm ngang (19/11) */
    .st .row { grid-template-columns: 1fr 1fr; gap: 10px; padding-block: 20px 24px; }
    .st .c, .st .c:first-child { padding: 16px; border: 1px solid rgba(147,188,227,.22); border-radius: 16px; background: rgba(255,255,255,.06); }
    .st .c:first-child { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
    .st .c:first-child .ic { margin: 0; width: 52px; height: 52px; flex: none; } .st .c:first-child .ic svg { width: 28px; height: 28px; }
    .st .c { position: relative; }
    .st .ic { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; margin: 0; } .st .ic svg { width: 19px; height: 19px; }
    .st .c:first-child .ic { position: static; }
    .st b { font-size: 34px; } .st .c:first-child b { font-size: 40px; }
    .st b small { font-size: 15px; }
    .st .tx > span { font-size: 12px; margin-top: 6px; }
    .in3 { grid-template-columns: 1fr; gap: 48px; padding-block: 64px; }
    .pic img { aspect-ratio: 4/3; }
    .in3 .lead { font-size: 16px; }
    .bg th { width: 38%; padding: 12px; } .bg td { padding: 12px; }
    .bs, .sy { padding-block: 64px; }
    .ba { aspect-ratio: 4/3; }
    .cols { grid-template-columns: 1fr; }
    .col + .col { border-left: 0; border-top: 1px solid var(--line); }
    .rs { padding-bottom: 64px; }
    .reel figure { flex-basis: 82vw; }
    .nav button { display: none; }
    .rl { padding-block: 64px; }
    .rl .top { flex-direction: column; align-items: start; }
    .rg { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
    .rg::-webkit-scrollbar { display: none; }
    .rc { flex: 0 0 72vw; scroll-snap-align: start; }
  }
  @media (prefers-reduced-motion: reduce) {
    .fr .shot img, .rise, .slide-d { animation: none; }
    .rv, .bg tr.rv { opacity: 1; translate: 0 0; transition: none; }
    .st .bar i, .col .h::after, .pic .im, .pic img, mark { transition: none; }
  }

/* ---- thêm cho bản dựng thật ---- */
.fr .shot.no-img { height: 200px; min-height: 0; background: linear-gradient(135deg, #1b2c63, var(--navy)); }
.fr .shot.no-img .flake { height: 120px; opacity: .25; right: 50%; top: 50%; translate: 50% -50%; }
.in3.solo { grid-template-columns: 1fr; max-width: 820px; }
.bg td.dash { color: var(--g70); }
.sy.two .cols { grid-template-columns: repeat(2, 1fr); } .sy.one .cols { grid-template-columns: 1fr; }
.dl-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.lst .phead { padding-bottom: 32px; }
.fr .band-t .ph { text-decoration: none; }
@media (max-width: 860px) { .sy.two .cols { grid-template-columns: 1fr; } .fr .shot.no-img .flake { height: 80px; } }

/* ---------- Danh sách dự án (21/11): lọc 2 thanh + thẻ có nhãn loại, quy mô ---------- */
.filt { position: sticky; top: 64px; z-index: 5; background: #fff; padding: 12px 0 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.filt .chips { padding-bottom: 8px; align-items: center; }
.filt .tabs button { font-weight: 600; font-size: 16px; min-height: 44px; padding: 8px 20px; }
.filt .yrs .fl { font: 500 12px var(--mono); color: var(--g70); text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; flex: none; }
.filt .yrs button { font-size: 14px; min-height: 36px; padding: 4px 14px; }
.chips button:disabled { opacity: .4; cursor: default; }
.chips button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.kq { margin: 16px 0 24px; font: 500 12px var(--mono); color: var(--g70); text-transform: uppercase; letter-spacing: .06em; }
.none { padding: 48px 0 96px; color: var(--g70); max-width: 560px; }
.grid:has(.pj) { padding-top: 0; }
.pj { border-top: 4px solid var(--navy); padding-top: 16px; }
.pj .ph { position: relative; }
.pj .tag { position: absolute; left: 0; top: 12px; background: var(--navy); color: #fff; font: 700 13px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; padding: 8px 12px; }
.pj .ph-empty .tag { top: 12px; }
.pj .num { letter-spacing: .04em; }
.pj .qm { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; }
.pj .qm li { font: 600 13px/1 var(--mono); color: var(--navy); background: var(--tint); padding: 8px 10px; }
.pj .qm li.todo { color: var(--g70); background: var(--g10); font-weight: 500; }
@media (max-width: 860px) {
  .filt { top: 56px; margin-inline: -16px; padding-inline: 16px; }
  .filt .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}
