/* XShield page (23 October 2026; canon of 25 October 2026): one accent phrase per title, the frames of the live
   graphics in scenes.js, one goal with two pathways, the four steps, the five capabilities, what the ministry keeps, the four products, the security list and the
   reading band. Built to the removing-ai-ui-signs rule: one accent phrase per title in the brand gradient (23 October 2026),
   neutral borders (no coloured stripes), hover by colour (no lift), numbers in place of icons, no stat banner. */

/* one accent phrase per title, in the brand gradient of its band (23 October 2026) */
.v2-xshield .xs-em { color:var(--t-k); background-image:var(--t-grad); background-repeat:no-repeat; -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.v2-xshield .v2-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- the live graphics ---------- */
.xs-fig { position:relative; margin:0; width:100%; }
.xs-fig canvas { position:absolute; inset:0; width:100%; height:100%; }
.xs-lab { position:absolute; left:0; top:0; transform:translate(-50%,-100%); padding-bottom:7px; font-size:12.5px; font-weight:600; line-height:1.2;
  letter-spacing:0; white-space:nowrap; color:var(--t-h); opacity:0; transition:opacity .6s var(--v-ease); pointer-events:none; }
.xs-fig.xs-ready .xs-lab { opacity:1; }
.xs-fig.xs-ready .xs-lab.xs-off { opacity:0; }

/* hero: the memory rings fill the right part of the band, the text sits on the left */
.xs-hero { min-height:min(92vh, 860px); display:flex; align-items:center; }
.xs-hero > .v2-in { width:100%; }
.xs-hero .xs-h1 { max-width:12ch; }
.xs-hero .v2-l { max-width:46ch; }
.xs-fig-memory { position:absolute; top:0; bottom:0; right:0; width:64%; height:auto; z-index:0; }
.xs-hero::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(90deg, rgba(2,24,37,.92) 0%, rgba(2,24,37,.72) 34%, rgba(2,24,37,0) 62%); }
.xs-hero > .v2-in { z-index:2; }

.xs-fig-map { height:340px; margin-top:clamp(28px,4vh,44px); }
.xs-fig-keeps { height:440px; }
.xs-fig-products { height:380px; margin-top:clamp(24px,3.5vh,40px); }
.xs-fig-grow { height:400px; }

/* ---------- numbered points: the living map ---------- */
.xs-points { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:40px 44px; margin-top:clamp(32px,4.5vh,52px); }
.xs-points > li, .xs-terms > li, .xs-papers > li { position:relative; padding-top:20px; }
.xs-points > li::before, .xs-terms > li::before, .xs-papers > li::before { content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--t-r); }
.xs-points > li::after, .xs-terms > li::after, .xs-papers > li::after { content:""; position:absolute; left:0; top:0; width:56px; height:2px; background:var(--t-k);
  transform:scaleX(0); transform-origin:0 50%; transition:transform 1s var(--v-ease); transition-delay:calc(.25s + var(--d, 0) * 90ms); }
.xs-points > li.in::after, .xs-terms > li.in::after, .xs-papers > li.in::after { transform:none; }
.xs-num { display:block; margin-bottom:10px; font-size:14px; font-weight:700; color:var(--t-k); font-variant-numeric:tabular-nums; }
.xs-points .v2-p { margin-top:10px; font-size:16px; }

/* ---------- one goal, different pathways (25 October 2026): one shared goal that branches to two people ---------- */
.xs-paths { position:relative; margin-top:clamp(30px,4.5vh,48px); }
.xs-goal { position:relative; width:fit-content; max-width:100%; margin:0 auto; padding:14px 24px; border-radius:12px; background:var(--t-card);
  border:1px solid var(--t-k); font-size:17px; font-weight:650; line-height:1.3; color:var(--t-h); text-align:center; }
.xs-people { position:relative; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px; padding-top:44px; }
/* the branch: down from the goal, across, and down to each person */
.xs-people::before { content:""; position:absolute; left:50%; top:0; width:1px; height:22px; background:var(--t-k); }
.xs-people::after { content:""; position:absolute; left:25%; right:25%; top:22px; height:1px; background:var(--t-k); }
.xs-people > li { position:relative; padding:24px 26px 26px; border-radius:12px; background:var(--t-card); border:1px solid var(--t-cb); }
.xs-people > li::before { content:""; position:absolute; left:50%; top:-23px; width:1px; height:22px; background:var(--t-k); }
.xs-plab { margin-top:16px; font-size:14px; font-weight:600; color:var(--t-k); }
.xs-people .v2-p { margin-top:4px; font-size:16px; }
.xs-people .xs-test { color:var(--t-h); font-weight:600; }
.xs-pnote { text-align:center; }

/* ---------- four steps toward one-to-one policy, and the loop back from Learn to Map ---------- */
.xs-steps { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:36px 32px; margin-top:clamp(30px,4.5vh,48px); }
.xs-steps > li { position:relative; display:flex; flex-direction:column; padding-top:20px; }
.xs-steps > li::before { content:""; position:absolute; left:0; right:0; top:0; height:1px; background:var(--t-r); }
.xs-steps > li::after { content:""; position:absolute; left:0; top:0; width:56px; height:2px; background:var(--t-k);
  transform:scaleX(0); transform-origin:0 50%; transition:transform 1s var(--v-ease); transition-delay:calc(.25s + var(--d, 0) * 90ms); }
.xs-steps > li.in::after { transform:none; }
.xs-steps .v2-h3 { font-size:clamp(24px,2vw,30px); }
.xs-stitle { margin-top:6px; font-size:16px; font-weight:600; line-height:1.35; color:var(--t-h); }
.xs-steps .v2-p { margin-top:10px; font-size:15.5px; flex:1; }
.xs-uses { margin-top:14px; font-size:14px; line-height:1.45; color:var(--t-m); }
.xs-uses b { font-weight:600; color:var(--t-k); margin-right:4px; }
.xs-loop { position:relative; margin-top:clamp(30px,4vh,40px); padding-top:26px; font-size:16px; font-weight:600; color:var(--t-k); text-align:center; }
.xs-loop::before { content:""; position:absolute; left:6px; right:6px; top:0; height:14px; border:1px solid var(--t-k); border-top:0; border-radius:0 0 10px 10px; }
.xs-loop::after { content:""; position:absolute; left:2px; top:-7px; border:5px solid transparent; border-top:0; border-bottom:7px solid var(--t-k); }

/* ---------- five capabilities: a subtitle and an optional link under each name ---------- */
.xs-points .xs-psub { margin-top:4px; font-size:14px; font-weight:600; color:var(--t-m); }
.xs-points .xs-more { display:inline-block; }

/* ---------- what the ministry keeps ---------- */
.xs-keeps { margin-top:clamp(26px,3.5vh,40px); display:grid; gap:0; }
.xs-keeps > li { padding:18px 0; border-top:1px solid var(--t-r); }
.xs-keeps > li:last-child { border-bottom:1px solid var(--t-r); }
.xs-keeps .v2-p { margin-top:6px; font-size:16px; }

/* ---------- four products on one map ---------- */
.xs-products { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px; margin-top:clamp(28px,4vh,44px); }
.xs-products > li { display:flex; flex-direction:column; padding:22px 22px 24px; border-radius:12px; background:var(--t-card); border:1px solid var(--t-cb); transition:border-color .2s; }
.xs-products > li:hover, .xs-products > li:focus-within { border-color:var(--t-acc); }
.xs-verb { font-size:14px; font-weight:600; color:var(--t-k); }
.xs-products .v2-h4 { margin-top:6px; font-size:19px; }
.xs-products .v2-p { margin-top:8px; font-size:15.5px; flex:1; }
.xs-more { margin-top:16px; font-size:15px; }
.xs-architects { margin-top:clamp(28px,4vh,40px); max-width:62ch; }

/* ---------- security and sovereignty ---------- */
.xs-check { margin-top:clamp(24px,3.5vh,36px); max-width:560px; }
.xs-check li { position:relative; padding:15px 0 15px 34px; border-bottom:1px solid var(--t-r); font-size:16px; line-height:1.45; color:var(--t-h); }
.xs-check li::before { content:""; position:absolute; left:4px; top:21px; width:10px; height:6px; border-left:2px solid var(--t-k); border-bottom:2px solid var(--t-k); transform:rotate(-45deg); }
.xs-sovereign { align-self:center; padding:clamp(26px,3vw,40px); border-radius:12px; background:#ffffff; border:1px solid var(--t-cb); }
.xs-sovereign .v2-l { margin-top:10px; }

/* ---------- development in one equation: D, E and Q of the model of 24 October 2026 ---------- */
.xs-eq { display:flex; align-items:baseline; gap:clamp(14px,2vw,28px); margin-top:clamp(26px,4vh,44px); font-size:clamp(56px,8vw,112px);
  font-weight:700; line-height:1; letter-spacing:-0.03em; color:var(--t-h); }
.xs-eq i { font-style:normal; font-weight:400; color:var(--t-m); }
.xs-terms { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:40px 44px; margin-top:clamp(30px,4.5vh,48px); }
.xs-letter { display:block; font-size:30px; font-weight:700; line-height:1; color:var(--t-k); }
.xs-terms .v2-h4 { margin-top:12px; }
.xs-terms .v2-p { margin-top:8px; font-size:16px; }

/* ---------- six PLANIC questions, in two groups: the State side (E) and the citizen side (Q) ---------- */
.xs-planic { margin-top:clamp(56px,8vh,88px); }
.xs-six { display:grid; grid-template-columns:4fr 2fr; gap:32px; margin-top:clamp(26px,4vh,40px); }
.xs-sidelab { padding-bottom:12px; border-bottom:1px solid var(--t-k); font-size:15px; font-weight:600; color:var(--t-h); }
.xs-sidelab b { margin-right:6px; color:var(--t-k); }
.xs-side ol { display:grid; gap:28px 24px; margin-top:22px; }
.xs-side-e ol { grid-template-columns:repeat(4, minmax(0,1fr)); }
.xs-side-q ol { grid-template-columns:repeat(2, minmax(0,1fr)); }
.xs-side .xs-letter { font-size:26px; }
.xs-side .v2-h4 { margin-top:10px; font-size:16px; }
.xs-side .v2-p { margin-top:6px; font-size:15px; }

/* ---------- the scientific foundations: the papers, named one by one ---------- */
.xs-papers { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:36px 32px; margin-top:clamp(30px,4.5vh,48px); }
.xs-pnum { display:block; font-size:28px; font-weight:700; line-height:1; color:var(--t-k); }
.xs-papers .v2-h4 { margin-top:12px; font-size:18px; }
.xs-psub { margin-top:6px; font-size:14px; font-weight:600; color:var(--t-m); }
.xs-papers .v2-p { margin-top:8px; font-size:15.5px; }
.xs-papers + .v2-meta { margin-top:clamp(24px,3.5vh,36px); }

/* ---------- phones and tablets ---------- */
@media (max-width:960px) {
  .xs-hero { min-height:0; flex-direction:column; align-items:stretch; padding-bottom:clamp(40px,6vh,64px); }
  .xs-hero::after { display:none; }
  .xs-hero > .v2-in { order:1; }
  .xs-fig-memory { order:2; position:relative; width:100%; height:340px; margin-top:20px; }
  .xs-products { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .xs-papers { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .xs-steps { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .xs-six { grid-template-columns:1fr; }
  .xs-side-e ol { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .xs-fig-grow { order:2; }
}
@media (max-width:900px) {
  .xs-points, .xs-terms { grid-template-columns:1fr; }
  .xs-fig-map { height:300px; }
  .xs-fig-keeps { height:340px; margin-top:28px; }
  .xs-fig-products { height:320px; }
  .xs-fig-grow { height:320px; margin-top:28px; }
  .xs-lab { font-size:11.5px; }
}
@media (max-width:640px) {
  .xs-products, .xs-papers, .xs-steps { grid-template-columns:1fr; }
  .xs-people { grid-template-columns:1fr; gap:14px; padding-top:14px; }
  .xs-people::before, .xs-people::after, .xs-people > li::before { display:none; }
  .xs-goal { width:100%; }
  .xs-side-e ol, .xs-side-q ol { grid-template-columns:1fr; }
  .xs-fig-memory { height:300px; }
}
@media (prefers-reduced-motion:reduce) {
  .xs-points > li::after, .xs-terms > li::after, .xs-papers > li::after, .xs-steps > li::after { transform:none; transition:none; }
}
