  /* Trang chủ bản 4 — phòng trưng bày + kho 3D.
     Đầu trang: chọn loại kho (ảnh tự đổi khi chưa chọn). Giữa: kho 3D tự lắp ráp khi cuộn (nền navy đậm). Sau: ước kho 3D theo kích thước, công trình theo loại. */
  :root { --deep: #24397F; --night: #0E1830; --night2: #16244A; --c: 0; }
  html, body { background: color-mix(in srgb, #FFFFFF, #E2EDF8 calc(var(--c) * 100%)); }

  /* 1. Đầu trang */
  .pick { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; padding-block: 48px 72px; align-items: stretch; }
  .eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--mono); color: var(--navy); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
  .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 0 rgba(62,195,239,.6); animation: ping 2s infinite; }
  @keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(62,195,239,0); } 100% { box-shadow: 0 0 0 0 rgba(62,195,239,0); } }
  .pick h1 { font-size: clamp(36px, 4.8vw, 68px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; margin: 0 0 16px; }
  .rot { display: inline-block; color: var(--navy); position: relative; z-index: 0; padding: 0 .14em; margin: 0 -.04em; }
  .rot.hl::before { animation-name: hl2; } @keyframes hl2 { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .rot::before { content: ""; position: absolute; z-index: -1; inset: .1em 0 .02em; background: #D7E6F6; border-bottom: .08em solid var(--ice); transform-origin: left; animation: hl .6s cubic-bezier(.2,.7,.2,1) both; }
  .rot span { display: inline-block; animation: up .5s cubic-bezier(.2,.8,.2,1); }
  @keyframes hl { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes up { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
  .pick .sub { color: var(--g70); font-size: 18px; line-height: 1.5; margin: 0 0 28px; max-width: 28em; }
  .types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
  .type { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; text-align: left; cursor: pointer;
          background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; font-family: inherit; color: var(--ink);
          transition: border-color .25s, box-shadow .25s, transform .25s; }
  .type::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--ice); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
  .type:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(51,76,158,.12); }
  .type.on { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(51,76,158,.22); }
  .type.on b { color: var(--ice); } .type.on small { color: rgba(255,255,255,.75); }
  .type.on::after, .type.peek::after { transform: scaleX(1); }
  .type b { grid-row: span 2; align-self: center; font: 600 20px/1 var(--mono); color: var(--navy); min-width: 64px; letter-spacing: -.03em; }
  .type span { font: 700 16px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .04em; } .type small { color: var(--g70); font-size: 13px; }
  .all { background: none; border: 0; font: 500 14px var(--sc-font-text); color: var(--navy); cursor: pointer; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
  .hero { display: grid; grid-template-rows: 1fr auto; gap: 16px; min-width: 0; }
  .hero .ph { position: relative; border-radius: 0; overflow: hidden; background: #E6ECF2; min-height: 420px; display: block; border-bottom: 4px solid var(--sky); }
  .hero .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
  .hero .ph img.on { opacity: 1; animation: kb 9s ease-out forwards; }
  @keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
  .hero .tag { position: absolute; left: 0; top: 24px; z-index: 2; background: var(--navy); color: #fff; font: 700 14px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; padding: 10px 16px; }
  .hero .dots { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: flex; gap: 6px; }
  .hero .dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.45); }
  .hero .dots i.on { background: #fff; }
  .hero .row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; transition: opacity .3s; }
  .hero h2 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; font-weight: 700; }
  .hero a.more { font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }

  /* 2. Kho 3D tự lắp ráp (nền navy đậm) */
  .dark { background: var(--deep); color: #fff; }
  .build { height: 100svh; display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: center; padding-block: 88px 24px; }
  .build h2 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.1; margin: 0 0 20px; font-weight: 700; letter-spacing: -.02em; }
  .build h2 em { font-style: normal; color: var(--ice); }
  .steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; }
  .steps li { position: relative; display: grid; grid-template-columns: 32px 1fr; padding: 10px 0; border-top: 1px solid rgba(147,188,227,.35); color: rgba(255,255,255,.6); transition: color .3s; font-size: 15px; }
  .steps li b { font: 600 12px/20px var(--mono); }
  .steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--ice); transition: width .5s; }
  .steps i { font-style: normal; } .steps .s { display: none; }
  .steps li.on { color: #fff; } .steps li.on b { color: var(--ice); } .steps li.on::before { width: 100%; }
  .temp { font: 600 clamp(48px, 6vw, 88px)/1 var(--mono); letter-spacing: -.05em; color: #fff; }
  .temp-note { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 6px; }
  .stage3d { position: relative; height: min(78svh, 680px); border-radius: 0; overflow: hidden; border-bottom: 4px solid var(--sky);
             background: radial-gradient(120% 90% at 60% 30%, #22346A 0%, var(--night2) 45%, var(--night) 100%); box-shadow: inset 0 0 0 1px rgba(147,188,227,.2); }
  .ov { position: absolute; inset: 0; pointer-events: none; }
  .pin { position: absolute; left: 0; top: 0; will-change: transform; white-space: nowrap; font: 500 12px/1.2 var(--sc-font-text); color: #fff;
         background: rgba(14,24,48,.72); border-left: 2px solid var(--ice); padding: 4px 8px; opacity: 0; transition: opacity .35s; }
  .pin.on { opacity: 1; }
  .ov svg.lead { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .lead g { opacity: 0; transition: opacity .35s; } .lead g.on { opacity: 1; }
  .lead polyline { fill: none; stroke: var(--ice); stroke-width: 1; } .lead circle { fill: var(--ice); stroke: var(--night); stroke-width: 1.5; }
  .ntb { position: absolute; z-index: 4; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(147,188,227,.5); border-radius: 10px; background: rgba(12,20,60,.7); color: rgba(255,255,255,.75); font: 600 13px var(--sc-font-text, sans-serif); cursor: pointer; }
  .ntb::before { content: ""; width: 28px; height: 16px; border-radius: 8px; background: rgba(255,255,255,.25) radial-gradient(circle at 8px 8px, #fff 5px, transparent 5.5px); transition: background-position .2s; }
  .ntb[aria-pressed=true] { color: #fff; } .ntb[aria-pressed=true]::before { background: var(--ice) radial-gradient(circle at 20px 8px, #fff 5px, transparent 5.5px); }
  .ntb:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
  .hint4 { position: absolute; z-index: 3; left: 50%; bottom: 14px; translate: -50% 0; padding: 6px 12px; border-radius: 999px; background: rgba(12,20,60,.7); color: #fff; font: 500 12px var(--sc-font-text); pointer-events: none; white-space: nowrap; transition: opacity .5s; }
  .hint4.an { opacity: 0; }
  #s2.fs canvas { touch-action: none !important; }
  .dimt { position: absolute; left: 0; top: 0; will-change: transform; font: 600 12px var(--mono); color: var(--ice); white-space: nowrap; opacity: 0; transition: opacity .35s; text-shadow: 0 1px 4px var(--night); }
  .dimt.on { opacity: 1; }
  .real { position: absolute; right: 16px; bottom: 20px; width: min(280px, 42%); padding: 8px; color: #fff;
          background: rgba(147,188,227,.12); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
          border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 16px 32px rgba(5,10,25,.25);
          opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .6s, transform .7s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
  .real::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--ice); transition: width .9s .25s cubic-bezier(.2,.7,.2,1); }
  .real.on { opacity: 1; transform: none; pointer-events: auto; } .real.on::before { width: 100%; }
  .real .scr { overflow: hidden; }
  .real img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transform: scale(1.06); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
  .real.on img { transform: none; opacity: .82; }
  .real img { transition: transform 1.6s cubic-bezier(.2,.7,.2,1), opacity .4s; } .real:hover img { opacity: 1; }
  .real p { margin: 0; padding: 10px 4px 2px; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.9); }
  .real p b { display: flex; align-items: center; gap: 8px; font: 600 11px var(--mono); color: var(--sky); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
  .real p b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); }
  .hint3 { position: absolute; left: 16px; bottom: 16px; font: 500 12px var(--mono); color: rgba(255,255,255,.7); }

  /* 3. Ước kho của anh chị */
  .uocw { background: var(--g10); }
  .uoc { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; padding-block: 96px; align-items: center; }
  .kick { display: block; font: 700 14px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--navy); margin: 0 0 12px; }
  .tw { margin: 0 0 24px; }
  .tw .top { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 4px; }
  .tw .top label { font-size: 14px; font-weight: 500; }
  .tw .val { display: flex; align-items: baseline; gap: 10px; }
  .tw .val b { font: 600 40px/1 var(--mono); letter-spacing: -.05em; color: var(--navy); font-variant-numeric: tabular-nums; }
  .tw .val span { font: 700 13px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--navy); padding: 6px 10px; }
  .tw .ticks { position: relative; height: 16px; margin-top: 6px; font: 500 11px var(--mono); color: var(--g70); }
  .tw .ticks i { position: absolute; transform: translateX(-50%); font-style: normal; white-space: nowrap; }
  /* thanh kéo chung: gọn, núm tròn trắng viền navy */
  .uoc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: none; cursor: pointer; --f: 50%; }
  .uoc input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--navy) var(--f), #D5DCE6 var(--f)); }
  .uoc input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--navy) var(--f), #D5DCE6 var(--f)); }
  .uoc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: 0 2px 8px rgba(36,57,127,.3); transition: transform .2s; }
  .uoc input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); box-shadow: 0 2px 8px rgba(36,57,127,.3); }
  .uoc input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
  .uoc input[type=range]:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
  .uoc input#vT::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #3EC3EF, #93BCE3 50%, #DCE7F3); }
  .uoc input#vT::-moz-range-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #3EC3EF, #93BCE3 50%, #DCE7F3); }
  .uoc input#vT::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -10px; }
  .uoc .stage3d { height: min(64svh, 560px); }
  .uoc { row-gap: 0; } .uoc-pin { display: contents; }
  .uoc #s2 { grid-column: 1; grid-row: 1 / 3; align-self: start; position: sticky; top: 96px; }
  .uoc-a { grid-column: 2; grid-row: 1; align-self: end; } .uoc-b { grid-column: 2; grid-row: 2; align-self: start; }
  .fsb { position: absolute; z-index: 4; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(147,188,227,.5); border-radius: 10px; background: rgba(12,20,60,.7); color: #fff; font: 600 13px var(--sc-font-text, sans-serif); cursor: pointer; }
  .fsb:hover { background: var(--navy); } .fsb:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
  .fsb .i-dong { display: none; } .fs .fsb .i-dong { display: inline; } .fs .fsb .i-mo { display: none; }
  .fsp { display: none; }
  body.fs-on { overflow: hidden; }
  body.fs-on .bar2, body.fs-on .zf, body.fs-on .fab { display: none !important; }
  body.fs-on .uoc #s2 { position: fixed; z-index: 200; top: 0; left: 0; right: 380px; bottom: 0; height: 100%; border-bottom: 0; }
  body.fs-on .uoc #s2 .fsb { top: calc(12px + env(safe-area-inset-top, 0px)); }
  body.fs-on .fsp { display: block; position: fixed; z-index: 200; top: 0; right: 0; bottom: 0; width: 380px; overflow: auto; background: var(--g10); padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
  .fsp .sl { margin-bottom: 16px; } .fsp .tw { margin-bottom: 0; }
  .uoc h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.12; margin: 0 0 8px; font-weight: 700; letter-spacing: -.02em; }
  .uoc .lead { color: var(--g70); margin: 0 0 24px; }
  .sl { display: grid; gap: 10px; margin-bottom: 20px; }
  .opt { display: grid; gap: 0; margin: 0 0 20px; background: #fff; border: 1px solid #D5DCE6; border-top: 4px solid var(--navy); }
  .opt-h { margin: 0; padding: 12px 16px; font: 700 15px/1.3 var(--sc-font-text); color: var(--navy); background: var(--g10, #F4F7FB); border-bottom: 1px solid #D5DCE6; }
  .opt-h small { display: block; font-weight: 400; font-size: 13px; color: var(--g70); margin-top: 2px; }
  .or { display: grid; gap: 10px; padding: 14px 16px; }
  .or + .or { border-top: 1px solid #E6EBF2; }
  .q { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; font: 600 15px/1.3 var(--sc-font-text); color: var(--ink); }
  .q b { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; font: 700 12px var(--mono); color: #fff; background: var(--navy); }
  .q em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--g70); margin-left: auto; }
  .ch { display: flex; flex-wrap: wrap; gap: 8px; }
  .ch button { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 12px; font: 500 14px var(--sc-font-text); color: var(--ink); background: #fff; border: 1px solid #C4CDDA; border-radius: 0; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
  /* ô đánh dấu: vuông = chọn nhiều, tròn = chọn 1 */
  .ch button::before { content: ""; flex: none; width: 14px; height: 14px; border: 1.5px solid #9AA8BB; border-radius: 50%; box-sizing: border-box; background: #fff; }
  .ch.m button::before { border-radius: 2px; }
  .ch button:hover { border-color: var(--navy); }
  .ch button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
  .ch button.on::before { border-color: var(--ice); background: var(--ice); box-shadow: inset 0 0 0 2.5px var(--navy); }
  .ch.m button.on::before { box-shadow: none; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%23334C9E' stroke-width='2.2'/%3E%3C/svg%3E") center/100% no-repeat; }
  .ch button:focus-visible, .oin:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; }
  .oin { height: 44px; padding: 0 12px; font: 400 16px var(--sc-font-text); border: 1px solid #C4CDDA; background: #fff; border-radius: 0; min-width: 0; width: 100%; box-sizing: border-box; }
  .sl label { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 14px; font-weight: 500; }
  .sl output { font: 600 15px var(--mono); color: var(--navy); }
  .sl input { grid-column: 1 / -1; }
  .read { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 4px solid var(--navy); overflow: hidden; margin-bottom: 20px; }
  .read div { background: #fff; padding: 12px; } .read small { display: block; font: 500 11px var(--mono); color: var(--g70); text-transform: uppercase; letter-spacing: .04em; }
  .read b { font: 600 20px var(--mono); letter-spacing: -.03em; white-space: nowrap; }
  .uoc .note { margin-top: 12px; }
  .msg { font-size: 13px; color: var(--g70); margin-top: 8px; min-height: 1.4em; }
  .chat { position: relative; margin: 0 0 12px; width: 100%; box-sizing: border-box; background: #fff; border: 1px solid #D5DCE6; border-radius: 16px 16px 4px 16px; padding: 12px 16px; box-shadow: 0 6px 16px rgba(36,57,127,.08); }
  .chat small { display: block; font: 600 11px var(--mono); color: var(--navy); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
  .chat p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
  .chat p em { font-style: normal; font-weight: 600; color: var(--navy); background: #E3EEF9; padding: 0 4px; transition: background .4s; }
  .zbtn { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 20px 10px 12px; background: var(--navy); color: #fff; text-decoration: none;
          box-shadow: 0 12px 28px rgba(36,57,127,.32), inset 0 0 0 1px rgba(147,188,227,.35); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, background .3s; }
  .zbtn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); transform: skewX(-20deg); transition: left .8s cubic-bezier(.2,.7,.2,1); }
  .zbtn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(36,57,127,.4), inset 0 0 0 1px var(--ice); } .zbtn:hover::after { left: 120%; }
  .zbtn:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; }
  .zbtn .zi { flex: none; display: block; width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(62,195,239,.35); transition: box-shadow .3s; } .zbtn .zi svg { display: block; width: 100%; height: 100%; }
  .zbtn .zt { flex: 1; display: grid; gap: 4px; min-width: 0; }
  .zbtn .zt b { font-size: 17px; font-weight: 700; } .zbtn .zt small { font-size: 13px; color: var(--sky); }
  .zbtn .za { flex: none; font-size: 22px; transition: transform .3s; } .zbtn:hover .za { transform: translateX(4px); }
  .zbtn.ok { background: #24397F; } .zbtn.ok .zi { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--ice); }

  /* 4. Công trình theo loại (nền navy, thẻ có băng tên như trang dự án mẫu) */
  .galw { background: var(--deep); color: #fff; padding: 56px 0 80px; }
  .galw .gal-head p { color: var(--sky); font: 600 14px var(--mono); }
  .galw .card { background: var(--navy); border-bottom: 4px solid var(--sky); transition: transform .3s, border-color .3s; }
  .galw .card:hover { border-color: var(--ice); } .galw .card:hover h3 { color: #fff; }
  .galw .card .ph { border-radius: 0; margin-bottom: 0; }
  .galw .card .num { color: var(--sky); padding: 16px 16px 0; } .galw .card h3 { padding: 0 16px; font-weight: 700; }
  .galw .card .lbl { padding: 0 16px 16px; margin: 0; color: rgba(255,255,255,.75); } .galw .card .lbl dt { color: var(--sky); }
  .gal-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding-top: 24px; margin-bottom: 24px; flex-wrap: wrap; }
  .gal-head h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -.02em; }
  .gal-head p { margin: 0; color: var(--g70); }
  .rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(400px, 80vw); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
          padding: 0 max(16px, calc((100vw - var(--maxw)) / 2 + 32px)) 24px; scrollbar-width: thin; transition: opacity .3s; }
  .rail .card { scroll-snap-align: start; } .rail { gap: 16px; scrollbar-color: var(--sky) transparent; }
  .rail .card:hover { transform: translateY(-4px); } .rail .card { transition: transform .3s; }

  /* Thanh chọn loại cố định (hiện sau khi qua đầu trang) */
  .bar2 { position: fixed; z-index: 45; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); translate: -50% 140%; display: flex; gap: 4px; padding: 6px;
          background: var(--deep); border: 1px solid rgba(147,188,227,.4); border-radius: 0; box-shadow: 0 12px 32px rgba(12,12,12,.25); transition: translate .45s cubic-bezier(.2,.8,.2,1); max-width: calc(100vw - 112px); overflow-x: auto; scrollbar-width: none; }
  .bar2.show { translate: -50% 0; }
  .bar2 button { flex: none; font: 700 13px var(--cond); text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.85); background: none; border: 0; border-radius: 0; padding: 10px 14px; cursor: pointer; white-space: nowrap; }
  .bar2 button:hover { color: #fff; } .bar2 button.on { background: #fff; color: var(--navy); }
  .ftr { padding-bottom: 96px; }
        display: flex; align-items: center; height: 60px; border-radius: 30px; background: var(--navy); color: #fff; text-decoration: none;
        box-shadow: 0 10px 28px rgba(36,57,127,.45), inset 0 0 0 2px var(--ice); }
  @keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .rot::before { animation: none; } }
  .td-draft { display: none; }
  @media (hover: none) { .hint3 { display: none; } }
  @media (max-width: 480px) { .bar2 button { font-size: 12px; padding: 9px 10px; } }

  @media (max-width: 860px) {
    .pick { grid-template-columns: 1fr; gap: 24px; padding-block: 24px 48px; }
    .pick .sub { font-size: 16px; margin-bottom: 16px; }
    .types { gap: 8px; } .type { padding: 10px 12px; border-radius: 12px; } .type b { font-size: 16px; min-width: 48px; } .type span { font-size: 15px; }
    .hero .ph { min-height: 0; aspect-ratio: 4/3; }
    .build { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; padding-block: 76px 16px; align-items: start; }
    .build h2 { font-size: 24px; margin-bottom: 8px; }
    .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
    .steps li { display: block; padding: 8px 0 0; border-top: 0; font-size: 12px; line-height: 1.25; min-width: 0; }
    .steps li::before { top: 0; height: 3px; width: 100%; border-radius: 2px; background: rgba(147,188,227,.3); transition: background .4s; }
    .steps li.on::before { background: var(--ice); }
    .steps li b { display: block; font-size: 11px; line-height: 16px; margin-bottom: 2px; }
    .steps li span { display: block; min-height: 2.5em; overflow-wrap: break-word; }
    .steps .f { display: none; } .steps .s { display: inline; }
    .build h2 { margin-bottom: 14px; }
    .chat { padding: 12px 14px; } .chat p { font-size: 14px; }
    .temp { font-size: 40px; display: inline-block; } .temp-note { display: inline-block; margin-left: 8px; }
    .stage3d { height: 100%; min-height: 0; }
    .real p { font-size: 11px; }
    .uoc { display: block; padding-block: 64px; } .uoc-pin { display: block; }
    .uoc #s2 { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 3; height: 40svh; margin-bottom: 20px; }
    .uoc #s2 .fsb { top: 8px; right: 8px; padding: 0 12px; } .uoc #s2 .ntb { top: 8px; left: 8px; }
    body.fs-on .uoc #s2 .ntb { top: calc(12px + env(safe-area-inset-top, 0px)); } .uoc #s2:not(.fs) .fsb span { display: none; }
    body.fs-on .uoc #s2 { right: 0; bottom: auto; height: 58svh; margin: 0; }
    body.fs-on .fsp { top: auto; width: auto; left: 0; height: 42svh; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(12,20,60,.25); }
    .fsp .sl { gap: 4px; margin-bottom: 8px; } .fsp .tw .val b { font-size: 28px; }
    .bar2 { left: 16px; translate: 0 140%; } .bar2.show { translate: 0 0; }
    .real { width: 44%; right: 10px; bottom: 10px; padding: 6px; } .galw { padding: 40px 0 64px; }
    .read b { font-size: 16px; } .read div { padding: 12px 10px; }
    .ftr { padding-bottom: 120px; }
  }

  /* ===== Bản thật 20/11: câu to "Chuẩn chỉ từng công trình" + nút + phần mới ===== */
  .hk { position: relative; z-index: 0; color: var(--navy); padding: 0 .1em; margin: 0 -.1em; }
  .hk::before { content: ""; position: absolute; z-index: -1; inset: .12em 0 .02em; background: #D7E6F6; border-bottom: .08em solid var(--ice); transform-origin: left; animation: hl .7s .15s cubic-bezier(.2,.7,.2,1) both; }
  .pick .sub { margin-bottom: 24px; }
  .hcta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
  .td-btn.ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
  .td-btn.ghost:hover { background: var(--frost); }
  .askq { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; }
  .askp { margin: 0 0 16px; color: var(--g70); font-size: 15px; }
  .why { padding-block: 72px 24px; }
  .why h2, .vid h2, .team h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; margin: 0 0 28px; }
  .why .split3 { padding-bottom: 24px; }
  .why .since { margin: 0; color: var(--g70); font-size: 15px; max-width: 46em; }
  .vid { padding-block: 64px 8px; }
  .vbox { position: relative; aspect-ratio: 16/9; background: #0E1830; overflow: hidden; border-bottom: 4px solid var(--sky); }
  .vbox video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0E1830; }
  .team { padding-block: 64px 96px; }
  .team .lead { margin: -16px 0 24px; color: var(--g70); }
  .tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .tgrid figure { margin: 0; }
  .tgrid img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; background: #E6ECF2; }
  .tgrid figcaption { margin-top: 10px; font: 500 13px var(--mono); color: var(--g70); }
  @media (max-width: 860px) {
    .hcta .td-btn { flex: 1 1 0; justify-content: center; padding: 0 16px; }
    .why { padding-block: 56px 8px; } .vid { padding-block: 48px 0; } .team { padding-block: 48px 112px; }
    .tgrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
    .tgrid figure { flex: 0 0 72%; scroll-snap-align: start; }
  }
  /* Thanh chọn loại ở đáy màn hình: đẩy nút Gọi/Zalo nổi lên trên nó (điện thoại) */
  @media (max-width: 960px) {
    body.bar-on .zf { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    body.bar-on .gf { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
  }
  /* 20/11 anh duyệt: điện thoại — thanh chọn loại trải hết bề ngang, đủ 5 nút, không bị cắt; nút Gọi/Zalo nằm trên nó */
  @media (max-width: 860px) {
    .bar2 { left: 12px; right: 12px; max-width: none; gap: 2px; padding: 4px; overflow: hidden; }
    .bar2 button { flex: 1 1 auto; min-width: 0; padding: 10px 2px; font-size: 11.5px; letter-spacing: .02em; text-align: center; }
  }
  @media (max-width: 960px) {
    body.bar-on .zf { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
    body.bar-on .gf { bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
  }
