/* ═══════════════════════════════════════════════════════════════
   ADIRMESH · canon v6 — CORE (tokens · chrome · atoms)
   Shared across all internal pages. Light "canon" + dark variant.
   ═══════════════════════════════════════════════════════════════ */

/* --- Canon (light, default) --------------------------------- */
:root,
[data-palette="canon"] {
  --bg:        #F4F1EC;
  --bg-2:      #ECE7DE;
  --paper:     #FBFAF6;
  --ink:       #0E1A3A;
  --ink-2:     #2A3358;
  --mute:      #5A6285;
  --line:      #D9D2C5;
  --line-soft: #E5E0D3;

  --mesh-1:    #1FA7B8;   /* cyan — seguridad */
  --mesh-2:    #1B3A8A;   /* navy — AI infra */
  --mesh-3:    #7A2BC4;   /* violet — IT */
  --signal:    #C28A00;

  --shadow-sm: 0 1px 2px rgba(14,26,58,.05), 0 2px 8px rgba(14,26,58,.04);
  --shadow-md: 0 8px 28px rgba(14,26,58,.10);
  --shadow-lg: 0 18px 48px rgba(14,26,58,.16);
  --scheme: light;
}

/* --- Dark (oscuro) — keeps tri-color mesh ------------------- */
[data-palette="dark"] {
  --bg:        #0E1116;
  --bg-2:      #161B24;
  --paper:     #12161E;
  --ink:       #ECEAE3;
  --ink-2:     #C2C7D4;
  --mute:      #727A8C;
  --line:      #262D3A;
  --line-soft: #1E2531;

  --mesh-1:    #34D2E4;
  --mesh-2:    #6E9BFF;
  --mesh-3:    #B981F2;
  --signal:    #E6B23E;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 8px 28px rgba(0,0,0,.5);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.6);
  --scheme: dark;
}

:root {
  --v-se: var(--mesh-1);
  --v-ai: var(--mesh-2);
  --v-it: var(--mesh-3);
  --mesh-grad: linear-gradient(90deg, var(--mesh-1) 0%, var(--mesh-2) 50%, var(--mesh-3) 100%);

  --display: 'Inter Tight', system-ui, sans-serif;
  --body:    'IBM Plex Sans', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;
  --t-tight: -0.03em;
  --t-wide:  0.16em;
  --max:     1280px;
  --pad-x:   clamp(20px, 4vw, 56px);
  --sidebar-w-expanded: 248px;
  --sidebar-w-collapsed: 72px;
  --sidebar-w: var(--sidebar-w-expanded);
}
[data-sidebar="collapsed"] { --sidebar-w: var(--sidebar-w-collapsed); }
@media (max-width: 980px) {
  :root, [data-sidebar="collapsed"] { --sidebar-w: 0px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: 56px;
  padding-left: var(--sidebar-w);
  transition: padding-left 300ms cubic-bezier(0.16, 1, 0.3, 1), background 300ms ease, color 300ms ease;
}
[data-news-dock="off"] body { padding-bottom: 0; }
@media (max-width: 720px) { body { padding-bottom: 0; } }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; z-index: 999; font-size: 14px;
}
.skip-link:focus { left: 16px; top: 16px; }

.mono {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: var(--t-wide); text-transform: uppercase;
  color: var(--mute);
}
.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad-x); }

/* === RULER ==================================================== */
.ruler { position: relative; height: 22px; border-top: 1px solid var(--line); margin: 0; }
.ruler::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background-image:
    linear-gradient(to right, var(--ink-2) 1px, transparent 1px),
    linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 80px 6px, 16px 4px;
  background-repeat: repeat-x; background-position: 0 0, 0 0; opacity: 0.55;
}
.ruler-labels {
  position: absolute; top: 8px; left: var(--pad-x); right: var(--pad-x);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: var(--t-wide); text-transform: uppercase;
  color: var(--mute); pointer-events: none;
}
[data-ruler="off"] .ruler { display: none; }
[data-ruler="off"] .sidebar::after { opacity: 0; }

/* === TOP STRIP =============================================== */
.topstrip { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; }
.topstrip::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--mesh-grad); opacity: 0.45;
}
.topstrip-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 30px; gap: 24px;
}
.topstrip .mono { font-size: 10px; }
.topstrip .mono em { font-style: normal; color: var(--ink-2); font-weight: 500; }
.topstrip-right { display: flex; gap: 18px; align-items: center; }
.topstrip .clock { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.topstrip .clock-sec { color: var(--mute); }
@media (max-width: 720px) { .topstrip-right .hide-sm { display: none; } }

/* === SIDEBAR ================================================= */
.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: var(--sidebar-w);
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  z-index: 70;
  display: flex; flex-direction: column;
  font-family: var(--body);
  overflow-y: auto; overflow-x: hidden;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
              width 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 1px; background: var(--mesh-grad); opacity: 0.9;
}
.sidebar::after {
  content: ""; position: absolute; top: 64px; bottom: 64px; right: 0;
  width: 3px;
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 3px 12px; opacity: 0.6; pointer-events: none;
}
[data-sidebar="collapsed"] .sidebar::after { opacity: 0; }

.sb-header {
  display: flex; align-items: center; gap: 8px;
  padding: 18px 14px 18px 22px;
  border-bottom: 1px solid var(--line);
  transition: padding 240ms cubic-bezier(0.16, 1, 0.3, 1), gap 240ms ease;
}
.sb-brand {
  flex: 1; display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  min-width: 0; white-space: nowrap; overflow: hidden;
}
.sb-brand img.logo { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.sb-brand .wordmark {
  font-family: var(--display); font-weight: 800;
  font-size: 22px; letter-spacing: var(--t-tight);
  display: inline-flex; align-items: baseline; line-height: 1;
  transition: opacity 200ms ease, width 240ms ease;
}
.sb-brand .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 999px;
  background: var(--mesh-3); margin-left: 3px; align-self: flex-end; margin-bottom: 4px;
}
.sb-burger {
  width: 32px; height: 32px; border-radius: 7px;
  background: transparent; border: 1px solid transparent; color: var(--mute);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; flex-shrink: 0;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.sb-burger:hover { color: var(--ink); background: color-mix(in oklab, var(--bg) 70%, transparent); border-color: var(--line); }
.sb-burger:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sb-burger svg { width: 16px; height: 16px; transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }

[data-sidebar="collapsed"] .sb-header { flex-direction: column; gap: 10px; padding: 16px 12px 14px; }
[data-sidebar="collapsed"] .sb-brand .wordmark { opacity: 0; width: 0; overflow: hidden; }
[data-sidebar="collapsed"] .sb-brand { justify-content: center; }
[data-sidebar="collapsed"] .sb-burger svg { transform: rotate(180deg); }
[data-sidebar="collapsed"] .sb-burger { width: 100%; height: 28px; border-radius: 6px; }

.sb-status {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px 14px;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: var(--t-wide); text-transform: uppercase;
  color: var(--mute); border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden;
}
.sb-status .live-dot {
  width: 6px; height: 6px; border-radius: 999px; flex-shrink: 0;
  background: var(--mesh-1);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--mesh-1) 22%, transparent);
  animation: dotPulse 2.4s ease-in-out infinite;
}
.sb-status .live-dot.amber { background: var(--signal); box-shadow: 0 0 0 3px color-mix(in oklab, var(--signal) 22%, transparent); }
.sb-status .clock { color: var(--ink-2); font-variant-numeric: tabular-nums; }
[data-motion="off"] .sb-status .live-dot { animation: none; }
[data-sidebar="collapsed"] .sb-status { justify-content: center; padding-inline: 18px; }
[data-sidebar="collapsed"] .sb-status > :not(.live-dot) { display: none; }

.sb-section { padding: 18px 14px 6px 14px; }
.sb-section + .sb-section { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.sb-section h5 {
  margin: 0 0 8px; padding: 0 8px;
  font-family: var(--mono); font-size: 9.5px;
  font-weight: 500; letter-spacing: var(--t-wide);
  text-transform: uppercase; color: var(--mute);
  display: flex; justify-content: space-between; align-items: baseline;
  white-space: nowrap; transition: opacity 200ms ease, height 240ms ease, margin 240ms ease;
}
.sb-section h5 .count { color: var(--line); font-variant-numeric: tabular-nums; }
[data-sidebar="collapsed"] .sb-section { padding-inline: 12px; }
[data-sidebar="collapsed"] .sb-section h5 { opacity: 0; height: 0; margin: 0; padding: 0; overflow: hidden; pointer-events: none; }

.sb-link {
  display: grid; grid-template-columns: 22px 22px 1fr auto;
  align-items: center; gap: 10px; padding: 9px 8px;
  border-radius: 6px; color: var(--ink-2);
  font-size: 14px; font-weight: 500; position: relative; overflow: visible;
  transition: background 200ms ease, color 200ms ease, padding 240ms ease, grid-template-columns 240ms ease;
  cursor: pointer;
}
.sb-link::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px;
  background: var(--ink); border-radius: 2px;
  opacity: 0; transform: scaleY(0.4); transform-origin: center;
  transition: opacity 200ms ease, transform 240ms ease;
}
.sb-link:hover { background: color-mix(in oklab, var(--bg) 70%, transparent); color: var(--ink); }
.sb-link:hover::before { opacity: 0.4; transform: scaleY(1); }
.sb-link[aria-current="true"], .sb-link.active { background: var(--bg); color: var(--ink); }
.sb-link[aria-current="true"]::before, .sb-link.active::before { opacity: 1; transform: scaleY(1); }
.sb-link .ico { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--mute); flex-shrink: 0; transition: color 200ms ease; }
.sb-link .ico svg { width: 20px; height: 20px; }
.sb-link:hover .ico, .sb-link[aria-current="true"] .ico { color: var(--ink); }
.sb-link.r-se .ico { color: var(--v-se); }
.sb-link.r-ai .ico { color: var(--v-ai); }
.sb-link.r-it .ico { color: var(--v-it); }
.sb-link .num {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: var(--t-wide); text-transform: uppercase; color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.sb-link .label {
  font-family: var(--body); font-weight: 500; font-size: 14px; color: inherit;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sb-section.routes .sb-link .label { font-family: var(--display); font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em; }
.sb-section.routes .sb-link { padding-block: 12px; }
.sb-link .arrow { font-size: 14px; color: var(--mute); opacity: 0; transition: opacity 200ms ease, transform 240ms ease; }
.sb-link:hover .arrow { opacity: 1; transform: translateX(2px); }
.sb-link .badge {
  font-family: var(--mono); font-size: 10px; font-variant-numeric: tabular-nums;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
}
.sb-link .badge[data-count="0"] { display: none; }

[data-sidebar="collapsed"] .sb-link { grid-template-columns: 1fr; justify-items: center; padding: 11px 6px; }
[data-sidebar="collapsed"] .sb-link > .num,
[data-sidebar="collapsed"] .sb-link > .label,
[data-sidebar="collapsed"] .sb-link > .arrow { display: none; }
[data-sidebar="collapsed"] .sb-link > .badge {
  position: absolute; top: 4px; right: 6px; min-width: 15px; height: 15px; font-size: 8.5px; padding: 0 3px;
}

/* tooltip (collapsed only) */
.sb-link .tip {
  position: absolute; left: calc(100% + 14px); top: 50%;
  transform: translateY(-50%) translateX(-6px);
  padding: 6px 10px; background: var(--ink); color: var(--bg);
  font-family: var(--body); font-size: 12.5px; font-weight: 500;
  white-space: nowrap; border-radius: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 80; box-shadow: var(--shadow-md); display: none;
}
.sb-link .tip::before { content: ""; position: absolute; left: -3px; top: 50%; width: 8px; height: 8px; transform: translateY(-50%) rotate(45deg); background: var(--ink); }
.sb-link .tip .tip-num { font-family: var(--mono); font-size: 10px; letter-spacing: var(--t-wide); text-transform: uppercase; color: color-mix(in oklab, var(--bg) 60%, transparent); margin-right: 6px; }
[data-sidebar="collapsed"] .sb-link .tip { display: block; }
[data-sidebar="collapsed"] .sb-link:hover .tip, [data-sidebar="collapsed"] .sb-link:focus-visible .tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---- sidebar sub-navigation (Líneas group) ----------------------- */
.sb-group { position: relative; }
.sb-group-toggle { width: 100%; background: none; border: none; text-align: left; padding: 0; }
.sb-group:has([aria-current="true"]) .sb-group-toggle { background: var(--bg); color: var(--ink); }
.sb-group:has([aria-current="true"]) .sb-group-toggle::before { opacity: 1; transform: scaleY(1); }
.sb-caret { display: inline-flex; align-items: center; color: var(--mute); transition: transform 220ms cubic-bezier(0.16,1,0.3,1); }
.sb-caret svg { width: 10px; height: 10px; }
.sb-group-toggle[aria-expanded="false"] .sb-caret { transform: rotate(-90deg); }
.sb-subnav { overflow: hidden; max-height: 200px; opacity: 1; transition: max-height 240ms cubic-bezier(0.16,1,0.3,1), opacity 200ms ease; }
.sb-group-toggle[aria-expanded="false"] + .sb-subnav { max-height: 0; opacity: 0; }
.sb-sublink {
  display: flex; align-items: center;
  padding: 6px 8px 6px 44px;
  font-family: var(--body); font-size: 13px; font-weight: 500;
  color: var(--mute); border-radius: 6px; position: relative;
  transition: color 150ms ease, background 150ms ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 1px;
}
.sb-sublink:hover { color: var(--ink); background: color-mix(in oklab, var(--bg) 70%, transparent); }
.sb-sublink::before {
  content: ""; position: absolute; left: 30px;
  width: 6px; height: 6px; border-radius: 50%;
  opacity: 0.7; transition: opacity 150ms;
}
.sb-sublink.r-se::before { background: var(--v-se); }
.sb-sublink.r-ai::before { background: var(--v-ai); }
.sb-sublink.r-it::before { background: var(--v-it); }
.sb-sublink:hover::before { opacity: 1; }
.sb-sublink[aria-current="true"] { color: var(--ink); font-weight: 600; }
[data-sidebar="collapsed"] .sb-subnav { display: none; }
[data-sidebar="collapsed"] .sb-caret { display: none; }

.sb-spacer { flex: 1; min-height: 16px; }
.sb-cta-wrap { padding: 14px 14px 0 14px; border-top: 1px solid var(--line); }
.sb-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 42px; border: 1px solid var(--ink); border-radius: 8px;
  font-family: var(--body); font-size: 13.5px; font-weight: 600; color: var(--ink); background: transparent;
  white-space: nowrap; overflow: hidden;
  transition: background 220ms ease, color 220ms ease;
}
.sb-cta:hover { background: var(--ink); color: var(--bg); }
.sb-cta .cta-label { transition: opacity 200ms ease, width 240ms ease, margin 240ms ease; }
.sb-cta-note { margin-top: 8px; padding: 0 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--t-wide); text-transform: uppercase; color: var(--mute); text-align: center; transition: opacity 200ms ease, height 240ms ease, margin 240ms ease; }
[data-sidebar="collapsed"] .sb-cta-wrap { padding-inline: 12px; }
[data-sidebar="collapsed"] .sb-cta { padding: 0; gap: 0; }
[data-sidebar="collapsed"] .sb-cta .cta-label { opacity: 0; width: 0; margin: 0; }
[data-sidebar="collapsed"] .sb-cta-note { opacity: 0; height: 0; margin: 0; overflow: hidden; }

.sb-foot {
  padding: 14px 22px 18px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--t-wide); text-transform: uppercase;
  color: var(--mute); border-top: 1px solid var(--line-soft); margin-top: 14px;
  white-space: nowrap; overflow: hidden;
  transition: opacity 200ms ease, height 240ms ease, padding 240ms ease, margin 240ms ease;
}
.sb-foot .v { color: var(--ink-2); }
[data-sidebar="collapsed"] .sb-foot { opacity: 0; height: 0; padding: 0; margin: 0; border: none; }

@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 3px color-mix(in oklab, var(--mesh-1) 22%, transparent); }
  50%     { box-shadow: 0 0 0 6px color-mix(in oklab, var(--mesh-1) 8%, transparent); }
}

/* === MOBILE TOPBAR ========================================== */
.mobilebar {
  display: none; position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  align-items: center; justify-content: space-between; height: 60px; padding-inline: var(--pad-x);
}
.mobilebar .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: var(--t-tight); }
.mobilebar .brand img { width: 28px; height: 28px; }
.mobilebar .brand .dot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--mesh-3); margin-left: 2px; }
.mobilebar-right { display: flex; align-items: center; gap: 10px; }
.menu-toggle { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.menu-toggle svg { width: 18px; height: 18px; }
.sb-backdrop { display: none; position: fixed; inset: 0; background: color-mix(in oklab, var(--ink) 50%, transparent); z-index: 65; }
@media (max-width: 980px) {
  .mobilebar { display: flex; }
  .sidebar { width: 280px; transform: translateX(-100%); box-shadow: 12px 0 32px rgba(14,26,58,0.18); }
  body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open .sb-backdrop { display: block; }
}

/* === NEWS DOCK ============================================== */
.news-dock {
  position: fixed; left: var(--sidebar-w); right: 0; bottom: 0; z-index: 60;
  background: #0E1A3A; color: #F4F1EC;
  border-top: 1px solid color-mix(in oklab, #F4F1EC 20%, transparent);
  box-shadow: 0 -8px 24px rgba(14, 26, 58, 0.10);
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1), left 240ms ease;
}
[data-palette="dark"] .news-dock { background: #060810; }
.news-dock::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--mesh-grad); opacity: 0.85; }
[data-news-dock="off"] .news-dock { transform: translateY(110%); pointer-events: none; }
.news-dock-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  height: 56px; gap: 24px; padding-inline: var(--pad-x); max-width: var(--max); margin: 0 auto;
}
.news-dock-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: var(--t-wide); text-transform: uppercase; color: color-mix(in oklab, #F4F1EC 70%, transparent); white-space: nowrap; }
.news-dock-label .pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in oklab, var(--signal) 30%, transparent); animation: dotPulseAmber 2s ease-in-out infinite; }
@keyframes dotPulseAmber { 0%,100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--signal) 30%, transparent); } 50% { box-shadow: 0 0 0 9px color-mix(in oklab, var(--signal) 8%, transparent); } }
[data-motion="off"] .news-dock-label .pulse { animation: none; }
.news-dock-label .live { color: #F4F1EC; font-weight: 500; }
.news-dock-track-wrap { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); min-width: 0; }
.news-dock-track { display: flex; gap: 0; align-items: center; width: max-content; animation: dockScroll 90s linear infinite; }
.news-dock-track:hover { animation-play-state: paused; }
.news-dock-track .tick { display: inline-flex; align-items: center; gap: 14px; padding-inline: 24px; border-right: 1px solid color-mix(in oklab, #F4F1EC 16%, transparent); white-space: nowrap; }
.news-dock-track .cat { font-family: var(--mono); font-size: 10px; letter-spacing: var(--t-wide); text-transform: uppercase; padding: 3px 8px; border: 1px solid color-mix(in oklab, #F4F1EC 26%, transparent); border-radius: 999px; color: color-mix(in oklab, #F4F1EC 86%, transparent); }
.news-dock-track .cat.se  { color: var(--mesh-1); border-color: color-mix(in oklab, var(--mesh-1) 60%, transparent); }
.news-dock-track .cat.ai  { color: #7FA6FF; border-color: color-mix(in oklab, #7FA6FF 60%, transparent); }
.news-dock-track .cat.it  { color: #BD8CF0; border-color: color-mix(in oklab, #BD8CF0 60%, transparent); }
.news-dock-track .cat.mkt { color: var(--signal); border-color: color-mix(in oklab, var(--signal) 60%, transparent); }
.news-dock-track a.head { font-family: var(--body); font-size: 13.5px; font-weight: 500; color: #F4F1EC; letter-spacing: -0.005em; transition: color 200ms ease; }
.news-dock-track a.head:hover { color: var(--mesh-1); }
.news-dock-track .time { font-family: var(--mono); font-size: 10px; color: color-mix(in oklab, #F4F1EC 60%, transparent); letter-spacing: var(--t-wide); text-transform: uppercase; font-variant-numeric: tabular-nums; }
@keyframes dockScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[data-motion="off"] .news-dock-track { animation: none; }
.news-dock-actions { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: var(--t-wide); text-transform: uppercase; }
.news-dock-actions a { color: color-mix(in oklab, #F4F1EC 90%, transparent); display: inline-flex; align-items: center; gap: 4px; }
.news-dock-actions a:hover { color: var(--mesh-1); }
.news-dock-close { background: none; border: 1px solid color-mix(in oklab, #F4F1EC 22%, transparent); width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #F4F1EC; transition: background 200ms ease, border-color 200ms ease; }
.news-dock-close:hover { background: color-mix(in oklab, #F4F1EC 12%, transparent); border-color: #F4F1EC; }
@media (max-width: 880px) { .news-dock-inner { grid-template-columns: auto 1fr; height: 48px; gap: 14px; } .news-dock-actions { display: none; } }
@media (max-width: 720px) { .news-dock { display: none; } }

/* === SHARED ATOMS =========================================== */
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 36px; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.03em; margin: 12px 0 0; max-width: 24ch; text-wrap: balance; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-family: var(--body); font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 220ms cubic-bezier(0.16,1,0.3,1), background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: color-mix(in oklab, var(--bg-2) 60%, transparent); }
.btn-mesh { background: var(--mesh-2); color: #fff; }
.btn-mesh:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: var(--t-wide); text-transform: uppercase;
  color: var(--ink-2); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2);
}
.chip .dotmini { width: 5px; height: 5px; border-radius: 999px; background: var(--mesh-1); }

/* === BREADCRUMB + PAGE HEADER =============================== */
.crumb { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-family: var(--mono); font-size: 10.5px; letter-spacing: var(--t-wide); text-transform: uppercase; color: var(--mute); }
.crumb a { color: var(--mute); transition: color 180ms ease; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { color: var(--line); }
.crumb .here { color: var(--ink-2); }

.pagehead { padding-top: clamp(36px, 5vw, 64px); padding-bottom: 28px; position: relative; }
.pagehead .eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 18px 0 18px; font-family: var(--mono); font-size: 11px; letter-spacing: var(--t-wide); text-transform: uppercase; color: var(--mute); }
.pagehead .eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--mesh-1); }
.pagehead h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.04em; color: var(--ink); margin: 0 0 20px; text-wrap: balance; max-width: 20ch; }
.pagehead .lede { font-family: var(--body); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 56ch; margin: 0; }

/* === MESH / PARTNER DARK SECTION (shared) =================== */
.mesh-section { background: var(--ink); color: var(--bg); padding-block: clamp(64px, 8vw, 110px); position: relative; overflow: hidden; }
[data-palette="dark"] .mesh-section { background: #060810; color: var(--ink); }
.mesh-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--mesh-grad); }
.mesh-section::after { content: ""; position: absolute; top: -120px; right: -120px; width: 480px; height: 480px; background: radial-gradient(circle, color-mix(in oklab, var(--mesh-1) 30%, transparent), transparent 60%); filter: blur(60px); pointer-events: none; }
.mesh-section .container { position: relative; z-index: 1; }
.mesh-section .mono { color: color-mix(in oklab, var(--bg) 60%, transparent); }
[data-palette="dark"] .mesh-section .mono { color: var(--mute); }
.mesh-section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 50px); line-height: 1.04; letter-spacing: -0.03em; margin: 16px 0 24px; text-wrap: balance; }
.mesh-section h2 em { font-style: italic; font-weight: 700; background: var(--mesh-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* === FOOTER ================================================= */
footer.site { background: var(--bg); padding-top: 64px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 48px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: var(--t-tight); margin-bottom: 14px; color: var(--ink); }
.footer-brand img.logo { width: 30px; height: 30px; }
.footer-brand .dot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--mesh-3); margin-left: 3px; align-self: flex-end; margin-bottom: 4px; }
.footer-tag { font-family: var(--body); font-size: 13px; line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.footer-col h4 { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: var(--t-wide); text-transform: uppercase; color: var(--mute); margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-family: var(--body); font-size: 14px; color: var(--ink); }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 16px; }
.footer-group { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-group .mono { font-size: 11px; }
.footer-group .sep { color: var(--line); }

#tweaks-root { position: fixed; z-index: 100; }

@media (prefers-reduced-motion: reduce) {
  .sb-status .live-dot, .news-dock-label .pulse, .news-dock-track { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
