:root{
  --h2d-bg:#efe8de;
  --h2d-dark:#101114;
  --h2d-text:#2f2f31;
  --h2d-muted:#808080;
  --h2d-accent:#af764b;
}

/* =========================================================
   FEATURED PROJECTS - HOMEPAGE / SHORTCODE
   [h2d_featured_projects]
   6 dự án: hàng 1 = 3 dự án đều nhau; hàng 2 = 5/4/3 cột
========================================================= */
.h2d-featured-projects{
  width:100%;
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  grid-auto-flow:row;
  gap:16px;
}

.h2d-featured-card{
  min-width:0;
  grid-column:span 4;
}

/* Hàng 1: 3 dự án giống nhịp ảnh tham chiếu */
.h2d-featured-pos-1,
.h2d-featured-pos-2,
.h2d-featured-pos-3{
  grid-column:span 4;
}

/* Hàng 2: bất đối xứng để 6 dự án vẫn giữ chất editorial */
.h2d-featured-pos-4{grid-column:span 5;}
.h2d-featured-pos-5{grid-column:span 4;}
.h2d-featured-pos-6{grid-column:span 3;}

.h2d-featured-card-link{
  display:block;
  width:100%;
  color:#fff!important;
  text-decoration:none!important;
}

.h2d-featured-media{
  position:relative;
  width:100%;
  height:100%;
  min-height:340px;
  overflow:hidden;
  background:#2f2f31;
}

/* Hàng đầu cao hơn / hơi portrait như mẫu */
.h2d-featured-pos-1 .h2d-featured-media,
.h2d-featured-pos-2 .h2d-featured-media,
.h2d-featured-pos-3 .h2d-featured-media{
  min-height:430px;
}

/* Hàng hai rộng và thấp hơn như mẫu */
.h2d-featured-pos-4 .h2d-featured-media,
.h2d-featured-pos-5 .h2d-featured-media,
.h2d-featured-pos-6 .h2d-featured-media{
  min-height:330px;
}

.h2d-featured-media > img,
.h2d-featured-media > .h2d-project-placeholder{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  transition:transform .65s cubic-bezier(.2,.65,.3,1),filter .45s ease;
}

.h2d-featured-card-link:hover .h2d-featured-media > img{
  transform:scale(1.035);
}

/* Lớp tối nhẹ giúp text đọc được nhưng không làm ảnh bị đen */
.h2d-featured-shade{
  position:absolute;
  z-index:1;
  inset:0;
  pointer-events:none;
  background:linear-gradient(
    180deg,
    rgba(16,17,20,.03) 20%,
    rgba(16,17,20,.08) 52%,
    rgba(16,17,20,.78) 100%
  );
}

/* Tag nhỏ góc trên phải theo tinh thần ảnh tham chiếu */
.h2d-featured-brand{
  position:absolute;
  z-index:3;
  top:14px;
  right:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:46px;
  padding:0 5px;
  border:1px solid rgba(255,255,255,.72);
  color:#fff;
  
  font-size:8px;
  font-weight:600;
  letter-spacing:1.2px;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  background:rgba(16,17,20,.16);
  backdrop-filter:blur(2px);
}

.h2d-featured-copy{
  position:absolute;
  z-index:3;
  left:22px;
  right:22px;
  bottom:20px;
  color:#fff;
}

.h2d-featured-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin:0 0 7px;
  
  font-size:10px;
  line-height:1.35;
  font-weight:600;
  letter-spacing:.85px;
  text-transform:uppercase;
  color:rgba(255,255,255,.88);
}

.h2d-featured-meta i{
  font-style:normal;
  color:var(--h2d-accent);
}

.h2d-featured-copy h3{
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  
  font-size:27px!important;
  line-height:1.08!important;
  font-weight:400!important;
  text-shadow:0 1px 10px rgba(0,0,0,.18);
}

.h2d-featured-line{
  display:block;
  width:40px;
  height:1px;
  margin-top:11px;
  background:rgba(255,255,255,.8);
  transition:width .35s ease,background .35s ease;
}

.h2d-featured-card-link:hover .h2d-featured-line{
  width:72px;
  background:var(--h2d-accent);
}

/* =========================================================
   PROJECT LIST - 3 dự án / row
   [h2d_projects]
========================================================= */
.h2d-project-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:54px 28px;
}

.h2d-project-card{min-width:0;}
.h2d-project-card-link{display:block;color:inherit;text-decoration:none!important;}

.h2d-project-image{
  overflow:hidden;
  background:#f3f0eb;
  aspect-ratio:4/3;
}

.h2d-project-image img,
.h2d-project-placeholder{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .55s ease;
}

.h2d-project-card-link:hover .h2d-project-image img{transform:scale(1.025);}

.h2d-project-card-heading{
  text-align:center;
  margin:14px 0 0;
}

.h2d-project-card-heading h3{
  
  font-weight:400!important;
  font-size:22px!important;
  line-height:1.15!important;
  color:var(--h2d-dark)!important;
  margin:0!important;
}

.h2d-project-meta{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
  
  font-size:13px;
  line-height:1.5;
  color:var(--h2d-text);
  text-align:center;
}
.h2d-project-meta i{font-style:normal;color:var(--h2d-accent);}

/* =========================================================
   SINGLE PROJECT
========================================================= */
.h2d-project-shell{max-width:1280px;margin:0 auto;padding:80px 28px 100px;box-sizing:border-box;}
.h2d-project-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:70px;align-items:end;margin-bottom:70px;}
.h2d-project-eyebrow{font-size:13px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--h2d-accent);margin:0 0 12px;}
.h2d-project-title{font-size:clamp(48px,6vw,88px);font-weight:400;line-height:.98;color:var(--h2d-dark);margin:0;}
.h2d-project-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid rgba(16,17,20,.18);}
.h2d-project-fact{padding:18px 14px 18px 0;border-bottom:1px solid rgba(16,17,20,.18);}
.h2d-project-fact:nth-child(even){padding-left:18px;border-left:1px solid rgba(16,17,20,.18);}
.h2d-project-fact-label{display:block;font-size:10px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--h2d-muted);margin-bottom:6px;}
.h2d-project-fact-value{display:block;font-size:15px;line-height:1.5;color:var(--h2d-dark);}
.h2d-project-cover{margin:0 0 78px;aspect-ratio:16/8;overflow:hidden;background:#f3f0eb;}
.h2d-project-cover img{width:100%;height:100%;object-fit:cover;display:block;}
.h2d-project-story{display:grid;grid-template-columns:1fr 1fr;gap:70px;margin-bottom:72px;}
.h2d-project-story-block{border-top:1px solid rgba(16,17,20,.18);padding-top:20px;}
.h2d-project-story-block h2{font-size:38px;line-height:1.08;font-weight:400;color:var(--h2d-dark);margin:0 0 16px;}
.h2d-project-story-block p{font-size:16px;line-height:1.8;color:var(--h2d-text);margin:0;white-space:pre-line;}
.h2d-project-extra{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:70px;}
.h2d-project-extra-item{background:var(--h2d-bg);padding:28px 30px;}
.h2d-project-extra-item strong{display:block;font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--h2d-accent);margin-bottom:10px;}
.h2d-project-extra-item span{font-size:16px;line-height:1.7;color:var(--h2d-dark);}
.h2d-project-masonry{column-count:3;column-gap:16px;}
.h2d-masonry-item{break-inside:avoid;margin:0 0 16px;overflow:hidden;background:#f3f0eb;}
.h2d-masonry-item img,.h2d-masonry-item video{display:block;width:100%;height:auto;}

/* Archive */
.h2d-project-archive-page{
  width:100%;
  min-height:100%;
  margin:0;
  padding:0;
  background:#efe8de!important;
}
.h2d-project-archive-page .h2d-archive-head,
.h2d-project-archive-page .h2d-archive-content{
  background:#efe8de!important;
}
.h2d-archive-head{max-width:1280px;margin:0 auto;padding:74px 28px 44px;}
.h2d-archive-title{font-size:clamp(48px,6vw,78px);font-weight:400;line-height:1;margin:0;color:var(--h2d-dark);}
.h2d-archive-content{max-width:1280px;margin:0 auto;padding:0 28px 90px;}
.h2d-empty{color:var(--h2d-text);}
.navigation.pagination{margin-top:60px;}

/* =========================================================
   RESPONSIVE
========================================================= */
@media(max-width:1100px){
  .h2d-featured-pos-4{grid-column:span 6;}
  .h2d-featured-pos-5{grid-column:span 6;}
  .h2d-featured-pos-6{grid-column:span 6;}
  .h2d-featured-pos-4 .h2d-featured-media,
  .h2d-featured-pos-5 .h2d-featured-media,
  .h2d-featured-pos-6 .h2d-featured-media{min-height:330px;}
}

@media(max-width:900px){
  .h2d-featured-pos-1,
  .h2d-featured-pos-2,
  .h2d-featured-pos-3,
  .h2d-featured-pos-4,
  .h2d-featured-pos-5,
  .h2d-featured-pos-6{grid-column:span 6;}
  .h2d-featured-media,
  .h2d-featured-pos-1 .h2d-featured-media,
  .h2d-featured-pos-2 .h2d-featured-media,
  .h2d-featured-pos-3 .h2d-featured-media{min-height:360px;}
  .h2d-project-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .h2d-project-hero{grid-template-columns:1fr;gap:34px;}
  .h2d-project-story{grid-template-columns:1fr;gap:38px;}
  .h2d-project-masonry{column-count:2;}
}

@media(max-width:600px){
  .h2d-featured-projects{gap:12px;}
  .h2d-featured-pos-1,
  .h2d-featured-pos-2,
  .h2d-featured-pos-3,
  .h2d-featured-pos-4,
  .h2d-featured-pos-5,
  .h2d-featured-pos-6{grid-column:1/-1;}
  .h2d-featured-media,
  .h2d-featured-pos-1 .h2d-featured-media,
  .h2d-featured-pos-2 .h2d-featured-media,
  .h2d-featured-pos-3 .h2d-featured-media,
  .h2d-featured-pos-4 .h2d-featured-media,
  .h2d-featured-pos-5 .h2d-featured-media,
  .h2d-featured-pos-6 .h2d-featured-media{min-height:420px;}
  .h2d-featured-copy{left:18px;right:18px;bottom:18px;}
  .h2d-featured-copy h3{font-size:26px!important;}
  .h2d-featured-brand{top:12px;right:12px;}

  .h2d-project-grid{grid-template-columns:1fr;gap:40px;}
  .h2d-project-shell{padding:56px 18px 70px;}
  .h2d-project-facts{grid-template-columns:1fr;}
  .h2d-project-fact:nth-child(even){padding-left:0;border-left:0;}
  .h2d-project-cover{aspect-ratio:4/3;margin-bottom:52px;}
  .h2d-project-extra{grid-template-columns:1fr;}
  .h2d-project-masonry{column-count:1;}
  .h2d-archive-head{padding:56px 18px 34px;}
  .h2d-archive-content{padding:0 18px 70px;}
}

/* =========================================================
   SINGLE PROJECT V2 — IMMERSIVE SPACE NAVIGATION
========================================================= */
.h2d-project-detail-root{width:100%;max-width:none;margin:0;padding:0;background:#101114;}
.h2d-project-detail-v2{--side-width:clamp(250px,20vw,330px);--h2d-project-height:calc(100svh - 1px);display:grid;grid-template-columns:minmax(0,1fr) var(--side-width);width:100%;height:var(--h2d-project-height);min-height:620px;background:#101114;overflow:hidden}
.h2d-project-stage{position:relative;height:100%;min-width:0;background:#101114;overflow:hidden;scroll-behavior:smooth}
.h2d-project-overview,.h2d-space-panel{display:none;width:100%;min-height:100%}
.h2d-project-overview.is-active,.h2d-space-panel.is-active{display:block}

/* Overview / cover */
.h2d-project-banner{position:relative;width:100%;height:100%;min-height:620px;background:#2f2f31 center/cover no-repeat;overflow:hidden}
.h2d-project-banner::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,17,20,.12),rgba(16,17,20,0) 52%);pointer-events:none}
.h2d-project-banner-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,17,20,.02) 22%,rgba(16,17,20,.18) 58%,rgba(16,17,20,.88) 100%);pointer-events:none}
.h2d-project-intro-copy{position:absolute;z-index:2;left:clamp(28px,5vw,76px);right:clamp(28px,7vw,110px);bottom:clamp(28px,5vh,58px);max-width:980px;color:#fff}
.h2d-project-intro-kicker{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#efe8de}
.h2d-project-intro-kicker i{font-style:normal;color:#af764b}
.h2d-project-intro-title{max-width:900px;margin:0 0 20px!important;color:#fff!important;font-size:clamp(38px,5.4vw,78px)!important;font-weight:400!important;line-height:1.02!important;letter-spacing:-.02em!important;text-transform:none!important}
.h2d-project-intro-facts{display:flex;flex-wrap:wrap;gap:8px 28px;max-width:1000px;padding-top:16px;border-top:1px solid rgba(255,255,255,.38)}
.h2d-project-intro-fact{display:flex;align-items:baseline;gap:8px;min-width:min(240px,45%)}
.h2d-project-intro-fact span{font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.62)}
.h2d-project-intro-fact strong{font-size:13px;font-weight:400;color:#fff}
.h2d-project-intro-desc{max-width:690px;margin:18px 0 0!important;color:rgba(255,255,255,.82)!important;font-size:14px!important;line-height:1.75!important}
.h2d-intro-reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease var(--delay,0s),transform .7s cubic-bezier(.2,.7,.2,1) var(--delay,0s)}
.h2d-project-detail-v2.is-intro-ready .h2d-intro-reveal{opacity:1;transform:translateY(0)}

/* Right project navigation */
.h2d-project-side{height:100%;display:flex;flex-direction:column;background:#101114;color:#fff;border-left:1px solid rgba(239,232,222,.12);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#808080 #101114}
.h2d-project-side-brand{display:flex;align-items:baseline;gap:10px;padding:26px 26px 22px;border-bottom:1px solid rgba(239,232,222,.12)}
.h2d-project-side-brand span{font-size:24px;font-weight:400;line-height:1;color:#efe8de}
.h2d-project-side-brand small{font-size:9px;font-weight:600;letter-spacing:.2em;color:#af764b}
.h2d-project-space-nav{padding:10px 0 28px}
.h2d-project-nav-group{margin-top:20px}
.h2d-project-nav-heading{padding:0 26px 8px;font-size:9px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:#808080}
.h2d-project-nav-button{appearance:none;width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 26px;border:0;border-top:1px solid rgba(239,232,222,.08);border-radius:0!important;background:transparent!important;color:rgba(255,255,255,.78)!important;text-align:left;font-size:12px!important;font-weight:400!important;line-height:1.35!important;cursor:pointer;transition:background .3s ease,color .3s ease,padding .3s ease}
.h2d-project-nav-button:last-child{border-bottom:1px solid rgba(239,232,222,.08)}
.h2d-project-nav-button i{font-style:normal;color:#af764b;opacity:.45;transform:translateX(-4px);transition:opacity .3s ease,transform .3s ease}
.h2d-project-nav-button:hover,.h2d-project-nav-button.is-active{background:#2f2f31!important;color:#fff!important;padding-left:32px}
.h2d-project-nav-button:hover i,.h2d-project-nav-button.is-active i{opacity:1;transform:translateX(0)}
.h2d-project-nav-button.is-active{box-shadow:inset 2px 0 0 #af764b}

/* Space view */
.h2d-space-panel{background:#efe8de;color:#101114;min-height:100%;padding-bottom:24px}
.h2d-space-panel.is-active{animation:h2dSpaceEnter .5s ease both}
@keyframes h2dSpaceEnter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.h2d-space-header{padding:clamp(34px,5vw,72px) clamp(26px,5vw,72px) clamp(26px,4vw,52px);background:#efe8de;border-bottom:1px solid rgba(16,17,20,.12)}
.h2d-space-kicker{margin:0 0 10px!important;font-size:10px!important;font-weight:600!important;letter-spacing:.18em!important;text-transform:uppercase!important;color:#af764b!important}
.h2d-space-header h2{max-width:900px;margin:0 0 18px!important;font-size:clamp(34px,4.8vw,68px)!important;font-weight:400!important;line-height:1.05!important;color:#101114!important;text-transform:none!important}
.h2d-space-header>p:last-child{max-width:820px;margin:0!important;font-size:15px!important;font-weight:400!important;line-height:1.8!important;color:#2f2f31!important}
.h2d-space-masonry{column-count:2;column-gap:10px;padding:10px;background:#efe8de}
.h2d-space-media-item{break-inside:avoid;margin:0 0 10px;overflow:hidden;background:#2f2f31}
.h2d-space-media-item img,.h2d-space-media-item video{display:block;width:100%;height:auto;max-width:100%;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.h2d-space-media-item:hover img{transform:scale(1.015)}
.h2d-project-detail-v2.is-space-mode .h2d-project-stage{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#808080 #efe8de}

/* Tablet / mobile */
@media(max-width:849px){
  .h2d-project-detail-v2{--side-width:220px;min-height:560px}
  .h2d-project-intro-copy{left:28px;right:28px;bottom:30px}
  .h2d-project-intro-facts{gap:7px 18px}
  .h2d-project-intro-fact{min-width:calc(50% - 18px)}
  .h2d-project-nav-button{padding-left:18px;padding-right:18px}
  .h2d-project-nav-heading,.h2d-project-side-brand{padding-left:18px;padding-right:18px}
}
@media(max-width:649px){
  .h2d-project-detail-v2{display:flex;flex-direction:column;height:auto!important;min-height:0;overflow:visible;background:#101114}
  .h2d-project-side{order:-1;position:sticky;top:0;z-index:50;width:100%;height:auto;max-height:44vh;border-left:0;border-bottom:1px solid rgba(239,232,222,.12)}
  .h2d-project-side-brand{padding:13px 18px}
  .h2d-project-side-brand span{font-size:18px}
  .h2d-project-space-nav{padding:0 0 8px}
  .h2d-project-nav-group{margin-top:8px}
  .h2d-project-nav-button{padding:10px 18px;font-size:11px!important}
  .h2d-project-nav-heading{padding:5px 18px}
  .h2d-project-stage{height:auto;min-height:calc(100svh - 120px);overflow:visible!important}
  .h2d-project-overview{height:calc(100svh - 120px);min-height:560px}
  .h2d-project-banner{height:100%;min-height:560px}
  .h2d-project-intro-title{font-size:clamp(34px,10vw,52px)!important}
  .h2d-project-intro-facts{display:grid;grid-template-columns:1fr 1fr}
  .h2d-project-intro-fact{min-width:0;display:block}
  .h2d-project-intro-fact span,.h2d-project-intro-fact strong{display:block}
  .h2d-project-intro-desc{display:none}
  .h2d-space-panel{min-height:0}
  .h2d-space-header{padding:32px 22px 26px}
  .h2d-space-masonry{column-count:1;padding:8px;column-gap:0}
  .h2d-space-media-item{margin-bottom:8px}
}
@media(prefers-reduced-motion:reduce){
  .h2d-project-detail-v2 *,.h2d-project-detail-v2 *::before,.h2d-project-detail-v2 *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .h2d-intro-reveal{opacity:1!important;transform:none!important}
}

/* Keep the full-screen project stage, but let the document scroll to the theme footer. */
body.single-h2d_project{
  overflow-x:hidden;
  overflow-y:auto;
}


/* =========================================================
   SINGLE PROJECT V2.1 — FULL VIEWPORT + BACK BUTTON + FONT LOCK
========================================================= */
/* Font system riêng cho plugin: heading = Noto Serif Display Regular, content = Source Sans Pro */
.h2d-project-detail-v2,
.h2d-project-detail-v2 p,
.h2d-project-detail-v2 span,
.h2d-project-detail-v2 strong,
.h2d-project-detail-v2 small,
.h2d-project-detail-v2 a,
.h2d-project-detail-v2 button,
.h2d-project-detail-v2 i{
  
}
.h2d-project-detail-v2 h1,
.h2d-project-detail-v2 h2,
.h2d-project-detail-v2 h3,
.h2d-project-detail-v2 h4,
.h2d-project-detail-v2 h5,
.h2d-project-detail-v2 h6,
.h2d-project-side-brand span{
  
  font-weight:400!important;
}

/* Overview phải có height thật, không chỉ min-height, để banner fill kín stage */
.h2d-project-overview{
  height:100%!important;
  min-height:100%!important;
}
.h2d-project-overview.is-active{
  display:block!important;
  height:100%!important;
}
.h2d-project-banner{
  height:100%!important;
  min-height:100%!important;
  background-position:center center!important;
  background-size:cover!important;
}

/* Nút quay lại toàn bộ dự án */
.h2d-project-back{
  display:flex!important;
  align-items:center;
  gap:10px;
  width:100%;
  box-sizing:border-box;
  padding:13px 26px;
  border-bottom:1px solid rgba(239,232,222,.12);
  background:#101114;
  color:#efe8de!important;
  text-decoration:none!important;
  font-size:11px!important;
  font-weight:600!important;
  letter-spacing:.08em;
  text-transform:uppercase;
  transition:background-color .3s ease,color .3s ease,padding-left .3s ease;
}
.h2d-project-back i{
  color:#af764b;
  font-style:normal;
  font-size:15px;
  line-height:1;
  transition:transform .3s ease;
}
.h2d-project-back:hover{
  background:#2f2f31;
  color:#fff!important;
  padding-left:31px;
}
.h2d-project-back:hover i{transform:translateX(-3px)}

@media(max-width:849px){
  .h2d-project-back{padding-left:18px;padding-right:18px}
}
@media(max-width:649px){
  .h2d-project-back{padding:10px 18px;font-size:10px!important}
  .h2d-project-overview{height:calc(100svh - 120px)!important;min-height:560px!important}
  .h2d-project-banner{height:100%!important;min-height:100%!important}
}

/* =========================================================
   H2D PROJECT LIST v1.3 - OVERLAY CARD + STATUS NAV
========================================================= */
.h2d-project-card-link{
  display:block;
  color:#fff!important;
  text-decoration:none!important;
}

.h2d-project-card .h2d-project-image{
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#2f2f31;
}

.h2d-project-card .h2d-project-image > img,
.h2d-project-card .h2d-project-image > .h2d-project-placeholder{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .65s cubic-bezier(.2,.65,.3,1),filter .45s ease;
}

.h2d-project-card-link:hover .h2d-project-image > img{
  transform:scale(1.035);
}

.h2d-project-card-shade{
  position:absolute;
  z-index:1;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(16,17,20,0) 38%,rgba(16,17,20,.18) 62%,rgba(16,17,20,.86) 100%);
  transition:background .4s ease;
}

.h2d-project-card-link:hover .h2d-project-card-shade{
  background:linear-gradient(180deg,rgba(16,17,20,.02) 24%,rgba(16,17,20,.24) 57%,rgba(16,17,20,.92) 100%);
}

.h2d-project-card-overlay{
  position:absolute;
  z-index:2;
  left:0;
  right:0;
  bottom:0;
  padding:24px 26px 22px;
  color:#fff;
}

.h2d-project-card-overlay h3{
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  
  font-size:clamp(18px,1.55vw,24px)!important;
  font-weight:400!important;
  line-height:1.15!important;
  text-shadow:0 2px 12px rgba(0,0,0,.22);
  transition:transform .4s cubic-bezier(.2,.65,.3,1);
}

.h2d-project-card-extra{
  display:flex;
  flex-direction:column;
  gap:4px;
  max-height:0;
  margin-top:0;
  opacity:0;
  overflow:hidden;
  transform:translateY(18px);
  
  font-size:13px;
  font-weight:400;
  line-height:1.45;
  color:rgba(255,255,255,.92);
  transition:max-height .42s ease,opacity .34s ease,transform .42s cubic-bezier(.2,.65,.3,1),margin-top .42s ease;
}

.h2d-project-card-details{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
  color:rgba(255,255,255,.8);
}

.h2d-project-card-details i{
  font-style:normal;
  color:#af764b;
}

.h2d-project-card-link:hover .h2d-project-card-overlay h3{
  transform:translateY(-2px);
}

.h2d-project-card-link:hover .h2d-project-card-extra{
  max-height:80px;
  margin-top:10px;
  opacity:1;
  transform:translateY(0);
}

.h2d-project-status-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px 28px;
  margin-top:28px;
  padding-top:18px;
  border-top:1px solid rgba(16,17,20,.14);
}

.h2d-project-status-nav a{
  position:relative;
  color:#2f2f31!important;
  
  font-size:14px;
  font-weight:600;
  line-height:1.4;
  text-decoration:none!important;
  transition:color .3s ease;
}

.h2d-project-status-nav a::after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:-5px;
  height:1px;
  background:#af764b;
  transition:right .3s ease;
}

.h2d-project-status-nav a:hover,
.h2d-project-status-nav a.is-active{
  color:#af764b!important;
}

.h2d-project-status-nav a:hover::after,
.h2d-project-status-nav a.is-active::after{
  right:0;
}

.h2d-archive-head{
  padding-top:74px;
  padding-bottom:38px;
}

.h2d-archive-content .page-numbers{
  
}

.h2d-archive-content ul.page-numbers{
  display:flex;
  gap:12px;
  list-style:none;
  padding:0;
  margin:56px 0 0;
}

@media(max-width:600px){
  .h2d-project-card-overlay{padding:20px 20px 18px;}
  .h2d-project-card-extra{
    max-height:80px;
    margin-top:8px;
    opacity:1;
    transform:none;
  }
  .h2d-project-status-nav{gap:10px 20px;margin-top:22px;}
}

/* =========================================================
   SINGLE PROJECT v1.4 — CINEMATIC BANNER REVEAL
========================================================= */
.h2d-project-banner{
  isolation:isolate;
  background:#101114!important;
}
.h2d-project-banner-image{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  background:#2f2f31 center center/cover no-repeat;
  transform:scale(1.11);
  filter:brightness(.78) saturate(.88) contrast(1.04);
  will-change:transform,filter;
  transition:
    transform 2.1s cubic-bezier(.2,.72,.18,1),
    filter 1.45s ease;
}
.h2d-project-banner::before{
  z-index:1;
}
.h2d-project-banner-shade{
  z-index:2;
}
.h2d-project-intro-copy{
  z-index:5;
}
.h2d-project-detail-v2.is-intro-ready .h2d-project-banner-image{
  transform:scale(1.015);
  filter:brightness(.94) saturate(.96) contrast(1.02);
}

/* Màn che tối mở từ trái sang phải, tạo cảm giác điện ảnh. */
.h2d-project-banner-curtain{
  position:absolute;
  inset:-1px;
  z-index:7;
  background:#101114;
  transform:scaleX(1);
  transform-origin:right center;
  pointer-events:none;
  will-change:transform;
  transition:transform 1.18s cubic-bezier(.77,0,.18,1) .06s;
}
.h2d-project-detail-v2.is-intro-ready .h2d-project-banner-curtain{
  transform:scaleX(0);
}

/* Vệt đồng chạy theo mép mở banner. */
.h2d-project-banner-sweep{
  position:absolute;
  z-index:8;
  top:0;
  bottom:0;
  left:0;
  width:2px;
  opacity:0;
  background:linear-gradient(180deg,transparent 4%,#af764b 22%,#efe8de 50%,#af764b 78%,transparent 96%);
  box-shadow:0 0 24px rgba(175,118,75,.42);
  pointer-events:none;
}
.h2d-project-detail-v2.is-intro-ready .h2d-project-banner-sweep{
  animation:h2dBannerSweep 1.18s cubic-bezier(.77,0,.18,1) .06s both;
}
@keyframes h2dBannerSweep{
  0%{left:0;opacity:0}
  8%{opacity:1}
  88%{opacity:1}
  100%{left:100%;opacity:0}
}

/* Chi tiết góc nhỏ mang ngôn ngữ đồ họa H2D, không che ảnh. */
.h2d-project-banner-frame{
  position:absolute;
  z-index:4;
  top:clamp(24px,4vw,54px);
  left:clamp(24px,4vw,54px);
  width:76px;
  height:76px;
  opacity:0;
  transform:translate(-8px,-8px);
  pointer-events:none;
  transition:opacity .65s ease .92s,transform .75s cubic-bezier(.2,.7,.2,1) .92s;
}
.h2d-project-banner-frame span,
.h2d-project-banner-frame i{
  position:absolute;
  display:block;
  background:#af764b;
  content:"";
}
.h2d-project-banner-frame span{
  top:0;
  left:0;
  width:76px;
  height:1px;
}
.h2d-project-banner-frame i{
  top:0;
  left:0;
  width:1px;
  height:76px;
}
.h2d-project-detail-v2.is-intro-ready .h2d-project-banner-frame{
  opacity:.95;
  transform:none;
}

.h2d-project-intro-title{
  text-shadow:0 3px 24px rgba(16,17,20,.24);
}
.h2d-project-intro-facts{
  border-top-color:rgba(239,232,222,.46);
}

@media(max-width:649px){
  .h2d-project-banner-frame{
    width:48px;
    height:48px;
    top:20px;
    left:20px;
  }
  .h2d-project-banner-frame span{width:48px}
  .h2d-project-banner-frame i{height:48px}
}

@media(prefers-reduced-motion:reduce){
  .h2d-project-banner-image{
    transform:none!important;
    filter:brightness(.94) saturate(.96)!important;
  }
  .h2d-project-banner-curtain,
  .h2d-project-banner-sweep{
    display:none!important;
  }
  .h2d-project-banner-frame{
    opacity:.95!important;
    transform:none!important;
  }
}

/* =========================================================
   H2D PROJECT LIGHTBOX v1.4.1
   Click ảnh trong từng không gian để xem ảnh lớn
========================================================= */
.h2d-space-image-button{
  appearance:none!important;
  -webkit-appearance:none!important;
  position:relative;
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:hidden;
  cursor:zoom-in!important;
  text-align:left;
  line-height:0!important;
}
.h2d-space-image-button img{
  width:100%!important;
  height:auto!important;
  margin:0!important;
}
.h2d-space-image-button::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:rgba(16,17,20,0);
  transition:background .35s ease;
}
.h2d-space-image-button:hover::after{background:rgba(16,17,20,.10)}
.h2d-space-image-zoom{
  position:absolute;
  right:14px;
  bottom:14px;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border:1px solid rgba(239,232,222,.55);
  background:rgba(16,17,20,.72);
  color:#efe8de!important;
  
  font-size:17px!important;
  font-weight:400!important;
  line-height:1!important;
  opacity:0;
  transform:translateY(7px);
  transition:opacity .3s ease,transform .3s ease,background .3s ease;
  pointer-events:none;
}
.h2d-space-image-button:hover .h2d-space-image-zoom{
  opacity:1;
  transform:translateY(0);
  background:#af764b;
}

html.h2d-lightbox-open,
body.h2d-lightbox-open{overflow:hidden!important}

.h2d-project-lightbox{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  
  transition:opacity .24s ease,visibility .24s ease;
}
.h2d-project-lightbox.is-open{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
}
.h2d-project-lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(16,17,20,.96);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  cursor:zoom-out;
}
.h2d-project-lightbox-shell{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:74px minmax(0,1fr) 74px;
  align-items:center;
  width:100%;
  height:100%;
  padding:34px 28px 28px;
  box-sizing:border-box;
}
.h2d-project-lightbox-stage{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-width:0;
  height:100%;
}
.h2d-project-lightbox-image{
  display:block;
  max-width:min(86vw,1500px)!important;
  max-height:calc(100vh - 112px)!important;
  width:auto!important;
  height:auto!important;
  object-fit:contain;
  opacity:0;
  transform:scale(.985);
  transition:opacity .28s ease,transform .45s cubic-bezier(.2,.7,.2,1);
  box-shadow:0 24px 70px rgba(0,0,0,.38);
}
.h2d-project-lightbox-image.is-ready{
  opacity:1;
  transform:scale(1);
}
.h2d-project-lightbox-close,
.h2d-project-lightbox-nav{
  appearance:none!important;
  -webkit-appearance:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  cursor:pointer;
}
.h2d-project-lightbox-close{
  position:absolute;
  top:20px;
  right:22px;
  z-index:3;
  width:46px!important;
  height:46px!important;
  margin:0!important;
  padding:0!important;
  background:#101114!important;
  border:1px solid rgba(239,232,222,.28)!important;
  color:#efe8de!important;
  
  font-size:31px!important;
  font-weight:300!important;
  line-height:42px!important;
  text-align:center;
  transition:background .25s ease,border-color .25s ease,transform .25s ease;
}
.h2d-project-lightbox-close:hover{
  background:#af764b!important;
  border-color:#af764b!important;
  transform:rotate(5deg);
}
.h2d-project-lightbox-nav{
  position:relative;
  z-index:2;
  width:48px!important;
  height:48px!important;
  margin:0 auto!important;
  padding:0!important;
  background:transparent!important;
  border:1px solid rgba(239,232,222,.24)!important;
  color:#efe8de!important;
  
  font-size:22px!important;
  font-weight:400!important;
  line-height:46px!important;
  text-align:center;
  transition:background .25s ease,border-color .25s ease,color .25s ease;
}
.h2d-project-lightbox-nav:hover{
  background:#af764b!important;
  border-color:#af764b!important;
  color:#fff!important;
}
.h2d-project-lightbox-nav[hidden]{display:none!important}
.h2d-project-lightbox-meta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  width:100%;
  min-height:28px;
  padding-top:10px;
  color:rgba(239,232,222,.76);
  font-size:12px;
  line-height:1.45;
}
.h2d-project-lightbox-counter{
  flex:0 0 auto;
  color:#af764b;
  font-size:11px;
  font-weight:600;
  letter-spacing:.10em;
}
.h2d-project-lightbox-caption{
  max-width:720px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

@media(max-width:649px){
  .h2d-space-image-zoom{
    right:10px;
    bottom:10px;
    width:34px;
    height:34px;
    opacity:1;
    transform:none;
    font-size:15px!important;
  }
  .h2d-project-lightbox-shell{
    display:block;
    padding:68px 12px 54px;
  }
  .h2d-project-lightbox-stage{height:100%}
  .h2d-project-lightbox-image{
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100svh - 150px)!important;
  }
  .h2d-project-lightbox-close{
    top:12px;
    right:12px;
    width:42px!important;
    height:42px!important;
    line-height:38px!important;
  }
  .h2d-project-lightbox-nav{
    position:absolute;
    top:50%;
    z-index:4;
    width:42px!important;
    height:42px!important;
    line-height:40px!important;
    background:rgba(16,17,20,.72)!important;
  }
  .h2d-project-lightbox-prev{left:12px}
  .h2d-project-lightbox-next{right:12px}
  .h2d-project-lightbox-meta{
    position:absolute;
    left:0;
    right:0;
    bottom:10px;
    padding:0 14px;
    box-sizing:border-box;
  }
  .h2d-project-lightbox-caption{max-width:65vw}
}

@media(prefers-reduced-motion:reduce){
  .h2d-project-lightbox,
  .h2d-project-lightbox-image,
  .h2d-space-image-zoom{transition:none!important}
}

/* =========================================================
   H2D PROJECT DETAIL v1.5.0
   - Vietnamese font lock
   - Mobile overview fix
   - Mobile sticky navigator + bottom sheet
========================================================= */

/* Mobile controls are invisible on desktop/tablet. */
.h2d-project-mobile-nav,
.h2d-project-mobile-drawer{
  display:none;
}

/* Keep the plugin typography isolated from Flatsome global heading rules. */
.h2d-project-detail-v2,
.h2d-project-detail-v2 p,
.h2d-project-detail-v2 span,
.h2d-project-detail-v2 strong,
.h2d-project-detail-v2 small,
.h2d-project-detail-v2 a,
.h2d-project-detail-v2 button,
.h2d-project-detail-v2 i{
  
  font-synthesis:none;
}

.h2d-project-detail-v2 h1,
.h2d-project-detail-v2 h2,
.h2d-project-detail-v2 h3,
.h2d-project-detail-v2 h4,
.h2d-project-detail-v2 h5,
.h2d-project-detail-v2 h6,
.h2d-project-side-brand span{
  
  font-weight:400!important;
  font-style:normal!important;
  font-synthesis:none!important;
  font-kerning:normal!important;
  text-rendering:optimizeLegibility;
}

.h2d-space-header h2,
.h2d-project-intro-title{
  letter-spacing:0!important;
  word-spacing:normal!important;
  font-variant-ligatures:normal;
}

@media(max-width:649px){
  html,
  body.single-h2d_project{
    overflow-x:hidden!important;
  }

  body.h2d-project-drawer-open{
    overflow:hidden!important;
  }

  .h2d-project-detail-root{
    position:relative;
    width:100%;
    padding-bottom:78px;
    background:#efe8de;
  }

  /* Mobile is document-flow based. Do not inherit the desktop two-column stage. */
  .h2d-project-detail-v2{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    background:#efe8de!important;
  }

  .h2d-project-stage{
    position:relative!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    background:#efe8de!important;
  }

  /* Desktop sidebar is replaced by the mobile navigator. */
  .h2d-project-side{
    display:none!important;
  }

  /* -------------------------
     OVERVIEW / BANNER MOBILE
  ------------------------- */
  .h2d-project-overview,
  .h2d-project-overview.is-active{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    background:#101114!important;
  }

  .h2d-project-overview:not(.is-active){
    display:none!important;
  }

  .h2d-project-banner{
    position:relative!important;
    width:100%!important;
    height:clamp(570px,82svh,760px)!important;
    min-height:570px!important;
    overflow:hidden!important;
    background:#101114!important;
  }

  .h2d-project-banner-image{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    background-position:center center!important;
    background-size:cover!important;
    background-repeat:no-repeat!important;
    transform:scale(1.075);
    filter:brightness(.80) saturate(.9) contrast(1.03);
    transition:transform 1.35s cubic-bezier(.2,.72,.18,1),filter 1.05s ease!important;
  }

  .h2d-project-detail-v2.is-intro-ready .h2d-project-banner-image{
    transform:scale(1.01);
    filter:brightness(.94) saturate(.98) contrast(1.02);
  }

  .h2d-project-banner-curtain{
    transition:transform .86s cubic-bezier(.77,0,.18,1) .03s!important;
  }

  .h2d-project-detail-v2.is-intro-ready .h2d-project-banner-sweep{
    animation-duration:.86s!important;
    animation-delay:.03s!important;
  }

  .h2d-project-banner-shade{
    background:linear-gradient(
      180deg,
      rgba(16,17,20,.02) 16%,
      rgba(16,17,20,.12) 42%,
      rgba(16,17,20,.54) 70%,
      rgba(16,17,20,.94) 100%
    )!important;
  }

  .h2d-project-banner-frame{
    top:20px!important;
    left:20px!important;
    width:44px!important;
    height:44px!important;
  }

  .h2d-project-banner-frame span{width:44px!important}
  .h2d-project-banner-frame i{height:44px!important}

  .h2d-project-intro-copy{
    left:20px!important;
    right:20px!important;
    bottom:24px!important;
    max-width:none!important;
    box-sizing:border-box;
  }

  .h2d-project-intro-kicker{
    margin-bottom:9px!important;
    font-size:9px!important;
    letter-spacing:.14em!important;
  }

  .h2d-project-intro-title{
    max-width:100%!important;
    margin:0 0 14px!important;
    font-size:clamp(34px,10vw,49px)!important;
    line-height:1.03!important;
  }

  .h2d-project-intro-facts{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px 16px!important;
    padding-top:13px!important;
  }

  .h2d-project-intro-fact{
    display:block!important;
    min-width:0!important;
  }

  .h2d-project-intro-fact span,
  .h2d-project-intro-fact strong{
    display:block!important;
  }

  .h2d-project-intro-fact span{
    margin-bottom:2px;
    font-size:8px!important;
    letter-spacing:.10em!important;
  }

  .h2d-project-intro-fact strong{
    overflow-wrap:anywhere;
    font-size:12px!important;
    line-height:1.35!important;
  }

  /* Do not hide the overview description on phones. */
  .h2d-project-intro-desc{
    display:-webkit-box!important;
    max-width:100%!important;
    margin:13px 0 0!important;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    color:rgba(255,255,255,.82)!important;
    font-size:12px!important;
    line-height:1.55!important;
  }

  .h2d-intro-reveal{
    transform:translateY(12px);
    transition-duration:.48s!important;
  }

  /* -------------------------
     SPACE CONTENT MOBILE
  ------------------------- */
  .h2d-space-panel,
  .h2d-space-panel.is-active{
    width:100%!important;
    min-height:0!important;
    background:#efe8de!important;
  }

  .h2d-space-panel:not(.is-active){
    display:none!important;
  }

  .h2d-space-header{
    padding:38px 20px 28px!important;
  }

  .h2d-space-kicker{
    margin-bottom:8px!important;
    font-size:9px!important;
  }

  .h2d-space-header h2{
    max-width:100%!important;
    margin:0 0 14px!important;
    font-size:clamp(30px,9.4vw,46px)!important;
    line-height:1.08!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }

  .h2d-space-header>p:last-child{
    font-size:14px!important;
    line-height:1.7!important;
  }

  .h2d-space-masonry{
    column-count:1!important;
    column-gap:0!important;
    padding:8px!important;
  }

  .h2d-space-media-item{
    margin:0 0 8px!important;
  }

  /* -------------------------
     MOBILE QUICK NAV
  ------------------------- */
  .h2d-project-mobile-nav{
    position:fixed;
    z-index:99940;
    left:12px;
    right:12px;
    bottom:max(12px,env(safe-area-inset-bottom));
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    min-height:60px;
    padding:9px 9px 9px 15px;
    box-sizing:border-box;
    background:rgba(16,17,20,.96);
    border:1px solid rgba(239,232,222,.15);
    box-shadow:0 16px 42px rgba(16,17,20,.28);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }

  .h2d-project-mobile-current{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
  }

  .h2d-project-mobile-current small{
    color:#808080!important;
    font-size:8px!important;
    font-weight:600!important;
    line-height:1.2!important;
    letter-spacing:.14em;
    text-transform:uppercase;
  }

  .h2d-project-mobile-current strong{
    display:block;
    max-width:46vw;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#efe8de!important;
    
    font-size:12px!important;
    font-weight:600!important;
    line-height:1.3!important;
  }

  .h2d-project-mobile-toggle{
    appearance:none!important;
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    gap:9px;
    flex:0 0 auto;
    min-height:42px!important;
    margin:0!important;
    padding:0 14px!important;
    border:0!important;
    border-radius:0!important;
    background:#af764b!important;
    color:#fff!important;
    box-shadow:none!important;
    
    font-size:10px!important;
    font-weight:600!important;
    line-height:1!important;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  .h2d-project-mobile-toggle i{
    color:#fff!important;
    font-size:15px!important;
    font-style:normal!important;
    line-height:1!important;
  }

  /* -------------------------
     BOTTOM SHEET
  ------------------------- */
  .h2d-project-mobile-drawer{
    position:fixed;
    inset:0;
    z-index:99960;
    display:block!important;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transition:opacity .28s ease,visibility .28s ease;
  }

  .h2d-project-detail-root.is-mobile-drawer-open .h2d-project-mobile-drawer{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
  }

  .h2d-project-mobile-backdrop{
    appearance:none!important;
    position:absolute;
    inset:0;
    width:100%!important;
    height:100%!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:rgba(16,17,20,.68)!important;
    box-shadow:none!important;
    backdrop-filter:blur(3px);
    -webkit-backdrop-filter:blur(3px);
  }

  .h2d-project-mobile-sheet{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    display:flex;
    flex-direction:column;
    max-height:min(78svh,720px);
    padding-bottom:env(safe-area-inset-bottom);
    background:#101114;
    border-top:1px solid rgba(239,232,222,.18);
    box-shadow:0 -26px 70px rgba(0,0,0,.35);
    transform:translateY(104%);
    transition:transform .38s cubic-bezier(.2,.72,.18,1);
  }

  .h2d-project-detail-root.is-mobile-drawer-open .h2d-project-mobile-sheet{
    transform:translateY(0);
  }

  .h2d-project-mobile-sheet::before{
    content:"";
    position:absolute;
    top:7px;
    left:50%;
    width:38px;
    height:2px;
    background:rgba(239,232,222,.28);
    transform:translateX(-50%);
  }

  .h2d-project-mobile-sheet-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:25px 18px 16px;
    border-bottom:1px solid rgba(239,232,222,.12);
  }

  .h2d-project-mobile-sheet-head>div{
    display:flex;
    flex-direction:column;
    gap:3px;
  }

  .h2d-project-mobile-sheet-head small{
    color:#af764b!important;
    font-size:8px!important;
    font-weight:600!important;
    letter-spacing:.17em;
    text-transform:uppercase;
  }

  .h2d-project-mobile-sheet-head strong{
    color:#efe8de!important;
    
    font-size:20px!important;
    font-weight:400!important;
    line-height:1.2!important;
  }

  .h2d-project-mobile-close{
    appearance:none!important;
    flex:0 0 40px;
    width:40px!important;
    height:40px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid rgba(239,232,222,.18)!important;
    border-radius:0!important;
    background:transparent!important;
    color:#efe8de!important;
    box-shadow:none!important;
    font-size:26px!important;
    font-weight:300!important;
    line-height:36px!important;
    text-align:center;
  }

  .h2d-project-mobile-space-nav{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:8px 0 12px;
  }

  .h2d-project-mobile-space-nav .h2d-project-nav-group{
    margin-top:14px!important;
  }

  .h2d-project-mobile-space-nav .h2d-project-nav-heading{
    padding:6px 18px 8px!important;
    font-size:8px!important;
  }

  .h2d-project-mobile-nav-button{
    min-height:48px!important;
    padding:12px 18px!important;
    font-size:12px!important;
  }

  .h2d-project-mobile-nav-button:hover,
  .h2d-project-mobile-nav-button.is-active{
    padding-left:22px!important;
  }

  .h2d-project-mobile-all{
    display:flex!important;
    align-items:center;
    gap:10px;
    flex:0 0 auto;
    padding:15px 18px;
    border-top:1px solid rgba(239,232,222,.12);
    color:#efe8de!important;
    background:#101114;
    text-decoration:none!important;
    
    font-size:10px!important;
    font-weight:600!important;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  .h2d-project-mobile-all i{
    color:#af764b!important;
    font-size:15px!important;
    font-style:normal!important;
  }
}

@media(max-width:389px){
  .h2d-project-intro-title{font-size:32px!important}
  .h2d-project-intro-facts{gap:8px 12px!important}
  .h2d-project-mobile-toggle{padding:0 11px!important}
  .h2d-project-mobile-current strong{max-width:43vw}
}

@media(prefers-reduced-motion:reduce){
  .h2d-project-mobile-drawer,
  .h2d-project-mobile-sheet{
    transition:none!important;
  }
}

/* =========================================================
   v1.6.0 — NỘI DUNG KHÔNG GIAN DÙNG WORDPRESS BLOCK EDITOR
========================================================= */
.h2d-space-content{
  width:100%;
  padding:clamp(24px,4vw,58px) clamp(18px,4.8vw,70px) clamp(48px,6vw,86px);
  background:#efe8de;
  color:#2f2f31;
  box-sizing:border-box;
  
}
.h2d-space-content > *{
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}
.h2d-space-content > .alignwide,
.h2d-space-content > .alignfull,
.h2d-space-content .alignwide,
.h2d-space-content .alignfull{
  width:100%;
  max-width:none;
}
.h2d-space-content p,
.h2d-space-content li,
.h2d-space-content figcaption,
.h2d-space-content blockquote{
  
  color:#2f2f31!important;
}
.h2d-space-content p{
  margin-top:0;
  margin-bottom:1.35em;
  font-size:clamp(15px,1.15vw,18px)!important;
  line-height:1.75!important;
}
.h2d-space-content h1,
.h2d-space-content h2,
.h2d-space-content h3,
.h2d-space-content h4,
.h2d-space-content h5,
.h2d-space-content h6{
  
  font-weight:400!important;
  color:#101114!important;
  text-transform:none!important;
}
.h2d-space-content h2{font-size:clamp(30px,3.2vw,52px)!important;line-height:1.08!important}
.h2d-space-content h3{font-size:clamp(24px,2.4vw,38px)!important;line-height:1.15!important}
.h2d-space-content figure{
  margin-top:0;
  margin-bottom:clamp(18px,2.5vw,34px);
}
.h2d-space-content img{
  display:block;
  max-width:100%;
  height:auto;
  cursor:zoom-in;
}
.h2d-space-content .wp-block-image img,
.h2d-space-content .wp-block-gallery img{
  object-fit:cover;
}
.h2d-space-content .wp-block-gallery{
  gap:10px!important;
}
.h2d-space-content .wp-block-columns{
  gap:clamp(12px,2vw,28px)!important;
  align-items:stretch;
}
.h2d-space-content .wp-block-column > :first-child{margin-top:0}
.h2d-space-content .wp-block-column > :last-child{margin-bottom:0}
.h2d-space-content video,
.h2d-space-content iframe{
  display:block;
  width:100%;
  max-width:100%;
}
.h2d-space-content .wp-block-separator{
  border-color:rgba(16,17,20,.18)!important;
}
.h2d-space-legacy-description{
  padding:0 clamp(22px,5vw,72px) 26px;
  background:#efe8de;
}
.h2d-space-legacy-description p{
  max-width:820px;
  margin:0;
  color:#2f2f31;
  
  font-size:15px;
  line-height:1.8;
}

/* =========================================================
   DỰ ÁN KHÁC Ở CUỐI MỖI KHÔNG GIAN
========================================================= */
.h2d-related-projects{
  padding:clamp(48px,6vw,86px) clamp(18px,4.8vw,70px) clamp(58px,7vw,96px);
  background:#101114;
  color:#efe8de;
  border-top:1px solid rgba(239,232,222,.12);
}
.h2d-related-projects-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  max-width:1180px;
  margin:0 auto clamp(28px,4vw,48px);
  padding-bottom:18px;
  border-bottom:1px solid rgba(239,232,222,.16);
}
.h2d-related-projects-head span{
  
  color:#af764b!important;
  font-size:10px!important;
  font-weight:600!important;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.h2d-related-projects-head h3{
  margin:0!important;
  
  font-size:clamp(30px,3.7vw,54px)!important;
  font-weight:400!important;
  line-height:1!important;
  color:#efe8de!important;
  text-transform:none!important;
}
.h2d-related-projects-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  max-width:1180px;
  margin:0 auto;
}
.h2d-related-projects .h2d-project-card-overlay h3{
  color:#fff!important;
}
.h2d-related-projects .h2d-project-card-extra,
.h2d-related-projects .h2d-project-card-extra span{
  color:#fff!important;
}
.h2d-related-projects-all{
  display:flex!important;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  max-width:1180px;
  margin:24px auto 0;
  color:#efe8de!important;
  
  font-size:11px!important;
  font-weight:600!important;
  letter-spacing:.08em;
  text-decoration:none!important;
  text-transform:uppercase;
}
.h2d-related-projects-all i{
  color:#af764b!important;
  font-size:16px!important;
  font-style:normal!important;
}

@media(max-width:849px){
  .h2d-space-content{
    padding:26px 18px 48px;
  }
  .h2d-space-content .wp-block-columns{
    gap:12px!important;
  }
  .h2d-related-projects{
    padding:44px 16px 12px;
  }
  .h2d-related-projects-head{
    display:block;
    margin-bottom:24px;
  }
  .h2d-related-projects-head span{
    display:block;
    margin-bottom:8px;
  }
  .h2d-related-projects-grid{
    grid-template-columns:1fr;
    gap:16px;
  }
}


/* =========================================================
   H2D PROJECT DETAIL v1.7.0
   - Overview image fills the whole project viewport
   - Desktop space navigator overlays the image with a
     transparent -> black gradient
   - Overview supports automatic background slider
========================================================= */

/* Overview slideshow */
.h2d-project-banner-slider{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  background:#101114;
}

.h2d-project-banner-slide{
  position:absolute;
  inset:-1.5%;
  width:103%;
  height:103%;
  background:#2f2f31 center center/cover no-repeat;
  opacity:0;
  transform:scale(1.055);
  filter:brightness(.80) saturate(.92) contrast(1.025);
  will-change:opacity,transform;
  transition:
    opacity 1.15s ease,
    transform 6.8s cubic-bezier(.2,.7,.2,1),
    filter 1.15s ease;
}

.h2d-project-banner-slide.is-active{
  opacity:1;
  transform:scale(1.012);
  filter:brightness(.94) saturate(.98) contrast(1.02);
}

.h2d-project-banner-slide.is-empty{
  background:#101114;
}

/* Old single-image node is no longer used from v1.7.0. */
.h2d-project-banner-image{
  display:none!important;
}

/* Make sure all overlays stay above the slideshow. */
.h2d-project-banner::before{z-index:1!important}
.h2d-project-banner-shade{z-index:2!important}
.h2d-project-banner-frame{z-index:4!important}
.h2d-project-intro-copy{z-index:5!important}
.h2d-project-banner-curtain{z-index:7!important}
.h2d-project-banner-sweep{z-index:8!important}


/* Desktop / tablet: image fills the full project stage.
   The navigator is a transparent overlay instead of a column. */
@media(min-width:650px){

  .h2d-project-detail-v2{
    position:relative!important;
    display:block!important;
    grid-template-columns:none!important;
    width:100%!important;
    max-width:none!important;
    overflow:hidden!important;
    background:#101114!important;
  }

  .h2d-project-stage{
    position:relative!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
  }

  .h2d-project-overview,
  .h2d-project-overview.is-active{
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
  }

  .h2d-project-banner{
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
  }

  /*
   * Navigator overlays the image:
   * transparent on the left and progressively darker toward
   * the right edge.
   */
  .h2d-project-side{
    position:absolute!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:auto!important;
    z-index:30!important;

    width:var(--side-width)!important;
    height:100%!important;

    border-left:0!important;

    background:
      linear-gradient(
        90deg,
        rgba(16,17,20,0) 0%,
        rgba(16,17,20,.24) 16%,
        rgba(16,17,20,.62) 45%,
        rgba(16,17,20,.88) 76%,
        rgba(16,17,20,.97) 100%
      )!important;

    box-shadow:none!important;
    overflow-y:auto!important;

    scrollbar-color:rgba(239,232,222,.24) transparent!important;
  }

  .h2d-project-side-brand{
    background:transparent!important;
    border-bottom-color:rgba(239,232,222,.13)!important;
  }

  .h2d-project-back{
    background:transparent!important;
    border-bottom-color:rgba(239,232,222,.13)!important;
  }

  .h2d-project-back:hover{
    background:
      linear-gradient(
        90deg,
        rgba(47,47,49,.04),
        rgba(47,47,49,.62)
      )!important;
  }

  .h2d-project-space-nav{
    background:transparent!important;
  }

  .h2d-project-nav-heading{
    color:rgba(239,232,222,.54)!important;
  }

  .h2d-project-nav-button{
    background:transparent!important;
    border-top-color:rgba(239,232,222,.10)!important;
    color:rgba(255,255,255,.88)!important;
    text-shadow:0 1px 12px rgba(0,0,0,.34);
  }

  .h2d-project-nav-button:last-child{
    border-bottom-color:rgba(239,232,222,.10)!important;
  }

  .h2d-project-nav-button:hover,
  .h2d-project-nav-button.is-active{
    background:
      linear-gradient(
        90deg,
        rgba(47,47,49,.05) 0%,
        rgba(47,47,49,.28) 30%,
        rgba(47,47,49,.72) 100%
      )!important;
    color:#fff!important;
  }

  /*
   * Space pages remain readable: once a space is selected,
   * the right panel becomes more solid and the space content
   * reserves the same width so it is not hidden under the menu.
   */
  .h2d-project-detail-v2.is-space-mode .h2d-project-side{
    background:
      linear-gradient(
        90deg,
        rgba(16,17,20,.72) 0%,
        rgba(16,17,20,.91) 38%,
        rgba(16,17,20,.99) 100%
      )!important;
  }

  .h2d-project-detail-v2.is-space-mode .h2d-space-panel{
    box-sizing:border-box!important;
    padding-right:var(--side-width)!important;
  }
}


/* Mobile keeps the current bottom-sheet navigation.
   The overview slider still fills the entire banner. */
@media(max-width:649px){

  .h2d-project-banner-slider{
    position:absolute!important;
    inset:0!important;
  }

  .h2d-project-banner-slide{
    inset:-1%!important;
    width:102%!important;
    height:102%!important;
  }

  .h2d-project-banner-slide.is-active{
    transform:scale(1.008);
  }
}

@media(prefers-reduced-motion:reduce){
  .h2d-project-banner-slide{
    transition:none!important;
    transform:none!important;
  }
}

@media(min-width:650px){
  .h2d-project-intro-copy{
    right:calc(var(--side-width) + clamp(24px,3vw,56px))!important;
  }
}


/* =========================================================
   v1.7.2 — BLOCK EDITOR: TÔN TRỌNG KÍCH THƯỚC / BỐ CỤC NGƯỜI SOẠN
========================================================= */
.h2d-space-content .wp-block-image{
  max-width:100%;
}
.h2d-space-content .wp-block-image img{
  max-width:100%;
  height:auto;
}
.h2d-space-content .wp-block-image.aligncenter{
  margin-left:auto!important;
  margin-right:auto!important;
}
.h2d-space-content .wp-block-image.aligncenter img{
  margin-left:auto;
  margin-right:auto;
}
.h2d-space-content .wp-block-image.alignleft{
  float:left;
  margin-right:clamp(18px,2.5vw,34px);
  margin-bottom:clamp(18px,2.5vw,34px);
}
.h2d-space-content .wp-block-image.alignright{
  float:right;
  margin-left:clamp(18px,2.5vw,34px);
  margin-bottom:clamp(18px,2.5vw,34px);
}
.h2d-space-content .wp-block-image.alignwide,
.h2d-space-content .wp-block-image.alignfull{
  float:none;
}
.h2d-space-content .wp-block-gallery img{
  width:100%;
  height:100%;
}
.h2d-space-content .wp-block-group.is-layout-flex{
  display:flex;
  flex-wrap:wrap;
}
.h2d-space-content .wp-block-group.is-layout-grid{
  display:grid;
}
.h2d-space-content .wp-block-media-text{
  gap:clamp(18px,3vw,42px);
}
.h2d-space-content::after{
  content:"";
  display:block;
  clear:both;
}
@media(max-width:849px){
  .h2d-space-content .wp-block-image.alignleft,
  .h2d-space-content .wp-block-image.alignright{
    float:none;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

/* =========================================================
   v1.8.0 — H2D FLEXIBLE IMAGE + PRESET LAYOUTS
========================================================= */
.h2d-space-content .h2d-flex-image{
  display:block;
  max-width:100%;
  margin-top:0;
  margin-bottom:clamp(18px,2.5vw,34px);
  box-sizing:border-box;
}
.h2d-space-content .h2d-flex-image-frame{
  width:100%;
  overflow:hidden;
  background:#ded8cf;
}
.h2d-space-content .h2d-flex-image-frame img{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  margin:0;
}
.h2d-space-content .h2d-flex-image-frame.is-auto-ratio img{
  height:auto;
}
.h2d-space-content .h2d-flex-image[data-h2d-lightbox="0"] img{
  cursor:default;
}
.h2d-space-content .h2d-layout-large-small > .wp-block-column:last-child{
  display:flex;
  flex-direction:column;
  gap:clamp(12px,2vw,28px);
}
.h2d-space-content .h2d-layout-large-small > .wp-block-column:last-child > .h2d-flex-image{
  margin-bottom:0;
}
.h2d-space-content .wp-block-image.is-style-h2d-ratio-16-9 img{width:100%;aspect-ratio:16/9;object-fit:cover}
.h2d-space-content .wp-block-image.is-style-h2d-ratio-4-3 img{width:100%;aspect-ratio:4/3;object-fit:cover}
.h2d-space-content .wp-block-image.is-style-h2d-ratio-square img{width:100%;aspect-ratio:1/1;object-fit:cover}
.h2d-space-content .wp-block-image.is-style-h2d-contain img{width:100%;height:auto;object-fit:contain}

@media(max-width:767px){
  .h2d-space-content .h2d-flex-image{
    width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  .h2d-space-content .h2d-layout-three-images{
    display:block!important;
  }
  .h2d-space-content .h2d-layout-three-images > .wp-block-column + .wp-block-column{
    margin-top:12px;
  }
}

/* =========================================================
   v1.9.0 — CLASSIC EDITOR LAYOUTS
========================================================= */
.h2d-space-content .h2d-space-layout{
  width:100%;
  max-width:1180px;
  margin:0 auto clamp(20px,3vw,38px);
  box-sizing:border-box;
}
.h2d-space-content .h2d-space-layout-two,
.h2d-space-content .h2d-space-layout-three,
.h2d-space-content .h2d-space-layout-image-text,
.h2d-space-content .h2d-space-layout-text-image,
.h2d-space-content .h2d-space-layout-large-small{
  display:grid;
  gap:clamp(10px,1.6vw,22px);
  align-items:stretch;
}
.h2d-space-content .h2d-space-layout-two,
.h2d-space-content .h2d-space-layout-image-text,
.h2d-space-content .h2d-space-layout-text-image{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.h2d-space-content .h2d-space-layout-three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.h2d-space-content .h2d-space-layout-large-small{
  grid-template-columns:minmax(0,2fr) minmax(0,1fr);
}
.h2d-space-content .h2d-space-cell{
  min-width:0;
}
.h2d-space-content .h2d-space-cell-stack{
  display:grid;
  grid-template-rows:1fr 1fr;
  gap:clamp(10px,1.6vw,22px);
}
.h2d-space-content .h2d-space-media,
.h2d-space-content .h2d-space-single-image{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin:0 auto!important;
  box-sizing:border-box;
}
.h2d-space-content .h2d-space-media-link,
.h2d-space-content .h2d-space-single-image > a{
  display:block;
  width:100%;
  height:auto;
}
.h2d-space-content .h2d-space-media img,
.h2d-space-content .h2d-space-single-image img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  min-height:0;
  aspect-ratio:auto;
  object-fit:cover;
  cursor:zoom-in;
}
.h2d-space-content .h2d-space-text-cell{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(18px,3vw,44px);
}
.h2d-space-content .h2d-space-text-cell > :first-child{margin-top:0}
.h2d-space-content .h2d-space-text-cell > :last-child{margin-bottom:0}
@media(max-width:767px){
  .h2d-space-content .h2d-space-layout-two,
  .h2d-space-content .h2d-space-layout-three,
  .h2d-space-content .h2d-space-layout-image-text,
  .h2d-space-content .h2d-space-layout-text-image,
  .h2d-space-content .h2d-space-layout-large-small{
    grid-template-columns:1fr;
  }
  .h2d-space-content .h2d-space-cell-stack{
    grid-template-rows:auto;
  }
}

/* Nút xóa bố cục chỉ dành cho admin editor. */
.h2d-layout-remove{display:none!important}

/* =========================================================
   H2D PROJECTS v1.9.3 — ĐỒNG BỘ CỠ TIÊU ĐỀ LỚN
   Chuẩn theo hệ tiêu đề trang Về H2D.
   Chỉ chuẩn hóa major headings; card title / sidebar / label giữ nguyên.
========================================================= */
.h2d-project-archive-page,
.h2d-project-detail-v2{
  --h2d-major-title-size:30px;
}

.h2d-archive-title,
.h2d-project-title,
.h2d-project-intro-title,
.h2d-space-header h2,
.h2d-project-story-block h2,
.h2d-space-content h1,
.h2d-space-content h2,
.h2d-related-projects-head h3{
  font-size:var(--h2d-major-title-size)!important;
  line-height:1.18!important;
}

@media(max-width:649px){
  .h2d-project-archive-page,
  .h2d-project-detail-v2{
    --h2d-major-title-size:27px;
  }
}


/* =========================================================
   H2D PROJECTS v1.10.0 — LAYOUT BUILDER OUTPUT
========================================================= */
.h2d-space-content .h2d-space-builder-intro{
  width:100%;
  max-width:1180px;
  margin:0 auto clamp(34px,5vw,70px);
}
.h2d-space-content .h2d-space-builder-intro > :first-child{margin-top:0}
.h2d-space-content .h2d-space-builder-intro > :last-child{margin-bottom:0}

/* =========================================================
   H2D PROJECTS v2.0.0 — EDITORIAL PROJECT DETAIL
   Continuous magazine-style story inspired by architecture editorials.
========================================================= */
.h2d-project-detail-v3{
  --h2d-editorial-bg:#efe8de;
  --h2d-editorial-ink:#101114;
  --h2d-editorial-muted:#66605a;
  --h2d-editorial-line:rgba(16,17,20,.16);
  --h2d-editorial-accent:#af764b;
  position:relative;
  background:var(--h2d-editorial-bg);
  color:var(--h2d-editorial-ink);
}
.h2d-project-detail-v3 .h2d-editorial-hero{
  display:block!important;
  position:relative;
  width:100%;
  min-height:min(78vh,860px);
  background:#101114;
}
.h2d-project-detail-v3 .h2d-project-banner{
  position:relative;
  width:100%;
  height:min(78vh,860px);
  min-height:560px;
  overflow:hidden;
}
.h2d-project-detail-v3 .h2d-project-banner-slider,
.h2d-project-detail-v3 .h2d-project-banner-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.h2d-project-detail-v3 .h2d-project-banner-slide{
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity 1.1s ease;
}
.h2d-project-detail-v3 .h2d-project-banner-slide.is-active{opacity:1}
.h2d-project-detail-v3 .h2d-project-banner-shade{
  position:absolute;
  inset:0;
  z-index:2;
  background:linear-gradient(180deg,rgba(0,0,0,.14) 0%,rgba(0,0,0,.12) 48%,rgba(0,0,0,.58) 100%);
}
.h2d-project-detail-v3 .h2d-project-intro-copy{
  position:absolute;
  z-index:3;
  left:clamp(24px,5vw,90px);
  right:clamp(24px,5vw,90px);
  bottom:clamp(34px,6vw,82px);
  max-width:920px;
  color:#fff;
}
.h2d-project-detail-v3 .h2d-project-intro-kicker{
  display:flex;
  gap:10px;
  margin-bottom:14px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:rgba(255,255,255,.72);
}
.h2d-project-detail-v3 .h2d-project-intro-title{
  margin:0!important;
  max-width:1000px;
  font-size:30px!important;
  font-weight:400!important;
  line-height:1.12!important;
  letter-spacing:-.035em;
  color:#fff!important;
}
.h2d-editorial-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  align-items:start;
  min-height:100vh;
}
.h2d-editorial-main{
  min-width:0;
  padding:0 clamp(28px,5vw,92px) 100px;
}
.h2d-editorial-project-lead{
  padding:clamp(58px,8vw,110px) 0 clamp(54px,7vw,92px);
  border-bottom:1px solid var(--h2d-editorial-line);
}
.h2d-editorial-lead-grid{
  display:grid;
  grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);
  gap:clamp(34px,6vw,100px);
  align-items:start;
}
.h2d-editorial-lead-title>span,
.h2d-editorial-space-head>p{
  display:block;
  margin:0 0 14px!important;
  color:var(--h2d-editorial-accent)!important;
  font-size:10px!important;
  font-weight:600!important;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.h2d-editorial-lead-title h2,
.h2d-editorial-space-head h2,
.h2d-editorial-flow .h2d-editorial-heading{
  margin:0!important;
  color:var(--h2d-editorial-ink)!important;
  font-size:30px!important;
  font-weight:400!important;
  line-height:1.12!important;
  letter-spacing:-.02em;
}
.h2d-editorial-lead-copy{
  max-width:760px;
  font-size:17px;
  line-height:1.75;
}
.h2d-editorial-lead-copy p{margin:0 0 18px!important}
.h2d-editorial-deck{font-size:clamp(20px,2vw,28px);line-height:1.45}
.h2d-editorial-facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin-top:clamp(42px,5vw,70px);
  border-top:1px solid var(--h2d-editorial-line);
  border-left:1px solid var(--h2d-editorial-line);
}
.h2d-editorial-facts>div{
  min-height:94px;
  padding:16px 18px;
  border-right:1px solid var(--h2d-editorial-line);
  border-bottom:1px solid var(--h2d-editorial-line);
}
.h2d-editorial-facts span{display:block;margin-bottom:7px;font-size:9px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--h2d-editorial-muted)}
.h2d-editorial-facts strong{font-size:14px;font-weight:500;color:var(--h2d-editorial-ink)}
.h2d-editorial-space{
  scroll-margin-top:30px;
  padding:clamp(72px,9vw,128px) 0;
  border-bottom:1px solid var(--h2d-editorial-line);
}
.h2d-editorial-space-head{
  max-width:1180px;
  margin:0 auto clamp(42px,6vw,78px);
}
.h2d-editorial-space-content,
.h2d-editorial-flow{
  width:100%;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
.h2d-editorial-flow>.h2d-editorial-block{box-sizing:border-box}
.h2d-editorial-copy{
  width:min(100%,1180px);
  margin:0 auto clamp(38px,5vw,70px)!important;
  font-size:17px;
  line-height:1.82;
  color:#292826;
}
.h2d-editorial-copy>p:first-child{margin-top:0!important}
.h2d-editorial-copy>p:last-child{margin-bottom:0!important}
.h2d-editorial-flow .h2d-editorial-heading{
  width:min(100%,900px);
  margin:clamp(54px,7vw,96px) auto clamp(26px,3vw,42px)!important;
}
.h2d-editorial-flow h3.h2d-editorial-heading{font-size:24px!important;line-height:1.25!important}
.h2d-editorial-quote{
  width:min(100%,980px);
  margin:clamp(60px,8vw,120px) auto!important;
  padding:0!important;
  border:0!important;
  text-align:center;
  color:var(--h2d-editorial-ink)!important;
}
.h2d-editorial-quote p{
  margin:0!important;
  font-size:clamp(28px,3.4vw,52px)!important;
  font-weight:400;
  line-height:1.18;
  letter-spacing:-.025em;
}
.h2d-editorial-quote cite{display:block;margin-top:22px;font-size:10px;font-style:normal;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--h2d-editorial-accent)}
.h2d-editorial-image-wrap{margin:clamp(34px,5vw,72px) auto!important}
.h2d-editorial-image-wrap.is-full{width:100%}.h2d-editorial-image-wrap.is-wide{width:min(100%,1180px)}.h2d-editorial-image-wrap.is-medium{width:min(82%,900px)}.h2d-editorial-image-wrap.is-half{width:min(58%,660px)}
.h2d-editorial-image-wrap.align-left{margin-left:0!important;margin-right:auto!important}.h2d-editorial-image-wrap.align-right{margin-left:auto!important;margin-right:0!important}.h2d-editorial-image-wrap.align-center{margin-left:auto!important;margin-right:auto!important}
.h2d-editorial-media{position:relative;width:100%;margin:0!important;overflow:hidden;background:#d7d0c6}
.h2d-editorial-media>a{display:block;width:100%;height:100%}.h2d-editorial-media img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;cursor:zoom-in}
.h2d-editorial-media img{image-rendering:auto!important;filter:none!important;transform:translateZ(0)}
.h2d-editorial-media[style=""] img,.h2d-editorial-media:not([style]) img{height:auto}
.h2d-editorial-media figcaption{margin-top:8px;font-size:11px;line-height:1.45;color:#6d675f}
.h2d-editorial-image-grid{
  display:grid;
  gap:clamp(10px,1.8vw,26px);
  width:min(100%,1180px);
  margin:clamp(36px,5vw,76px) auto!important;
  align-items:stretch;
}
.h2d-editorial-image-grid.is-images2{grid-template-columns:repeat(2,minmax(0,1fr))}
.h2d-editorial-image-grid.is-images3{grid-template-columns:repeat(3,minmax(0,1fr))}
.h2d-editorial-image-grid.layout-lead-left.is-images2{grid-template-columns:1.35fr .65fr}.h2d-editorial-image-grid.layout-lead-right.is-images2{grid-template-columns:.65fr 1.35fr}
.h2d-editorial-image-grid.layout-lead-left.is-images3{grid-template-columns:1.5fr .75fr .75fr}.h2d-editorial-image-grid.layout-lead-right.is-images3{grid-template-columns:.75fr .75fr 1.5fr}
.h2d-editorial-gallery{
  display:grid;
  gap:clamp(10px,1.4vw,20px);
  width:min(100%,1180px);
  margin:clamp(40px,6vw,82px) auto!important;
}
.h2d-editorial-gallery.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.h2d-editorial-gallery.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.h2d-editorial-split{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);
  gap:clamp(28px,5vw,76px);
  width:min(100%,1180px);
  margin:clamp(54px,7vw,100px) auto!important;
  align-items:center;
}
.h2d-editorial-split.image-right .h2d-editorial-split-media{order:2}.h2d-editorial-split.image-right .h2d-editorial-split-copy{order:1}
.h2d-editorial-split-copy{font-size:17px;line-height:1.8}.h2d-editorial-split-copy>:first-child{margin-top:0!important}.h2d-editorial-split-copy>:last-child{margin-bottom:0!important}
.h2d-editorial-spacer.is-small{height:36px}.h2d-editorial-spacer.is-medium{height:76px}.h2d-editorial-spacer.is-large{height:130px}
.h2d-editorial-legacy{width:min(100%,1180px);margin:0 auto}
.h2d-editorial-side{
  position:relative;
  align-self:stretch;
  min-width:0;
  background:linear-gradient(110deg,#393939 0%,#161719 70%,#101114 100%);
  color:#fff;
  border-left:1px solid rgba(255,255,255,.08);
}
.h2d-editorial-side-sticky{position:sticky;top:0;min-height:100vh;padding-bottom:38px}
.h2d-editorial-side .h2d-project-side-brand{padding:24px 24px 18px;border-bottom:1px solid rgba(255,255,255,.10)}
.h2d-editorial-side .h2d-project-side-brand span{font-size:25px;color:#fff}.h2d-editorial-side .h2d-project-side-brand small{margin-left:6px;color:var(--h2d-editorial-accent);font-size:8px;letter-spacing:.22em}
.h2d-editorial-side .h2d-project-back{display:flex;align-items:center;gap:12px;padding:18px 24px;color:#fff!important;border-bottom:1px solid rgba(255,255,255,.10);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em}
.h2d-editorial-side-nav{display:block}.h2d-editorial-side-nav>a{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:58px;padding:15px 24px;color:rgba(255,255,255,.76)!important;border-bottom:1px solid rgba(255,255,255,.09);font-size:11px;font-weight:600;text-transform:uppercase;text-decoration:none!important}.h2d-editorial-side-nav>a i{color:var(--h2d-editorial-accent);font-style:normal}.h2d-editorial-side-nav>a:hover,.h2d-editorial-side-nav>a.is-active{color:#fff!important;background:rgba(255,255,255,.05)}
.h2d-editorial-side-nav>a.is-active{box-shadow:inset 2px 0 0 var(--h2d-editorial-accent)}
.h2d-editorial-side .h2d-project-nav-heading{padding:22px 24px 8px;color:rgba(255,255,255,.42);font-size:8px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.h2d-editorial-mobile-nav{display:none}

@media(max-width:1100px){
  .h2d-editorial-layout{grid-template-columns:minmax(0,1fr) 270px}
  .h2d-editorial-main{padding-left:34px;padding-right:34px}
  .h2d-editorial-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:849px){
  .h2d-project-detail-v3 .h2d-editorial-hero,.h2d-project-detail-v3 .h2d-project-banner{min-height:68vh;height:68vh}
  .h2d-project-detail-v3 .h2d-project-intro-title{font-size:27px!important}
  .h2d-editorial-layout{display:block}
  .h2d-editorial-side{display:none}
  .h2d-editorial-mobile-nav{display:flex;position:sticky;top:0;z-index:35;gap:4px;padding:8px 10px;overflow-x:auto;background:#101114;border-bottom:1px solid rgba(255,255,255,.1);scrollbar-width:none}.h2d-editorial-mobile-nav::-webkit-scrollbar{display:none}.h2d-editorial-mobile-nav a{flex:0 0 auto;padding:9px 12px;color:rgba(255,255,255,.68)!important;font-size:10px;font-weight:600;text-transform:uppercase;text-decoration:none!important;border:1px solid rgba(255,255,255,.13)}.h2d-editorial-mobile-nav a.is-active{color:#fff!important;border-color:#af764b}
  .h2d-editorial-main{padding:0 20px 72px}
  .h2d-editorial-lead-grid{grid-template-columns:1fr;gap:25px}
  .h2d-editorial-project-lead{padding-top:55px}
  .h2d-editorial-space{padding:72px 0}
  .h2d-editorial-lead-title h2,.h2d-editorial-space-head h2,.h2d-editorial-flow .h2d-editorial-heading{font-size:27px!important}
  .h2d-editorial-copy,.h2d-editorial-split-copy{font-size:16px;line-height:1.76}
  .h2d-editorial-image-wrap.is-medium,.h2d-editorial-image-wrap.is-half{width:100%}
  .h2d-editorial-image-grid.is-images3,.h2d-editorial-gallery.columns-3{grid-template-columns:1fr 1fr}
  .h2d-editorial-image-grid.layout-lead-left.is-images3,.h2d-editorial-image-grid.layout-lead-right.is-images3{grid-template-columns:1fr 1fr}.h2d-editorial-image-grid.is-images3 .h2d-editorial-media:first-child{grid-column:1/-1}
  .h2d-editorial-split{grid-template-columns:1fr;gap:24px}.h2d-editorial-split.image-right .h2d-editorial-split-media,.h2d-editorial-split.image-right .h2d-editorial-split-copy{order:initial}
}
@media(max-width:549px){
  .h2d-project-detail-v3 .h2d-editorial-hero,.h2d-project-detail-v3 .h2d-project-banner{min-height:62vh;height:62vh}
  .h2d-project-detail-v3 .h2d-project-intro-copy{left:20px;right:20px;bottom:28px}
  .h2d-editorial-main{padding-left:16px;padding-right:16px}
  .h2d-editorial-facts{grid-template-columns:1fr 1fr}
  .h2d-editorial-image-grid.is-images2,.h2d-editorial-image-grid.is-images3,.h2d-editorial-gallery.columns-2,.h2d-editorial-gallery.columns-3{grid-template-columns:1fr!important}
  .h2d-editorial-image-grid.is-images3 .h2d-editorial-media:first-child{grid-column:auto}
  .h2d-editorial-quote p{font-size:30px!important}
}


/* =========================================================
   v2.0.6 — INNER SCROLLBAR / H2D BRAND
   Giữ sidebar dự án cố định và cho vùng nội dung không gian
   một thanh cuộn riêng, dễ nhận biết nhưng không quá nổi.
========================================================= */
@media(min-width:650px){
  .h2d-project-detail-v2.is-space-mode .h2d-project-stage{
    overflow-y:scroll!important;
    overflow-x:hidden!important;
    scrollbar-gutter:stable;
    scrollbar-width:thin;
    scrollbar-color:#AF764B #E4DBD0;
  }

  .h2d-project-detail-v2.is-space-mode .h2d-project-stage::-webkit-scrollbar{
    width:8px;
  }

  .h2d-project-detail-v2.is-space-mode .h2d-project-stage::-webkit-scrollbar-track{
    background:#E4DBD0;
    border-left:1px solid rgba(16,17,20,.07);
  }

  .h2d-project-detail-v2.is-space-mode .h2d-project-stage::-webkit-scrollbar-thumb{
    background:#AF764B;
    border:2px solid #E4DBD0;
    border-radius:0;
    min-height:56px;
  }

  .h2d-project-detail-v2.is-space-mode .h2d-project-stage::-webkit-scrollbar-thumb:hover{
    background:#6F4E39;
  }

  /* Đồng bộ scrollbar của sidebar tối */
  .h2d-project-side{
    scrollbar-width:thin;
    scrollbar-color:#AF764B #101114;
  }

  .h2d-project-side::-webkit-scrollbar{
    width:7px;
  }

  .h2d-project-side::-webkit-scrollbar-track{
    background:#101114;
  }

  .h2d-project-side::-webkit-scrollbar-thumb{
    background:#6F4E39;
    border:2px solid #101114;
    border-radius:0;
    min-height:44px;
  }

  .h2d-project-side::-webkit-scrollbar-thumb:hover{
    background:#AF764B;
  }
}


/* =========================================================
   v2.0.7 — ARTICLE SCROLLBAR AT CONTENT / SIDEBAR BOUNDARY
   v2.0.6 đặt scrollbar ở mép phải của stage, nhưng sidebar
   desktop đang overlay lên đúng vị trí đó nên thanh cuộn bị che.
   Khi mở một không gian, thu stage về đúng phần nội dung để
   scrollbar nằm ngay giữa bài viết và sidebar.
========================================================= */
@media(min-width:650px){
  .h2d-project-detail-v2.is-space-mode .h2d-project-stage{
    width:calc(100% - var(--side-width))!important;
    height:100%!important;
    overflow-y:scroll!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    scrollbar-width:auto!important;
    scrollbar-color:#AF764B #DDD3C7!important;
  }

  /* Stage đã chừa riêng cột sidebar nên nội dung không cần chừa lần hai. */
  .h2d-project-detail-v2.is-space-mode .h2d-space-panel{
    width:100%!important;
    padding-right:0!important;
  }

  .h2d-project-detail-v2.is-space-mode .h2d-project-stage::-webkit-scrollbar{
    width:10px!important;
    background:#DDD3C7!important;
  }

  .h2d-project-detail-v2.is-space-mode .h2d-project-stage::-webkit-scrollbar-track{
    background:#DDD3C7!important;
    border-left:1px solid rgba(16,17,20,.08)!important;
  }

  .h2d-project-detail-v2.is-space-mode .h2d-project-stage::-webkit-scrollbar-thumb{
    min-height:64px!important;
    background:#AF764B!important;
    border:2px solid #DDD3C7!important;
    border-radius:0!important;
  }

  .h2d-project-detail-v2.is-space-mode .h2d-project-stage::-webkit-scrollbar-thumb:hover{
    background:#6F4E39!important;
  }

  /* Sidebar vẫn có scrollbar riêng khi danh sách không gian dài. */
  .h2d-project-detail-v2 .h2d-project-side{
    scrollbar-width:thin!important;
    scrollbar-color:#6F4E39 #101114!important;
  }
  .h2d-project-detail-v2 .h2d-project-side::-webkit-scrollbar{width:7px!important}
  .h2d-project-detail-v2 .h2d-project-side::-webkit-scrollbar-track{background:#101114!important}
  .h2d-project-detail-v2 .h2d-project-side::-webkit-scrollbar-thumb{
    background:#6F4E39!important;
    border:2px solid #101114!important;
  }
  .h2d-project-detail-v2 .h2d-project-side::-webkit-scrollbar-thumb:hover{background:#AF764B!important}
}

/* =========================================================
   H2D PROJECTS 2.1 — WORD CONTENT
   Nội dung tự do theo từng Không gian: chữ, ảnh, caption, bảng, danh sách.
========================================================= */
.h2d-space-content .h2d-word-content{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  color:#2f2f31;
}
.h2d-word-content > :first-child{margin-top:0!important}
.h2d-word-content > :last-child{margin-bottom:0!important}
.h2d-word-content h2{
  margin:clamp(34px,5vw,66px) 0 18px!important;
  font-size:30px!important;
  line-height:1.18!important;
  color:#101114!important;
}
.h2d-word-content h3{
  margin:clamp(30px,4vw,52px) 0 14px!important;
  font-size:24px!important;
  line-height:1.25!important;
  color:#101114!important;
}
.h2d-word-content h4{
  margin:28px 0 12px!important;
  font-size:19px!important;
  line-height:1.35!important;
  font-weight:600!important;
  color:#101114!important;
}
.h2d-word-content p,
.h2d-word-content li{
  font-size:clamp(15px,1.05vw,17px)!important;
  line-height:1.78!important;
}
.h2d-word-content ul,
.h2d-word-content ol{
  margin:0 0 1.4em 1.35em;
  padding:0;
}
.h2d-word-content li{margin-bottom:.42em}
.h2d-word-content blockquote{
  margin:clamp(28px,4vw,50px) 0!important;
  padding:2px 0 2px 22px!important;
  border:0!important;
  border-left:2px solid #af764b!important;
  color:#393632!important;
}
.h2d-word-content blockquote p{margin:0!important;font-size:clamp(18px,1.6vw,24px)!important;line-height:1.55!important}
.h2d-word-content figure,
.h2d-word-content .wp-caption{
  max-width:100%!important;
  margin:clamp(26px,4vw,54px) auto!important;
}
.h2d-word-content figure img,
.h2d-word-content .wp-caption img,
.h2d-word-content > img{
  display:block;
  max-width:100%!important;
  height:auto!important;
  margin-left:auto;
  margin-right:auto;
}
.h2d-word-content figcaption,
.h2d-word-content .wp-caption-text{
  margin:9px auto 0!important;
  color:#6d675f!important;
  font-size:12px!important;
  font-style:italic;
  line-height:1.5!important;
  text-align:center;
}
.h2d-word-content .aligncenter{display:block;margin-left:auto!important;margin-right:auto!important;text-align:center}
.h2d-word-content .alignleft{float:left;margin:8px clamp(18px,2.5vw,34px) 22px 0!important}
.h2d-word-content .alignright{float:right;margin:8px 0 22px clamp(18px,2.5vw,34px)!important}
.h2d-word-content::after{content:"";display:block;clear:both}

.h2d-word-content table,
.h2d-word-content .h2d-content-table{
  width:100%!important;
  max-width:100%;
  margin:clamp(26px,4vw,48px) 0!important;
  border-collapse:collapse!important;
  border-spacing:0!important;
  table-layout:auto;
  background:transparent;
  color:#2f2f31;
  font-size:14px;
  line-height:1.55;
}
.h2d-word-content th,
.h2d-word-content td{
  padding:12px 14px!important;
  border:1px solid rgba(16,17,20,.18)!important;
  vertical-align:top;
  text-align:left;
  overflow-wrap:anywhere;
}
.h2d-word-content th{
  background:#101114!important;
  color:#efe8de!important;
  font-weight:600!important;
}
.h2d-word-content tbody tr:nth-child(even) td{background:rgba(16,17,20,.025)}
.h2d-word-content hr{
  margin:clamp(30px,4vw,52px) 0!important;
  border:0!important;
  border-top:1px solid rgba(16,17,20,.18)!important;
}
.h2d-word-content a{color:#6f4e39;text-decoration:underline;text-underline-offset:2px}

/* Gallery cổ điển WordPress chèn từ Thêm Media */
.h2d-word-content .gallery{display:grid!important;gap:12px;margin:clamp(28px,4vw,54px) 0!important}
.h2d-word-content .gallery-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.h2d-word-content .gallery-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.h2d-word-content .gallery-columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.h2d-word-content .gallery-item{width:auto!important;max-width:none!important;margin:0!important;padding:0!important}
.h2d-word-content .gallery-icon img{width:100%!important;height:auto!important;border:0!important}
.h2d-word-content .gallery-caption{margin-top:7px!important;font-size:11px!important;line-height:1.45!important;color:#6d675f!important}

@media(max-width:649px){
  .h2d-word-content h2{font-size:27px!important}
  .h2d-word-content h3{font-size:22px!important}
  .h2d-word-content .alignleft,
  .h2d-word-content .alignright{float:none;margin-left:auto!important;margin-right:auto!important}
  .h2d-word-content table,
  .h2d-word-content .h2d-content-table{font-size:12px}
  .h2d-word-content th,
  .h2d-word-content td{padding:9px 10px!important}
  .h2d-word-content .gallery-columns-3,
  .h2d-word-content .gallery-columns-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* H2D Projects 2.2 — nội dung nhập từ DOCX */
.h2d-word-content .h2d-docx-subtitle{
  margin:-6px 0 24px!important;
  color:#66605a!important;
  font-size:clamp(16px,1.25vw,19px)!important;
  line-height:1.55!important;
}
.h2d-word-content .h2d-docx-figure{
  width:auto;
  max-width:100%!important;
  margin:clamp(26px,4vw,54px) auto!important;
}
.h2d-word-content .h2d-docx-figure img{
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
}
.h2d-word-content .h2d-docx-table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  margin:clamp(26px,4vw,48px) 0;
  -webkit-overflow-scrolling:touch;
}
.h2d-word-content .h2d-docx-table-wrap table{margin:0!important;min-width:520px}
.h2d-word-content .h2d-docx-table p{margin:0!important;font-size:inherit!important;line-height:1.5!important}
.h2d-word-content .h2d-docx-inline-image{display:block;margin:24px auto;text-align:center}
.h2d-word-content .h2d-docx-inline-image img{display:inline-block;max-width:100%;height:auto}

/* =========================================================
   H2D PROJECTS v2.2.8 — MOBILE NAV
   Overview: thanh đầy đủ cố định.
   Không gian: chỉ nút Không gian cố định góc trái trên footer.
========================================================= */
@media (max-width:649px){
  html,
  body.single-h2d_project{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  .h2d-project-detail-root{
    position:relative!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    background:#101114!important;
    overflow:visible!important;
  }

  .h2d-project-detail-v2,
  .h2d-project-stage{
    display:block!important;
    position:relative!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }

  .h2d-project-side{display:none!important}

  /* Tổng quan vừa phần viewport còn lại sau header/footer. */
  .h2d-project-overview,
  .h2d-project-overview.is-active{
    display:block!important;
    width:100%!important;
    height:var(--h2d-mobile-project-height,calc(100dvh - 74px))!important;
    min-height:320px!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    background:#101114!important;
  }

  .h2d-project-overview:not(.is-active){display:none!important}

  .h2d-project-banner{
    position:relative!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }

  .h2d-project-banner-slider,
  .h2d-project-banner-slide{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    margin:0!important;
  }

  .h2d-project-banner-slide{
    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
  }

  /* Không gian: bỏ dải trống đầu trang. */
  .h2d-space-panel,
  .h2d-space-panel.is-active{
    width:100%!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    background:#efe8de!important;
  }

  .h2d-space-panel:not(.is-active){display:none!important}

  .h2d-space-header{
    box-sizing:border-box!important;
    margin:0!important;
    padding:14px 16px 10px!important;
    border:0!important;
    background:#efe8de!important;
  }

  .h2d-space-kicker{display:none!important}

  .h2d-space-header h2{
    margin:0!important;
    padding:0!important;
    font-size:clamp(22px,7vw,30px)!important;
    line-height:1.12!important;
  }

  .h2d-space-content{
    box-sizing:border-box!important;
    width:100%!important;
    margin:0!important;
    padding-top:0!important;
  }

  /* Slot cũ chỉ giữ layout; nav không còn bị chuyển vào đây. */
  .h2d-project-mobile-nav-slot{display:none!important}
  .h2d-project-overview-mobile-actions{display:none!important}

  /* Nav dùng chung: nằm trên footer và luôn thấy khi cuộn. */
  .h2d-project-mobile-nav{
    position:fixed!important;
    z-index:99940!important;
    bottom:calc(var(--h2d-mobile-footer-height,0px) + max(8px,env(safe-area-inset-bottom)))!important;
    box-sizing:border-box!important;
    margin:0!important;
    transition:bottom .18s ease,left .18s ease,right .18s ease,width .18s ease!important;
  }

  /* Tổng quan: thanh đầy đủ như bản cũ. */
  .h2d-project-detail-v2:not(.is-space-mode) .h2d-project-mobile-nav{
    left:max(8px,env(safe-area-inset-left))!important;
    right:max(8px,env(safe-area-inset-right))!important;
    top:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    width:auto!important;
    min-height:52px!important;
    padding:7px 7px 7px 12px!important;
    background:rgba(16,17,20,.96)!important;
    border:1px solid rgba(239,232,222,.16)!important;
    box-shadow:0 12px 34px rgba(0,0,0,.24)!important;
    backdrop-filter:blur(10px)!important;
    -webkit-backdrop-filter:blur(10px)!important;
    pointer-events:auto!important;
  }

  .h2d-project-detail-v2:not(.is-space-mode) .h2d-project-mobile-current{
    display:flex!important;
    min-width:0!important;
    flex:1 1 auto!important;
    flex-direction:column!important;
    gap:2px!important;
  }

  .h2d-project-mobile-current small{
    color:#808080!important;
    font-size:7px!important;
    font-weight:600!important;
    line-height:1.15!important;
    letter-spacing:.13em!important;
    text-transform:uppercase!important;
  }

  .h2d-project-mobile-current strong{
    display:block!important;
    max-width:48vw!important;
    overflow:hidden!important;
    color:#efe8de!important;
    font-size:10px!important;
    font-weight:600!important;
    line-height:1.25!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  /* Các không gian: đúng vị trí góc trái phía trên footer, chỉ còn nút. */
  .h2d-project-detail-v2.is-space-mode .h2d-project-mobile-nav{
    left:max(6px,env(safe-area-inset-left))!important;
    right:auto!important;
    top:auto!important;
    display:block!important;
    width:auto!important;
    min-width:0!important;
    min-height:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    pointer-events:none!important;
  }

  .h2d-project-detail-v2.is-space-mode .h2d-project-mobile-current{display:none!important}

  .h2d-project-mobile-toggle{
    pointer-events:auto!important;
    appearance:none!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    width:auto!important;
    min-width:0!important;
    height:34px!important;
    min-height:34px!important;
    margin:0!important;
    padding:0 10px!important;
    border:0!important;
    border-radius:0!important;
    background:#af764b!important;
    color:#fff!important;
    box-shadow:none!important;
    font-size:8px!important;
    font-weight:600!important;
    line-height:1!important;
    letter-spacing:.07em!important;
    text-transform:uppercase!important;
    white-space:nowrap!important;
  }

  .h2d-project-mobile-toggle i{
    display:inline-block!important;
    color:#fff!important;
    font-size:12px!important;
    font-style:normal!important;
    line-height:1!important;
  }

  /* Overview dùng nút lớn hơn một chút trong thanh đầy đủ. */
  .h2d-project-detail-v2:not(.is-space-mode) .h2d-project-mobile-toggle{
    height:38px!important;
    min-height:38px!important;
    padding:0 11px!important;
    font-size:9px!important;
  }

  .h2d-project-detail-v2:not(.is-space-mode) .h2d-project-mobile-toggle i{font-size:13px!important}

  /* Chừa vùng đọc cho thanh overview cố định. */
  .h2d-project-detail-v2:not(.is-space-mode) .h2d-project-intro-copy{
    left:16px!important;
    right:16px!important;
    bottom:76px!important;
  }

  .h2d-project-intro-title{
    font-size:clamp(24px,8.2vw,38px)!important;
    line-height:1.04!important;
    margin-bottom:10px!important;
  }

  .h2d-project-intro-facts{
    gap:7px 12px!important;
    padding-top:10px!important;
  }

  .h2d-project-intro-fact strong{
    font-size:10px!important;
    line-height:1.3!important;
  }

  .h2d-project-intro-desc{
    margin-top:9px!important;
    font-size:10px!important;
    line-height:1.42!important;
    -webkit-line-clamp:2!important;
  }

  /* Dự án khác sát footer; chừa bên trái cho nút fixed khi tới cuối trang. */
  .h2d-space-panel > .h2d-related-projects:last-child{
    margin-bottom:0!important;
    padding-bottom:max(10px,env(safe-area-inset-bottom))!important;
  }

  .h2d-related-projects-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    width:100%!important;
    min-height:34px!important;
    margin:8px 0 0!important;
    padding:8px 0 0 92px!important;
    box-sizing:border-box!important;
    border-top:1px solid rgba(255,255,255,.10)!important;
  }

  .h2d-related-projects-actions .h2d-related-projects-all{
    margin:0!important;
    padding:0!important;
  }
}

@media (max-width:374px){
  .h2d-project-detail-v2:not(.is-space-mode) .h2d-project-mobile-nav{
    left:max(6px,env(safe-area-inset-left))!important;
    right:max(6px,env(safe-area-inset-right))!important;
  }

  .h2d-project-detail-v2.is-space-mode .h2d-project-mobile-nav{
    left:max(5px,env(safe-area-inset-left))!important;
  }

  .h2d-project-mobile-toggle{
    height:32px!important;
    min-height:32px!important;
    padding:0 8px!important;
    gap:5px!important;
    font-size:7px!important;
  }

  .h2d-project-mobile-toggle i{font-size:11px!important}
  .h2d-project-mobile-current strong{max-width:42vw!important;font-size:9px!important}
  .h2d-project-detail-v2:not(.is-space-mode) .h2d-project-intro-copy{left:12px!important;right:12px!important}
  .h2d-project-intro-title{font-size:clamp(23px,8vw,32px)!important}
}

/* =========================================================
   V2.2.10 — SPACE YOUTUBE PREVIEWS
   1 video nằm bên phải; 2/3 video đẩy dần từ phải sang trái.
   ========================================================= */
.h2d-space-header.has-videos{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:clamp(24px,3.2vw,52px)!important;
}
.h2d-space-header-copy{min-width:0;}
.h2d-space-header-copy .h2d-space-kicker{margin-bottom:10px!important;}
.h2d-space-header-copy h2{margin-bottom:0!important;}

.h2d-space-videos{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(12px,1.25vw,20px);
  min-width:0;
}
.h2d-space-video-card{
  position:relative;
  flex:0 0 clamp(142px,11.5vw,180px);
  width:clamp(142px,11.5vw,180px);
  aspect-ratio:16/9;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(16,17,20,.22)!important;
  border-radius:18px!important;
  background:#101114!important;
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(16,17,20,.08);
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;
}
.h2d-space-video-card:hover{
  transform:translateY(-3px);
  border-color:#af764b!important;
  box-shadow:0 14px 30px rgba(16,17,20,.15);
}
.h2d-space-video-card>img,
.h2d-space-video-card>iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  border:0;
}
.h2d-space-video-card>img{object-fit:cover;transform:scale(1.02);}
.h2d-space-video-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(16,17,20,.04),rgba(16,17,20,.28));
  pointer-events:none;
}
.h2d-space-video-play{
  position:absolute;
  left:50%;
  top:50%;
  width:40px;
  height:40px;
  transform:translate(-50%,-50%);
  border:1px solid rgba(239,232,222,.8);
  border-radius:50%;
  background:rgba(16,17,20,.54);
  box-shadow:0 0 0 5px rgba(16,17,20,.10);
  display:grid;
  place-items:center;
  pointer-events:none;
  transition:transform .28s ease,background .28s ease,border-color .28s ease;
}
.h2d-space-video-play i{
  width:0;
  height:0;
  margin-left:3px;
  border-top:6px solid transparent;
  border-bottom:6px solid transparent;
  border-left:9px solid #efe8de;
}
.h2d-space-video-card:hover .h2d-space-video-play{
  transform:translate(-50%,-50%) scale(1.08);
  background:rgba(175,118,75,.88);
  border-color:#efe8de;
}

@media(max-width:1180px){
  .h2d-space-header.has-videos{
    grid-template-columns:1fr!important;
    align-items:start!important;
  }
  .h2d-space-videos{
    width:100%;
    margin-top:6px;
  }
  .h2d-space-video-card{
    flex-basis:clamp(150px,22vw,210px);
    width:clamp(150px,22vw,210px);
  }
}

@media(max-width:849px){
  .h2d-space-header.has-videos{display:block!important;}
  .h2d-space-videos{
    margin-top:20px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:0 0 5px;
    scrollbar-width:thin;
    justify-content:flex-end;
  }
  .h2d-space-video-card{
    flex:0 0 min(72vw,260px);
    width:min(72vw,260px);
    border-radius:14px!important;
  }
}

/* =========================================================
   V2.2.9 — STATUS SHORTCODES: 3 đầu + XEM THÊM
   ========================================================= */
.h2d-status-projects{width:100%;}
.h2d-status-project-item{min-width:0;}
.h2d-status-project-item[hidden]{display:none!important;}
.h2d-status-projects-actions{
  display:flex;
  justify-content:center;
  margin-top:34px;
}
.h2d-status-projects-toggle{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:150px;
  min-height:46px;
  padding:10px 20px;
  border:1px solid #af764b!important;
  border-radius:0!important;
  background:transparent!important;
  color:#101114!important;
  font-size:13px!important;
  font-weight:600!important;
  letter-spacing:.05em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .28s ease,color .28s ease,transform .28s ease;
}
.h2d-status-projects-toggle i{
  color:#af764b;
  font-style:normal;
  transition:transform .28s ease,color .28s ease;
}
.h2d-status-projects-toggle:hover{
  background:#101114!important;
  color:#efe8de!important;
  transform:translateY(-2px);
}
.h2d-status-projects-toggle:hover i{color:#efe8de;}
.h2d-status-projects-toggle[aria-expanded="true"] i{transform:rotate(180deg);}

@media(max-width:649px){
  .h2d-status-projects-actions{margin-top:26px;}
  .h2d-status-projects-toggle{width:100%;max-width:240px;}
}

/* =========================================================
   V2.2.10 — YOUTUBE LIGHTBOX PLAYER
   Player lớn 16:9 để YouTube hiển thị đầy đủ controls + fullscreen.
   ========================================================= */
html.h2d-youtube-lightbox-open,
body.h2d-youtube-lightbox-open{
  overflow:hidden!important;
}

.h2d-youtube-lightbox{
  position:fixed;
  inset:0;
  z-index:2147482500;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(18px,3vw,48px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .24s ease,visibility .24s ease;
}

.h2d-youtube-lightbox.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.h2d-youtube-lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(8,9,11,.88);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}

.h2d-youtube-lightbox-shell{
  position:relative;
  z-index:2;
  width:min(1120px,92vw);
  max-height:92vh;
  transform:translateY(10px) scale(.985);
  transition:transform .28s cubic-bezier(.16,1,.3,1);
}

.h2d-youtube-lightbox.is-open .h2d-youtube-lightbox-shell{
  transform:translateY(0) scale(1);
}

.h2d-youtube-lightbox-stage{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#000;
  border:1px solid rgba(239,232,222,.18);
  box-shadow:0 28px 80px rgba(0,0,0,.52);
}

.h2d-youtube-lightbox-frame{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  border:0;
  background:#000;
}

.h2d-youtube-lightbox-close{
  position:absolute!important;
  right:-16px!important;
  top:-16px!important;
  z-index:5!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid rgba(239,232,222,.42)!important;
  border-radius:50%!important;
  background:#101114!important;
  color:#efe8de!important;
  font-family:Arial,sans-serif!important;
  font-size:25px!important;
  font-weight:300!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:0 8px 28px rgba(0,0,0,.35)!important;
  transition:background .22s ease,border-color .22s ease,transform .22s ease!important;
}

.h2d-youtube-lightbox-close:hover,
.h2d-youtube-lightbox-close:focus-visible{
  background:#af764b!important;
  border-color:#af764b!important;
  transform:scale(1.06);
  outline:none!important;
}

@media(max-width:849px){
  .h2d-youtube-lightbox{padding:16px 10px;}
  .h2d-youtube-lightbox-shell{width:min(100%,96vw);}
  .h2d-youtube-lightbox-close{
    right:4px!important;
    top:-50px!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
  }
}

@media(max-width:480px){
  .h2d-youtube-lightbox{padding:10px 6px;}
  .h2d-youtube-lightbox-shell{width:100%;}
  .h2d-youtube-lightbox-stage{border-left:0;border-right:0;}
}

@media(prefers-reduced-motion:reduce){
  .h2d-youtube-lightbox,
  .h2d-youtube-lightbox-shell,
  .h2d-youtube-lightbox-close{
    transition:none!important;
  }
}
