/* TUT BRAND 2027 · "Cây Pixel" — site.css
   Token · khung chung · 10 trang · mobile (<900px) · print A4.
   Không bóng đổ, không bo góc, không gradient (trừ núm gạch lego). */

:root{
  --bg:#ffffff; --fg:#000000; --muted:#56605f; --line:#d6dddc; --soft:#f5f7f7; --root:#7d8786;
  --teal:#39BCBD; --olive:#B0BE36; --azure:#00A8E1; --blue:#427CBF;
  --yellow:#F6B128; --orange:#F68626; --red:#F1562F;
  --focus:#00A8E1; --stud:rgba(255,255,255,.62); --stud2:rgba(0,0,0,.18);
  --f-body:'Roboto', Arial, sans-serif;
  --f-mono:'Space Mono','Roboto Mono',ui-monospace,monospace;
  --a:8px; --head-h:76px; --brick:14px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#0a0b0b; --fg:#ffffff; --muted:#a3adac; --line:#2a3030; --soft:#121616; --root:#6c7675; color-scheme:dark; } }
:root[data-theme="dark"]{ --bg:#0a0b0b; --fg:#ffffff; --muted:#a3adac; --line:#2a3030; --soft:#121616; --root:#6c7675; color-scheme:dark; }

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-padding-top:calc(var(--head-h) + 16px)}
body{margin:0; background:var(--bg); color:var(--fg); font-family:var(--f-body); font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased; overflow-x:hidden}
a{color:inherit}
img{max-width:100%; height:auto; display:block}
button,input,textarea,select{font:inherit; color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--focus); outline-offset:2px}
h1,h2,h3{margin:0}
h1:focus{outline:none}
.sr-only{position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
.wrap{max-width:1280px; margin:0 auto; padding-left:max(16px, env(safe-area-inset-left,0px)); padding-right:max(16px, env(safe-area-inset-right,0px))}
.mono,.label{font-family:var(--f-mono)}
.label{font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.skip{position:absolute; left:16px; top:-60px; z-index:100; background:var(--fg); color:var(--bg); padding:8px 14px; text-decoration:none}
.skip:focus{top:8px}

/* ---------- Header ---------- */
.site-head{position:sticky; top:0; z-index:50; background:var(--bg); border-bottom:2px solid var(--fg)}
.head-row{display:flex; align-items:center; justify-content:space-between; gap:20px; padding-block:12px}
.logo{display:flex; flex-direction:column; gap:3px; text-decoration:none; flex:none}
.logo-svg{width:150px; height:auto; display:block}
.logo-svg .logo-txt{fill:var(--fg)}
.logo span{font-family:var(--f-mono); font-size:10px; letter-spacing:.04em}
.nav{display:flex; align-items:stretch; gap:2px; flex-wrap:wrap; justify-content:flex-end}
.nav a{display:flex; flex-direction:column; text-decoration:none; padding:4px 8px 3px; border-bottom:3px solid transparent; line-height:1.2}
.nav a b{font-weight:500; font-size:14px; white-space:nowrap}
.nav a i{font-style:normal; font-family:var(--f-mono); font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em}
.nav a:hover{border-bottom-color:var(--teal)}
.nav a[aria-current="page"]{border-bottom-color:var(--fg)}
.nav a.cta{background:var(--fg); color:var(--bg); margin-left:6px}
.nav a.cta i{color:inherit; opacity:.7}
.nav a.cta:hover{background:var(--blue); color:#fff; border-bottom-color:var(--blue)}
.theme-btn{display:flex; align-items:center; gap:6px; background:none; border:2px solid var(--fg); padding:2px 8px; margin-left:6px; font-family:var(--f-mono); font-size:11px}
.theme-btn span{width:12px; height:12px; background:linear-gradient(90deg,var(--fg) 50%,var(--bg) 50%); border:2px solid var(--fg)}
.theme-btn em{font-style:normal}
.menu-btn{display:none; background:var(--bg); border:2px solid var(--fg); padding:6px 12px; font-family:var(--f-mono); font-size:12px; text-transform:uppercase}

/* ---------- Khung trang ---------- */
html.js .page{display:none}
html.js .page.on{display:block}
.page{padding-bottom:72px; min-height:60vh}
.page-head{padding-block:40px 24px}
.eyebrow{font-family:var(--f-mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:0 0 14px; display:flex; align-items:center; gap:10px}
.eyebrow span{display:inline-block; background:var(--fg); color:var(--bg); padding:1px 6px}
.page-head h1, .intro h1{font-size:clamp(2rem, 4.6vw, 3.6rem); line-height:1.04; font-weight:900; letter-spacing:-.025em; max-width:20ch; text-wrap:balance}
.page-head .lead{color:var(--muted); max-width:62ch; margin:18px 0 0 calc(var(--a)*6); font-size:17px}
.lead{color:var(--muted)}
.empty{color:var(--muted); font-style:italic}
.static-list{padding-left:18px}
.btn{display:inline-flex; align-items:center; gap:10px; background:var(--fg); color:var(--bg); border:2px solid var(--fg); padding:11px 18px; font-weight:500; text-decoration:none; line-height:1.2}
.btn:hover{background:var(--blue); border-color:var(--blue); color:#fff}
.btn.ghost{background:var(--bg); color:var(--fg)}
.btn.ghost:hover{background:var(--fg); color:var(--bg); border-color:var(--fg)}
.linkbtn{background:none; border:0; padding:0; text-decoration:underline; text-underline-offset:3px; color:var(--muted)}
.linkbtn:hover{color:var(--fg)}
.status{font-size:14px; color:var(--muted)}
.sq{width:7px; height:7px; display:inline-block; background:var(--c,var(--teal)); flex:none}
.tag{display:inline-block; font-family:var(--f-mono); font-size:11px; text-transform:uppercase; letter-spacing:.05em; border:2px solid var(--fg); padding:0 6px; line-height:1.6; white-space:nowrap}
.unconf{display:inline-flex; align-items:center; gap:5px; font-family:var(--f-mono); font-size:10px; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); white-space:nowrap; vertical-align:middle}
.unconf::before{content:""; width:7px; height:7px; border:1px dashed var(--fg)}
.soon{display:inline-block; font-family:var(--f-mono); font-size:10px; text-transform:uppercase; letter-spacing:.06em; background:var(--yellow); color:#000; padding:1px 6px}
.ext::after{content:" ↗"}

/* chip */
.chips{display:flex; flex-wrap:wrap; gap:6px; align-items:center}
.chip{display:inline-flex; align-items:center; gap:7px; background:var(--bg); border:2px solid var(--fg); padding:3px 9px; font-family:var(--f-mono); font-size:12px; line-height:1.4; white-space:nowrap}
.chip i{width:10px; height:10px; background:var(--c,var(--fg)); flex:none}
.chip[aria-pressed="true"]{background:var(--fg); color:var(--bg)}
.chip:hover{border-color:var(--blue)}
.seg{display:inline-flex; border:2px solid var(--fg)}
.seg button{background:var(--bg); border:0; padding:6px 12px; font-family:var(--f-mono); font-size:12px; white-space:nowrap}
.seg button+button{border-left:2px solid var(--fg)}
.seg button[aria-pressed="true"]{background:var(--fg); color:var(--bg)}
.search{display:flex; align-items:center; border:2px solid var(--fg); background:var(--bg); min-width:0}
.search input{border:0; background:none; padding:6px 10px; min-width:0; width:100%; outline:none}
.search:focus-within{outline:2px solid var(--focus); outline-offset:2px}
.count{font-family:var(--f-mono); font-size:12px; color:var(--muted); white-space:nowrap}
@media (max-width:900px){ .count{white-space:normal; overflow-wrap:anywhere} }

/* gạch lego: 1 núm JAI, 2 núm TUT, 2 núm + viền = JAI+TUT / TUT GROUP, không núm + viền đứt = chưa xác nhận */
.brk{--c:var(--root); position:relative; display:block; width:var(--brick); height:var(--brick); padding:0; border:0; background-color:var(--c); background-repeat:no-repeat}
.s1{background-image:radial-gradient(circle at 50% 34%, var(--stud) 0 18%, var(--stud2) 22%, transparent 26%)}
.s2,.s2o{background-image:radial-gradient(circle at 28% 34%, var(--stud) 0 14%, var(--stud2) 18%, transparent 22%), radial-gradient(circle at 72% 34%, var(--stud) 0 14%, var(--stud2) 18%, transparent 22%)}
.s2o{outline:1px solid var(--fg); outline-offset:1px}
.s0{outline:1px dashed var(--fg); outline-offset:-1px; opacity:.85}
.cs::after{content:""; position:absolute; right:2px; bottom:2px; width:3px; height:3px; background:#fff}
.f-branding{--c:var(--red)} .f-thiet-ke{--c:var(--orange)} .f-website{--c:var(--blue)} .f-marcom{--c:var(--yellow)} .f-khac{--c:var(--root)}
.legend{display:flex; flex-wrap:wrap; gap:6px 16px; font-size:12px; color:var(--muted); font-family:var(--f-mono); align-items:center; margin:0; padding:0; list-style:none}
.legend li{display:flex; align-items:center; gap:7px}
.legend .brk{--c:var(--fg); --stud:rgba(255,255,255,.75)}

/* ---------- 1. Vườn ---------- */
.intro{display:flex; justify-content:space-between; align-items:end; gap:24px 48px; flex-wrap:wrap; padding-block:36px 8px}
.key{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px 12px; font-size:14px; max-width:420px}
.key li{display:contents}
.key i{width:14px; height:14px; margin-top:4px; display:block}
.key .k-trunk{background:var(--fg); border-inline:4px solid var(--bg); outline:0}
.key b{font-weight:500}
.key span{color:var(--muted)}
.garden{display:grid; grid-template-columns:minmax(0,1fr); gap:32px 48px; align-items:start; padding-block:16px 24px}
.garden.has-sel{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.tree-col{min-width:0}
.tree-wrap{position:relative; width:100%; max-width:860px; margin-inline:auto}
.tree-wrap svg{display:block; width:100%; height:auto; shape-rendering:crispEdges}
.tree-tools{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; max-width:860px; margin:10px auto 0; font-size:13px; color:var(--muted)}
#tree rect{transition:opacity .35s}
#tree.growing rect{animation:grow .38s cubic-bezier(.2,.9,.3,1.5) both; animation-delay:var(--d); transform-box:fill-box; transform-origin:50% 100%}
@keyframes grow{from{opacity:0; transform:scale(0)}}
#tree.sel rect{opacity:.13}
#tree.sel rect.on{opacity:1; transition-delay:var(--pd)}
#tree.sel rect.pulse{animation:pulse .9s ease-in-out infinite}
@keyframes pulse{50%{opacity:.35}}
#tree rect.lift{transform:translateY(-1px)}
.fruit-btn{position:absolute; background:none; border:0; padding:0}
.fruit-btn .ftag{position:absolute; top:calc(100% + 6px); left:50%; transform:translateX(-50%); white-space:nowrap; font-family:var(--f-mono); font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; background:var(--bg); color:var(--fg); border:2px solid var(--fg); padding:1px 7px; transition:opacity .3s}
.fruit-btn:hover .ftag, .fruit-btn[aria-expanded="true"] .ftag{background:var(--fg); color:var(--bg)}
.garden.has-sel .fruit-btn[aria-expanded="false"] .ftag{opacity:.35}
.part-tag{position:absolute; font-family:var(--f-mono); font-size:11px; color:var(--muted); white-space:nowrap; pointer-events:none}
.panel{min-width:0; position:sticky; top:calc(var(--head-h) + 16px)}
.panel-head{display:flex; justify-content:space-between; align-items:start; gap:16px}
.panel h2{font-size:clamp(1.8rem,3.4vw,2.6rem); font-weight:900; letter-spacing:-.02em; line-height:1.05; margin:4px 0 8px}
.panel h2:focus{outline:none}
.panel h3{font-family:var(--f-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:400; margin:22px 0 10px}
.swatch{display:inline-block; width:12px; height:12px; margin-right:8px; vertical-align:-1px}
.close{background:var(--bg); border:2px solid var(--fg); padding:4px 10px; white-space:nowrap; font-family:var(--f-mono); font-size:12px}
.close:hover{background:var(--fg); color:var(--bg)}
.desc{color:var(--muted); margin:0 0 8px; max-width:50ch}
.sqlist{list-style:none; margin:0; padding:0; display:grid; gap:6px}
.sqlist li{display:flex; gap:10px; align-items:flex-start}
.sqlist li::before{content:""; width:7px; height:7px; margin-top:9px; flex-shrink:0; background:var(--c, var(--teal))}
.path{list-style:none; margin:0 0 0 6px; padding:0; border-left:2px solid var(--fg)}
.path li{position:relative; padding:0 0 14px 22px}
.path li:last-child{padding-bottom:0}
.path li::before{content:""; position:absolute; left:-8px; top:5px; width:14px; height:14px; background:var(--c)}
.path button{display:block; width:100%; text-align:left; background:none; border:0; padding:0; cursor:default}
.path .t{font-weight:500}
.path .k{font-family:var(--f-mono); font-size:11px; color:var(--muted); margin-left:6px}
.path .d{display:block; color:var(--muted); font-size:14px}
.shared{font-family:var(--f-mono); font-size:10px; border:1px solid var(--line); padding:0 5px; margin-left:6px; color:var(--muted)}
.picked{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px}
.picked a{text-decoration:none; font-size:12px; font-family:var(--f-mono); line-height:1.35}
.picked img{aspect-ratio:1; object-fit:cover; width:100%; margin-bottom:4px; background:var(--soft)}
.picked a:hover span{text-decoration:underline}
.ask{margin-top:24px; padding-top:20px; border-top:2px solid var(--fg); display:flex; flex-wrap:wrap; gap:10px 18px; align-items:center}
.more{font-family:var(--f-mono); font-size:13px}
.measures{list-style:none; padding:0; margin:28px 0 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0}
.measures li:nth-child(2){margin-top:calc(var(--a)*3)}
.measures li:nth-child(3){margin-top:calc(var(--a)*6)}
.measures a{display:block; text-decoration:none; border-top:6px solid var(--c); padding:14px 16px 16px 0; margin-right:16px}
.measures b{display:block; font-family:var(--f-mono); font-size:clamp(2.2rem,5vw,4.2rem); line-height:1; font-weight:700; letter-spacing:-.04em}
.measures span{font-family:var(--f-mono); font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted)}
.measures a:hover b{color:var(--c)}
.rootline{font-family:var(--f-mono); font-size:12px; color:var(--muted); display:flex; align-items:center; gap:10px; margin:24px 0 0}
.rootline i{width:40px; height:4px; background:var(--root)}

/* ---------- 2. Hệ Rễ ---------- */
.eco{display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:32px; align-items:start}
.eco-fig{position:relative; min-width:0}
.eco-fig svg{display:block; width:100%; height:auto; shape-rendering:crispEdges}
.eco-fig .u-btn{position:absolute; transform:translate(-50%,0); background:none; border:0; padding:0; text-align:center; width:12%}
.eco-fig .u-btn span{display:inline-block; font-family:var(--f-mono); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.03em; background:var(--bg); border:2px solid var(--fg); padding:1px 5px; line-height:1.3; max-width:100%; overflow-wrap:anywhere}
.eco-fig .u-btn[aria-pressed="true"] span{background:var(--fg); color:var(--bg)}
.eco-fig .u-btn .unconf{display:block; margin-top:2px; justify-content:center}
.eco-fig .zl{position:absolute; top:0; font-family:var(--f-mono); font-size:12px; letter-spacing:.1em; transform:translateX(-50%)}
.eco-fig .canopy{position:absolute; left:0; right:0; font-family:var(--f-mono); font-size:12px; text-align:center}
.eco-fig.sel svg .u{opacity:.13; transition:opacity .3s}
.eco-fig.sel svg .u.on{opacity:1}
.eco-panel{position:sticky; top:calc(var(--head-h) + 16px); border-top:6px solid var(--c,var(--fg)); padding-top:14px}
.eco-panel h2{font-size:28px; font-weight:900; letter-spacing:-.02em; line-height:1.1; margin:4px 0 10px}
.eco-panel p{margin:0 0 12px}
.eco-panel .role{font-weight:500}
.eco-panel .d{color:var(--muted)}
.mx{width:100%; border-collapse:collapse; margin-top:40px; font-size:14px}
.mx caption{text-align:left; font-family:var(--f-mono); font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); padding-bottom:10px}
.mx th,.mx td{border-bottom:1px solid var(--line); padding:8px 6px; text-align:left; vertical-align:middle}
.mx thead th{font-family:var(--f-mono); font-size:11px; letter-spacing:.08em; font-weight:400; color:var(--muted); border-bottom:2px solid var(--fg)}
.mx td.z{width:14%; text-align:center}
.mx td.z i{display:inline-block; width:22px; height:22px; background:var(--c)}
.mx td.z i.off{background:none; border:1px dashed var(--line)}
.eco-acc{display:none}
.eco-list{list-style:none; margin:0; padding:0 0 0 28px; position:relative; display:none}
.eco-list::before{content:""; position:absolute; left:8px; top:0; bottom:0; width:6px; background:var(--root)}
.eco-list li{position:relative; padding:0 0 22px}
.eco-list li::before{content:""; position:absolute; left:-20px; top:12px; width:20px; height:4px; background:var(--root)}
.eco-list li > b{display:flex; align-items:center; gap:8px; font-size:18px}
.eco-list li > b i{width:14px; height:14px; background:var(--c)}
.eco-list p{margin:4px 0 0; color:var(--muted); font-size:14px}

/* ---------- 3. Địa Tầng ---------- */
.ripe{display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:0 16px; margin-bottom:56px}
.ripe-idx{grid-column:1 / 6; list-style:none; margin:0; padding:0 0 30vh}
.ripe-idx li{margin:0}
.ripe-idx a{display:grid; grid-template-columns:40px minmax(0,1fr); align-items:baseline; gap:4px 10px; text-decoration:none; padding:10px 0 12px; position:relative}
.ripe-idx .n{font-family:var(--f-mono); font-size:13px; color:var(--muted)}
.ripe-idx .nm{font-weight:900; font-size:clamp(24px,2.8vw,40px); line-height:1.02; letter-spacing:-.03em; transition:opacity .25s}
.ripe-idx .mt{grid-column:2; font-family:var(--f-mono); font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em}
.ripe-idx .bar{position:absolute; left:0; top:24px; height:7px; width:7px; background:var(--c); transition:width .35s cubic-bezier(.7,0,.2,1)}
.ripe-idx a.on .bar{width:34px}
.ripe-idx a .nm{opacity:.38}
.ripe-idx a.on .nm, .ripe-idx a:hover .nm{opacity:1}
.ripe-stage{grid-column:6 / 13; margin-right:calc(-1 * max(16px, (100vw - 1280px)/2 + 16px)); position:sticky; top:calc(var(--head-h) + 24px); align-self:start; padding-top:calc(var(--a)*8)}
.ripe-stage .frame{position:relative; aspect-ratio:4/3; background:var(--soft); overflow:hidden; display:block}
.ripe-stage img, .ripe-stage canvas{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.ripe-stage canvas{pointer-events:none; image-rendering:pixelated}
.ripe-stage .cap{font-family:var(--f-mono); font-size:12px; text-transform:uppercase; letter-spacing:.04em; margin-top:10px; display:flex; flex-wrap:wrap; gap:4px 14px; color:var(--muted)}
.ripe-stage .cap b{color:var(--fg); font-weight:700}
.ripe-mob{display:none}
.stage-mock{position:absolute; left:10px; top:10px; z-index:2}
.mk{font-family:var(--f-mono); font-size:10px; text-transform:uppercase; letter-spacing:.06em; background:var(--bg); color:var(--fg); border:1px solid var(--fg); padding:1px 6px}

.dt-h2{font-size:clamp(1.5rem,3vw,2.3rem); font-weight:900; letter-spacing:-.02em; display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin:0 0 6px}
.dt-h2 small{font-family:var(--f-mono); font-size:12px; font-weight:400; color:var(--muted); letter-spacing:.04em; text-transform:uppercase}
.dt-q{color:var(--muted); margin:0 0 18px}
.ruler{position:sticky; top:var(--head-h); z-index:20; background:var(--bg); border-block:2px solid var(--fg); padding:10px 0; margin-bottom:18px}
.ruler-row{display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center}
.ruler .search{flex:1 1 200px; max-width:300px}
.ruler .legend{margin-top:8px}
.strata-wrap{display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; align-items:start}
.strata{position:relative; min-width:0}
.strata .row{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:3px; align-content:flex-start}
.strata li{display:block; transition:opacity .25s}
.strata li.dim{opacity:.13}
.strata li.kin .brk{outline:2px solid var(--fg); outline-offset:1px; z-index:2}
.strata li.cur .brk{outline:3px solid var(--focus); outline-offset:1px; z-index:3}
.strata li.flash .brk{animation:flash .32s steps(2) 6}
@keyframes flash{50%{outline:3px solid var(--focus); outline-offset:3px; transform:scale(1.5)}}
.band{display:grid; grid-template-columns:96px minmax(0,1fr); gap:16px; padding:10px 0; border-top:1px solid var(--line)}
.band .yl{font-family:var(--f-mono); font-size:14px; font-weight:700; line-height:1.1}
.band .yl small{display:block; font-weight:400; font-size:11px; color:var(--muted)}
.band.undated{background-image:radial-gradient(var(--line) 1px, transparent 1.2px); background-size:8px 8px; padding:14px 0; border-top:2px dashed var(--fg)}
.band.undated .yl{padding-left:8px}
.gap{display:grid; grid-template-columns:96px minmax(0,1fr); gap:16px; align-items:center; padding:3px 0}
.gap span{font-family:var(--f-mono); font-size:11px; color:var(--muted)}
.gap i{height:2px; background:var(--line)}
.era{position:relative; border-top:2px dashed var(--fg); margin:10px 0; padding:4px 0 4px 112px; font-family:var(--f-mono); font-size:11px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}
.era b{font-weight:700; text-transform:uppercase; letter-spacing:.06em}
.era .up{position:absolute; top:-22px; left:112px; color:var(--muted)}
.clus{display:flex; flex-wrap:wrap; gap:16px 18px; align-items:flex-end}
.clu{display:flex; flex-direction:column; gap:4px; max-width:150px}
.clu .cn{font-family:var(--f-mono); font-size:10px; line-height:1.2; color:var(--muted); overflow-wrap:anywhere}
.clu .row{max-width:150px}
.cols{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px; align-items:end; min-height:260px}
.col{display:flex; flex-direction:column; justify-content:flex-end; gap:10px; min-width:0}
.col .row{flex-wrap:wrap-reverse}
.col .cf{display:flex; align-items:center; gap:8px; border-top:4px solid var(--c); padding-top:8px; font-family:var(--f-mono); font-size:12px}
.col .cf svg{width:24px; height:24px; shape-rendering:crispEdges; flex:none}
.links-ov{position:absolute; inset:0; pointer-events:none; overflow:visible; z-index:4}
.loupe{position:sticky; top:calc(var(--head-h) + 92px); border:2px solid var(--fg); padding:14px; min-height:220px; background:var(--bg)}
.loupe .ph{aspect-ratio:4/3; background:var(--soft); margin-bottom:12px; overflow:hidden; display:grid; place-items:center}
.loupe .ph img{width:100%; height:100%; object-fit:cover}
.loupe .ph svg{width:72px; height:72px; shape-rendering:crispEdges}
.loupe h3{font-size:20px; font-weight:900; line-height:1.15; letter-spacing:-.01em; margin:0 0 8px}
.loupe dl{display:grid; grid-template-columns:auto minmax(0,1fr); gap:3px 10px; margin:0 0 12px; font-size:13px}
.loupe dt{font-family:var(--f-mono); font-size:10px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); padding-top:3px}
.loupe dd{margin:0}
.loupe .hint{color:var(--muted); font-size:13px; margin:0}
.loupe .nophoto{font-family:var(--f-mono); font-size:11px; color:var(--muted); text-align:center; margin-top:6px}
.dt-tools{display:flex; gap:12px; align-items:center; margin:14px 0 0}
.az{margin-top:56px; border-top:2px solid var(--fg); padding-top:12px}
.az summary{font-weight:900; font-size:22px; cursor:pointer; letter-spacing:-.01em}
.az ul{columns:3 260px; column-gap:28px; list-style:none; padding:0; margin:16px 0 0; font-family:var(--f-mono); font-size:13px}
.az li{break-inside:avoid; display:flex; gap:8px; align-items:baseline; padding:3px 0}
.az li .sq{transform:translateY(-1px)}
.az a{text-decoration:none}
.az a:hover{text-decoration:underline}
.az small{color:var(--muted)}
.settle .row{animation:settle .42s cubic-bezier(.2,.8,.3,1.2) both; animation-delay:var(--sd,0ms)}
@keyframes settle{from{transform:translateY(-14px); opacity:0}}

/* bottom sheet (mobile) */
.sheet{position:fixed; left:0; right:0; bottom:0; z-index:60; background:var(--bg); border-top:3px solid var(--fg); padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px)); max-height:72vh; overflow:auto}
.sheet .loupe{position:static; border:0; padding:0; min-height:0}
.sheet .ph{max-height:34vh}
.sheet-x{position:absolute; right:12px; top:10px}

/* ---------- 4. Mặt Cắt Quả ---------- */
.page-case{padding-bottom:0}
.hero{position:relative; margin-bottom:0}
.hero-img{width:100%; height:78vh; min-height:360px; object-fit:cover; background:var(--soft); cursor:zoom-in}
.hero-mk{position:absolute; right:16px; top:16px}
.hero-t{position:relative; margin:-120px 0 0; z-index:2}
.hero-t .in{background:var(--bg); display:inline-block; padding:22px 28px 18px calc(var(--a)*0); margin-left:calc(100% / 12); max-width:min(900px, 88%); position:relative}
.hero-t .fbar{position:absolute; height:8px; background:var(--fc); top:52px; right:100%; width:100vw}
.hero-t h1{font-size:clamp(40px,6vw,88px); line-height:.98; font-weight:900; letter-spacing:-.035em; display:inline}
.hero-t .fpx{display:inline-block; width:44px; height:44px; vertical-align:top; margin:6px 0 0 14px; shape-rendering:crispEdges}
.hero-t .by{font-family:var(--f-mono); font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin:12px 0 0}
.ticket{display:flex; flex-wrap:wrap; border:2px solid var(--fg); margin:32px 0 0; font-family:var(--f-mono); text-transform:uppercase; font-size:12px}
.ticket div{padding:10px 14px; border-right:2px solid var(--fg); flex:1 1 auto; min-width:120px}
.ticket div:last-child{border-right:0}
.ticket dt{font-size:10px; color:var(--muted); letter-spacing:.08em}
.ticket dd{margin:4px 0 0; font-weight:700; letter-spacing:.02em; text-transform:none; font-size:14px}
.ticket .unconf{margin-top:4px; display:flex}
.cbody{display:grid; grid-template-columns:22% minmax(0,1fr); gap:32px; margin-top:48px; align-items:start}
.stem{position:sticky; top:calc(var(--head-h) + 24px); display:flex; gap:16px}
.stem ol{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:3px}
.stem li button{display:flex; align-items:stretch; gap:12px; background:none; border:0; padding:0; text-align:left}
.stem li .seg{width:14px; min-height:56px; background:var(--fg); opacity:.18; transition:opacity .3s, background .3s; flex:none; display:block; border:0}
.stem li.on .seg{opacity:1; background:var(--fc)}
.stem li .lb{font-size:14px; padding-top:2px; line-height:1.3}
.stem li .lb small{display:block; font-family:var(--f-mono); font-size:10px; color:var(--muted)}
.stem .crown{width:14px; height:14px; background:var(--fc); margin-bottom:3px}
.stem .rootc{width:14px; height:22px; background:var(--root); margin-top:3px}
.board .grp{margin-bottom:40px; scroll-margin-top:calc(var(--head-h) + 20px)}
.board .grp-h{font-family:var(--f-mono); font-size:12px; text-transform:uppercase; letter-spacing:.06em; margin:0 0 10px; display:flex; gap:8px; align-items:center}
.mrow{display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:8px; margin-bottom:8px; align-items:start}
.mrow.alt{align-items:end}
.mrow figure{margin:0; min-width:0}
.mrow button{display:block; padding:0; border:0; background:var(--soft); width:100%; cursor:zoom-in}
.mrow img{width:100%; height:auto}
.mrow figcaption{font-family:var(--f-mono); font-size:12px; color:var(--muted); margin-top:6px; display:flex; gap:8px; align-items:flex-start; line-height:1.4}
.mrow figcaption .sq{margin-top:5px; background:var(--fc)}
.ctext{max-width:64ch; font-size:19px; margin:24px 0 0 calc(22% + 32px)}
.kin-sec{margin-top:64px; border-top:2px solid var(--fg); padding-top:18px; display:grid; gap:18px}
.kin-sec h2{font-size:24px; font-weight:900; letter-spacing:-.01em}
.kin-row{display:grid; grid-template-columns:200px minmax(0,1fr); gap:16px; align-items:center}
.kin-row .label{margin:0}
.kin-row ol{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:4px}
.kin-row a.brk{--brick:22px; text-decoration:none}
.kin-row .none{font-size:13px; color:var(--muted); font-style:italic}
.nextq{display:block; position:relative; margin-top:72px; text-decoration:none; overflow:hidden; border-top:2px solid var(--fg)}
.nextq .lbl{font-family:var(--f-mono); font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); display:block; padding-top:16px}
.nextq .nm{display:block; font-weight:900; font-size:clamp(44px,9vw,140px); line-height:.92; letter-spacing:-.045em; padding:8px 0 24px; position:relative; z-index:2; max-width:14ch}
.nextq .peek{position:absolute; right:0; top:0; width:44%; height:100%; object-fit:cover; clip-path:inset(0 0 0 70%); transition:clip-path .5s cubic-bezier(.7,0,.2,1)}
.nextq:hover .peek, .nextq:focus-visible .peek{clip-path:inset(0 0 0 0)}
.case-nav{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:center; border-top:2px solid var(--fg); padding:16px 0 56px}
.case-nav a{font-family:var(--f-mono); font-size:13px}
dialog.lb{border:0; padding:0; background:var(--bg); color:var(--fg); max-width:100vw; max-height:100vh; width:100vw; height:100vh}
dialog.lb::backdrop{background:rgba(0,0,0,.85)}
dialog.lb[open]{display:grid; grid-template-rows:auto minmax(0,1fr) auto}
.lb-top,.lb-bot{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 16px; font-family:var(--f-mono); font-size:12px}
.lb-img{min-height:0; display:grid; place-items:center; padding:0 16px; overflow:auto}
.lb-img img{max-width:100%; max-height:100%; object-fit:contain}
.lb-bot button{min-width:44px}

/* ---------- 5. Khu Rừng ---------- */
.kr-top{display:grid; grid-template-columns:auto minmax(0,1fr); gap:12px 40px; align-items:end; margin-bottom:24px}
.kr-num{font-family:var(--f-mono); font-weight:700; font-size:clamp(64px,11vw,150px); line-height:.9; letter-spacing:-.06em}
.kr-num sup{font-size:.35em; vertical-align:top}
.kr-num sup a{text-decoration:none}
.kr-note{max-width:52ch; color:var(--muted); font-size:14px; margin:0; padding-bottom:10px}
.kr-ctl{position:sticky; top:var(--head-h); z-index:20; background:var(--bg); border-block:2px solid var(--fg); padding:12px 0; display:grid; grid-template-columns:minmax(0,1fr); gap:10px}
.kr-ctl > *, .kr-ctl .ruler-row > *{min-width:0; max-width:100%}
.kr-ctl .ruler-row{display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center}
.yslide{display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:12px; align-items:center}
.yslide output{font-family:var(--f-mono); font-size:13px; white-space:nowrap}
.yslide output b{font-size:18px}
input[type=range].trunk{-webkit-appearance:none; appearance:none; width:100%; height:24px; background:transparent; margin:0}
input[type=range].trunk::-webkit-slider-runnable-track{height:8px; background:repeating-linear-gradient(90deg, var(--fg) 0 10px, transparent 10px 12px)}
input[type=range].trunk::-moz-range-track{height:8px; background:repeating-linear-gradient(90deg, var(--fg) 0 10px, transparent 10px 12px)}
input[type=range].trunk::-webkit-slider-thumb{-webkit-appearance:none; width:18px; height:24px; background:var(--olive); border:2px solid var(--fg); margin-top:-8px; border-radius:0}
input[type=range].trunk::-moz-range-thumb{width:16px; height:22px; background:var(--olive); border:2px solid var(--fg); border-radius:0}
.ychips{display:none; overflow-x:auto; gap:6px; padding-bottom:4px; scrollbar-width:thin}
.wall{position:relative; margin-top:22px; line-height:1.9}
.wall .yr{display:inline-block; font-family:var(--f-mono); font-size:12px; font-weight:700; background:var(--fg); color:var(--bg); padding:0 6px; margin:0 8px 0 4px; vertical-align:middle}
.cl{display:inline-flex; align-items:center; gap:6px; background:none; border:0; padding:1px 4px; margin:0 6px 0 0; font-size:15px; line-height:1.4; text-align:left; transition:opacity .3s; vertical-align:middle}
.cl .brk{--brick:10px; flex:none}
.cl:hover b{text-decoration:underline}
.cl b{font-weight:400}
.cl.feat b{font-weight:700}
.cl.dim, .cl.fut{opacity:.13}
.cl.hide{display:none}
.cl .unconf{font-size:9px}
.cl .unconf::before{width:6px; height:6px}
.wall .undated{margin-top:22px; padding:12px; background-image:radial-gradient(var(--line) 1px, transparent 1.2px); background-size:8px 8px; border-top:2px dashed var(--fg)}
.wall .undated h3, .wall .letter{font-family:var(--f-mono); font-size:12px; text-transform:uppercase; letter-spacing:.06em; margin:0 0 6px; color:var(--muted); font-weight:400}
.wall.az-mode{columns:4 220px; column-gap:24px; line-height:1.5}
.wall.az-mode .cl{display:flex; margin:0 0 3px; break-inside:avoid}
.wall.az-mode .cl.hide{display:none}
.wall .letter{break-after:avoid; margin-top:10px; color:var(--fg); font-weight:700}
.pop{position:absolute; z-index:30; width:min(340px, calc(100vw - 32px)); background:var(--bg); border:2px solid var(--fg); padding:14px; line-height:1.45; font-size:14px}
.pop h3{font-size:18px; font-weight:900; margin:0 18px 6px 0}
.pop ul{list-style:none; margin:8px 0 0; padding:0; display:grid; gap:4px}
.pop li{display:flex; gap:8px; align-items:baseline}
.pop .x{position:absolute; right:6px; top:6px; background:none; border:0; font-size:16px; padding:2px 6px}
.pop .meta{font-family:var(--f-mono); font-size:11px; color:var(--muted)}

/* ---------- 6. Từ Hạt Đến Quả ---------- */
.road{display:grid; grid-template-columns:220px minmax(0,1fr); gap:40px; align-items:start}
.road-trunk{position:sticky; top:calc(var(--head-h) + 24px); display:flex; flex-direction:column; align-items:flex-start}
.road-trunk .fr{display:flex; gap:4px; margin-bottom:4px}
.road-trunk .fr i{width:14px; height:14px; background:var(--c)}
.road-trunk .sg{display:flex; align-items:stretch; gap:12px; text-decoration:none}
.road-trunk .sg b{width:28px; background:var(--fg); opacity:.2; transition:opacity .3s, background .3s; border-bottom:3px solid var(--bg)}
.road-trunk .sg.on b{opacity:1; background:var(--c,var(--fg))}
.road-trunk .sg span{font-family:var(--f-mono); font-size:11px; padding-top:3px; color:var(--muted)}
.road-trunk .sg.on span{color:var(--fg); font-weight:700}
.road-trunk .rt{width:28px; height:18px; background:var(--root)}
.road-trunk .rt2{display:flex; gap:6px; margin-top:2px}
.road-trunk .rt2 i{width:6px; height:14px; background:var(--root)}
.stages{list-style:none; margin:0; padding:0; display:grid; gap:48px}
.stage{scroll-margin-top:calc(var(--head-h) + 24px); max-width:720px}
.stage:nth-child(even){margin-left:calc(var(--a)*6)}
.stage h2{font-size:clamp(1.6rem,3vw,2.4rem); font-weight:900; letter-spacing:-.02em; line-height:1.05; display:flex; flex-wrap:wrap; gap:6px 14px; align-items:baseline}
.stage h2 small{font-family:var(--f-mono); font-size:13px; font-weight:400; color:var(--muted)}
.stage h2 .gd{font-family:var(--f-mono); font-size:14px; background:var(--c); color:#000; padding:0 6px; font-weight:700}
.stage ol{list-style:none; padding:0; margin:14px 0 12px; display:grid; gap:10px}
.stage ol li{display:grid; grid-template-columns:7px minmax(0,1fr); gap:12px}
.stage ol li::before{content:""; width:7px; height:7px; margin-top:9px; background:var(--c)}
.stage ol b{font-weight:500}
.stage ol span{display:block; color:var(--muted); font-size:15px}
.frame4{margin-top:72px; border-top:2px solid var(--fg); padding-top:18px}
.frame4 ol{list-style:none; padding:0; margin:16px 0 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0}
.frame4 li{border-top:8px solid var(--c); padding:10px 12px 0 0}
.frame4 li:nth-child(even){margin-top:calc(var(--a)*3)}
.frame4 b{font-family:var(--f-mono); font-size:16px; letter-spacing:.06em}
.frame4 p{margin:4px 0 0; color:var(--muted); font-size:14px}

/* ---------- 7. Tiếng Vang ---------- */
.tv-ctl{display:flex; flex-wrap:wrap; gap:10px 18px; align-items:center; margin-bottom:28px; padding-block:12px; border-block:2px solid var(--fg)}
.tl{position:relative; list-style:none; margin:0; padding:0 0 0 120px}
.tl::before{content:""; position:absolute; left:96px; top:0; bottom:0; width:2px; background:var(--fg)}
.tl .ym{position:relative; font-family:var(--f-mono); font-size:13px; font-weight:700; margin:28px 0 12px -120px; display:flex; gap:12px; align-items:center}
.tl .ym::after{content:""; width:10px; height:10px; background:var(--fg); position:absolute; left:92px}
.tl .ym span{width:84px}
.tl .mt{position:absolute; left:-30px; width:10px; height:2px; background:var(--fg)}
.ev{position:relative; display:grid; grid-template-columns:minmax(0,1fr) 200px; gap:20px; padding:0 0 32px}
.ev::before{content:""; position:absolute; left:-31px; top:4px; width:16px; height:16px; background:var(--c)}
.ev .dt{position:absolute; left:-120px; top:2px; width:80px; font-family:var(--f-mono); font-size:12px; color:var(--muted); text-align:right}
.ev h2{font-size:clamp(1.2rem,2.2vw,1.6rem); font-weight:900; line-height:1.2; letter-spacing:-.01em; margin:0 0 8px; max-width:40ch}
.ev p{margin:0 0 8px; max-width:62ch}
.ev .meta{display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; font-family:var(--f-mono); font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted)}
.ev img{width:100%; aspect-ratio:4/3; object-fit:cover}
.ev.dim{display:none}
.t-press{--c:var(--azure)} .t-event{--c:var(--orange)} .t-award{--c:var(--yellow)} .t-community,.t-training{--c:var(--olive)} .t-partnership{--c:var(--teal)}

/* ---------- 8. Sổ Tay ---------- */
.posts{list-style:none; margin:0; padding:0; border-top:2px solid var(--fg)}
.posts li{border-bottom:1px solid var(--line)}
.posts a{display:grid; grid-template-columns:120px minmax(0,1fr) auto; gap:8px 24px; padding:20px 0; text-decoration:none; align-items:baseline}
.posts li:nth-child(even) a{padding-left:calc(var(--a)*4)}
.posts .d{font-family:var(--f-mono); font-size:12px; color:var(--muted)}
.posts h2{font-size:clamp(1.2rem,2.4vw,1.8rem); font-weight:900; letter-spacing:-.015em; line-height:1.15}
.posts a:hover h2{text-decoration:underline; text-decoration-thickness:3px; text-underline-offset:5px}
.posts .ex{grid-column:2; color:var(--muted); margin:0; max-width:70ch; font-size:15px}
.posts .rd{grid-column:2; display:flex; align-items:center; gap:8px; font-family:var(--f-mono); font-size:11px; color:var(--muted)}
.posts .rd i{height:6px; background:var(--c,var(--teal))}
.post{max-width:760px}
.post .back{font-family:var(--f-mono); font-size:13px}
.post h2{font-size:clamp(1.8rem,4vw,3rem); font-weight:900; letter-spacing:-.025em; line-height:1.05; margin:16px 0}
.post .body{font-size:18px; line-height:1.7}

/* ---------- 9. Hồ Sơ ---------- */
.hs-tools{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:22px}
.chap{padding-block:56px; border-top:2px solid var(--fg)}
.chap-h{display:flex; align-items:baseline; gap:14px; margin-bottom:22px; flex-wrap:wrap}
.chap-h span{font-family:var(--f-mono); font-size:12px; background:var(--fg); color:var(--bg); padding:1px 6px}
.chap-h h2{font-size:clamp(1.8rem,4vw,3rem); font-weight:900; letter-spacing:-.025em; line-height:1}
.cover{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; align-items:end; min-height:min(46vh,520px)}
.cover .logo-svg{width:min(420px,100%)}
.cover h2{font-size:clamp(2.2rem,5vw,4.4rem); font-weight:900; letter-spacing:-.03em; line-height:1}
.cover p{color:var(--muted); max-width:46ch}
.hs-eco{list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px}
.hs-eco li{border-top:6px solid var(--c); padding-top:10px}
.hs-eco b{font-size:18px}
.hs-eco p{margin:4px 0 0; color:var(--muted); font-size:14px}
.hs-tree{max-width:620px}
.hs-tree svg{width:100%; height:auto; shape-rendering:crispEdges}
.hs-svc{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-top:16px}
.hs-svc div{border-top:6px solid var(--c); padding-top:8px}
.hs-svc p{margin:4px 0 0; font-size:14px; color:var(--muted)}
.mini-strata .band{grid-template-columns:64px minmax(0,1fr); padding:5px 0}
.mini-strata .brk{--brick:10px}
.mini-strata .row{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:2px}
.hs-cases{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px 20px}
.hs-cases a{text-decoration:none}
.hs-cases a:nth-child(3n+2){margin-top:calc(var(--a)*5)}
.hs-cases img{aspect-ratio:4/3; object-fit:cover; width:100%; background:var(--soft)}
.hs-cases b{display:block; font-weight:900; margin-top:8px; line-height:1.2}
.hs-cases span{font-family:var(--f-mono); font-size:11px; color:var(--muted); text-transform:uppercase}
.hs-az{columns:4 200px; column-gap:24px; font-size:13px; list-style:none; padding:0; margin:0}
.hs-az li{break-inside:avoid; padding:1px 0; display:flex; gap:7px; align-items:center}
.hs-az .brk{--brick:8px}
.hs-road{list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px}
.hs-road li{border-top:calc(var(--w)*6px) solid var(--c); padding-top:8px; font-size:14px}
.hs-road b{display:block}
.hs-road small{font-family:var(--f-mono); color:var(--muted)}
.hs-press{list-style:none; padding:0; margin:0; display:grid; gap:12px}
.hs-press li{display:grid; grid-template-columns:110px minmax(0,1fr); gap:12px}
.hs-press .d{font-family:var(--f-mono); font-size:12px; color:var(--muted)}
.hs-end{display:flex; flex-wrap:wrap; gap:12px; align-items:center}
body.present{overflow:hidden}
body.present .site-head, body.present .foot, body.present .hs-head{display:none}
body.present #hs-root .chap{display:none; position:fixed; inset:0; z-index:40; background:var(--bg); overflow:auto; border:0; padding:48px max(16px,6vw) 90px}
body.present #hs-root .chap.cur{display:block}
.pres-bar{position:fixed; left:0; right:0; bottom:0; z-index:45; display:none; justify-content:space-between; align-items:center; gap:10px; padding:10px 16px; background:var(--bg); border-top:2px solid var(--fg); font-family:var(--f-mono); font-size:12px}
body.present .pres-bar{display:flex}

/* ---------- 10. Gieo Hạt ---------- */
.gh{display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:48px; align-items:start}
form.contact{display:grid; gap:14px; max-width:620px}
form.contact label{display:grid; gap:4px; font-size:14px; font-weight:500}
form.contact input, form.contact textarea{font:inherit; font-weight:400; color:var(--fg); background:var(--bg); border:2px solid var(--fg); padding:10px 12px; width:100%; border-radius:0}
form.contact input:focus, form.contact textarea:focus{outline:2px solid var(--focus); outline-offset:2px}
.picks{display:flex; flex-wrap:wrap; gap:6px}
.pick{display:inline-flex; align-items:center; gap:8px; border:2px solid var(--fg); padding:4px 4px 4px 10px; font-size:14px}
.pick i{width:10px; height:10px; background:var(--c,var(--fg))}
.pick button{background:none; border:0; padding:0 6px; font-family:var(--f-mono)}
.gh-side{border-top:6px solid var(--teal); padding-top:12px; font-size:15px}
.gh-side h2{font-size:20px; font-weight:900; margin:0 0 8px}
.gh-side ol{padding-left:18px; color:var(--muted)}

/* ---------- Footer ---------- */
.foot{margin-top:0; border-top:2px solid var(--fg)}
.foot-row{display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px 32px; padding-block:22px 18px; font-size:13px}
.foot-brand{display:grid; gap:2px}
.foot-brand b{font-weight:900; font-size:18px; letter-spacing:-.01em}
.foot-brand span, .foot-note{font-family:var(--f-mono); font-size:11px; color:var(--muted)}
.foot-nav{display:flex; flex-wrap:wrap; gap:6px 16px; align-content:start}
.foot-nav a{text-decoration:none; border-bottom:2px solid transparent}
.foot-nav a:hover{border-color:var(--teal)}
.foot-pattern{display:block; width:100%; height:auto; min-height:14px}

/* ---------- Mobile ---------- */
@media (max-width: 1180px){
  .menu-btn{display:block}
  .nav{display:none; position:absolute; left:0; right:0; top:100%; background:var(--bg); border-bottom:2px solid var(--fg); flex-direction:column; align-items:stretch; padding:8px 16px 16px; gap:0; max-height:calc(100vh - var(--head-h)); overflow:auto}
  .nav.open{display:flex}
  .nav a{flex-direction:row; justify-content:space-between; align-items:baseline; padding:10px 4px; border-bottom:1px solid var(--line)}
  .nav a b{font-size:18px}
  .nav a.cta{margin:10px 0 0; padding:12px}
  .theme-btn{margin:12px 0 0; align-self:flex-start; padding:6px 10px}
  .site-head{position:sticky}
}
@media (max-width: 900px){
  :root{--head-h:62px; --brick:10px}
  .logo-svg{width:150px}
  .logo span{display:none}
  .page-head{padding-block:28px 18px}
  .page-head .lead{margin-left:0}
  .garden.has-sel{grid-template-columns:minmax(0,1fr)}
  .panel{position:static}
  .fruit-btn .ftag{font-size:10px; padding:0 4px; border-width:1.5px}
  .part-tag{display:none}
  .measures{gap:8px}
  .measures li:nth-child(2),.measures li:nth-child(3){margin-top:0}
  .measures a{margin-right:0; padding-right:4px}
  .measures b{font-size:clamp(1.6rem,8vw,2.4rem)}
  .measures span{font-size:10px}
  .picked{grid-template-columns:repeat(3,minmax(0,1fr))}

  .eco{grid-template-columns:minmax(0,1fr)}
  .eco-fig, .eco-panel, .mx{display:none}
  .eco-list{display:block}
  .eco-acc{display:block; margin-top:28px; border-top:2px solid var(--fg)}
  .eco-acc details{border-bottom:1px solid var(--line); padding:10px 0}
  .eco-acc summary{font-weight:500; cursor:pointer}
  .eco-acc .zs{display:flex; gap:6px; flex-wrap:wrap; margin-top:8px}

  .ripe{display:none}
  .ripe-mob{display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:12px; padding:0 16px 8px; margin:0 0 40px; scrollbar-width:none}
  .ripe-mob a{flex:0 0 86vw; scroll-snap-align:center; text-decoration:none; position:relative; display:block}
  .ripe-mob img{aspect-ratio:4/5; object-fit:cover; width:100%; background:var(--soft)}
  .ripe-mob b{display:block; position:relative; margin:-34px 0 0 16px; background:var(--bg); padding:6px 10px 0 0; font-size:30px; line-height:1; font-weight:900; letter-spacing:-.03em; max-width:90%}
  .ripe-mob span{display:block; font-family:var(--f-mono); font-size:11px; color:var(--muted); text-transform:uppercase; margin:6px 0 0 16px}
  .ruler{position:static}
  .ruler .chips{flex-wrap:nowrap; overflow-x:auto; max-width:100%; padding-bottom:4px}
  .lens-bar{position:fixed; left:0; right:0; bottom:0; z-index:30; background:var(--bg); border-top:2px solid var(--fg); padding:8px 16px calc(8px + env(safe-area-inset-bottom,0px)); display:flex; justify-content:center}
  .lens-bar .seg{width:100%}
  .lens-bar .seg button{flex:1}
  #dia-tang-pad{height:60px}
  .strata-wrap{grid-template-columns:minmax(0,1fr)}
  .loupe-col{display:none}
  .band{grid-template-columns:minmax(0,1fr); gap:6px}
  .band .yl small{display:inline; margin-left:8px}
  .gap{grid-template-columns:auto minmax(0,1fr)}
  .era{padding-left:0}
  .era .up{left:0}
  .cols{gap:8px; min-height:200px}
  .col .cf{font-size:10px; flex-direction:column; align-items:flex-start; gap:4px}
  .clu, .clu .row{max-width:110px}

  .hero-img{height:70svh; min-height:300px}
  .hero-t{margin-top:-70px}
  .hero-t .in{margin-left:0; padding:16px 16px 12px 0; max-width:100%}
  .hero-t .fbar{top:38px}
  .hero-t .fpx{width:30px; height:30px; margin-left:8px}
  .ticket div{flex:1 1 45%; border-bottom:2px solid var(--fg)}
  .cbody{grid-template-columns:minmax(0,1fr); gap:16px; margin-top:24px}
  .stem{position:sticky; top:var(--head-h); z-index:10; background:var(--bg); padding:6px 0; display:block}
  .stem .crown, .stem .rootc{display:none}
  .stem ol{flex-direction:row; gap:3px}
  .stem li{flex:1}
  .stem li button{display:block; width:100%}
  .stem li .seg{width:100%; min-height:6px; height:6px}
  .stem li .lb{display:none}
  .mrow{grid-template-columns:minmax(0,1fr); gap:16px}
  .mrow figure{grid-column:1 / -1 !important}
  .mrow figure:nth-child(even){margin-inline:16px}
  .mrow figure:nth-child(odd){margin-inline:-16px}
  .mrow figure:nth-child(odd) figcaption{padding-inline:16px}
  .ctext{margin-left:0}
  .kin-row{grid-template-columns:minmax(0,1fr)}
  .kin-row ol{flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px}
  .nextq .peek{width:60%}

  .kr-top{grid-template-columns:minmax(0,1fr)}
  .kr-ctl{position:static}
  .yslide{display:none}
  .ychips{display:flex; flex:1 1 100%; min-width:0; max-width:100%}
  .kr-ctl .chips{flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px}
  .wall:not(.az-mode){columns:2; column-gap:12px; line-height:1.4}
  .wall:not(.az-mode) .cl{display:flex; margin:0 0 4px; break-inside:avoid; font-size:14px}
  .wall:not(.az-mode) .cl.hide{display:none}
  .wall .yr{display:block; width:max-content; margin:10px 0 6px; break-after:avoid}
  .wall.az-mode{columns:2}

  .road{grid-template-columns:24px minmax(0,1fr); gap:16px}
  .road-trunk .sg span, .road-trunk .fr{display:none}
  .road-trunk .sg b{width:24px}
  .road-trunk .rt{width:24px}
  .road-trunk .rt2{display:none}
  .stage:nth-child(even){margin-left:0}
  .frame4 ol{grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px}
  .frame4 li:nth-child(even){margin-top:0}

  .tl{padding-left:28px}
  .tl::before{left:6px}
  .tl .ym{margin-left:-28px}
  .tl .ym::after{left:2px}
  .tl .ym span{width:auto; padding-left:22px}
  .ev{grid-template-columns:minmax(0,1fr)}
  .ev::before{left:-28px}
  .ev .dt{position:static; width:auto; text-align:left; display:block; margin-bottom:4px}

  .posts a{grid-template-columns:minmax(0,1fr); gap:6px}
  .posts li:nth-child(even) a{padding-left:0}
  .posts .ex, .posts .rd{grid-column:1}

  .cover{grid-template-columns:minmax(0,1fr); min-height:0}
  .hs-svc{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hs-cases{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hs-cases a:nth-child(3n+2){margin-top:0}
  .hs-road{grid-template-columns:minmax(0,1fr)}
  .hs-press li{grid-template-columns:minmax(0,1fr); gap:2px}
  .gh{grid-template-columns:minmax(0,1fr); gap:28px}
}
@media (min-width: 901px){ .lens-bar{display:contents} .sheet{display:none !important} }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{transition:none !important; animation:none !important; scroll-behavior:auto !important}
}

/* ---------- In A4 (Hồ Sơ) ---------- */
@media print{
  @page{size:A4; margin:14mm 12mm}
  :root{--bg:#fff; --fg:#000; --muted:#444; --line:#bbb; --soft:#f3f3f3}
  .site-head, .skip, .hs-tools, .pres-bar, .foot-nav, .sheet, dialog.lb, .menu-btn{display:none !important}
  html.js .page{display:none !important}
  html.js .page.on{display:block !important}
  body{font-size:11pt}
  .chap{break-before:page; border-top:0; padding-block:0 12mm}
  .chap:first-child{break-before:auto}
  img{max-height:60vh; break-inside:avoid}
  a{text-decoration:none}
  .hs-cases a{break-inside:avoid}
}
.uq{outline:1px dashed var(--fg); outline-offset:1px}
.s2o.uq{outline-style:dashed}
.eco-fig .u-btn{width:auto}
.eco-fig .u-btn span{white-space:nowrap; font-size:10px}
.eco-fig .zl{white-space:nowrap; font-size:11px; color:var(--muted)}
.uqm{display:inline-block; width:7px; height:7px; border:1px dashed currentColor; vertical-align:1px}
.gap span{white-space:nowrap}
.ripe-idx{padding-bottom:12vh}
.ev .tsq{background:var(--c)}
.tl .ym span{white-space:nowrap}

/* Giữ chân trang ở dưới khi nội dung đang dựng bằng JS — tránh nhảy bố cục (CLS) */
#main{min-height:100vh; min-height:100svh}

/* ================= THỜI TIẾT · nature.js ================= */
.wx-cv{position:absolute; inset:0; width:100%; height:100%; pointer-events:none; image-rendering:pixelated; z-index:1}
.tree-wrap .fruit-btn,.tree-wrap .part-tag,.eco-fig .u-btn,.eco-fig .zl,.eco-fig .canopy{z-index:2}
/* dải trời 24px dưới thanh menu — mọi trang cùng một bầu trời */
.wx-ribbon{position:relative; height:24px; border-top:1px solid var(--line); overflow:hidden}
.wx-ribbon .wx-lab{position:absolute; right:8px; top:3px; z-index:2; font-family:var(--f-mono); font-size:10px; text-transform:uppercase; letter-spacing:.06em; background:var(--bg); color:var(--fg); border:1px solid var(--fg); padding:0 6px; line-height:16px; cursor:pointer}
.wx-ribbon .wx-lab:hover{background:var(--fg); color:var(--bg)}
/* bảng chọn thời tiết ở Vườn */
.wx-ctl{margin-top:16px}
.wx-ctl .chips{display:flex; flex-wrap:wrap; gap:8px}
.wx-story{margin:8px 0 0; font-family:var(--f-mono); font-size:12px; color:var(--muted); min-height:1.5em}
.wx-i{display:inline-block; width:10px; height:10px; flex:none}
.wx-i-sun{background:var(--yellow)} .wx-i-cloud{background:var(--line); outline:1px solid var(--root)} .wx-i-wind{background:linear-gradient(var(--root) 0 0) 0 2px/100% 2px no-repeat, linear-gradient(var(--root) 0 0) 3px 6px/70% 2px no-repeat}
.wx-i-rain{background:linear-gradient(var(--azure) 0 0) 1px 0/2px 6px no-repeat, linear-gradient(var(--azure) 0 0) 6px 4px/2px 6px no-repeat}
.wx-i-storm{background:var(--root); clip-path:polygon(40% 0,100% 0,60% 45%,90% 45%,20% 100%,40% 55%,10% 55%)}
.wx-i-rainbow{background:linear-gradient(var(--red) 0 0) 0 0/100% 2px no-repeat, linear-gradient(var(--yellow) 0 0) 0 3px/100% 2px no-repeat, linear-gradient(var(--teal) 0 0) 0 6px/100% 2px no-repeat, linear-gradient(var(--blue) 0 0) 0 8px/100% 2px no-repeat}
/* cây: gió làm lá rung, bão làm rung mạnh; mưa: rễ hút nước (xanh nước chạy dọc rễ); nắng/cầu vồng: quả chín sáng lên */
svg.wx-sway rect.lf{animation:wx-sway 1.6s ease-in-out infinite alternate; animation-delay:calc(var(--sx) * -45ms)}
svg.wx-hard rect.lf{animation-duration:.55s; animation-name:wx-sway-hard}
@keyframes wx-sway{from{transform:translateX(-.25px)} to{transform:translateX(.45px)}}
@keyframes wx-sway-hard{from{transform:translate(-.6px,.1px)} to{transform:translate(1.1px,-.15px)}}
svg.wx-drink rect.rt{animation:wx-drink 1.6s ease-in-out infinite; animation-delay:var(--d,0ms)}
@keyframes wx-drink{0%,100%{fill:var(--root)} 45%{fill:var(--azure)}}
svg.wx-ripe rect.fr{animation:wx-ripe 2.4s ease-in-out 1}
@keyframes wx-ripe{40%{transform:translateY(-.6px); filter:brightness(1.2)}}
#tree.growing rect.lf,#tree.growing rect.rt{animation:grow .38s cubic-bezier(.2,.9,.3,1.5) both; animation-delay:var(--d)}
/* Địa Tầng: mưa thấm xuống từng tầng đất */
body.wx-rain .strata .band .brk,body.wx-storm .strata .band .brk{animation:wx-seep 2.6s ease-in-out infinite; animation-delay:calc(var(--bi,0) * 160ms)}
@keyframes wx-seep{0%,100%{filter:none} 50%{filter:brightness(.8) saturate(1.25)}}
/* Khu Rừng: gió lùa qua bức tường thương hiệu */
body.wx-wind #wall .cl,body.wx-storm #wall .cl{animation:wx-gust 2s ease-in-out infinite; transform-origin:50% 100%}
body.wx-storm #wall .cl{animation-duration:.9s}
#wall .cl:nth-child(5n+1){animation-delay:-.2s} #wall .cl:nth-child(5n+2){animation-delay:-.5s} #wall .cl:nth-child(5n+3){animation-delay:-.8s} #wall .cl:nth-child(5n+4){animation-delay:-1.1s}
@keyframes wx-gust{0%,100%{transform:none} 45%{transform:rotate(-1.5deg) translateX(2px)}}
/* Tác phẩm: nắng chiếu dải sáng nhẹ qua ảnh */
@media (prefers-reduced-motion:reduce){ .wx-ribbon{display:none} svg rect.lf,svg rect.rt,svg rect.fr,.strata .brk,#wall .cl{animation:none!important} }

/* ================= GẠCH LEGO ĐA DẠNG ================= */
/* núm vẫn mang nghĩa đơn vị (1 núm JAI, 2 núm TUT); hình khối đổi theo dự án: dài 2–3 ô, tấm mỏng, ô tròn, sắc độ khác nhau */
.brk{border-bottom:3px solid color-mix(in srgb, var(--c) 72%, #000)}
.brk.w2{width:calc(var(--brick) * 2 + 3px)} .brk.w3{width:calc(var(--brick) * 3 + 6px)}
.brk.pl{height:calc(var(--brick) * .6); border-bottom-width:2px}
.brk.rd{border-radius:50%; border-bottom:0; box-shadow:inset 0 -3px 0 color-mix(in srgb, var(--c) 72%, #000)}
.brk.tn1{background-color:color-mix(in srgb, var(--c) 80%, #fff)} .brk.tn2{background-color:color-mix(in srgb, var(--c) 86%, #000)}
.strata .row{align-items:flex-end}
.cl .brk{border-bottom-width:2px}
.cl .brk.t-intl-global{--brick:16px} .cl .brk.t-intl,.cl .brk.t-vn-group{--brick:13px}
.tree-wrap{margin-top:56px}

/* ---------- Hệ Rễ: các thế hệ thương hiệu ---------- */
.gens{margin:8px 0 48px}
.gens ol{list-style:none; margin:16px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:0; border-top:2px solid var(--fg)}
.gens li{position:relative; padding:16px 16px 24px; border-right:1px solid var(--line); border-top:8px solid var(--c)}
.gens li:last-child{border-right:0}
.gens .gn{font-family:var(--f-mono); font-size:12px; color:var(--muted)}
.gens .gl{margin:4px 0 0; font-family:var(--f-mono); font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--c)}
.gens h3{margin:4px 0 8px; font-size:22px; font-weight:900; line-height:1.15}
.gens p{margin:0 0 8px; font-size:15px}
.hs-eco .gl{display:block; font-family:var(--f-mono); font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-top:2px}
/* ---------- Khu Rừng: xếp theo tầm cỡ thương hiệu ---------- */
#wall.tier-mode{display:block}
.tier{padding:16px 0 20px; border-top:1px solid var(--line)}
.tier h3{margin:0 0 12px; font-size:18px; font-weight:900; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px}
.tier h3 span{font-family:var(--f-mono); font-size:12px; font-weight:400; color:var(--muted)}
.tier h3 small{flex-basis:100%; font-family:var(--f-mono); font-size:11px; font-weight:400; color:var(--muted)}
.tier .cl{display:inline-flex; margin:0 14px 10px 0}
.tier-intl-global .cl b{font-size:20px; font-weight:900} .tier-intl .cl b,.tier-vn-group .cl b{font-size:17px; font-weight:700} .tier-vn-major .cl b{font-weight:500}
.tier-note{color:var(--fg)!important}
.brk.w2,.brk.w3{background-size:var(--brick) var(--brick); background-position:center 0}
.brk.w2.rd,.brk.w3.rd{border-radius:0; box-shadow:none; border-bottom:3px solid color-mix(in srgb, var(--c) 72%, #000)}
.sx{background-image:none!important}

/* ===== Giai đoạn 2 (nhiều trang, Astro) ===== */
/* Chữ và danh sách dựng sẵn lúc build: hiện khi không có JavaScript (và cho máy tìm kiếm đọc HTML gốc);
   khi có JavaScript, các hàm dựng trong app.js vẽ lại đúng giao diện đã duyệt nên phần này được ẩn đi. */
html.js .ssr{display:none!important}
.ssr{margin-top:8px}
.ssr h2{font-size:22px; font-weight:900; margin:32px 0 12px}
.ssr h3{font-size:17px; font-weight:700; margin:20px 0 6px}
.ssr ul,.ssr ol{padding-left:20px}
.ssr li{margin:4px 0}
.ssr .ssr-gal{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; padding:0; list-style:none}
.ssr .ssr-gal img{width:100%; height:auto; border:2px solid var(--fg); display:block}
/* ô bẫy máy trong biểu mẫu Gieo Hạt: người thật không thấy */
.hp{position:absolute!important; left:-9999px; width:1px; height:1px; overflow:hidden}
/* đang mở màn sau khi chuyển trang: che trang mới cho tới khi lớp hiệu ứng logo phủ lên (boot.js, transitions.js) */
html.tx-in body{visibility:hidden} html.tx-in #tx{visibility:visible}
html:not(.js) .wx-ribbon .wx-lab{display:none}
/* bảng chỉ dành cho trình đọc màn hình (Địa Tầng): bảng không nhận width:1px nếu không cố định cách chia cột → tràn ngang ở 320px */
table.sr-only{left:0; top:0; width:1px; table-layout:fixed}
.wx-ribbon .wx-lab:empty::before{content:var(--wx-lab,"Nắng · tự đổi")}
/* chọn ngôn ngữ (đa ngôn ngữ): phẳng, viền 2px như nút sáng/tối */
.lang{position:relative; display:flex; align-items:stretch; margin-left:6px}
.lang summary{list-style:none; display:flex; align-items:center; cursor:pointer; border:2px solid var(--fg); padding:2px 8px; font-family:var(--f-mono); font-size:11px; font-weight:700; background:var(--bg); color:var(--fg)}
.lang summary::-webkit-details-marker{display:none}
.lang[open] summary,.lang summary:hover{background:var(--fg); color:var(--bg)}
.lang ul{position:absolute; right:0; top:100%; z-index:60; list-style:none; margin:4px 0 0; padding:0; background:var(--bg); border:2px solid var(--fg); min-width:160px}
.lang li a{display:flex; flex-direction:row; align-items:baseline; gap:8px; padding:6px 10px; text-decoration:none; font-size:14px; border-bottom:1px solid var(--line)}
.lang li:last-child a{border-bottom:0}
.lang li a b{font-family:var(--f-mono); font-size:11px; min-width:28px}
.lang li a[aria-current]{background:var(--soft)} .lang li a:hover{background:var(--fg); color:var(--bg)}
/* chữ Hàn, Trung: phông hệ thống có đủ nét */
html[lang=ko] body{font-family:'Roboto','Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR',sans-serif}
html[lang=zh] body{font-family:'Roboto','PingFang SC','Microsoft YaHei','Noto Sans SC',sans-serif}
/* bản tiếng nước ngoài: từ dài (tiếng Đức…) được ngắt dòng/gạch nối thay vì tràn ngang ở màn hình hẹp */
html:not([lang=vi]) h1,html:not([lang=vi]) h2,html:not([lang=vi]) h3,html:not([lang=vi]) .lead,html:not([lang=vi]) .hs-cases b,html:not([lang=vi]) .tg-card figcaption,html:not([lang=vi]) .chip{overflow-wrap:anywhere; hyphens:auto}
