/* ==========================================================================
   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, Tứ Phủ, 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      — Cầm Kỳ 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: 17px;
  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: 15px; 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: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.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: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-lamp { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transition: background-color .35s var(--ease); }
.brand-name { white-space: nowrap; font-family: var(--f-display); font-stretch: 112%; font-weight: 650; font-size: 17px; letter-spacing: -.005em; }
.nav-links { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav-links a { font-size: 15px; 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; }
.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: 14px; 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 { border-top: 1px solid var(--line); }
.drawer-inner { display: grid; padding-block: 8px 20px; }
.drawer-inner a { padding: 14px 0; font-size: 18px; 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-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; height: 100vh; height: 100svh; min-height: 640px; display: flex; flex-direction: column; 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-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: 16.5px; 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: 15px; 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(34px, min(5.1vw, 8.2vh), 92px); line-height: 1.09; letter-spacing: -.012em; }
.hero-title .ln { display: block; }

.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: 15px;
}
.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: 12px; 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: 14px; 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: 15px; 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: 13px; 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: 13px; 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: 15px; 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(32px, 3.9vw, 58px); 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(17px, 1.3vw, 19px); 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: 15px; color: var(--accent); }
.cl-step h3 { font-family: var(--f-display); font-stretch: 106%; font-weight: 640; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; color: var(--fg); }
.cl-desc { font-size: clamp(16px, 1.35vw, 18.5px); 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: 15.5px; 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: 15.5px; font-weight: 600; line-height: 1.5; color: var(--fg); }
.deliv span { display: block; font-size: 13px; 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(92px, min(10.5vw, 15vh), 156px); 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: 15px; 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: 13.5px; 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(30px, 2.9vw, 40px); line-height: 1.15; letter-spacing: -.012em; max-width: 22ch; }
  html.js .cl-desc { font-size: 19px; line-height: 1.6; max-width: 48ch; }
  html.js .cl-step .qs li { font-size: 16px; }
  html.js .cl-step .deliv { margin-top: 4px; padding-top: 18px; font-size: 16px; }
}

/* ==========================================================================
   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; gap: 14px; align-content: start; }
.case-visual { grid-column: 6 / 13; align-self: start; }
.agri-visual { align-self: stretch; }
.case-when { font-family: var(--f-display); font-stretch: 90%; font-weight: 600; font-size: 15px; color: var(--accent); }
.case-name { font-family: var(--f-display); font-stretch: 114%; font-weight: 680; font-size: clamp(32px, 3.6vw, 56px); line-height: 1.05; letter-spacing: -.015em; }
.case-org { font-size: 16px; 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: 14px; 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: 15.5px; 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(36px, 3.4vw, 52px); 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: 13.5px; 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: 18px; line-height: 1.3; }
.work p { font-size: 15px; 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: 14px; }
.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: 12.5px; font-weight: 600; color: var(--screen-mute); }
.tv-big { font-family: var(--f-display); font-stretch: 100%; font-weight: 640; font-size: 24px; line-height: 1.1; }
.tv-s { font-size: 12.5px; line-height: 1.45; color: #C2C7CF; }
.bar { display: grid; gap: 5px; font-size: 12.5px; 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: 12.5px; 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: 11px; 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: 12.5px; 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: 14px; 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: 12.5px; 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: 13px; 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: 10px; 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: 11px; fill: var(--screen-fg); text-anchor: middle; }
.n-node text { font-size: 12.5px; }
.n-sub { font-size: 10.5px !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: 13.5px; 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(22px, 2vw, 28px); line-height: 1.2; }
.adv-org p { font-size: 14.5px; 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: 17px; font-weight: 600; line-height: 1.4; }
.adv-work p { font-size: 15.5px; 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: 15px; 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: 16.5px; 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(24px, 2.4vw, 34px); 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: 14px; font-weight: 600; color: #BEB1A2; padding-top: 2px; }
.pp-rows dd { font-size: 16px; 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; align-content: start; }
.found-h { font-size: 15px; 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: 14px; color: var(--muted); }
.fitem h4 { font-family: var(--f-display); font-stretch: 106%; font-weight: 620; font-size: 20px; line-height: 1.3; }
.fitem p:not(.fmeta) { font-size: 15.5px; color: var(--muted); max-width: 56ch; }
.tlink { justify-self: start; font-size: 14.5px; 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(36px, 5vw, 76px); 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 a { display: grid; gap: 2px; min-width: 0; }
.ch a span, .ch-plain > span { font-size: 13.5px; color: var(--muted); }
.ch a strong { font-family: var(--f-display); font-stretch: 100%; font-weight: 620; font-size: clamp(17px, 1.45vw, 21px); 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: 13.5px; 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: 13.5px; 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: 14px; 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: 1000px) {
  .nav-links, .nav-pdf { display: none; }
  .menu-btn { display: inline-flex; }
  .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; }
}

/* Phần mở đầu trên màn hình hẹp: không ghim, sắp lại theo cuộn */
@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: 13.5px; padding: 10px; }
  .board-foot { flex-wrap: wrap; }
  .scrub { display: none; }
}

@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .cl-step {
    top: calc(var(--nav-h) + 4px + var(--stack-offset, var(--i) * 96px));
    margin-block: calc(0px - var(--previous-tail, 0px)) var(--stack-tail, 0px);
  }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .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: 16px; }
}
@media (max-width: 440px) {
  .board-lanes { grid-template-columns: 1fr; row-gap: 16px; }
  .lane-head { font-size: 14px; }
}

/* 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: 13px; }
  .hero-side p { font-size: 15px; }
}
@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 Trộm Vía (10.49:1 trên center) */
  --accent-2: #E596B2;     /* Hồng sen Trộm Vía — 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 Trộm Vía (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(32px, 3.6vw, 52px);
  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: 16.5px;
  font-weight: 700;
  color: var(--fg);
}
.lpd-brand span { font-size: 13px; 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: 13.5px;
  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: 14.5px; font-weight: 600; color: var(--fg); }
.lpd-en { font-size: 12.5px; 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: 13.5px;
  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: 13.5px;
  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: 15.5px; font-weight: 700; fill: #F3F8F8; }
.d-row-name { font-family: var(--f-body); font-size: 15.5px; font-weight: 700; fill: #F3F8F8; transition: fill .2s var(--ease), opacity .25s var(--ease); }
.d-row-when { font-family: var(--f-body); font-size: 14.5px; font-weight: 500; fill: #C2D7DA; transition: opacity .25s var(--ease); }

.m-face-lbl { font-family: var(--f-body); font-size: 12.5px; font-weight: 700; fill: #F3F8F8; }
.m-pass-num { font-family: var(--f-body); font-size: 12.5px; font-weight: 700; fill: #ECC36E; }
.m-pass-lbl { font-family: var(--f-body); font-size: 12.2px; 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: 13px;
  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: 14px;
  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: 12.5px;
  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: 12.5px;
  font-weight: 700;
  color: var(--shuttle);
  letter-spacing: .02em;
}
.force-card h3 {
  font-family: var(--f-display);
  font-stretch: 106%;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg);
}
.force-card p {
  font-size: 13.8px;
  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: 17px;
  font-weight: 700;
  color: var(--fg);
}
.force-card .partner-seal { width: 28px; height: 28px; flex: none; }
.coop-note {
  font-size: 13.5px;
  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: 12.5px; padding: 5px 10px; min-height: 32px; }
  .loom-status { font-size: 12.5px; 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: 13px;
}

/* Sơ đồ luồng bản tin kèm hàng 3 nhãn chữ >= 11px trên cả desktop & 390px */
.gsr-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;
}
.gsr-flow svg {
  width: 100%;
  height: auto;
  aspect-ratio: 680 / 68;
  display: block;
}
.gsr-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: 12px;
  line-height: 1.3;
  font-weight: 600;
  color: #D7E8E2;
}
.gsr-lbl-src  { justify-self: start; color: #D7E8E2; }
.gsr-lbl-gate { justify-self: center; color: #ECC36E; text-align: center; }
.gsr-lbl-out  { justify-self: end; color: #D7E8E2; text-align: right; transition: color .25s var(--ease); }

.gsr-gate-cut { opacity: 0; transition: opacity .25s var(--ease); }
.gsr-src-path, .gsr-src-node, .gsr-gate-outer, .gsr-gate-inner, .gsr-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"] .gsr-src-path {
  opacity: .30;
  stroke: #ECC36E;
  stroke-dasharray: 5 5 !important;
  stroke-dashoffset: 0 !important;
}
.t-delco.v3-enabled .tv[data-state="stale"] .gsr-src-node { opacity: .36; }
.t-delco.v3-enabled .tv[data-state="stale"] .gsr-gate-outer { stroke: #ECC36E; fill: #241D0E; }
.t-delco.v3-enabled .tv[data-state="stale"] .gsr-gate-inner { stroke: #ECC36E; fill: #1A160B; }
.t-delco.v3-enabled .tv[data-state="stale"] .gsr-gate-core  { opacity: 0; }
.t-delco.v3-enabled .tv[data-state="stale"] .gsr-gate-cut   { opacity: 1; }
.t-delco.v3-enabled .tv[data-state="stale"] .gsr-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: 12.5px; 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: 13px;
  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: 13px;
  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: 10.5px; }
#case-rhine #rhine-net-svg .net-core-lbl { font-size: 11px; }
#case-rhine #rhine-net-svg .net-sub      { font-size: 9.5px; }

@media (max-width: 720px) {
  #case-rhine #rhine-net-svg .net-lbl      { font-size: 15px; }
  #case-rhine #rhine-net-svg .net-core-lbl { font-size: 15.5px; }
  #case-rhine #rhine-net-svg .net-sub      { font-size: 14.8px; }
}

/* ==========================================================================
   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: 13px;
  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: 12.5px;
  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; }
  .gsr-flow { margin-bottom: 9px; padding: 6px 8px 7px; }
  .gsr-flow-labels { font-size: 11.5px; 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(19px, 1.6vw, 22px); line-height: 1.25; color: var(--fg); }
.svc p { font-size: 15.5px; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.svc .svc-proof { font-size: 14px; 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(22px, 2vw, 28px); line-height: 1.2; color: var(--fg); margin-bottom: 20px; }
.contact-steps { font-size: 15px; 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: 18px; 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: 13.5px; 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: 15px; font-weight: 600; color: var(--fg); }
.roster span { font-size: 13.8px; 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: 15.5px; font-weight: 700; color: var(--fg); }
.lab-meaning dt i { font-family: var(--f-body); font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); }
.lab-meaning dd { margin: 6px 0 0; font-size: 14px; 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; }
}
