/* ==========================================================================
   Lường Văn Tâm — hồ sơ năng lực (bản web)
   Môi trường thị giác tràn khung viền, biến chuyển theo từng chủ đề,
   kế thừa sắc độ và nét vẽ thủ công truyền thống Việt Nam:
     1. Đêm Sơn Mài    — phần mở đầu + bốn cột LED (Hoa Lam, bộ họa tiết, Sơn Son, Trúc Xanh)
     2. Giấy Dó        — cách làm, hỗ trợ
     3. Ba không gian dự án tràn viền:
          • DELCO         — Trúc Xanh Sơn Thủy
          • AGRIBEACON    — Gốm Hoa Lam
          • RHINELAB      — bộ họa tiết Vân Hà
     4. Sơn Son Thếp Vàng — tư vấn doanh nghiệp
     5. Giấy Dó Lục Nhạt  — nền tảng nghiên cứu & học vấn
     6. Đêm Khai Sắc      — liên hệ
   ========================================================================== */

:root {
  --f-display: "Archivo", "Be Vietnam Pro", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, sans-serif;
  --gx: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --sy: clamp(88px, 10vw, 144px);
  --nav-h: 68px;
  --r: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --gold: #E3B04B;
  --son: #C8401F;
  --screen: #0B0A0C;
  --screen-2: #17151A;
  --screen-fg: #EEE8E0;
  --screen-mute: #C0B7AC;
  --s-fault: #FF5A4E;
  --s-gate: #F2B544;
  --s-run: #4CD69A;
}

/* ---------- Bảng màu môi trường theo từng chủ đề ---------- */
.t-lacquer,
.nav[data-theme="dark"] {
  --center: #0E0B09; --edge: #1A1410; --fg: #F6EFE6; --muted: #C9BDB0;
  --accent: #E6B652; --accent-2: #D9542F; --on-accent: #1E1505;
}
.t-paper,
.nav[data-theme="light"] {
  --center: #F5F0E7; --edge: #E2D8C7; --fg: #17130F; --muted: #47403A;
  --accent: #8E2A17; --accent-2: #B7852A; --on-accent: #FFFFFF;
}
.t-delco,
.nav[data-world="delco"] {
  --center: #F3F8F5; --edge: #D4E7DC; --fg: #111615; --muted: #3E4744;
  --accent: #0A5A4E; --accent-2: #C28A26; --on-accent: #FFFFFF;
}
.t-agri,
.nav[data-world="agri"] {
  --center: #F3F7FC; --edge: #D2E2F3; --fg: #111827; --muted: #3D4553;
  --accent: #173F86; --accent-2: #2C73B8; --on-accent: #FFFFFF;
}
.case-mural[data-world="agri-mural"],
.nav[data-world="agri-mural"] {
  --center: #071F4F; --edge: #0D357D; --fg: #F3F7FD; --muted: #C3D3EA;
  --accent: #E6B652; --accent-2: #6CA5F0; --on-accent: #1E1505;
}
.t-rhine,
.nav[data-world="rhine"] {
  --center: #FAF3EE; --edge: #EBD8C9; --fg: #1E1418; --muted: #4A3E41;
  --accent: #842646; --accent-2: #1D7579; --on-accent: #FFFFFF;
}
.t-son,
.nav[data-world="son"] {
  --center: #1A0804; --edge: #3B0F08; --fg: #FBF2E8; --muted: #E3CBB9;
  --accent: #EDC274; --accent-2: #F08A5D; --on-accent: #1E1505;
}
.t-paper-cool,
.nav[data-world="cool"] {
  --center: #F2F6F3; --edge: #DAE4DE; --fg: #121917; --muted: #3F4845;
  --accent: #11544B; --accent-2: #B7852A; --on-accent: #FFFFFF;
}
.t-night,
.nav[data-world="night"] {
  --center: #0D0916; --edge: #19122B; --fg: #F6F2FA; --muted: #C9C1D8;
  --accent: #E6B652; --accent-2: #E2608F; --on-accent: #1E1505;
}

.t-lacquer, .t-paper, .t-delco, .t-agri, .t-rhine, .t-son, .t-paper-cool, .t-night, .t-tromvia, .nav {
  --bg: var(--center);
  --bg2: var(--edge);
  --line: color-mix(in srgb, var(--fg) 14%, transparent);
  --line-2: color-mix(in srgb, var(--fg) 26%, transparent);
  --panel: color-mix(in srgb, var(--fg) 4%, transparent);
  --panel-2: color-mix(in srgb, var(--fg) 8%, transparent);
}
.t-lacquer, .t-paper, .t-delco, .t-agri, .t-rhine, .t-son, .t-paper-cool, .t-night, .t-tromvia {
  background-color: var(--bg);
  color: var(--fg);
}

/* Vân giấy dó sợi mảnh cho các không gian sáng */
.t-paper, .t-delco, .t-agri, .t-rhine, .t-paper-cool {
  --paper-wash: radial-gradient(ellipse 72% 115% at 50% 42%, var(--center) 0% 48%, var(--edge) 100%);
  --paper-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.9 .045' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .2  0 0 0 .018 0'/></filter><rect width='100%25' height='100%25' filter='url(%23f)'/></svg>");
  background-color: var(--edge);
  background-image: var(--paper-grain), var(--paper-wash);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); background: #0E0B09; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  overflow-x: clip;
  background: #0E0B09;
  color: #F4ECE1;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: #1E1505; }

.print-dossier { display: none; }
.web-app { position: relative; isolation: isolate; }
.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gx); }

.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--gold); color: #1E1505; padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Đèn tín hiệu ---------- */
.lamp-s { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.lamp-s.is-run { background: var(--s-run); }
.lamp-s.is-gate { background: var(--s-gate); }
.lamp-s.is-fault { background: var(--s-fault); }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--f-body); font-size: 0.9375rem; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--accent); color: var(--on-accent); }
.btn-signal:hover { background: color-mix(in srgb, var(--accent) 86%, var(--fg)); }
.btn-ghost { border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); border-color: color-mix(in srgb, var(--fg) 50%, transparent); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-ico { flex: none; display: block; }
.btn-ico-zalo { margin-left: -4px; border-radius: 7px; box-shadow: 0 2px 8px rgba(0, 0, 0, .24); }
.btn-ico-mail { color: var(--accent); }

/* ==========================================================================
   Thanh điều hướng (tự chuyển sắc theo môi trường chủ đề hiện tại)
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  color: var(--fg); border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .35s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  border-color: var(--line);
}
.nav-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-name { white-space: nowrap; font-family: var(--f-display); font-stretch: 112%; font-weight: 650; font-size: 1.0625rem; letter-spacing: -.005em; }
.nav-links { display: flex; gap: clamp(16px, 1.55vw, 24px); }
.nav-links a { white-space: nowrap; font-size: 0.9375rem; font-weight: 500; position: relative; padding: 6px 0; color: var(--muted); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease), background-color .35s var(--ease); }
.nav-links a:hover, .nav-links a.is-here { color: var(--fg); }
.nav-links a:hover::after, .nav-links a.is-here::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.menu-btn { display: none; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.875rem; font-weight: 600; }
.menu-icon { display: grid; gap: 5px; width: 16px; }
.menu-icon i { display: block; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.nav:has(.drawer:not([hidden])) { background: var(--bg); }
.drawer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  max-height: calc(100vh - var(--nav-h));
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer-inner { display: grid; padding-block: 8px 20px; }
.drawer-inner a { padding: 14px 0; font-size: 1.125rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.drawer-inner .btn { margin-top: 16px; justify-self: start; }

/* ---------- Lớp nền tranh tràn khung viền dùng chung ---------- */
.sec-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.art-stage, .stage-ornaments, .ambient-canvas {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.art-stage { z-index: 0; visibility: hidden; contain: layout paint; transform-origin: center center; }
.art-stage.is-ready { visibility: visible; }
.art-ptr { position: absolute; inset: 0; pointer-events: none; }
.art-layer { display: block; position: absolute; max-width: none; pointer-events: none; }
.stage-ornaments, .stage-ornaments-screen {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(90deg, transparent 70%, black 78%);
}
.stage-ornaments-screen { mix-blend-mode: screen; }
/* Separate the two gold scrolls around the drum and keep the brushwork in proportion. */
@media (min-width: 1001px) {
  .stage-ornaments [data-layer="02-clouds-bg"] {
    max-height: 37vw; margin-top: -12vw;
    mask-image: linear-gradient(to bottom, transparent, black 11% 88%, transparent);
  }
  .stage-ornaments [data-layer="03-clouds-fg"] {
    max-height: 39vw; margin-top: 12vw;
    mask-image: linear-gradient(to bottom, transparent, black 11% 88%, transparent);
  }
}
.ambient-canvas { width: 100%; height: 100%; z-index: 9; }
.sec-bg::after, .case-mural::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
html:not(.js) [data-backdrop], [data-backdrop].stage-loading, [data-backdrop].stage-fallback {
  background-image: var(--static-art);
  background-size: cover;
  background-position: center;
}

/* ==========================================================================
   Hồi I — Phần mở đầu: Đêm Sơn Mài tràn viền + 4 cột tranh dân gian
   ========================================================================== */
.hero { position: relative; overflow: clip; }
.hero-bg {
  background: var(--center) url('../art/hero-stage.jpg') center bottom / cover no-repeat;
}
.hero-light {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse at 85% 75%, #F5C980 0%, transparent 58%);
  mix-blend-mode: soft-light;
}
.hero-bg::after {
  background:
    linear-gradient(to top, #0E0B09 0%, rgba(14,11,9,.87) 9%, transparent 21%),
    radial-gradient(ellipse 62% 23% at 94% 42%, rgba(14,11,9,.78), transparent),
    radial-gradient(ellipse 86% 64% at 38% 25%, rgba(14,11,9,.94) 0%, rgba(14,11,9,.85) 59%, transparent 100%);
}
.hero-pin { position: relative; z-index: 1; padding-top: var(--nav-h); }
.hero-inner { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(14px, 2.8vh, 32px); padding-block: clamp(20px, 3.8vh, 44px) clamp(16px, 2.6vh, 28px); }

.hero .hero-inner { padding-block: clamp(44px, 8vw, 110px); }
.method-example { color: var(--fg); background: var(--bg); padding-block: clamp(32px, 5vw, 72px); }
.method-example .board-foot { margin-top: 24px; }
.hero-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.hero-title-col { grid-column: 1 / 13; }
.hero-side { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-top: clamp(12px, 2.2vh, 24px); }
.hero-side p { grid-column: 1 / 7; font-size: 1.03125rem; line-height: 1.6; color: var(--muted); max-width: 58ch; }
.hero-cta { grid-column: 8 / 13; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.hero-who { font-size: 0.9375rem; color: var(--muted); margin-bottom: clamp(8px, 1.5vh, 16px); display: flex; align-items: center; gap: 10px; }
.hero-who::before { content: ""; width: 24px; height: 2px; border-radius: 1px; background: var(--accent); }
.hero-title { font-family: var(--f-display); font-stretch: 116%; font-weight: 620; font-size: clamp(2.125rem, min(5.1vw, 8.2vh), 5.75rem); line-height: 1.09; letter-spacing: -.012em; }
.hero-title .ln { display: block; white-space: nowrap; }

.board { flex: 1; min-height: 0; position: relative; }
.board-lanes {
  position: relative; height: 100%;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: center; align-items: stretch; column-gap: var(--gap);
}
/* Mỗi khâu là một cột tranh dân gian sáng dần khi công việc vào trật tự (bố cục cố định, không reflow khi cuộn) */
.lane {
  position: relative; display: flex; flex-direction: column;
  gap: clamp(6px, 1vh, 9px);
  min-height: clamp(256px, 38vh, 368px);
  padding: clamp(12px, 1.8vh, 16px) 10px 12px;
  border-radius: 8px 8px 4px 4px;
  overflow: visible;
}
.lane[data-lane="0"] { --lane-art: url('../art/lane-1-hoalam.jpg'); --lane-accent: #68A4EB; }
.lane[data-lane="1"] { --lane-art: url('../art/lane-2-tuphu.jpg'); --lane-accent: #E8B85F; }
.lane[data-lane="2"] { --lane-art: url('../art/lane-3-sonson.jpg'); --lane-accent: #E26B3F; }
.lane[data-lane="3"] { --lane-art: url('../art/lane-4-trucxanh.jpg'); --lane-accent: #4CD69A; }

.lane::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 11, 9, .86) 0%, rgba(14, 11, 9, .76) 16%, rgba(14, 11, 9, .22) 34%, rgba(14, 11, 9, .26) 62%, rgba(14, 11, 9, .82) 100%),
    var(--lane-art) 50% 45% / cover no-repeat,
    #0B0A0C;
  border-top: 2px solid var(--lane-accent, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(244, 236, 225, .08);
  opacity: calc(.10 + var(--lane-p, 1) * .90);
}
.lane::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none;
  background: radial-gradient(rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, .26) 1.6px) 0 0 / 4px 4px;
  opacity: calc(var(--lane-p, 1) * .8);
}
.lane-flash {
  position: absolute; inset: 0; border-radius: inherit; z-index: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent 16%, color-mix(in srgb, var(--lane-accent, var(--accent)) 18%, transparent) 52%, transparent 90%);
  box-shadow: inset 0 1px 0 0 color-mix(in srgb, var(--lane-accent, var(--accent)) 55%, transparent);
}
.lane-head {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 10px;
  margin-bottom: auto; padding-bottom: 10px;
  opacity: var(--lane-p, 1);
  font-family: var(--f-display); font-stretch: 88%; font-weight: 650; font-size: 0.9375rem;
}
.lane-n {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px;
  background: var(--lane-accent, var(--accent)); color: #14100C; font-size: 0.75rem; font-weight: 700; font-stretch: 100%;
}
.chip {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: clamp(7px, 1.15vh, 11px) 12px; border-radius: 7px;
  background: rgba(18, 14, 12, .94); border: 1px solid rgba(244, 236, 225, .14);
  font-size: 0.875rem; line-height: 1.35; color: var(--fg);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.chip .lamp { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--s-fault); transition: background-color .4s; }
.chip-t { display: grid; min-width: 0; }
.chip-t > span { grid-area: 1 / 1; align-self: center; }
.t-b { opacity: 0; }
.chip.is-on { background: rgba(18, 14, 12, .90); border-color: rgba(227, 176, 75, .34); }
.chip.is-on[data-kind="run"] .lamp { background: var(--s-run); }
.chip.is-on[data-kind="gate"] .lamp { background: var(--s-gate); }
.chip-ai .t-b { font-weight: 600; }
.chip-ai.is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip-ai.is-on .lamp { background: var(--on-accent); }
html:not(.js) .t-a { opacity: 0; }
html:not(.js) .t-b { opacity: 1; }

.board-foot { display: flex; align-items: center; gap: var(--gap); padding-top: clamp(12px, 1.8vh, 16px); border-top: 1px solid var(--line); }
.board-cap { flex: 1; display: grid; font-size: 0.9375rem; color: var(--fg); min-height: 1.6em; }
.board-cap > span { grid-area: 1 / 1; }
.cap-b { opacity: 0; }
html:not(.js) .cap-a { opacity: 0; }
html:not(.js) .cap-b { opacity: 1; }
.board-legend { display: flex; gap: 18px; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.board-legend span { display: inline-flex; align-items: center; gap: 8px; }
.scrub { display: flex; align-items: center; gap: 12px; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; padding: 6px 0; transition: color .2s; }
.scrub:hover { color: var(--fg); }
.scrub-label { display: inline-block; min-width: 296px; text-align: right; }
.scrub-bar { width: 96px; height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 1px; }
.scrub-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   Khung chung của các phần
   ========================================================================== */
.sec { position: relative; padding-block: var(--sy) calc(var(--sy) * .9); }

.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-bottom: clamp(44px, 5.5vw, 80px); }
.sec-tag { grid-column: 1 / 4; align-self: start; padding-top: .9em; display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--muted); }
.sec-head-main { grid-column: 4 / 13; display: grid; gap: 20px; }
h2 {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 620;
  font-size: clamp(2rem, 3.9vw, 3.625rem); line-height: 1.12; letter-spacing: -.01em;
  text-wrap: pretty; max-width: 23ch;
}
.ln-mask { display: block; overflow: hidden; padding-block: .22em; margin-block: -.22em; }
.ln-in { display: block; transform-origin: left bottom; }
.lead { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }

/* ==========================================================================
   Cách làm — Sân khấu bốn cảnh (desktop ghim; màn hẹp/thấp xếp thẻ sticky)
   ========================================================================== */
.sec-steps { position: relative; overflow: visible; }
.cl-ink {
  display: none; position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.cl-ink path { stroke: var(--accent-2); stroke-width: 1.8; stroke-opacity: .24; stroke-linecap: round; }
.cl-inner { position: relative; z-index: 1; }
.cl-aside { display: none; }
.cl-steps { display: grid; gap: 20px; position: relative; }
.cl-step {
  position: sticky;
  top: calc(var(--nav-h) + 16px + var(--i, 0) * 14px);
  z-index: calc(1 + var(--i, 0));
  display: grid; gap: 14px; align-content: start;
  padding: clamp(22px, 3.6vw, 34px);
  background: var(--center);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: 0 18px 36px -24px rgba(23, 19, 15, .28);
}
.cl-step-n { font-family: var(--f-display); font-stretch: 90%; font-weight: 640; font-size: 0.9375rem; color: var(--accent); }
.cl-step h3 { font-family: var(--f-display); font-stretch: 106%; font-weight: 640; font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.2; color: var(--fg); }
.cl-desc { font-size: clamp(1rem, 1.35vw, 1.15625rem); color: var(--muted); line-height: 1.6; max-width: 54ch; }
.qs { display: grid; gap: 9px; margin-top: 2px; }
.qs li { position: relative; padding-left: 16px; font-size: 0.96875rem; line-height: 1.5; color: var(--fg); }
.qs li::before { content: ""; position: absolute; left: 0; top: .48em; width: 2px; height: calc(100% - .48em); background: var(--accent-2); }
.deliv { align-self: end; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.96875rem; font-weight: 600; line-height: 1.5; color: var(--fg); }
.deliv span { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }

/* Sân khấu bốn cảnh có ghim ở màn hình rộng ≥ 1001px và cao ≥ 680px */
@media (min-width: 1001px) and (min-height: 680px) and (prefers-reduced-motion: no-preference) {
  html.js .sec-steps { padding-block: 0; height: 320vh; height: 320svh; overflow: visible; }
  html.js .cl-ink { display: block; }
  html.js .cl-stage {
    position: sticky; top: 0; overflow: clip;
    height: 100vh; height: 100svh; min-height: 680px;
    display: flex; flex-direction: column;
    padding-top: calc(var(--nav-h) + clamp(20px, 3.2vh, 40px));
    padding-bottom: clamp(24px, 3.8vh, 46px);
  }
  html.js .cl-inner { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; }
  html.js .cl-head { margin-bottom: clamp(14px, 2.2vh, 28px); transform-origin: left top; }
  html.js .cl-body {
    flex: 1; min-height: 0;
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap); align-items: center;
  }
  html.js .cl-aside {
    grid-column: 1 / 6; display: grid; gap: clamp(18px, 2.8vh, 32px);
    align-content: center; padding-right: 12px;
  }
  html.js .cl-odometer {
    font-family: var(--f-display); font-stretch: 112%; font-weight: 700;
    font-size: clamp(5.75rem, min(10.5vw, 15vh), 9.75rem); line-height: 1.02; letter-spacing: -.03em;
    color: var(--accent); height: 1.02em; overflow: hidden; font-variant-numeric: tabular-nums;
  }
  html.js .cl-odo-track { display: flex; flex-direction: column; }
  html.js .cl-odo-track span { display: block; height: 1.02em; line-height: 1.02; }
  html.js .cl-rail { position: relative; display: grid; gap: clamp(10px, 1.6vh, 16px); padding-left: 26px; }
  html.js .cl-rail-line {
    position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px;
    background: var(--line); border-radius: 1px; overflow: hidden;
  }
  html.js .cl-rail-line i {
    position: absolute; inset: 0; background: var(--accent);
    transform-origin: top; transform: scaleY(0);
  }
  html.js .cl-nav-btn {
    position: relative; display: flex; align-items: baseline; gap: 10px; text-align: left;
    padding: 4px 0; font-size: 0.9375rem; line-height: 1.35; font-weight: 500;
    color: var(--muted); transition: color .25s var(--ease);
  }
  html.js .cl-nav-btn:hover { color: var(--fg); }
  html.js .cl-dot {
    position: absolute; left: -26px; top: .46em; width: 12px; height: 12px; border-radius: 50%;
    background: var(--center); border: 2px solid var(--line-2);
    transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  }
  html.js .cl-nav-btn.is-passed .cl-dot { border-color: var(--accent); }
  html.js .cl-nav-btn.is-active { color: var(--fg); font-weight: 600; }
  html.js .cl-nav-btn.is-active .cl-dot { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }
  html.js .cl-nav-n { font-family: var(--f-display); font-stretch: 90%; font-weight: 600; font-size: 0.84375rem; color: var(--accent); flex: none; }
  html.js .cl-steps {
    grid-column: 6 / 13; display: grid; position: relative;
    min-height: clamp(300px, 44vh, 420px); align-items: center;
  }
  html.js .cl-step {
    position: relative; top: auto; z-index: 1; grid-area: 1 / 1;
    padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none;
    gap: clamp(14px, 2.2vh, 22px); align-content: center;
    opacity: 0; pointer-events: none;
  }
  html.js .cl-step.is-active { opacity: 1; pointer-events: auto; }
  html.js .cl-step-n { display: none; }
  html.js .cl-step h3 { font-size: clamp(1.875rem, 2.9vw, 2.5rem); line-height: 1.15; letter-spacing: -.012em; max-width: 22ch; }
  html.js .cl-desc { font-size: 1.1875rem; line-height: 1.6; max-width: 48ch; }
  html.js .cl-step .qs li { font-size: 1rem; }
  html.js .cl-step .deliv { margin-top: 4px; padding-top: 18px; font-size: 1rem; }
}

/* ==========================================================================
   Dự án — mỗi dự án là một không gian tràn khung viền có môi trường riêng
   ========================================================================== */
.sec-cases { position: relative; }
.duan-intro { padding: var(--sy) 0 clamp(40px, 4.8vw, 68px); border-top: 1px solid var(--line); }
.duan-intro .sec-head { margin-bottom: 0; }

.case-band {
  --mural-height: clamp(220px, 29vw, 420px);
  --mural-paper: var(--center);
  position: relative; width: 100%; overflow: clip;
  background-image:
    linear-gradient(to bottom, var(--center) var(--mural-height), transparent calc(var(--mural-height) + 112px)),
    var(--paper-grain), var(--paper-wash);
}
.case-mural {
  position: relative; width: 100%; height: var(--mural-height); overflow: hidden;
  background-color: var(--center);
}
.case-mural::after {
  background: linear-gradient(to bottom, transparent 65%, var(--mural-paper) 96%);
}
.t-delco { --static-art: url('../art/case-delco-trucxanh.jpg'); }
.t-agri { --static-art: url('../art/case-agri-hoalam.jpg'); }
.t-rhine { --static-art: url('../art/case-rhine-camky.jpg'); }
/* The strips include a repeat for overscan. Frame one ridge per horizon. */
[data-stage="delco"] [data-layer="01-mt-far"] { min-width: 174%; margin-left: -13%; }
[data-stage="delco"] [data-layer="02-mt-mid"] { min-width: 154%; margin-left: 15%; }
[data-stage="rhine"] [data-layer="02-mountains"] { min-width: 160%; margin-left: 9%; }

/* Continue the mural only in the margins outside the reading grid. */
@media (min-width: 1500px) {
  .t-delco { --edge-left: url('../art/layers/delco/05-bamboo-left.webp'); --edge-right: url('../art/layers/delco/06-bamboo-right.webp'); }
  .t-agri { --edge-left: url('../art/layers/agri/05-filigree-left.webp'); --edge-right: url('../art/layers/agri/06-filigree-right.webp'); }
  .t-rhine { --edge-left: url('../art/layers/rhine/03-cloud-left.webp'); --edge-right: url('../art/layers/rhine/04-cloud-right.webp'); }
  .case-band:has(.stage-ready)::before {
    content: ""; position: absolute; inset: var(--mural-height) 0 0; pointer-events: none;
    --margin: min(12%, calc((100vw - 1400px) / 2));
    background: var(--edge-left) left top / var(--margin) auto no-repeat,
                var(--edge-right) right top / var(--margin) auto no-repeat;
    mask-image: linear-gradient(to bottom, transparent, black 14%, black 60%, transparent);
    opacity: .32;
  }
}

.case-body {
  position: relative; z-index: 2;
  margin-top: clamp(-16px, -1vw, -6px);
  padding-bottom: clamp(72px, 8.5vw, 128px);
}
.case-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px; align-items: stretch; }
.case-info { grid-column: 1 / 6; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 14px; align-content: start; }
.case-visual { grid-column: 6 / 13; align-self: start; min-width: 0; }
.agri-visual { align-self: stretch; }
.case-when { font-family: var(--f-display); font-stretch: 90%; font-weight: 600; font-size: 0.9375rem; color: var(--accent); }
.case-name { font-family: var(--f-display); font-stretch: 114%; font-weight: 680; font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.05; letter-spacing: -.015em; }
.case-org { font-size: 1rem; font-weight: 600; line-height: 1.45; color: var(--fg); max-width: 44ch; }
.case-role { color: var(--muted); max-width: 44ch; }

.rules { margin-top: 18px; }
.rules-h { font-size: 0.875rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.rules li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.96875rem; line-height: 1.5; }
.rules li .lamp-s { transform: translateY(-1px); }

.nums { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.nums div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 16px 14px 0 0; }
.nums div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.nums dd { font-family: var(--f-display); font-stretch: 100%; font-weight: 640; font-size: clamp(2.25rem, 3.4vw, 3.25rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent); }
.nums dd [data-count] { display: inline-block; }
.nums dd small { font-size: .5em; margin-left: 2px; }
.nums dt { font-size: 0.84375rem; line-height: 1.4; color: var(--muted); }

.works { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: var(--gap); row-gap: 8px; margin-top: clamp(36px, 4.4vw, 56px); padding-top: clamp(24px, 3.2vw, 38px); border-top: 1px solid var(--line); }
.work { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; align-content: start; }
.work h4 { font-family: var(--f-display); font-stretch: 104%; font-weight: 620; font-size: 1.125rem; line-height: 1.3; }
.work p { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.work .need { color: var(--fg); font-weight: 500; }

/* ----- Màn hình TV mô phỏng (DELCO — bóng đổ lục bảo tinh tế) ----- */
.tv {
  background: #141B1A; border-radius: 14px; padding: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset, 0 28px 54px -26px rgba(10, 52, 42, .45);
}
.tv-screen { background: var(--screen); border-radius: 8px; padding: clamp(12px, 1.4vw, 18px); color: var(--screen-fg); }
.tv-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-family: var(--f-display); font-stretch: 92%; font-weight: 600; font-size: 0.875rem; }
.tv-title { display: inline-flex; align-items: center; gap: 10px; }
.tv-lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--s-run); transition: background-color .3s; }
.tv-clock { color: var(--screen-mute); font-variant-numeric: tabular-nums; }
.tv-grid { display: grid; gap: 8px; grid-template-columns: 1.25fr 1fr 1fr; grid-template-areas: "prog acc wx" "prog todo todo" "cams cams cams"; }
.tv-tile { position: relative; background: var(--screen-2); border-radius: 5px; padding: 12px; min-width: 0; display: grid; align-content: start; gap: 6px; transition: background-color .35s; }
.tv-prog { grid-area: prog; gap: 10px; }
.tv-acc { grid-area: acc; }
.tv-tile:nth-child(3) { grid-area: wx; }
.tv-todo { grid-area: todo; }
.tv-h { font-size: 0.78125rem; font-weight: 600; color: var(--screen-mute); }
.tv-big { font-family: var(--f-display); font-stretch: 100%; font-weight: 640; font-size: 1.5rem; line-height: 1.1; }
.tv-s { font-size: 0.78125rem; line-height: 1.45; color: #C2C7CF; }
.bar { display: grid; gap: 5px; font-size: 0.78125rem; color: #D3D7DD; }
.bar b { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.bar b::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 100%); background: var(--s-run); border-radius: 3px; transition: width .9s var(--ease), background-color .3s; }
.tv-todo ul { display: grid; gap: 4px; }
.tv-todo li { font-size: 0.78125rem; color: #D3D7DD; padding-left: 14px; position: relative; }
.tv-todo li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border: 1px solid var(--screen-mute); border-radius: 1px; }
.tv-cams { grid-area: cams; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tv-cams span { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: linear-gradient(160deg, #222833, #12151B 70%); font-size: 0.6875rem; color: #C9CED6; padding: 6px 8px; display: flex; align-items: flex-start; gap: 6px; }
.tv-cams span::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: 0; background: linear-gradient(transparent, rgba(255, 255, 255, .06), transparent); transform: translateY(-100%); animation: camscan 4.5s linear infinite; }
.tv-cams span:nth-child(2)::after { animation-delay: -1.1s; }
.tv-cams span:nth-child(3)::after { animation-delay: -2.3s; }
.tv-cams span:nth-child(4)::after { animation-delay: -3.4s; }
.tv-cams i { width: 6px; height: 6px; border-radius: 50%; background: var(--s-run); margin-top: 4px; flex: none; }
@keyframes camscan { to { transform: translateY(433%); } }
.tv-stale { display: none; font-size: 0.78125rem; line-height: 1.45; color: var(--screen-fg); padding: 8px 10px; border-left: 2px solid var(--s-gate); background: rgba(255, 194, 61, .1); }
.tv[data-state="stale"] .tv-lamp { background: var(--s-gate); animation: blink 1.2s steps(2, jump-none) infinite; }
.tv[data-state="stale"] [data-src] { background: #0F1217; }
.tv[data-state="stale"] [data-src] > :not(.tv-h):not(.tv-stale) { display: none; }
.tv[data-state="stale"] [data-src] .tv-stale { display: block; }
@keyframes blink { 50% { opacity: .35; } }
.tv-ctrl { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 4px 2px; }
.switch { display: inline-flex; align-items: center; gap: 12px; font-size: 0.875rem; font-weight: 500; color: #E4E7EC; text-align: left; }
.switch-track { width: 40px; height: 22px; border-radius: 11px; background: #343A45; position: relative; flex: none; transition: background-color .25s; }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #E9EBF0; transition: transform .3s var(--ease); }
.switch[aria-checked="true"] .switch-track { background: var(--s-gate); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(18px); background: #1B1F27; }
.tv-note { font-size: 0.78125rem; color: var(--screen-mute); }

/* ----- Hình nhận diện, bộ định tuyến, sơ đồ lab ----- */
.agri-visual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.vis, .router, .net {
  background: var(--screen); border-radius: var(--r); padding: 14px; color: var(--screen-fg);
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 24px 48px -28px color-mix(in srgb, var(--fg) 42%, transparent);
}
.t-agri .vis, .t-agri .router { background: #0A1120; box-shadow: 0 0 0 1px rgba(108, 165, 240, .14) inset, 0 24px 48px -26px rgba(10, 35, 86, .42); }
.t-rhine .net { background: #141016; box-shadow: 0 0 0 1px rgba(226, 96, 143, .14) inset, 0 24px 48px -26px rgba(68, 22, 40, .34); }
.vis svg, .router svg, .net svg { width: 100%; height: auto; }
.vis-view { position: relative; flex: 1; min-height: 190px; border-radius: 6px; overflow: hidden; background: #0C1422; }
.vis-view svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.router svg { margin-block: auto; }
.router figcaption { margin-top: 0; }
figcaption { font-size: 0.8125rem; line-height: 1.5; color: var(--screen-mute); margin-top: auto; }
.leaf { fill: rgba(76, 214, 154, .14); stroke: rgba(76, 214, 154, .6); stroke-width: 1.2; }
.leaf-vein { fill: none; stroke: rgba(76, 214, 154, .4); stroke-width: 1; }
.spot { fill: rgba(196, 126, 40, .8); }
.det rect:first-child { fill: rgba(227, 176, 75, .08); stroke: var(--gold); stroke-width: 1.5; }
.det-tag { fill: var(--gold); }
.det text { font-family: var(--f-display); font-stretch: 92%; font-weight: 600; font-size: 0.625rem; fill: #1E1505; }
.det { opacity: 0; animation: det 4s var(--ease) infinite; }
.det-2 { animation-delay: .7s; }
.scan { fill: var(--gold); opacity: .75; animation: scan 4s linear infinite; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(258px); } }
@keyframes det { 0%, 30% { opacity: 0; } 40%, 88% { opacity: 1; } 100% { opacity: 0; } }
.r-links path, .n-links path { fill: none; stroke: #3E4552; stroke-width: 1.4; }
.r-node rect, .n-node rect { fill: #1A1F28; stroke: #3E4552; stroke-width: 1.2; }
.r-core rect, .n-core rect { stroke: var(--gold); }
.r-node text, .n-node text { font-family: var(--f-display); font-stretch: 94%; font-weight: 600; font-size: 0.6875rem; fill: var(--screen-fg); text-anchor: middle; }
.n-node text { font-size: 0.78125rem; }
.n-sub { font-size: 0.65625rem !important; fill: var(--screen-mute) !important; font-weight: 500 !important; }
.r-check circle { fill: none; stroke: var(--s-run); stroke-width: 1.6; }
.r-check path { fill: none; stroke: var(--s-run); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pk { fill: var(--gold); }
.pk-a { fill: var(--s-run); }
.pk-b { fill: #E9EBF0; }

/* ==========================================================================
   Tư vấn — Sơn Son Thếp Vàng tràn khung viền
   ========================================================================== */
.t-son {
  overflow: clip;
  border-top: 1px solid rgba(232, 184, 95, .22);
}
.son-bg {
  --static-art: url('../art/bg-sonson.jpg');
  background-color: var(--center);
}
.son-bg::after {
  background:
    radial-gradient(ellipse 64% 78% at 34% 46%, rgba(26,8,4,.94) 0%, rgba(26,8,4,.88) 52%, rgba(26,8,4,.35) 82%, transparent 100%),
    linear-gradient(to bottom, rgba(26,8,4,.55), transparent 12% 88%, rgba(26,8,4,.60));
}
.t-son .wrap { position: relative; z-index: 1; }
.t-son .sec-head, .adv { width: 70%; }
#tv-title { max-width: 24ch; }

.adv { border-bottom: 1px solid var(--line); }
.adv-row { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-block: clamp(24px, 2.6vw, 34px); border-top: 1px solid var(--line); transition: background-color .3s; }
.adv-row::before { content: ""; position: absolute; left: calc(var(--gx) * -1); top: -1px; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease); }
.adv-row:not(.adv-headrow):hover { background: linear-gradient(90deg, rgba(251, 240, 228, .06), transparent 72%); }
.adv-row:not(.adv-headrow):hover::before { transform: scaleY(1); }
.adv-headrow { padding-block: 0 14px; border-top: 0; font-size: 0.84375rem; font-weight: 600; color: var(--muted); }
.adv-headrow span:nth-child(1) { grid-column: 1 / 5; }
.adv-headrow span:nth-child(2) { grid-column: 5 / 10; }
.adv-headrow span:nth-child(3) { grid-column: 10 / 13; }
.adv-org { grid-column: 1 / 5; display: grid; gap: 8px; align-content: start; padding-right: 12px; }
.adv-org h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 640; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; }
.adv-org p { font-size: 0.90625rem; line-height: 1.55; color: var(--muted); }
.adv-work { grid-column: 5 / 10; display: grid; gap: 8px; align-content: start; }
.adv-work h4 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.adv-work p { font-size: 0.96875rem; color: var(--muted); max-width: 56ch; }
.adv-state {
  grid-column: 10 / 13; display: flex; align-items: flex-start; gap: 10px; align-self: start; padding-top: 4px;
  font-family: var(--f-display); font-stretch: 92%; font-weight: 600; font-size: 0.9375rem; line-height: 1.45;
  color: var(--fg);
}
.adv-state .lamp-s { margin-top: 6px; }

/* ==========================================================================
   Hỗ trợ theo tình huống
   ========================================================================== */
.picker { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: stretch; }
.picker-list { grid-column: 1 / 6; display: grid; border-bottom: 1px solid var(--line); }
.pick { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px 18px 18px 0; border-top: 1px solid var(--line); font-size: 1.03125rem; line-height: 1.45; font-weight: 500; color: var(--muted); transition: color .25s var(--ease), padding-left .35s var(--ease); }
.pick::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); transition: background-color .25s, border-color .25s; }
.pick:hover { color: var(--fg); }
.pick[aria-selected="true"] { color: var(--fg); padding-left: 14px; font-weight: 600; }
.pick[aria-selected="true"]::before { background: var(--accent); border-color: var(--accent); }
.picker-panel {
  --pick-aura: #E3B04B;
  grid-column: 6 / 13; background: #191411; color: #F4ECE1; border-radius: var(--r);
  padding: clamp(28px, 3.4vw, 48px); display: flex; position: relative; overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(31, 26, 22, .45);
}
.picker-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(85% 65% at 100% 0%, color-mix(in srgb, var(--pick-aura) 34%, transparent), transparent 72%);
  transition: opacity .35s var(--ease);
}
.pp-in { position: relative; display: grid; gap: clamp(20px, 2.6vw, 32px); align-content: start; width: 100%; }
.pp-name { font-family: var(--f-display); font-stretch: 112%; font-weight: 640; font-size: clamp(1.5rem, 2.4vw, 2.125rem); line-height: 1.18; }
.pp-rows { display: grid; }
.pp-rows div { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-top: 1px solid rgba(244, 236, 225, .16); }
.pp-rows dt { font-size: 0.875rem; font-weight: 600; color: #BEB1A2; padding-top: 2px; }
.pp-rows dd { font-size: 1rem; line-height: 1.6; }
.pp-ref { color: var(--pick-aura); font-weight: 500; transition: color .35s var(--ease); }

/* ==========================================================================
   Nền tảng — Giấy Dó Lục Nhạt
   ========================================================================== */
.t-paper-cool { border-top: 1px solid var(--line); }
.found { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.found-col:first-child { grid-column: 1 / 7; }
.found-col:last-child { grid-column: 7 / 13; }
.found-col { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; }
.fitem .tlink { overflow-wrap: anywhere; }
.found-h { font-size: 0.9375rem; font-weight: 600; color: var(--accent); padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.fitem { display: grid; gap: 6px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.fmeta { font-family: var(--f-display); font-stretch: 90%; font-weight: 600; font-size: 0.875rem; color: var(--muted); }
.fitem h4 { font-family: var(--f-display); font-stretch: 106%; font-weight: 620; font-size: 1.25rem; line-height: 1.3; }
.fitem p:not(.fmeta) { font-size: 0.96875rem; color: var(--muted); max-width: 56ch; }
.tlink { justify-self: start; font-size: 0.90625rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tlink:hover { color: var(--accent); }

/* ==========================================================================
   Liên hệ — Đêm Khai Sắc tràn khung viền
   ========================================================================== */
.sec-contact {
  position: relative; overflow: clip;
  padding-top: clamp(104px, 12vw, 160px);
  padding-bottom: 0;
  border-top: 1px solid rgba(227, 176, 75, .2);
}
.finale-bg {
  --static-art: url('../art/bg-finale.jpg');
  background-color: var(--center);
}
.finale-bg::after {
  background:
    radial-gradient(ellipse 64% 75% at 30% 40%, rgba(13,9,22,.94) 0%, rgba(13,9,22,.85) 55%, transparent 100%),
    linear-gradient(to top, rgba(13,9,22,.96) 0%, rgba(13,9,22,.92) 7%, rgba(13,9,22,.48) 12.5%, transparent 19%);
}
.contact-wrap { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: end; padding-bottom: clamp(88px, 11vw, 148px); }
.contact-main { grid-column: 1 / 8; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.contact-main .sec-tag { grid-column: 1 / -1; padding-top: 0; margin: 0; }
.contact-main h2 { font-size: clamp(2.25rem, 5vw, 4.75rem); line-height: 1.08; max-width: 16ch; }
.contact-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.channels {
  grid-column: 8 / 13;
  background: rgba(13, 9, 22, .86);
  border: 1px solid rgba(244, 239, 248, .16);
  border-radius: var(--r);
  padding: 6px 24px;
}
.ch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.ch:first-child { border-top: 0; }
.ch :is(a, .ch-id) { display: grid; gap: 2px; min-width: 0; }
.ch :is(a, .ch-id) span, .ch-plain > span { font-size: 0.84375rem; color: var(--muted); }
.ch :is(a, .ch-id) strong { font-family: var(--f-display); font-stretch: 100%; font-weight: 620; font-size: clamp(1.0625rem, 1.45vw, 1.3125rem); overflow-wrap: anywhere; transition: color .2s; }
.ch a:hover strong { color: var(--accent); }
.copy { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 0.84375rem; font-weight: 600; border: 1px solid var(--line-2); transition: background-color .2s, border-color .2s; }
.copy:hover { background: var(--panel-2); border-color: color-mix(in srgb, var(--fg) 50%, transparent); }
.foot {
  display: flex; justify-content: space-between; gap: 16px; padding-block: 24px;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gx)) 1px no-repeat;
  font-size: 0.84375rem; color: #D4CBE0;
}
.foot a:hover { color: var(--fg); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--gold); color: #1E1505; font-size: 0.875rem; font-weight: 600; padding: 12px 18px; border-radius: 999px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Trạng thái chờ hiệu ứng mở đầu (có lối thoát nếu script lỗi) */
html.js [data-load] { opacity: 0; animation: failsafe 0s 2.6s forwards; }
@keyframes failsafe { to { opacity: 1; } }

/* ==========================================================================
   Màn hình vừa & nhỏ
   ========================================================================== */
@media (max-width: 1180px) {
  .hero-side p { grid-column: 1 / 8; }
  .hero-cta { grid-column: 8 / 13; }
  .board-legend { display: none; }
  .case-info { grid-column: 1 / 13; }
  .case-visual { grid-column: 1 / 13; }
  .works { grid-template-columns: repeat(min(var(--n), 2), minmax(0, 1fr)); }
  .work:nth-child(n+3) { margin-top: 28px; }
  .sec-tag { grid-column: 1 / 13; padding-top: 0; margin-bottom: 18px; }
  .sec-head-main { grid-column: 1 / 13; }
}

@media (max-width: 1280px) {
  .nav-links, .nav-pdf { display: none; }
  .menu-btn { display: inline-flex; min-height: 44px; }
}

@media (max-width: 1000px) {
  .adv-headrow { display: none; }
  .t-son .sec-head, .adv { width: 100%; }
  .stage-ornaments, .stage-ornaments-screen {
    inset: 0 0 auto; height: min(11%, 108px);
    mask-image: linear-gradient(to bottom, black 55%, transparent);
    opacity: var(--mobile-ornament-opacity, .35);
  }
  .adv-org { grid-column: 1 / 13; padding: 0 0 14px; }
  .adv-work { grid-column: 1 / 10; }
  .adv-state { grid-column: 10 / 13; }
  .picker-list { grid-column: 1 / 13; }
  .picker-panel { grid-column: 1 / 13; margin-top: 20px; }
  .contact-main { grid-column: 1 / 13; }
  .channels { grid-column: 1 / 13; }
}

/* Màn hình hẹp: đọc vấn đề và kết quả ngay trong cùng một thẻ. */
@media (max-width: 899px) {
  .hero-pin { height: auto; min-height: 0; }
  .hero-inner { padding-block: 32px 28px; gap: 28px; }
  .hero-side { grid-template-columns: 1fr; row-gap: 20px; }
  .hero-side p, .hero-cta { grid-column: 1 / -1; justify-content: flex-start; }
  .board { flex: none; }
  .board-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; height: auto; }
  .lane { min-height: 0; }
  .lane-head { margin-bottom: 4px; padding-bottom: 0; }
  .chip-x { display: none; }
  .chip { font-size: 0.84375rem; padding: 10px; }
  .chip-t { gap: 3px; }
  .chip-t > span { grid-area: auto; }
  .chip-t .t-a { opacity: 1; font-size: .94em; color: var(--muted); }
  .chip-ai.is-on .t-a { color: inherit; }
  .chip-t .t-b { opacity: 1; font-weight: 600; }
  .board-foot { flex-wrap: wrap; }
  .scrub { display: none; }
}

@media (max-width: 1000px) {
  .cl-step { position: static; }
}

@media (max-width: 720px) {
  .found { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .found > .found-col { grid-column: 1; }
  body { font-size: 1rem; }
  .case-band { --mural-height: clamp(180px, 44vw, 260px); }
  .son-bg::after {
    background: radial-gradient(ellipse 125% 65% at 45% 50%, rgba(26,8,4,.94) 0% 62%, rgba(26,8,4,.85) 80%, transparent 100%);
  }
  .works { grid-template-columns: 1fr; }
  .work:nth-child(n+2) { margin-top: 24px; }
  .agri-visual { grid-template-columns: 1fr; }
  .tv-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "prog prog" "acc wx" "todo todo" "cams cams"; }
  .nums div { padding-right: 8px; }
  .nums div + div { padding-left: 10px; }
  .adv-work, .adv-state { grid-column: 1 / 13; }
  .adv-state { padding-top: 14px; }
  .pp-rows div { grid-template-columns: 1fr; gap: 4px; }
  .channels { padding: 4px 18px; }
  .sec-contact { padding-top: 80px; }
  .contact-grid { padding-bottom: 64px; row-gap: 32px; }
  .ch { flex-wrap: wrap; }
  .hero-cta .btn, .contact-cta .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .brand { margin-right: auto; }
  .nav-actions > .btn-signal { display: none; }
  .brand-name { font-size: 1rem; }
}
@media (max-width: 440px) {
  .board-lanes { grid-template-columns: 1fr; row-gap: 16px; }
  .lane-head { font-size: 0.875rem; }
}

/* Laptop màn thấp: giữ đủ không gian cho 4 cột LED gọn trong một khung hình */
@media (min-width: 900px) and (max-height: 780px) {
  .lane { min-height: clamp(232px, 34vh, 290px); }
  .chip { padding-block: 7px; font-size: 0.8125rem; }
  .hero-side p { font-size: 0.9375rem; }
}
@media (min-width: 900px) and (max-height: 700px) {
  .lane .chip:nth-of-type(5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js [data-load] { opacity: 1; animation: none; }
  .board { --lane-p: 1; }
  .lane-head { opacity: 1; margin-bottom: auto; }
  .t-a, .cap-a { opacity: 0; }
  .t-b, .cap-b { opacity: 1; }
  .det { opacity: 1; }
  .scan, .pk, .cl-aside, .cl-ink { display: none; }
  .cl-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
  .cl-step { position: static; top: auto; visibility: visible !important; opacity: 1 !important; transform: none !important; box-shadow: none; }
  .cl-step-n { display: block; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 899px) {
  .lane-head { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 720px) {
  .cl-steps { grid-template-columns: 1fr; }
}

.t-tromvia,
.nav[data-world="tromvia"] {
  --center: #071B20;
  --edge: #122E36;
  --panel-solid: #0C252C;
  --panel-core: #102B33;
  --panel-partner: #13222E;
  --fg: #F3F8F8;
  --muted: #C2D7DA;
  --accent: #67D8DE;       /* Ngọc lam lụa bộ họa tiết (10.49:1 trên center) */
  --accent-2: #E596B2;     /* Hồng sen bộ họa tiết — CHỈ dùng trang trí & sợi dệt */
  --shuttle: #ECC36E;      /* Vàng tơ con thoi & tua rua (10.62:1 trên center) */
  --on-accent: #061A1E;    /* 10.61:1 trên --accent */
}

.sec-team {
  position: relative;
  padding-block: var(--sy) calc(var(--sy) * .88);
  background-color: var(--center);
  border-top: 1px solid rgba(236, 195, 110, .34);
  /* Dùng overflow-x: clip thay vì overflow: clip để position: sticky bên trong chạy đúng */
  overflow-x: clip;
}

/* Sân khấu nền 2.5D bộ họa tiết (6 lớp giữ nguyên) */
.team-bg {
  --static-art:url("../art/layers/tromvia/tromvia-bg.webp");
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--center);
}
.team-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(ellipse 78% 78% at 50% 50%, rgba(7, 27, 32, .86) 0%, rgba(7, 27, 32, .62) 66%, rgba(7, 27, 32, .22) 100%),
    linear-gradient(180deg, rgba(7, 27, 32, .48) 0%, transparent 10%, transparent 90%, rgba(7, 27, 32, .54) 100%);
}
.team-inner { position: relative; z-index: 5; }
.sec-team h2 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 620;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--fg);
  text-wrap: pretty;
  max-width: 22ch;
}
/* Thanh LPD (giữ nguyên nghĩa tiếng Việt trước, tiếng Anh nhỏ sau) */
.lpd-bar {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  align-items: center;
  padding: 11px 16px;
  margin-bottom: clamp(16px, 1.8vw, 22px);
  border-radius: 12px;
  background: rgba(12, 37, 44, .92);
  border: 1px solid rgba(236, 195, 110, .28);
}
.lpd-brand {
  display: grid;
  gap: 2px;
  padding-right: 16px;
  border-right: 1px solid rgba(194, 215, 218, .18);
}
.lpd-brand strong {
  font-family: var(--f-display);
  font-stretch: 108%;
  font-size: 1.03125rem;
  font-weight: 700;
  color: var(--fg);
}
.lpd-brand span { font-size: 0.8125rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.lpd-pill { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.lpd-key {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #071B20;
  border: 1px solid rgba(236, 195, 110, .48);
  font-family: var(--f-display);
  font-size: 0.84375rem;
  font-weight: 700;
  color: var(--shuttle);
  flex: none;
}
.lpd-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; line-height: 1.32; }
.lpd-vi { font-size: 0.90625rem; font-weight: 600; color: var(--fg); }
.lpd-en { font-size: 0.78125rem; color: var(--muted); }

/* ==========================================================================
   SÂN KHẤU CHÍNH: KHUNG DỆT 5 MẶT × 4 LƯỢT LỰC LƯỢNG
   Dùng ::after (flex child) thay padding-bottom để sticky đi trọn quãng ghim,
   KHÔNG tạo khoảng trống chết phía sau 5 thẻ mặt.
   ========================================================================== */
.loom-track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.loom-sticky {
  position: relative;
  z-index: 2;
}

@media (min-width: 1001px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  html.js .loom-track::after {
    content: "";
    display: block;
    height: 180px; /* Quãng ghim gọn ~20vh, lấp trọn bởi chuyển động dệt, 0px khoảng trống chết sau khi dệt xong */
    flex: none;
    pointer-events: none;
  }
  html.js .loom-sticky {
    position: sticky;
    top: calc(var(--nav-h) + 8px);
  }
}

.loom-stage {
  border: 1px solid rgba(236, 195, 110, .3);
  border-radius: 14px;
  background: rgba(8, 28, 34, .95);
  padding: clamp(12px, 1.4vw, 18px);
  display: grid;
  gap: 10px;
}

/* Thanh chọn 4 lượt lực lượng (hỗ trợ chuột + bàn phím + aria-pressed) */
.pass-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}
.pass-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pass-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(194, 215, 218, .26);
  background: rgba(12, 37, 44, .94);
  color: var(--muted);
  font-size: 0.84375rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.pass-btn:hover { border-color: rgba(236, 195, 110, .62); color: var(--fg); }
.pass-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.pass-btn .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pass-btn[aria-pressed="true"] .dot { background: var(--on-accent) !important; }

.loom-status {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--shuttle);
  line-height: 1.3;
  min-height: 18px;
  white-space: nowrap;
}

/* Khung vẽ SVG (desktop >= 46vh, mobile xoay dọc 420px) */
.loom-canvas-box { position: relative; width: 100%; }
.loom-svg-desktop {
  width: 100%;
  height: clamp(354px, 46.5vh, 422px);
  display: block;
}
.loom-svg-mobile { display: none; width: 100%; height: 420px; }

.loom-beam { stroke: rgba(236, 195, 110, .42); stroke-width: 2; }
.loom-selvedge { stroke: rgba(194, 215, 218, .22); stroke-width: 1; stroke-dasharray: 4 5; }
.warp-group, .weft-group { transition: opacity .26s var(--ease); }
.warp-group.is-dim, .weft-group.is-dim { opacity: .16; }
.weft-hit { cursor: pointer; }
.weft-hit:hover .d-row-name { fill: #ECC36E; }

.warp-line { fill: none; stroke-width: 2.3; stroke-linecap: round; }
.weft-shadow { fill: none; stroke: #071A20; stroke-width: 7.5; stroke-linecap: round; }
.weft-line { fill: none; stroke-width: 3.1; stroke-linecap: round; }

.loom-knot { transition: opacity .22s var(--ease); }
.loom-knot.is-dim { opacity: .12 !important; }
.loom-fabric { transition: opacity .4s var(--ease); pointer-events: none; }

/* Nhãn trong khung dệt: >= 13px thực tế trên 1366/1440, >= 12px thực tế trên 390 */
.d-col-hdr { font-family: var(--f-body); font-size: 0.96875rem; font-weight: 700; fill: #F3F8F8; }
.d-row-name { font-family: var(--f-body); font-size: 0.96875rem; font-weight: 700; fill: #F3F8F8; transition: fill .2s var(--ease), opacity .25s var(--ease); }
.d-row-when { font-family: var(--f-body); font-size: 0.90625rem; font-weight: 500; fill: #C2D7DA; transition: opacity .25s var(--ease); }

.m-face-lbl { font-family: var(--f-body); font-size: 0.78125rem; font-weight: 700; fill: #F3F8F8; }
.m-pass-num { font-family: var(--f-body); font-size: 0.78125rem; font-weight: 700; fill: #ECC36E; }
.m-pass-lbl { font-family: var(--f-body); font-size: 0.7625rem; font-weight: 600; fill: #F3F8F8; }

/* ==========================================================================
   5 THẺ MẶT BÀI TOÁN (chỉ câu hỏi + 1 dòng vai trò, không thêm mô tả)
   ========================================================================== */
.faces-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.face-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 13px 12px;
  border-radius: 10px;
  background: var(--panel-solid);
  border: 1px solid rgba(194, 215, 218, .22);
  transition: border-color .24s var(--ease), background-color .24s var(--ease), opacity .24s var(--ease), transform .24s var(--ease);
}
.face-card.is-lead {
  background: var(--panel-core);
  border-color: rgba(236, 195, 110, .42);
}
.face-card.is-lit {
  border-color: rgba(236, 195, 110, .92);
  background: #12333C;
  transform: translateY(-2px);
}
.face-card.is-dim { opacity: .34; }
.face-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.face-num {
  font-family: var(--f-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .01em;
}
.face-card.is-lead .face-num { color: var(--shuttle); }
.face-seal { width: 22px; height: 22px; flex: none; opacity: .9; }
.face-q {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.42;
  color: var(--fg);
}
.face-role {
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid rgba(194, 215, 218, .14);
  font-size: 0.78125rem;
  line-height: 1.35;
  color: var(--muted);
}
.face-card.is-lead .face-role { color: var(--shuttle); font-weight: 600; }

/* ==========================================================================
   DẢI LỰC LƯỢNG VÀO THÊM (Lượt 2–4) + 1 DÒNG GHI CHÚ HỢP TÁC
   ========================================================================== */
.forces-band {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.forces-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.force-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--panel-partner);
  border: 1px solid rgba(229, 150, 178, .26);
  display: grid;
  align-content: start;
  gap: 6px;
  transition: border-color .24s var(--ease), background-color .24s var(--ease), opacity .24s var(--ease);
}
.force-card.is-picked {
  border-color: rgba(236, 195, 110, .86);
  background: #17303C;
}
.force-card.is-dim { opacity: .44; }
.force-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.force-tag {
  font-family: var(--f-display);
  font-size: 0.78125rem;
  font-weight: 700;
  color: var(--shuttle);
  letter-spacing: .02em;
}
.force-card h3 {
  font-family: var(--f-display);
  font-stretch: 106%;
  font-size: 1.03125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg);
}
.force-card p {
  font-size: 0.8625rem;
  line-height: 1.5;
  color: var(--muted);
}
.forces-grid.forces-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.partners-title {
  font-family: var(--f-display);
  font-stretch: 106%;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fg);
}
.force-card .partner-seal { width: 28px; height: 28px; flex: none; }
.coop-note {
  font-size: 0.84375rem;
  line-height: 1.45;
  color: var(--muted);
  padding-left: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1330px) {
  .team-bg [data-layer="04-tassel-left"], .team-bg [data-layer="05-tassel-right"] { display: none; }
}
@media (max-width: 1120px) {
  .sec-team .sec-tag { grid-column: 1 / 13; padding-top: 0; margin-bottom: 8px; }
  .sec-team .sec-head-main { grid-column: 1 / 13; }
  .lpd-bar { grid-template-columns: 1fr; gap: 10px; }
  .lpd-brand { padding-right: 0; padding-bottom: 8px; border-right: 0; border-bottom: 1px solid rgba(194, 215, 218, .18); }
  .faces-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forces-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .loom-stage { padding: 12px; gap: 8px; }
  .loom-svg-desktop { display: none; }
  .loom-svg-mobile { display: block; height: 420px; }
  .faces-grid { grid-template-columns: 1fr; gap: 9px; }
  .face-card { padding: 12px 13px; }
  .pass-pills { gap: 6px; }
  .pass-btn { font-size: 0.78125rem; padding: 5px 10px; min-height: 32px; }
  .loom-status { font-size: 0.78125rem; white-space: normal; }
}

/* Tắt chuyển động: gỡ quãng ghim, hiện tấm vải đã dệt xong, tĩnh */
@media (prefers-reduced-motion: reduce) {
  html.js .loom-track::after { display: none !important; height: 0 !important; }
  html.js .loom-sticky { position: static !important; }
}

/* ==========================================================================
   2.5D V3 — BƯỚC 2: ĐỒNG BỘ NGÔN NGỮ NÉT ĐỘI NGŨ CHO CẢ 5 CẢNH
   DELCO · AGRIBEACON · RHINELAB · TƯ VẤN · LIÊN HỆ
   Làm hoàn toàn trong proposals/25d-v3/ — không sửa assets/css/styles.css chính.
   - Bậc nét: 1.2 / 1.6 / 2.2px · vector-effect: non-scaling-stroke
   - 4 tầng sâu: 0.10 (tranh xa) / 0.25 (tranh gần) / 0.45 (lớp nét) / 0.70 (viền 2 mép)
   - Viền hai mép chỉ hiện > 720px; <= 720px ẩn hoàn toàn viền mép, giữ đường nối & nẹp chân
   - Nền tối (#tu-van, #lien-he): nét nằm trọn vùng an toàn, không tăng backdropL dưới chữ
   ========================================================================== */

/* Bỏ lớp viền ảnh mờ cũ >=1500px trên các cảnh V3 để nhường chỗ cho viền vector sắc */
@media (min-width: 1500px) {
  .case-band.v3-enabled:has(.stage-ready)::before {
    display: none;
  }
}

.v3-enabled .v3-svg path,
.v3-enabled .v3-svg polygon,
.v3-enabled .v3-svg line,
.v3-enabled .v3-svg rect,
.v3-enabled .v3-svg circle,
.v3-enabled .v3-svg polyline {
  vector-effect: non-scaling-stroke;
}

/* ==========================================================================
   KHUNG CHUNG CHO CẢ 5 CẢNH (Lớp nét A · Viền hai mép B · Đường nối · Nẹp chân)
   ========================================================================== */
.case-band.v3-enabled .case-mural {
  position: relative;
  overflow: hidden;
}

/* Lớp nét vector trên mural (tầng sâu 0.45) — tan sạch trước khi tới chữ */
.v3-linework-wrap {
  position: absolute;
  inset: -16% -4%;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  mask-image: linear-gradient(to bottom, black 0%, black 66%, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 66%, transparent 88%);
}

.t-agri.v3-enabled .v3-linework-wrap {
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 90%);
}

.v3-linework-ptr {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.v3-lines-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Đường nối chân mural trên vùng nội dung dự án (giữ trên cả mobile <=720px) */
.v3-mural-seam {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: -10px auto 14px;
  padding-inline: var(--gx);
  pointer-events: none;
}

.v3-mural-seam svg {
  width: 100%;
  height: 22px;
  display: block;
}

/* Viền trang trí hai mép (tầng sâu 0.70) — CHỈ HIỆN TRÊN > 720px, ngoài lưới đọc .wrap */
.v3-rails {
  position: absolute;
  inset: calc(var(--mural-height, 0px) - 18px) 0 0 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 95%, transparent 100%);
}

.t-son.v3-enabled .v3-rails {
  inset: 44px 0 44px 0;
}

.t-night.v3-enabled .v3-rails {
  inset: 48px 0 36px 0;
}

.v3-rail {
  position: absolute;
  top: -88px;
  bottom: -88px;
  width: 50px;
  pointer-events: none;
}

.v3-rail-left { left: 8px; }
.v3-rail-right { right: 8px; }

.v3-rail-ptr {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.v3-rail svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Laptop 1366px: thu gọn viền còn 34px để giữ khoảng thở >= 16px tới cột chữ .wrap */
@media (max-width: 1410px) {
  .v3-rail { width: 34px; }
  .v3-rail-left { left: 4px; }
  .v3-rail-right { right: 4px; }
}

/* Màn trung bình 721–1180px: chỉ giữ thân trục mảnh sát mép, ẩn nhánh rộng */
@media (max-width: 1180px) and (min-width: 721px) {
  .v3-rail { width: 22px; top: -48px; bottom: -48px; }
  .v3-rail-left { left: 2px; }
  .v3-rail-right { right: 2px; }
  .v3-rail .v3-rail-wide { display: none; }
}

/* BẮT BUỘC <= 720px: ẨN HOÀN TOÀN VIỀN HAI MÉP (09/10-rail), GIỮ ĐƯỜNG NỐI & NẸP CHÂN */
@media (max-width: 720px) {
  .v3-rails {
    display: none !important;
  }
  .v3-linework-wrap {
    inset: -12% -2%;
  }
  .v3-mural-seam {
    margin: -6px auto 10px;
  }
}

/* Nẹp chân phần chốt khung (giữ ở mọi độ rộng màn hình, không đè chữ) */
.v3-foot-trim {
  margin-top: clamp(30px, 4vw, 46px);
  pointer-events: none;
}

.v3-foot-trim svg {
  width: 100%;
  height: 34px;
  display: block;
}

/* Khóa hình thoi tinh tế trên đường ngăn .works cho cả 3 dự án */
.case-band.v3-enabled .works {
  position: relative;
}
.case-band.v3-enabled .works::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--center);
  border: 1.4px solid #C28A26;
  pointer-events: none;
}
.t-delco.v3-enabled .works { border-top: 1px solid rgba(10, 90, 78, .24); }
.t-agri.v3-enabled .works  { border-top: 1px solid rgba(23, 63, 134, .24); }
.t-rhine.v3-enabled .works { border-top: 1px solid rgba(132, 38, 70, .24); }

/* ==========================================================================
   1. DELCO — KHUNG TỐI BẢN TIN CÔNG TRƯỜNG + 3 NHÃN SƠ ĐỒ (>=11px, đổi theo stale)
   ========================================================================== */
.t-delco.v3-enabled .tv {
  position: relative;
  background: #081915;
  border: 1px solid rgba(236, 195, 110, .38);
  border-radius: 14px;
  padding: 13px;
  box-shadow:
    0 0 0 1px rgba(92, 196, 161, .14) inset,
    0 28px 54px -26px rgba(6, 36, 29, .54);
}
.t-delco.v3-enabled .tv::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 10px;
  border: 1px solid rgba(92, 196, 161, .14);
  pointer-events: none;
}
.t-delco.v3-enabled .tv-screen {
  position: relative;
  background: #061310;
  border: 1px solid rgba(92, 196, 161, .22);
  border-radius: 9px;
  padding: clamp(13px, 1.5vw, 18px);
  color: #F2F8F5;
}
.t-delco.v3-enabled .tv-bar {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(236, 195, 110, .24);
}
.t-delco.v3-enabled .tv-title { gap: 9px; color: #F2F8F5; }
.tv-master-seal { width: 28px; height: 28px; flex: none; }
.t-delco.v3-enabled .tv-lamp { background: #5CC4A1; }
.t-delco.v3-enabled .tv-clock {
  color: #C7DFD7;
  padding: 3px 9px;
  border-radius: 999px;
  background: #0B211C;
  border: 1px solid rgba(92, 196, 161, .28);
  font-size: 0.8125rem;
}

/* Sơ đồ luồng bản tin kèm hàng 3 nhãn chữ >= 11px trên cả desktop & 390px */
.site-flow {
  margin-bottom: 11px;
  padding: 6px 10px 8px;
  border-radius: 7px;
  background: #081915;
  border: 1px solid rgba(92, 196, 161, .20);
  display: grid;
  gap: 5px;
}
.site-flow svg {
  width: 100%;
  height: auto;
  aspect-ratio: 680 / 68;
  display: block;
}
.site-flow-labels {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(92, 196, 161, .16);
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 600;
  color: #D7E8E2;
}
.site-lbl-src  { justify-self: start; color: #D7E8E2; }
.site-lbl-gate { justify-self: center; color: #ECC36E; text-align: center; }
.site-lbl-out  { justify-self: end; color: #D7E8E2; text-align: right; transition: color .25s var(--ease); }

.site-gate-cut { opacity: 0; transition: opacity .25s var(--ease); }
.site-src-path, .site-src-node, .site-gate-outer, .site-gate-inner, .site-gate-core {
  transition: opacity .28s var(--ease), stroke .28s var(--ease), fill .28s var(--ease);
}

/* Trạng thái giả lập mất nguồn: ngắt sợi cũ & đổi nhãn đầu ra trực quan */
.t-delco.v3-enabled .tv[data-state="stale"] .site-src-path {
  opacity: .30;
  stroke: #ECC36E;
  stroke-dasharray: 5 5 !important;
  stroke-dashoffset: 0 !important;
}
.t-delco.v3-enabled .tv[data-state="stale"] .site-src-node { opacity: .36; }
.t-delco.v3-enabled .tv[data-state="stale"] .site-gate-outer { stroke: #ECC36E; fill: #241D0E; }
.t-delco.v3-enabled .tv[data-state="stale"] .site-gate-inner { stroke: #ECC36E; fill: #1A160B; }
.t-delco.v3-enabled .tv[data-state="stale"] .site-gate-core  { opacity: 0; }
.t-delco.v3-enabled .tv[data-state="stale"] .site-gate-cut   { opacity: 1; }
.t-delco.v3-enabled .tv[data-state="stale"] .site-lbl-out    { color: #ECC36E; }

.t-delco.v3-enabled .tv-tile {
  background: #0B211C;
  border: 1px solid rgba(92, 196, 161, .24);
  border-top: 2px solid #5CC4A1;
  border-radius: 7px;
  padding: 11px 12px;
}
.t-delco.v3-enabled .tv-tile:nth-child(3) { border-top-color: #A5DDD0; }
.t-delco.v3-enabled .tv-todo { border-top-color: #ECC36E; }
.t-delco.v3-enabled .tv-h {
  display: flex; align-items: center; gap: 8px;
  color: #C7DFD7; font-size: 0.78125rem; font-weight: 600;
}
.tv-tile-seal { width: 24px; height: 24px; flex: none; }
.t-delco.v3-enabled .tv-big { color: #F2F8F5; }
.t-delco.v3-enabled .tv-s   { color: #CEE3DC; }
.t-delco.v3-enabled .bar    { color: #D7E8E2; }
.t-delco.v3-enabled .bar b {
  height: 8px; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(6, 19, 16, .65) 18px 20px),
    rgba(92, 196, 161, .14);
  border: 1px solid rgba(92, 196, 161, .26);
}
.t-delco.v3-enabled .bar b::after {
  border-radius: 1px;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(6, 19, 16, .55) 18px 20px),
    linear-gradient(90deg, #246B55 0%, #5CC4A1 82%, #ECC36E 100%);
}
.t-delco.v3-enabled .bar:nth-of-type(2) b::after {
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(6, 19, 16, .55) 18px 20px),
    linear-gradient(90deg, #246B55 0%, #A5DDD0 84%, #ECC36E 100%);
}
.t-delco.v3-enabled .tv-todo li { color: #D7E8E2; padding-left: 16px; }
.t-delco.v3-enabled .tv-todo li::before {
  width: 6px; height: 6px; top: .48em;
  border: 1.3px solid #ECC36E; border-radius: 1px; transform: rotate(45deg);
}
.t-delco.v3-enabled .tv-cams span {
  background: #081915; border: 1px solid rgba(92, 196, 161, .28);
  border-radius: 6px; color: #D6E8E2; padding: 6px 8px;
}
.t-delco.v3-enabled .tv-cams span::after { display: none; }
.t-delco.v3-enabled .tv-cams i { background: #5CC4A1; position: relative; z-index: 2; }
.t-delco.v3-enabled .tv-cams .cam-label { position: relative; z-index: 2; font-style: normal; font-weight: 500; }
.cam-reticle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.t-delco.v3-enabled .tv[data-state="stale"] .tv-lamp { background: #ECC36E; }
.t-delco.v3-enabled .tv[data-state="stale"] [data-src] {
  background: #121B16; border-color: rgba(236, 195, 110, .42); border-top-color: #ECC36E;
}
.t-delco.v3-enabled .tv-stale {
  color: #F2F8F5; border-left: 2px solid #ECC36E; background: rgba(236, 195, 110, .12);
}
.t-delco.v3-enabled .switch { color: #E7F3EF; }
.t-delco.v3-enabled .switch-track { background: #14332B; border: 1px solid rgba(92, 196, 161, .34); }
.t-delco.v3-enabled .switch-knob { background: #E7F3EF; top: 2px; left: 2px; }
.t-delco.v3-enabled .switch[aria-checked="true"] .switch-track { background: #ECC36E; border-color: #ECC36E; }
.t-delco.v3-enabled .switch[aria-checked="true"] .switch-knob { background: #071714; }
.t-delco.v3-enabled .tv-note { color: #C7DFD7; }

/* ==========================================================================
   2. AGRIBEACON — KHUNG TỐI NHẬN DIỆN LÁ (.vis) & BỘ ĐỊNH TUYẾN (.router)
      Đồng bộ ngôn ngữ Đội ngũ: sơn mài lam đêm #071324, viền vàng tơ #ECC36E,
      mực hoa lam #2E5FA8 / #6CA5F0 / #B7D5FA, tắt loop vô hạn thừa
   ========================================================================== */
.t-agri.v3-enabled .vis,
.t-agri.v3-enabled .router {
  position: relative;
  background: #071324;
  border: 1px solid rgba(236, 195, 110, .38);
  border-radius: 14px;
  padding: 13px;
  gap: 10px;
  box-shadow:
    0 0 0 1px rgba(108, 165, 240, .16) inset,
    0 26px 52px -26px rgba(7, 25, 62, .52);
}
.t-agri.v3-enabled .vis::before,
.t-agri.v3-enabled .router::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 10px;
  border: 1px solid rgba(108, 165, 240, .14);
  pointer-events: none;
}
.v3-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(236, 195, 110, .24);
  font-family: var(--f-display);
  font-stretch: 96%;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #EBF3FD;
}
.v3-panel-seal,
.t-agri.v3-enabled .vis .v3-panel-seal,
.t-agri.v3-enabled .router .v3-panel-seal,
.t-rhine.v3-enabled .net .v3-panel-seal {
  width: 24px;
  height: 24px;
  flex: none;
}
.t-agri.v3-enabled .vis-view {
  position: relative;
  z-index: 1;
  min-height: 0;
  flex: 1;
  border-radius: 8px;
  background: #06101E;
  border: 1px solid rgba(108, 165, 240, .24);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.t-agri.v3-enabled .vis-view svg {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 236;
  display: block;
}
.t-agri.v3-enabled .router-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  border-radius: 8px;
  background: #06101E;
  border: 1px solid rgba(108, 165, 240, .24);
  padding: 6px 4px;
  display: flex;
  align-items: center;
}
.t-agri.v3-enabled .router-stage svg {
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 198;
  display: block;
}
.t-agri.v3-enabled .vis figcaption,
.t-agri.v3-enabled .router figcaption {
  position: relative;
  z-index: 1;
  color: #C8DCF5;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ==========================================================================
   3. RHINELAB — KHUNG TỐI SƠ ĐỒ MẠNG LƯỚI LAB (.net)
      Sơn mài mận trầm #140D15, viền vàng tơ #ECC36E, mực #9A4362/#E596B2/#67BFC3
   ========================================================================== */
.t-rhine.v3-enabled .net {
  position: relative;
  background: #140D15;
  border: 1px solid rgba(236, 195, 110, .38);
  border-radius: 14px;
  padding: 14px;
  gap: 10px;
  box-shadow:
    0 0 0 1px rgba(229, 150, 178, .15) inset,
    0 26px 52px -26px rgba(56, 18, 36, .48);
}
.t-rhine.v3-enabled .net::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 10px;
  border: 1px solid rgba(229, 150, 178, .14);
  pointer-events: none;
}
.t-rhine.v3-enabled .v3-panel-head {
  color: #F6EDF2;
}
.t-rhine.v3-enabled .net-stage {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  background: #100A11;
  border: 1px solid rgba(229, 150, 178, .22);
  padding: 8px 6px;
}
.t-rhine.v3-enabled .net-stage svg {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  height: auto;
  aspect-ratio: 420 / 226;
  display: block;
}
/* Giữ cỡ chữ hiển thị thật >= 11px trên mobile 390px và cân đối ~14-15px trên desktop 1440px (ID-scoped để thắng inline SVG <style>) */
#case-rhine #rhine-net-svg .net-lbl      { font-size: 0.65625rem; }
#case-rhine #rhine-net-svg .net-core-lbl { font-size: 0.6875rem; }
#case-rhine #rhine-net-svg .net-sub      { font-size: 0.59375rem; }

@media (max-width: 720px) {
  #case-rhine #rhine-net-svg .net-lbl      { font-size: 0.9375rem; }
  #case-rhine #rhine-net-svg .net-core-lbl { font-size: 0.96875rem; }
  #case-rhine #rhine-net-svg .net-sub      { font-size: 0.925rem; }
}

/* ==========================================================================
   4. TƯ VẤN (SON) — VÀNH TRỐNG ĐỒNG VECTOR QUAY KHÁC TỐC ĐỘ (vùng an toàn >=70%)
   ========================================================================== */
.t-son.v3-enabled {
  position: relative;
}
/* Vành trống có vạch chia nằm TRONG .stage-ornaments -> tự kế thừa mask >=70% desktop
   và dải trên opacity 0.35 ở <=1000px -> tuyệt đối không tăng backdropL dưới chữ .adv! */
.v3-son-drum-wrap {
  position: absolute;
  right: -14%;
  top: 50%;
  translate: 0 -50%;
  width: clamp(340px, 46vw, 740px);
  aspect-ratio: 1 / 1;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}
.v3-son-drum-rot {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: transform;
}
.v3-son-drum-rot svg {
  width: 100%;
  height: 100%;
  display: block;
}
.t-son.v3-enabled .v3-foot-trim {
  width: 70%;
  margin-top: clamp(24px, 3vw, 36px);
}
@media (max-width: 1000px) {
  .t-son.v3-enabled .v3-foot-trim { width: 100%; }
  .v3-son-drum-wrap {
    right: -10%;
    top: 40%;
    width: 260px;
  }
}

/* ==========================================================================
   5. LIÊN HỆ (NIGHT) — VIỀN DẢI LỤA ĐÁY 22% & KHỐI GHI CÔNG THỐNG NHẤT CHÂN TRANG
   ========================================================================== */
.t-night.v3-enabled {
  position: relative;
}
/* Nằm trong .finale-bg trước lớp vùng thở ::after, giới hạn 22% đáy -> 0 tăng backdropL dưới chữ */
.v3-night-silk-wrap {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0;
  height: 22%;
  z-index: 3;
  pointer-events: none;
  will-change: transform;
  mask-image: linear-gradient(to bottom, transparent 0%, black 24%, black 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 24%, black 78%, transparent 100%);
}
.v3-night-silk-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.t-night.v3-enabled .v3-foot-trim {
  margin-top: 0;
  margin-bottom: 14px;
}

/* Khối ghi công thống nhất MỌI CẢNH ở chân trang (đặt ngay sau #lien-he -> không che 22% dải lụa đáy) */
.v3-footer-credits {
  position: relative;
  z-index: 2;
  background: #090611;
  border-top: 1px solid rgba(236, 195, 110, .26);
  padding-block: 22px 28px;
}
.v3-credits-inner {
  display: grid;
  gap: 10px;
}
.v3-credits-head {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ECC36E;
  line-height: 1.5;
}
.v3-credits-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 20px;
  font-size: 0.78125rem;
  line-height: 1.5;
  color: #CFC7DE;
}
.v3-credits-list li strong {
  color: #F6F2FA;
  font-weight: 600;
}
.v3-credits-list li em {
  font-style: italic;
  color: #E7DFF4;
}

@media (max-width: 1000px) {
  .v3-credits-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   MOBILE <= 720px & GIẢM CHUYỂN ĐỘNG
   ========================================================================== */
@media (max-width: 720px) {
  .t-delco.v3-enabled .tv { padding: 10px; }
  .t-delco.v3-enabled .tv-bar { gap: 8px; }
  .tv-master-seal { width: 24px; height: 24px; }
  .site-flow { margin-bottom: 9px; padding: 6px 8px 7px; }
  .site-flow-labels { font-size: 0.71875rem; gap: 6px; }
  .t-delco.v3-enabled .tv-cams { grid-template-columns: repeat(2, 1fr); }
  .t-agri.v3-enabled .vis,
  .t-agri.v3-enabled .router,
  .t-rhine.v3-enabled .net { padding: 10px; }
  .v3-credits-list { grid-template-columns: 1fr; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-linework-wrap,
  .v3-rail,
  .v3-son-drum-wrap,
  .v3-son-drum-rot,
  .v3-night-silk-wrap {
    transform: none !important;
  }
}

@media (max-width: 720px) {
  .forces-grid.forces-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Dịch vụ: danh sách 5 việc nhận làm ---------- */
.svc-list {
  list-style: none; margin: 8px 0 56px; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px;
}
.svc { padding: 20px 0 22px; border-top: 1px solid var(--line-2); display: grid; align-content: start; gap: 8px; }
.svc h3 { font-family: var(--f-display); font-stretch: 106%; font-weight: 640; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.25; color: var(--fg); }
.svc p { font-size: 0.96875rem; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.svc .svc-proof { font-size: 0.875rem; font-weight: 600; color: color-mix(in srgb, var(--accent) 82%, #000); }
.picker-title { font-family: var(--f-display); font-stretch: 106%; font-weight: 640; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; color: var(--fg); margin-bottom: 20px; }
.contact-steps { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); max-width: 60ch; margin-top: 12px; }
@media (max-width: 1120px) { .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .svc-list { grid-template-columns: 1fr; margin-bottom: 40px; } }

/* ---------- LPD Labs: thẻ nhận diện (đội 5 người + ý nghĩa tên) ---------- */
.lab-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0;
  margin-bottom: clamp(16px, 1.8vw, 22px);
  border-radius: 12px;
  background: rgba(12, 37, 44, .92);
  border: 1px solid rgba(236, 195, 110, .28);
}
.lab-roster { padding: 18px 22px; border-right: 1px solid rgba(194, 215, 218, .18); }
.lab-name {
  font-family: var(--f-display); font-stretch: 108%; font-size: 1.125rem; font-weight: 700; color: var(--fg);
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px;
}
.lab-name span { font-family: var(--f-body); font-size: 0.84375rem; font-weight: 600; color: var(--shuttle); }
.roster { list-style: none; margin: 0; padding: 0; display: grid; }
.roster li { display: grid; gap: 1px; padding: 8px 0 8px 16px; position: relative; border-top: 1px solid rgba(194, 215, 218, .12); }
.roster li::before { content: ""; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; transform: rotate(45deg); background: var(--shuttle); }
.roster b { font-size: 0.9375rem; font-weight: 600; color: var(--fg); }
.roster span { font-size: 0.8625rem; line-height: 1.45; color: var(--muted); }
.lab-meaning { margin: 0; padding: 18px 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-content: center; }
.lab-meaning dt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--f-display); font-stretch: 106%; font-size: 0.96875rem; font-weight: 700; color: var(--fg); }
.lab-meaning dt i { font-family: var(--f-body); font-style: normal; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.lab-meaning dd { margin: 6px 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.lpd-key.lpd-key-wide { width: auto; padding: 0 6px; }
@media (max-width: 1120px) {
  .lab-card { grid-template-columns: 1fr; }
  .lab-roster { border-right: 0; border-bottom: 1px solid rgba(194, 215, 218, .18); }
}
@media (max-width: 720px) {
  .lab-roster, .lab-meaning { padding: 16px; }
  .lab-meaning { grid-template-columns: 1fr; }
}

/* Các khối nội dung dùng lại màu và kiểu chữ của từng phần. */
.hero-cta .btn-ghost, .contact-cta .btn-ghost { color: var(--fg); background: color-mix(in srgb, var(--edge) 72%, transparent); border-color: color-mix(in srgb, var(--fg) 36%, transparent); }
.story-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--gap); margin-bottom: 24px; }
.story-metrics > div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; border-top: 1px solid var(--line); padding-block: 20px; }
.story-metrics dd { order: -1; font: 650 clamp(25px,3vw,48px)/1.14 var(--f-display); color: var(--accent); }
#ket-qua { padding-block: clamp(40px,6vw,84px); }
#khi-nao .rules { margin-top: 32px; }
#khi-nao .rules ul, .story-roster { padding-inline-start: 1.5em; }
.story-roster { list-style: decimal; max-width: 72ch; }
.story-roster li { margin-bottom: 12px; }
.lab-meaning { max-width: 84ch; margin: 20px auto; }
.measure { width: 100%; border-collapse: collapse; margin-block: 12px; }
.measure th, .measure td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
.case-body > h4 { margin-top: 32px; }
#tu-van .sec-head h3 { font: 650 clamp(28px,4vw,56px)/1.1 var(--f-display); }
.case-info > .sec-tag { grid-column: 1; padding: 0; margin: 0; }
#ve-toi details { margin-top: 24px; }
#ve-toi summary { cursor: pointer; }
.counting { position: relative; color: transparent; }
.counter-overlay { position: absolute; inset: 0; color: var(--fg); }
.mobile-zalo { display: none; }
@media (prefers-reduced-motion: reduce) { .counting { color: inherit; } .counter-overlay { display: none; } }
@media (max-width: 768px) {
  :root { --sy: 52px; }
  .sec-head { margin-bottom: 28px; }
  .story-metrics { grid-template-columns: 1fr; gap: 0; }
  .picker-list .pick { padding-block: 12px; }
  .picker-panel { scroll-margin-top: 12px; min-width: 0; }
  .mobile-zalo:not([hidden]) { box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
  .nums dd { font-size: clamp(1.5rem, 7vw, 2.25rem); }
  .nums div { min-width: 0; }
  .nums dt { overflow-wrap: anywhere; }
  .measure, .measure tbody, .measure tr { display: block; }
  .measure thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .measure tr { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; padding: 12px; }
  .measure td { display: grid; grid-template-columns: minmax(84px, .7fr) minmax(0,1.3fr); gap: 10px; padding: 6px 0; border: 0; }
  .measure td::before { content: attr(data-label); font-weight: 600; }
  .foot { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .nav-row { gap: 8px; }
  .brand-name { font-size: clamp(0.875rem,3.8vw,1.0625rem); }
}

/* Dải kết quả ngắn ở màn đầu, liên kết với phần số liệu chi tiết. */
.hero-proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px var(--gap);
  margin-top: clamp(20px, 3vw, 36px);
  padding-block: 16px;
  border-top: 1px solid var(--line-2);
  color: var(--fg);
}
.hero-proof > span { display: grid; gap: 4px; align-content: start; }
.hero-proof strong { font-family: var(--f-display); font-size: clamp(1.0625rem, 1.7vw, 1.4375rem); font-weight: 650; color: var(--accent); }
.hero-proof small { font-size: 0.8125rem; color: var(--muted); }
.hero-proof:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.hero-proof:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 640px) {
  .nav-row { gap: 8px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-name { font-size: clamp(0.8125rem, 3.6vw, 1rem); }
  .nav-actions > .btn-signal { display: none; }
  .menu-btn { white-space: nowrap; padding-inline: 12px; flex-shrink: 0; }
  .hero-title { font-size: clamp(1.5625rem, 7.1vw, 2.4375rem); }
  .hero-proof { grid-template-columns: 1fr; gap: 8px; }
  .hero-proof > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .hero-proof strong { font-size: 1rem; }
  .hero-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(14, 11, 9, .88), rgba(14, 11, 9, .84) calc(100% - 44px), rgba(14, 11, 9, .10));
    pointer-events: none;
  }
}

@media (min-width: 641px) {
  .hero-side > p { position: relative; isolation: isolate; }
  .hero-side > p::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -8px -10px;
    background: rgba(14, 11, 9, .84);
    box-shadow: 0 0 18px 8px rgba(14, 11, 9, .65);
    border-radius: var(--r);
    pointer-events: none;
  }
  .hero-proof {
    padding-inline: 16px;
    background: linear-gradient(90deg, rgba(14, 11, 9, .92), rgba(14, 11, 9, .84));
    border-radius: var(--r);
  }
}


/* Trên điện thoại, nội dung luôn đọc được ngay cả trước khi JavaScript tải. */
@media (max-width: 899px) {
  html.js [data-load] { opacity: 1; animation: none; }
  .hero-title .ln, .ln-in { opacity: 1; transform: none; }
}

@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .sec-head .sec-tag::after, .case-info > .sec-tag::after {
    content: "";
    width: 28px;
    height: 2px;
    flex: none;
    border-radius: 1px;
    background: var(--accent);
    transform-origin: left;
    opacity: .85;
  }
  .sec-head.mobile-in-view .sec-tag::after,
  .case-info.mobile-in-view > .sec-tag::after {
    animation: mobile-ink .65s var(--ease) both;
  }
  .story-metrics > .mobile-in-view dd,
  .hero-proof.mobile-in-view strong,
  .cl-step.mobile-in-view .cl-step-n,
  .case-visual.mobile-in-view,
  .face-card.mobile-in-view,
  .force-card.mobile-in-view {
    animation: mobile-arrival .52s var(--ease) both;
  }
  .hero-proof.mobile-in-view > span:nth-child(2) strong { animation-delay: .07s; }
  .hero-proof.mobile-in-view > span:nth-child(3) strong { animation-delay: .14s; }
  .btn:active, .menu-btn:active, .pick:active { transform: scale(.98); }
}
@keyframes mobile-ink {
  from { transform: scaleX(.25); opacity: .55; }
  to { transform: scaleX(1); opacity: .85; }
}
@keyframes mobile-arrival {
  from { transform: translateY(7px); }
  to { transform: translateY(0); }
}

@media (max-width: 640px) {
  .hero .hero-inner { padding-top: 32px; padding-bottom: 72px; }
  .hero-bg::after {
    background: linear-gradient(to top, rgba(14,11,9,.72), transparent 4%, transparent 18%, rgba(14,11,9,.7) 34%, #0E0B09 60%);
  }
  .hero-inner::before {
    background: linear-gradient(to bottom, rgba(14,11,9,.88), rgba(14,11,9,.84) calc(100% - 72px), transparent);
  }
}
@media (max-width: 768px) {
  #khi-nao { padding-top: 36px; }
}

/* Tầng đọc nhanh và phần mở rộng theo nhu cầu. */
.story-disclosure { margin-top: 22px; border-block: 1px solid var(--line-2); }
.story-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 15px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
}
.story-disclosure > summary::-webkit-details-marker { display: none; }
.story-disclosure > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.3125rem;
  line-height: 1;
}
.story-disclosure[open] > summary::after { content: "−"; }
.story-disclosure > summary:hover { color: var(--accent); }
.story-disclosure > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r); }
.story-disclosure-body { padding-block: 12px 24px; }
.story-disclosure .detail-copy { display: grid; gap: 10px; max-width: 76ch; margin-bottom: 20px; color: var(--muted); }
.story-disclosure .detail-copy h4 { color: var(--fg); font-size: 1rem; }
.story-disclosure .detail-copy .rules { margin: 0; }
.story-disclosure .detail-copy .rules p { margin-block: 8px; }
.story-disclosure .measure { margin-bottom: 12px; }
.story-disclosure .works { margin-top: 20px; }
.story-disclosure .works + h4 { margin-top: 28px; }
#khi-nao .concise-services { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0 0 14px; }
#khi-nao .svc { gap: 6px; padding-block: 16px; }
.case-info .case-outcome { color: var(--fg); padding-top: 12px; border-top: 1px solid var(--line); }
.case-info .case-outcome strong { color: var(--accent); }
#case-agri .agri-visual { grid-template-columns: minmax(0,1fr); align-self: start; }
#case-agri .vis-view { flex: none; aspect-ratio: 320 / 236; max-height: 380px; }
#agri-detail .router { max-width: 560px; }
.concise-adv .adv-row { padding-block: 18px; }
.concise-method { padding-block: clamp(40px,6vw,84px) 26px; }
.concise-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--gap); list-style: none; padding: 0; margin: 0; }
.concise-steps li { display: grid; align-content: start; gap: 9px; padding-block: 15px; border-top: 1px solid var(--line-2); }
.concise-steps li > span { color: var(--accent); font-family: var(--f-display); font-size: 1rem; font-weight: 650; }
.concise-steps li > strong { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.2; }
.concise-steps li > p { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.story-disclosure-wide { padding-inline: var(--gx); max-width: 1400px; margin: 0 auto; border: 0; }
.story-disclosure-wide > summary { border-block: 1px solid var(--line-2); }
.story-disclosure-wide .story-disclosure-body { padding-bottom: 0; }
#cach-lam { padding-bottom: clamp(40px,6vw,84px); }
.story-team-summary { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.story-team-summary > span { border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; font-size: 0.875rem; }
#doi-ngu .forces-band { margin-top: 32px; }
#doi-ngu .coop-note { margin-top: 12px; }
#ve-toi .story-disclosure { margin-top: 12px; }
@media (max-width: 768px) {
  #khi-nao .concise-services { grid-template-columns: minmax(0,1fr); gap: 0; }
  #khi-nao .svc { padding-block: 13px; }
  .story-disclosure { margin-top: 16px; }
  .story-disclosure > summary { padding-block: 12px; }
  .story-disclosure .detail-copy { margin-bottom: 12px; }
  .case-body { padding-bottom: 44px; }
  #tu-van .concise-adv .adv-org { padding-bottom: 6px; }
  #tu-van .concise-adv .adv-state { padding-top: 6px; }
  .concise-method { padding-block: 42px 14px; }
  .concise-steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; }
  .concise-steps li { gap: 7px; padding-block: 12px; }
  .concise-steps li > strong { font-size: 1.125rem; }
  .concise-steps li > p { font-size: 0.875rem; }
  .story-disclosure-wide .wrap { padding-inline: 0; }
}

/* Dòng minh chứng dưới mỗi nhóm vấn đề */
#khi-nao .svc .svc-proof { margin-top: 10px; font-size: 0.875rem; font-weight: 600; color: var(--accent); max-width: none; }
.story-roster-open { margin: 8px 0 18px; padding-left: 1.2em; display: grid; gap: 8px; max-width: 70ch; }
.story-roster-open li { line-height: 1.55; }

/* Lời khách */
.sec-quotes .quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.sec-quotes .quote-card { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: clamp(20px, 2.2vw, 32px); border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--fg) 3%, transparent); }
.sec-quotes blockquote { margin: 0; }
.sec-quotes blockquote p { font-size: 1rem; line-height: 1.65; color: var(--fg); }
.sec-quotes blockquote p::before { content: "“"; display: block; font-family: var(--f-display); font-size: 2.75rem; line-height: .8; color: var(--accent); margin-bottom: 6px; }
.sec-quotes figcaption { display: grid; gap: 2px; font-size: 0.875rem; color: var(--muted); }
.sec-quotes figcaption strong { font-size: 0.96875rem; color: var(--fg); }
@media (max-width: 900px) { .sec-quotes .quote-grid { grid-template-columns: minmax(0, 1fr); } }

/* Tên đơn vị đã làm cùng */
.hero-clients { grid-column: 1 / -1; margin-top: 14px; font-size: 0.875rem; letter-spacing: .02em; color: var(--muted); }
.hero-clients span { color: var(--accent); font-weight: 600; margin-right: 6px; }

/* Ô tự tính */
.sec-calc .calc { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px 24px; padding: clamp(20px, 2.6vw, 36px); border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--fg) 3%, transparent); }
.sec-calc label { display: grid; gap: 8px; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); align-content: space-between; }
.sec-calc input { font: inherit; font-size: 1.25rem; font-weight: 600; color: var(--fg); padding: 10px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); background: transparent; width: 100%; }
.sec-calc input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sec-calc .calc-out { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); }
.sec-calc .calc-out span { display: grid; gap: 4px; }
.sec-calc .calc-out strong { font-family: var(--f-display); font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.1; color: var(--accent); }
.sec-calc .calc-out small { font-size: 0.90625rem; color: var(--muted); }
.sec-calc .calc-note { grid-column: 1 / -1; font-size: 0.875rem; color: var(--muted); }
.sec-calc .calc .btn { grid-column: 1 / -1; justify-self: start; }

/* Gói dịch vụ */
.sec-offers .offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(16px, 2vw, 28px); }
.sec-offers .offer { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.2vw, 32px); border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--fg) 3%, transparent); }
.sec-offers .offer h3 { font-family: var(--f-display); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; color: var(--fg); }
.sec-offers .offer-when { font-size: 0.96875rem; line-height: 1.55; color: var(--muted); }
.sec-offers .offer ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.96875rem; line-height: 1.5; color: var(--fg); }
.sec-offers .offer-proof { margin-top: auto; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.sec-offers .first-step { margin-top: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: clamp(22px, 2.6vw, 36px); border-radius: 14px; background: var(--fg); color: var(--center); }
.sec-offers .first-step .sec-tag { color: #E6B652; }
.sec-offers .first-step h3 { font-family: var(--f-display); font-size: clamp(1.375rem, 2.2vw, 1.875rem); margin: 6px 0 8px; color: var(--center); }
.sec-offers .first-step p { max-width: 60ch; line-height: 1.55; }
@media (max-width: 900px) {
  .sec-calc .calc, .sec-offers .offer-grid { grid-template-columns: minmax(0,1fr); }
  .sec-calc .calc-out { grid-template-columns: minmax(0,1fr); gap: 14px; }
}
.sec-offers .steps-line { list-style: none; counter-reset: st; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sec-offers .steps-line li { counter-increment: st; display: inline-flex; align-items: center; gap: 8px; font-size: 0.90625rem; line-height: 1.35; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--center) 28%, transparent); }
.sec-offers .steps-line li::before { content: counter(st); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #E6B652; color: #1E1505; font-weight: 700; font-size: 0.78125rem; flex: none; }
.sec-offers .first-step > div { flex: 1 1 520px; }
.hero-byline { display: inline-block; margin-top: 10px; font-size: .92em; color: var(--muted); }
.hero-clients { justify-self: start; padding: 6px 12px; border-radius: 8px; background: rgba(14, 10, 8, .66); color: #d9cfc2; }

/* Hỏi đáp */
.sec-faq .faq-list { max-width: 860px; }
.sec-faq .faq-list .story-disclosure { margin-top: 0; border-top: 0; }
.sec-faq .faq-list .story-disclosure:first-child { border-top: 1px solid var(--line-2); }
.sec-faq .story-disclosure-body p { font-size: 1rem; line-height: 1.6; max-width: 70ch; color: var(--fg); }

/* Chuyển ngôn ngữ */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 0.8125rem; font-weight: 600; letter-spacing: .02em; }
.lang-switch a { padding: 6px 8px; border-radius: 999px; color: inherit; opacity: .62; text-decoration: none; line-height: 1; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; box-shadow: inset 0 0 0 1px currentColor; }
.drawer-inner .lang-switch-drawer { margin-top: 14px; gap: 8px; }
.drawer-inner .lang-switch-drawer a { padding: 8px 14px; font-size: 0.9375rem; border-bottom: 0; }
@media (max-width: 720px) { .nav-actions > .lang-switch { display: none; } }
.nav-pdf[hidden] { display: none !important; }

/* Thương hiệu LPD Labs ở đầu trang */
.brand-mark { width: 26px; height: 26px; color: var(--accent); flex: none; transition: color .35s var(--ease); }
.brand .brand-name { font-size: 1.1875rem; letter-spacing: .01em; }
.hero-who .hero-brand { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: clamp(1.375rem, 2.4vw, 1.875rem); letter-spacing: .01em; color: var(--accent); }
.hero-who { flex-wrap: wrap; row-gap: 4px; }

/* Thanh mục trên điện thoại và máy tính bảng */
.secnav { display: none; }
@media (max-width: 1280px) {
  html { scroll-padding-top: calc(var(--nav-h) + 44px); }
  .secnav { display: block; position: absolute; left: 0; right: 0; top: 100%; height: 44px;
    background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav.is-scrolled .secnav { opacity: 1; transform: none; pointer-events: auto; }
  .secnav-track { display: flex; gap: 6px; height: 100%; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 0 16px; scroll-snap-type: x proximity; }
  .secnav-track::-webkit-scrollbar { display: none; }
  .secnav a { flex: none; scroll-snap-align: start; padding: 7px 13px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
  .secnav a.is-here { color: var(--fg); background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
}

/* Nút Zalo sau lời khách */
.sec-quotes .quote-cta { margin: clamp(22px, 3vw, 36px) 0 0; display: flex; justify-content: center; }

/* Bản tin TV: màn rộng luôn mở, điện thoại thu vào mục xem thêm */
.tv-fold { margin-top: 0; border: 0; }
.tv-fold > summary { display: none; }
@media (max-width: 700px) {
  .tv-fold { border-block: 1px solid var(--line-2); }
  .tv-fold > summary { display: flex; }
  .tv-fold[open] > summary { margin-bottom: 12px; }
}

/* Hero: LPD Labs — định vị, slogan, câu bổ trợ */
.hero-who .hero-brand + span::before { content: "— "; }
.hero-sub { margin-top: clamp(8px, 1.4vh, 14px); font-size: clamp(1rem, 1.5vw, 1.3125rem); font-style: italic; color: var(--muted); letter-spacing: .005em; }
@media (max-width: 700px) { .hero-who .hero-brand + span::before { content: none; } }

/* Thẻ điểm nghẽn: nhãn Vấn đề / Cách gỡ / Đã làm */
#khi-nao .svc .svc-k { font-size: 0.71875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .8; margin: 0; }
#khi-nao .svc h3 + .svc-k, #khi-nao .svc p + .svc-k { margin-top: 8px; }
#khi-nao .svc .svc-k + .svc-proof { margin-top: 0; }
#khi-nao .svc .svc-k + h3, #khi-nao .svc .svc-k + p { margin-top: -2px; }

/* Nút gửi kết quả tính thử */
.calc-send-note { font-size: 0.875rem; color: var(--muted); margin-top: 10px; max-width: 60ch; }

.swipe-hint { display: none; }
/* Điện thoại: trang gọn hơn mà không bỏ nội dung */
@media (max-width: 700px) {
  :root { --sy: 60px; }
  /* Lời khách và dịch vụ: vuốt ngang, thấy mép thẻ kế tiếp */
  .sec-quotes .quote-grid, .sec-offers .offer-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: 0; padding: 2px 0 10px; scrollbar-width: none;
  }
  .sec-quotes .quote-grid::-webkit-scrollbar, .sec-offers .offer-grid::-webkit-scrollbar { display: none; }
  .sec-quotes .quote-card, .sec-offers .offer { flex: 0 0 86%; scroll-snap-align: start; }
  .swipe-hint { display: block; font-size: 0.8125rem; color: var(--muted); margin: 0 0 10px; }
  .case-mural { height: 110px; min-height: 0; }
}

/* Giới thiệu ngắn đơn vị dưới tên người nhận xét */
.quote-card figcaption .org-desc { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--muted); opacity: .85; }
.adv-org p { font-size: 0.90625rem; color: var(--muted); margin-top: 6px; max-width: 40ch; }

/* Mã QR liên hệ cho người xem trên máy tính */
.qr-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 28px; margin-top: clamp(28px, 3vw, 40px); padding-top: clamp(22px, 2.4vw, 32px); border-top: 1px solid var(--line); }
.qr-lead { flex: 1 1 100%; font-size: 0.90625rem; color: var(--muted); }
.qr { margin: 0; display: grid; justify-items: center; gap: 8px; }
.qr img, .qr-box { width: 148px; height: 148px; background: #fff; border-radius: 12px; padding: 8px; box-sizing: border-box; }
.qr-box { display: grid; align-content: center; justify-items: center; gap: 4px; text-align: center; color: #17130F; }
.qr-box span { font-size: 0.71875rem; color: #5B5148; }
.qr-box strong { font-family: var(--f-display); font-size: 0.875rem; overflow-wrap: anywhere; }
.qr-box small { font-size: 0.65625rem; color: #5B5148; line-height: 1.3; }
.qr figcaption { font-size: 0.84375rem; font-weight: 600; color: var(--fg); }
@media (max-width: 700px) { .qr-row { display: none; } }
.contact-cta { flex-wrap: wrap; }
.contact-hint { font-size: 0.84375rem; color: var(--muted); margin-top: 12px; }

/* Reflow and fixed controls share the same safe-area geometry. */
@media screen and (max-width: 1280px) {
  :root {
    --bar-height: max(68px, 3.5rem);
    --nav-h: calc(var(--bar-height) + env(safe-area-inset-top, 0px));
    --section-bar: max(44px, 2.5rem);
  }
  html { scroll-padding-top: calc(var(--nav-h) + var(--section-bar)); }
  .nav { padding-top: env(safe-area-inset-top, 0px); }
  .wrap, .secnav-track {
    padding-left: max(var(--gx), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gx), env(safe-area-inset-right, 0px));
  }
  .secnav { height: var(--section-bar); visibility: hidden; }
  .nav.is-scrolled .secnav { visibility: visible; }
  .nav:has(.drawer:not([hidden])) .secnav { visibility: hidden; }
  .drawer { position: relative; z-index: 1; }
}
@media screen and (max-width: 899px), screen and (pointer: coarse) and (max-width: 1280px) {
  html { scroll-padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
  .mobile-zalo:not([hidden]) {
    display: grid; place-items: center; position: fixed; z-index: 40; inset: auto 0 0;
    min-height: 48px; padding: .75rem max(1rem, env(safe-area-inset-right, 0px))
      calc(.75rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    background: #211a15; color: #fff; font-weight: 650; text-align: center;
  }
  .foot { padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px)); }
  .hero-title .ln, .btn, .scrub, .board-legend { white-space: normal; }
  .btn { height: auto; min-height: 2.75rem; max-width: 100%; padding-block: .65em; text-align: center; }
  .hero-inner, .sec-head, .case-grid, .contact-grid, .sec-offers .offer { overflow-wrap: anywhere; }
  .board-legend { flex-wrap: wrap; }
  .secnav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .art-layer[data-layer="01-silk-fg"] { height: auto !important; }
}

@media screen and (max-width: 899px) {
  .nav-actions > .btn-signal, .nav-actions > .lang-switch { display: none; }
  .nav .brand { min-width: 0; }
  .brand .brand-name { white-space: normal; line-height: 1.1; }
  .menu-btn { height: auto; min-height: 44px; }
}

@media screen and (max-width: 899px) {
  .hero-bg { background-image: url('../art/hero-stage-mobile.webp'); }
  .measure { overflow-wrap: anywhere; }
}

/* Giới thiệu LPD Labs */
.sec-intro .lab-meaning { max-width: none; margin: clamp(20px, 3vw, 36px) 0 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .sec-intro .lab-meaning { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sec-intro .lab-meaning { grid-template-columns: 1fr; } }
.sec-intro .lpd-key { color: #ECC36E; }

/* LPD Labs gộp đội ngũ: ý nghĩa tên + tiêu đề phụ đội ngũ */
.sec-team.sec-intro .lab-meaning { margin: clamp(22px, 3vw, 40px) 0 0; }
.team-sub { margin: clamp(40px, 6vw, 72px) 0 clamp(18px, 2.4vw, 28px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid rgba(236, 195, 110, .28); scroll-margin-top: calc(var(--nav-h, 68px) + 52px); }
.team-sub h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 620; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.15; color: var(--fg); }
.team-sub .lead { margin-top: 10px; max-width: 62ch; color: var(--muted); }
/* LPD Labs trên nền tranh sáng: chữ khóa đỏ sen, các bảng đội ngũ giữ màu tối như thẻ quy trình */
.t-rhine.sec-intro { --shuttle: #B7852A; }
.t-rhine.sec-intro .lpd-key { background: #842646; border-color: #842646; color: #FBEFD9; }
.t-rhine.sec-intro .team-sub { border-top-color: rgba(132, 38, 70, .22); }
/* Bảng tối trong phần LPD Labs: mực đỏ rượu của chính cảnh mây đào, không mượn xanh két của cảnh khác */
.t-rhine.sec-intro :is(.loom-stage, .face-card, .force-card) {
  --fg: #F8EEEA; --muted: #DCC6C2; --accent: #E596B2; --accent-2: #67BFC3;
  --shuttle: #ECC36E; --on-accent: #2A0F18;
  --panel-solid: #2A1820; --panel-core: #341D26; --panel-partner: #2A1820;
  color: var(--fg);
}
.t-rhine.sec-intro .loom-stage { background: #22131A; border-color: rgba(236, 195, 110, .32); }
.t-rhine.sec-intro .pass-btn { background: #2E1A22; border-color: rgba(229, 150, 178, .28); }
.t-rhine.sec-intro .weft-shadow { stroke: #22131A; }
.t-rhine.sec-intro .loom-selvedge { stroke: rgba(229, 150, 178, .24); }
.t-rhine.sec-intro .d-row-when { fill: #DCC6C2; }
.t-rhine.sec-intro .face-card { border-color: rgba(229, 150, 178, .22); }
.t-rhine.sec-intro .face-card.is-lit { background: #3C2129; }
.t-rhine.sec-intro .force-card { border-color: rgba(229, 150, 178, .26); }
.t-rhine.sec-intro .force-card.is-picked { background: #3C2129; }
.t-rhine.sec-intro .face-card :is(.face-q, .face-role) { border-top-color: rgba(229, 150, 178, .16); }
.t-rhine .lamp-s.is-run { background: var(--accent); }

/* Khối quy trình ở Dịch vụ: mực xanh ngọc đậm của cảnh tre, chữ kem, điểm vàng đồng */
.sec-offers .first-step { background: #0C3A33; color: #E6F1EC; }
.sec-offers .first-step h3 { color: #F3F8F5; }
.sec-offers .first-step .sec-tag { color: #E3B867; }
.sec-offers .steps-line li { border-color: rgba(230, 241, 236, .26); color: #E6F1EC; }
.sec-offers .steps-line li::before { background: #E3B867; color: #1F1606; }
.first-step .cb-btns .btn-signal { background: #F3F8F5; color: #0A4A40; }
.first-step .cb-btns .btn-signal:hover { background: #FFFFFF; }
.first-step .cb-btns .btn-ghost { color: #F3F8F5; background: rgba(243, 248, 245, .06); border-color: rgba(243, 248, 245, .34); }
.first-step .cb-btns .btn-ghost:hover { background: rgba(243, 248, 245, .14); }

/* ===== Trang chính gọn: dự án tóm tắt, hàng nút liên hệ nhanh ===== */
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(22px, 3vw, 36px); }
.proj { display: grid; align-content: start; gap: 8px; padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--bg) 92%, #fff 8%); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.proj:hover { border-color: var(--accent); transform: translateY(-2px); }
.proj:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.proj-org { display: grid; gap: 2px; font-size: .875rem; color: var(--muted); }
.proj-org strong { font-family: var(--f-display); font-size: 1rem; color: var(--fg); letter-spacing: .02em; }
.proj h3 { font-family: var(--f-display); font-weight: 640; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.3; }
.proj-res { color: var(--muted); font-size: .9375rem; }
.proj-more { margin-top: 4px; font-weight: 600; font-size: .9375rem; color: var(--accent); }
.proj-all { margin-top: clamp(18px, 2.4vw, 28px); }
@media (max-width: 700px) {
  .proj-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0 10px; scrollbar-width: none; }
  .proj-grid::-webkit-scrollbar { display: none; }
  .proj { flex: 0 0 86%; scroll-snap-align: start; }
}

.contact-band { margin-top: clamp(28px, 4vw, 48px); padding: clamp(18px, 2.4vw, 28px); border-radius: 16px; background: #17130F; color: #F6EFE6; display: grid; gap: 14px; }
.contact-band .cb-text { font-size: clamp(1rem, 1.4vw, 1.1875rem); font-weight: 600; }
.cb-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.contact-band .btn-ghost { color: #F6EFE6; border-color: rgba(246, 239, 230, .4); }

/* ===== Trang con ===== */
.back-link { margin: 0 0 clamp(14px, 2vw, 22px); font-size: .9375rem; }
.back-link a { color: var(--accent); text-decoration: none; font-weight: 600; }
.back-link a:hover { text-decoration: underline; }
.sec-endcta .wrap { display: grid; gap: 14px; }
.sec-endcta h2 { font-family: var(--f-display); font-weight: 640; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
.sec-endcta .lead { max-width: 62ch; color: var(--muted); }
.sec-endcta .cb-btns .btn-ghost { color: var(--fg); }
.byline-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(230, 182, 82, .5); text-underline-offset: 3px; }
.sec-about-page { padding-top: calc(var(--sy) + 40px); }
.duan-intro#noi-dung { padding-top: calc(var(--sy) + 40px); }
.first-step .cb-btns { align-self: end; }
.first-step .cb-btns .btn-ghost { color: #F6EFE6; border-color: rgba(246, 239, 230, .4); }
@media (min-width: 901px) { .first-step .cb-btns { flex-direction: column; align-items: stretch; } }

/* Dải "Doanh nghiệp thường tìm đến khi" ở đầu Dịch vụ */
.need-strip { margin: clamp(4px, 1vw, 10px) 0 clamp(22px, 3vw, 36px); padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px); border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--bg) 90%, #fff 10%); border-radius: 0 12px 12px 0; }
.need-title { font-size: .9375rem; font-weight: 600; color: var(--muted); }
.need-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 24px; }
.need-list li { font-family: var(--f-display); font-weight: 620; font-size: clamp(1rem, 1.4vw, 1.1875rem); line-height: 1.35; color: var(--fg); padding-left: 18px; position: relative; }
.need-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) { .need-list { grid-template-columns: 1fr; } }
.sec-situations .story-disclosure > summary { display: none; }

/* ===== Trang chính: tranh mỗi phần mọc ra từ màu của phần trước, không cắt ngang ===== */
#gioi-thieu { --prev: #0E0B09; }
#dich-vu    { --prev: #FAF3EE; }
#loi-khach  { --prev: #1A0804; }
.main-band.case-band {
  --blend: clamp(64px, 8vw, 132px);
  background-image:
    linear-gradient(to bottom, var(--prev, var(--center)) 0, var(--center) calc(var(--mural-height) * .8),
      var(--center) var(--mural-height), transparent calc(var(--mural-height) + 112px)),
    var(--paper-grain), var(--paper-wash);
}
.main-band .case-mural { background-color: transparent; }
.main-band .case-mural > :not(.v3-linework-wrap) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 var(--blend));
          mask-image: linear-gradient(to bottom, transparent 0, #000 var(--blend));
}
.main-band .case-mural > .v3-linework-wrap {
  -webkit-mask-image: linear-gradient(to bottom, transparent 12%, #000 26%, #000 66%, transparent 88%);
          mask-image: linear-gradient(to bottom, transparent 12%, #000 26%, #000 66%, transparent 88%);
}
/* Chân mỗi dải tan về màu nền để phần sau nối liền, không lộ vệt viền mờ ở hai mép */
.main-band.case-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(90px, 10vw, 160px);
  background: linear-gradient(to bottom, transparent, var(--center)); pointer-events: none; z-index: 1;
}

/* ==========================================================================
   TRANG CHÍNH GOM MÀU: một nền giấy ngà, một mực sơn mài tối, một vàng đồng.
   Tranh của từng cảnh giữ nguyên; mọi thứ quanh tranh dùng chung bộ màu này.
   ========================================================================== */
.home .main-band.case-band, .home #hoi-dap {
  --center: #F5F0E7; --edge: #E2D8C7; --fg: #17130F; --muted: #47403A;
  --accent: #8E2A17; --accent-2: #B7852A; --on-accent: #FFFFFF; --shuttle: #B7852A;
}
.home #dich-vu  { --prev: #F5F0E7; }
/* Nút Zalo trên thanh menu giữ một màu suốt trang */
.home .nav .btn-signal { background: #E6B652; color: #1E1505; }
.home .nav .btn-signal:hover { background: #F0C76A; }
/* Khung vector quanh tranh (rail, đường nối, nẹp chân) cùng một màu vàng đồng */
.home .main-band.case-band :is(.v3-rails, .v3-mural-seam, .v3-foot-trim) svg :is(path, polygon, line, polyline, circle, rect) {
  stroke: #A87A2C !important;
}
.home .main-band.case-band :is(.v3-mural-seam, .v3-foot-trim) svg polygon[fill]:not([fill="none"]) { fill: #F5F0E7 !important; }
/* Tranh các cảnh chỉnh nhẹ về tông ấm để đọc như cùng một tập tranh */
.home .main-band.case-band .case-mural > :not(.v3-linework-wrap) { filter: sepia(.16) saturate(.9); }
/* Mọi bảng tối trên nền giấy dùng chung mực sơn mài */
.home .sec-intro :is(.loom-stage, .face-card, .force-card),
.home .sec-offers .first-step {
  --fg: #F6EFE6; --muted: #CDBFB1; --accent: #E6B652; --accent-2: #D9542F;
  --shuttle: #E6B652; --on-accent: #1E1505;
  --panel-solid: #241B15; --panel-core: #2C221A; --panel-partner: #241B15;
}
.home .sec-intro .loom-stage { background: #1A1410; border-color: rgba(230, 182, 82, .3); }
.home .sec-intro .pass-btn { background: #241B15; border-color: rgba(230, 182, 82, .24); }
.home .sec-intro .weft-shadow { stroke: #1A1410; }
.home .sec-intro .loom-selvedge { stroke: rgba(205, 191, 177, .22); }
.home .sec-intro .d-row-when { fill: #CDBFB1; }
.home .sec-intro :is(.face-card, .force-card) { border-color: rgba(230, 182, 82, .2); }
.home .sec-intro :is(.face-card.is-lit, .force-card.is-picked) { background: #33271D; }
.home .sec-intro .face-card :is(.face-q, .face-role) { border-top-color: rgba(205, 191, 177, .16); }
.home .sec-intro .lpd-key { background: #8E2A17; border-color: #8E2A17; color: #FBEFD9; }
.home .sec-intro .team-sub { border-top-color: rgba(142, 42, 23, .2); }
.home .sec-offers .first-step { background: #1A1410; color: #EDE4D8; }
.home .sec-offers .first-step h3 { color: #F6EFE6; }
.home .sec-offers .first-step .sec-tag { color: #E6B652; }
.home .sec-offers .steps-line li { border-color: rgba(246, 239, 230, .22); color: #EDE4D8; }
.home .sec-offers .steps-line li::before { background: #E6B652; color: #1E1505; }
.home .first-step .cb-btns .btn-signal { background: #E6B652; color: #1E1505; }
.home .first-step .cb-btns .btn-signal:hover { background: #F0C76A; }
.home .first-step .cb-btns .btn-ghost { color: #F6EFE6; background: rgba(246, 239, 230, .05); border-color: rgba(246, 239, 230, .32); }
.home .sec-quotes .btn-signal, .home .sec-faq .btn-signal { background: #8E2A17; color: #fff; }
.home :is(.sec-offers, .sec-quotes, .sec-faq, .sec-intro) .lamp-s.is-run { background: var(--accent); }

/* ===== Ba nhịp khác nhau cho ba phần sáng, để không phần nào rập khuôn phần nào ===== */
@media (min-width: 900px) {
  /* 1. Về LPD Labs: tranh cao, tiêu đề đặt giữa nằm ngay trên phần chân tranh */
  .home #gioi-thieu { --mural-height: clamp(560px, 54vw, 760px); }
  .home #gioi-thieu .case-mural::after {
    background: linear-gradient(to bottom, transparent 34%, color-mix(in srgb, var(--center) 72%, transparent) 60%, var(--center) 84%);
  }
  .home #gioi-thieu .case-mural > .v3-linework-wrap {
    -webkit-mask-image: linear-gradient(to bottom, transparent 12%, #000 24%, #000 42%, transparent 58%);
            mask-image: linear-gradient(to bottom, transparent 12%, #000 24%, #000 42%, transparent 58%);
  }
  .home #gioi-thieu .v3-mural-seam { display: none; }
  .home #gioi-thieu .v3-rails { inset: calc(var(--mural-height) * .7) 0 0 0; }
  .home #gioi-thieu .case-body { margin-top: calc(var(--mural-height) * -.4); }
  .home #gioi-thieu .sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .home #gioi-thieu .sec-tag { padding-top: 0; }
  .home #gioi-thieu .sec-head-main { justify-items: center; }
  .home #gioi-thieu .sec-head-main h2 { max-width: 20ch; }
  .home #gioi-thieu .sec-head-main .lead { max-width: 64ch; }

  /* 2. Dịch vụ: tranh tre lùi thành nền mờ chạy sau tiêu đề và các thẻ, không còn dải ngang */
  .home #dich-vu { background-image: var(--paper-grain), var(--paper-wash); }
  .home #dich-vu .case-mural {
    position: absolute; top: 0; left: 0; right: 0; height: min(100%, 1180px); z-index: 0;
    clip-path: none !important;
  }
  .home #dich-vu .case-mural::after {
    background: linear-gradient(to bottom, color-mix(in srgb, var(--center) 34%, transparent) 0%,
      color-mix(in srgb, var(--center) 62%, transparent) 34%, color-mix(in srgb, var(--center) 86%, transparent) 62%, var(--center) 92%);
  }
  .home #dich-vu .v3-mural-seam { display: none; }
  .home #dich-vu .v3-rails { inset: 0; }
  .home #dich-vu .case-body { margin-top: 0; padding-top: clamp(96px, 10vw, 150px); }
  .home #dich-vu .sec-head-main h2 { max-width: 18ch; }
}
@media (min-width: 900px) {
  .home #gioi-thieu .sec-tag { align-self: center; }
}
.home #dich-vu .offer { background: color-mix(in srgb, #FBF8F2 90%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.home #dich-vu .need-strip { background: color-mix(in srgb, #FBF8F2 90%, transparent); }

/* ===== Dự án (trang chính): trống đồng đặt giữa, tiêu đề nằm trong lòng trống ===== */
@media (min-width: 1001px) {
  .home .main-son { --drum: clamp(620px, 60vw, 940px); --drum-y: clamp(300px, 27vw, 400px); }
  .home .main-son :is(.stage-ornaments, .stage-ornaments-screen) {
    -webkit-mask-image: none; mask-image: none;
  }
  .home .main-son [data-layer="01-drum-ring"] {
    left: 50% !important; right: auto !important; top: var(--drum-y) !important;
    width: var(--drum) !important; translate: -50% -50% !important; filter: brightness(1.5) saturate(1.1);
  }
  .home .main-son .v3-son-drum-wrap {
    left: 50%; right: auto; top: var(--drum-y); translate: -50% -50%;
    width: calc(var(--drum) * 1.08);
  }
  /* Hai cuộn mây vàng ôm hai bên trống thay vì dồn về mép phải */
  .home .main-son [data-layer="02-clouds-bg"] { right: auto !important; left: 0 !important; scale: -1 1; opacity: .7; }
  .home .main-son [data-layer="03-clouds-fg"] { opacity: .7; }
  .home .main-son > .wrap > .sec-head { width: 100%; max-width: none; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
    min-height: calc(var(--drum-y) * 1.55); justify-content: center; margin-bottom: clamp(28px, 4vw, 56px); }
  .home .main-son > .wrap > .sec-head .sec-tag { align-self: center; padding-top: 0; }
  .home .main-son > .wrap > .sec-head .sec-head-main { justify-items: center; }
  .home .main-son > .wrap > .sec-head .lead { max-width: 52ch; }
  .home .main-son .v3-foot-trim { margin-inline: auto; }
  /* Bỏ lớp tối dày phía trái (vốn che chỗ chữ khi trống nằm mép phải); chỉ tối dần phía dưới chỗ các thẻ */
  .home .main-son .son-bg::after {
    background: linear-gradient(to bottom, rgba(26,8,4,.5), transparent 8%, transparent 70%, rgba(26,8,4,.55) 100%);
  }
  /* Quầng tối mềm sau chữ để chữ nổi trên hoa văn trống */
  .home .main-son > .wrap > .sec-head::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: min(96%, 1000px); height: 330px; translate: -50% -50%;
    background: radial-gradient(closest-side, rgba(26, 8, 4, .93) 0%, rgba(26, 8, 4, .86) 55%, rgba(26, 8, 4, .5) 80%, transparent); z-index: -1; pointer-events: none;
  }
  .home .main-son > .wrap > .sec-head > * { position: relative; }
}
@media (min-width: 1001px) { .home .main-son .proj-all { text-align: center; } }

/* Trống và mây đứng yên giữa màn hình trong suốt lúc cuộn qua phần Dự án */
@media (min-width: 1001px) {
  .home .main-son .son-bg, .home .main-son .art-stage { overflow: clip; }
  .home .main-son :is(.stage-ornaments-screen, .stage-ornaments) {
    position: sticky; inset: auto; top: 0; width: 100%; height: 100vh;
  }
  .home .main-son .stage-ornaments-screen { margin-bottom: -100vh; }
  .home .main-son { --drum-y: calc(50% + var(--nav-h, 68px) / 2); padding-top: var(--nav-h, 68px); }
  /* Tiêu đề chiếm trọn một màn, tâm trùng tâm trống khi phần này chạm đỉnh màn hình */
  .home .main-son > .wrap > .sec-head { min-height: calc(100vh - var(--nav-h, 68px)); margin-bottom: 0; }
}
@media (min-width: 1001px) {
  .home .main-son .proj-all .btn { background: rgba(26, 8, 4, .9); border-color: rgba(237, 194, 116, .45); }
  .home .main-son .proj-card, .home .main-son .proj-grid > * { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}

/* ==========================================================================
   TRANH ĐỨNG YÊN SAU CHỮ (máy tính): mỗi phần sáng không còn dải tranh riêng chiếm chỗ.
   Tranh phủ cả màn, bám giữa màn hình trong lúc cuộn qua phần đó; chữ và thẻ trôi phía trên.
   Hai mép giữ tranh rõ, cột đọc ở giữa phủ lớp giấy mờ để chữ dễ đọc.
   ========================================================================== */
@media (min-width: 1001px) {
  .home .main-band.case-band { --mural-height: 0px; background-image: var(--paper-grain), var(--paper-wash); }
  .home .main-band.case-band .case-mural {
    position: absolute; inset: 0; height: auto; width: auto; z-index: 0;
    overflow: clip; background: transparent;
  }
  .home .main-band.case-band .case-mural::after { content: none; }
  .home .main-band.case-band .case-mural > :is(.v3-linework-wrap, .art-stage) {
    position: sticky; inset: auto; top: 0; width: 100%; height: 100vh;
    -webkit-mask-image: none; mask-image: none;
  }
  .home .main-band.case-band .case-mural > .v3-linework-wrap {
    margin-bottom: -100vh; z-index: 2;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 14%, transparent 30%, transparent 70%, #000 86%, #000 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 14%, transparent 30%, transparent 70%, #000 86%, #000 100%);
  }
  .home .main-band.case-band .art-stage::after {
    content: ""; position: absolute; inset: 0; z-index: 20; pointer-events: none;
    background:
      linear-gradient(90deg, transparent 0%, color-mix(in srgb, #F5F0E7 78%, transparent) 20%,
        color-mix(in srgb, #F5F0E7 88%, transparent) 50%, color-mix(in srgb, #F5F0E7 78%, transparent) 80%, transparent 100%);
  }
  .home .main-band.case-band .v3-mural-seam { display: none; }
  .home .main-band.case-band .v3-rails { inset: 0; }
  .home .main-band.case-band .case-body { margin-top: 0; }
  /* Nối với phần trước: màu phần trước tan dần ở đỉnh */
  .home .main-band.case-band::before {
    content: ""; display: block; position: absolute; inset: 0 0 auto 0; height: clamp(90px, 9vw, 150px);
    background: linear-gradient(to bottom, var(--prev, var(--center)), transparent); z-index: 1;
    -webkit-mask-image: none; mask-image: none; opacity: 1; pointer-events: none;
  }

  /* Về LPD Labs: màn đầu chỉ có tranh và tiêu đề đặt giữa, lớp giấy mỏng hơn để tranh rõ */
  .home #gioi-thieu .case-body { padding-top: var(--nav-h, 68px); }
  .home #gioi-thieu .sec-head { min-height: calc(100vh - var(--nav-h, 68px)); justify-content: center; margin-bottom: 0; }
  .home #gioi-thieu .sec-head::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: min(96%, 1040px); height: 440px; translate: -50% -50%;
    background: radial-gradient(closest-side, color-mix(in srgb, #F5F0E7 88%, transparent), color-mix(in srgb, #F5F0E7 60%, transparent) 65%, transparent);
    z-index: -1; pointer-events: none;
  }
  .home #gioi-thieu .sec-head { position: relative; }
  .home #gioi-thieu .sec-head > * { position: relative; }
  .home #gioi-thieu .art-stage::after {
    background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, #F5F0E7 64%, transparent) 22%,
      color-mix(in srgb, #F5F0E7 76%, transparent) 50%, color-mix(in srgb, #F5F0E7 64%, transparent) 78%, transparent 100%);
  }

  /* Dịch vụ: bỏ cách làm nền mờ cũ, dùng chung kiểu tranh đứng yên */
  .home #dich-vu .case-mural { clip-path: none; }
  .home #dich-vu .case-body { padding-top: clamp(110px, 11vw, 170px); }

  /* Khách nói: trời đêm sóng nước ở hai mép, cột giữa giấy sáng cho các lời khách */
  .home #loi-khach .case-body { padding-top: clamp(110px, 11vw, 170px); }
}
@media (min-width: 1001px) {
  .home .main-band.case-band .sec-tag { align-self: start; justify-self: start; width: fit-content; padding: 5px 12px; border-radius: 999px;
    background: color-mix(in srgb, #F5F0E7 88%, transparent); }
  .home .sec-quotes .quote-card { background: color-mix(in srgb, #FBF8F2 92%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  .home #dich-vu .need-strip { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}

/* Thẻ dự án: cả thẻ bấm vào xem chi tiết, riêng dòng web của doanh nghiệp mở trang của họ */
.proj { position: relative; }
.proj .proj-more { display: inline-block; }
.proj .proj-more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.proj .proj-more:focus-visible { outline: none; }
.proj:has(.proj-more:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.org-web {
  position: relative; z-index: 2; justify-self: start; width: fit-content;
  font-size: .8125rem; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px;
}
.org-web:hover { text-decoration-color: currentColor; }
.proj-org .org-web { margin-top: 4px; }
.case-org .org-web, .adv-org .org-web { white-space: nowrap; }
/* Ở chế độ tranh đứng yên, phần LPD Labs không còn dải tranh cao: trả chiều cao dải về 0
   để phần này không trồi lên đè chân màn đầu (hero) */
@media (min-width: 1001px) {
  .home #gioi-thieu { --mural-height: 0px; }
}

/* ===== Màn đầu sáng hơn, chân màn tan sang giấy ngà để nối liền phần LPD Labs ===== */
.home .hero-bg { filter: none; }
.home .hero-bg::after {
  background:
    linear-gradient(to top, #F5F0E7 0%, rgba(245, 240, 231, .8) 3.5%, rgba(245, 240, 231, 0) 11%),
    radial-gradient(ellipse 62% 23% at 94% 42%, rgba(20, 13, 9, .62), transparent),
    radial-gradient(ellipse 72% 78% at 30% 42%, rgba(20, 13, 9, .9) 0%, rgba(20, 13, 9, .78) 55%, rgba(20, 13, 9, .3) 82%, transparent 100%);
}
.home #gioi-thieu { --prev: #F5F0E7; }
@media (min-width: 641px) {
  .home .hero-side > p::before {
    inset: -14px -18px; background: rgba(20, 13, 9, .62);
    box-shadow: 0 0 44px 26px rgba(20, 13, 9, .4); border-radius: 28px;
  }
  .home .hero-proof { background: rgba(20, 13, 9, .5); box-shadow: 0 0 24px 10px rgba(20, 13, 9, .3); }
}

/* Về LPD Labs dịu mắt hơn: tranh bớt sáng và bớt rực, lớp giấy sau chữ ngả ấm */
.home .main-band.case-band .case-mural > :not(.v3-linework-wrap) { filter: sepia(.2) saturate(.78) brightness(.9); }
@media (min-width: 1001px) {
  .home .main-band.case-band .art-stage::after, .home #gioi-thieu .art-stage::after {
    background: linear-gradient(90deg, rgba(60, 40, 25, .06) 0%, rgba(236, 228, 214, .72) 22%,
      rgba(236, 228, 214, .82) 50%, rgba(236, 228, 214, .72) 78%, rgba(60, 40, 25, .06) 100%);
  }
  .home #gioi-thieu .sec-head::before {
    background: radial-gradient(closest-side, rgba(236, 228, 214, .86), rgba(236, 228, 214, .55) 65%, transparent);
  }
}
/* Thẻ trên nền tranh: ngả kem ấm thay vì trắng sáng để khỏi chói */
.home #dich-vu .offer, .home #dich-vu .need-strip { background: color-mix(in srgb, #F2EBDF 92%, transparent); }
@media (min-width: 1001px) { .home .sec-quotes .quote-card { background: color-mix(in srgb, #F2EBDF 92%, transparent); } }

/* ==========================================================================
   NỀN GIẤY CHO CHỮ: chữ nằm trên tờ giấy riêng, tranh chỉ lộ ở hai mép và quanh tờ giấy
   ========================================================================== */
@media (min-width: 1001px) {
  .home .main-band.case-band .art-stage::after,
  .home #gioi-thieu .art-stage::after { background: rgba(40, 26, 16, .06); }
  .home .main-band.case-band .v3-linework-wrap { -webkit-mask-image: none; mask-image: none; }
  .home :is(#dich-vu, #loi-khach) .case-body,
  .home #gioi-thieu .intro-sheet {
    background: #F3ECE0;
    border: 1px solid rgba(168, 122, 44, .22);
    border-radius: 24px;
    box-shadow: 0 30px 80px -40px rgba(40, 24, 12, .45), 0 2px 0 rgba(255, 255, 255, .5) inset;
  }
  .home :is(#dich-vu, #loi-khach) .case-body {
    margin-top: clamp(90px, 9vw, 140px); margin-bottom: clamp(90px, 9vw, 140px);
    padding-top: clamp(40px, 4vw, 64px); padding-bottom: clamp(36px, 3.6vw, 56px);
    width: auto; max-width: min(1260px, calc(100% - 2 * clamp(48px, 7vw, 140px)));
  }
  .home #gioi-thieu .intro-sheet {
    padding: clamp(32px, 3.4vw, 56px) clamp(28px, 3vw, 48px);
    margin-bottom: clamp(36px, 4vw, 60px);
  }
  .home #gioi-thieu .intro-sheet > .lab-meaning { margin-top: 0; }
  /* Tiêu đề Về LPD Labs nằm trên một tấm giấy riêng giữa tranh */
  .home #gioi-thieu .sec-head::before { content: none; }
  .home #gioi-thieu .sec-head-main {
    background: #F3ECE0; border: 1px solid rgba(168, 122, 44, .22); border-radius: 24px;
    padding: clamp(28px, 3vw, 44px) clamp(28px, 3.4vw, 56px);
    box-shadow: 0 30px 80px -40px rgba(40, 24, 12, .45);
  }
  .home #gioi-thieu .sec-tag, .home .main-band.case-band .sec-tag { background: #F3ECE0; border: 1px solid rgba(168, 122, 44, .22); }
  /* Thẻ bên trong tờ giấy không cần kính mờ nữa */
  .home #dich-vu .offer, .home #dich-vu .need-strip, .home .sec-quotes .quote-card {
    background: #FAF6EE; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}
@media (min-width: 1001px) {
  .home #gioi-thieu .case-body { max-width: min(1260px, calc(100% - 2 * clamp(48px, 7vw, 140px))); padding-inline: 0; }
}
@media (min-width: 1001px) {
  /* Khoảng hở quanh tờ giấy nằm trong phần (không để lề của tờ giấy tràn ra ngoài làm lộ nền đen) */
  .home .main-band.case-band { display: flow-root; }
}

/* ===== Thay tờ giấy lớn bằng nhiều tấm giấy nhỏ: mỗi khối chữ một tấm, tranh lộ giữa các tấm ===== */
@media (min-width: 1001px) {
  .home :is(#dich-vu, #loi-khach) .case-body,
  .home #gioi-thieu .intro-sheet { background: none; border: 0; box-shadow: none; }
  .home #gioi-thieu .intro-sheet { padding: 0; margin-bottom: clamp(28px, 3vw, 48px); }
  .home :is(#dich-vu, #loi-khach) .case-body { padding-top: 0; padding-bottom: clamp(24px, 2.4vw, 40px); }

  .home .main-band.case-band .sec-head-main,
  .home #gioi-thieu .lab-meaning > div,
  .home #gioi-thieu .team-sub,
  .home #gioi-thieu .story-roster,
  .home #gioi-thieu #team-detail,
  .home #gioi-thieu .forces-band {
    background: rgba(243, 236, 224, .97);
    border: 1px solid rgba(168, 122, 44, .22);
    border-radius: 20px;
    box-shadow: 0 24px 60px -36px rgba(40, 24, 12, .5);
    padding: clamp(22px, 2.4vw, 36px) clamp(24px, 2.6vw, 40px);
  }
  .home .main-band.case-band .sec-head-main { align-content: start; }
  /* Bốn ý nghĩa L, P, D, Labs: bốn tấm nhỏ */
  .home #gioi-thieu .lab-meaning { gap: clamp(14px, 1.4vw, 20px); margin-top: 0; }
  .home #gioi-thieu .lab-meaning > div { padding: 18px 20px; }
  .home #gioi-thieu .team-sub { margin: clamp(28px, 3vw, 44px) 0 0; border-top: 1px solid rgba(168, 122, 44, .22); width: fit-content; max-width: 760px; }
  .home #gioi-thieu .story-roster { margin-top: clamp(16px, 1.6vw, 22px); max-width: 860px; }
  .home #gioi-thieu #team-detail { margin-top: clamp(16px, 1.6vw, 22px); padding-block: 6px; border-block: 1px solid rgba(168, 122, 44, .22); }
  .home #gioi-thieu .forces-band { margin-top: clamp(16px, 1.6vw, 22px); }
}

/* Tấm giấy nền cho danh sách các tổ. */
.home #gioi-thieu .team-roster {
  box-sizing: border-box;
  width: 100%;
  max-width: 860px;
  margin: 16px 0 18px;
  padding: 0 clamp(18px, 2.6vw, 40px);
  list-style: none;
  background: #F3ECE0;
  color: #38291F;
  border: 1px solid rgba(168, 122, 44, .22);
  border-radius: 20px;
  box-shadow: 0 24px 60px -36px rgba(40, 24, 12, .5);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.home #gioi-thieu .team-roster li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: 1em;
  padding: .75em 0;
}
.home #gioi-thieu .team-roster li + li { border-block-start: 1px solid #DCCDB6; }
.home #gioi-thieu .team-roster strong { grid-row: span 2; color: inherit; }
.home #gioi-thieu .team-roster-scope { font-size: .9em; color: #5B493B; }
@media (max-width: 620px) {
  .home #gioi-thieu .team-roster li { grid-template-columns: 1fr; }
  .home #gioi-thieu .team-roster strong { grid-row: auto; }
}
