/* =====================================================================
   Nodofact — main stylesheet
   Brand: deep space indigo + lime → teal → cyan gradient.
   ===================================================================== */

:root {
  /* Brand */
  --indigo-950: #07071C;
  --indigo-900: #0A0A24;
  --indigo-850: #0E0E30;
  --indigo-800: #13133D;
  --indigo-700: #1C1C52;
  --violet: #7B6CF6;
  --lime: #B6F23A;
  --teal: #14C8B4;
  --cyan: #22D3EE;
  --grad: linear-gradient(90deg, var(--lime) 0%, var(--teal) 55%, var(--cyan) 100%);

  /* Surfaces & text */
  --bg: var(--indigo-900);
  --bg-alt: var(--indigo-850);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #EEF0FF;
  --text-2: #B4B8DA;
  --text-3: #8187B5;

  /* Status (decision receipt bands) */
  --green: #34D399;
  --amber: #F5B83D;
  --red: #F87171;

  /* Type */
  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
.mono { font-family: var(--f-mono); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--indigo-950); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font: 500 .78rem/1 var(--f-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 1.1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--grad); }
.eyebrow--hero { font-size: clamp(.9rem, .7rem + .6vw, 1.15rem); gap: .8rem; margin-bottom: 1.5rem; }
.eyebrow--hero::before { width: 34px; height: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--grad); color: var(--indigo-950); box-shadow: 0 8px 30px -10px rgba(20, 200, 180, .6); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(20, 200, 180, .8); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-strong); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--teal); background: rgba(20, 200, 180, .08); }
.btn--small { padding: .6rem 1rem; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(10, 10, 36, .82); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand__word { font: 600 1.32rem/1 var(--f-display); letter-spacing: -0.03em; }
.brand__nodo { color: #fff; }
.brand__fact { background: linear-gradient(90deg, #2DD4A0, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__tld { color: var(--text-3); font-weight: 400; font-size: .85em; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.6rem; list-style: none; }
.nav a { text-decoration: none; color: var(--text-2); font-size: .93rem; font-weight: 500; position: relative; padding: .4rem 0; white-space: nowrap; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--grad); border-radius: 2px; }

.site-header__tools { display: flex; align-items: center; gap: .8rem; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.03); }
.lang__btn {
  border: 0; background: transparent; color: var(--text-3); cursor: pointer;
  font: 500 .76rem/1 var(--f-mono); letter-spacing: .06em; padding: .45rem .6rem; border-radius: 999px;
  min-width: 36px; min-height: 30px; transition: background-color .2s, color .2s;
}
.lang__btn:hover { color: var(--text); }
.lang__btn[aria-pressed="true"] { background: var(--text); color: var(--indigo-950); }

.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 18px; height: 1.5px; background: var(--text); transition: transform .25s, opacity .25s; }
.nav-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .site-header__tools { margin-left: auto; }
  .site-header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: rgba(10, 10, 36, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.6rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: .9rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a.is-active::after { display: none; }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open .site-header { background: rgba(10, 10, 36, .97); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 40px) 0 120px; }
.hero__media { position: absolute; inset: 0; z-index: -1; background: radial-gradient(1200px 600px at 75% 30%, rgba(123,108,246,.22), transparent 60%), radial-gradient(900px 500px at 10% 90%, rgba(20,200,180,.14), transparent 60%), var(--indigo-950); }
.hero__network { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__videos { position: absolute; inset: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; filter: saturate(.75) contrast(1.05); }
.hero__video.is-on { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,28,.72) 0%, rgba(7,7,28,.5) 45%, rgba(7,7,28,.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,36,0) 28%),
    linear-gradient(180deg, rgba(7,7,28,.6) 0%, rgba(7,7,28,0) 22%);
}
.hero.has-video .hero__shade { background-color: rgba(28, 20, 90, .18); mix-blend-mode: normal; }
.hero__grid {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.hero__content { position: relative; }
.hero__lead, .hero__facts, .hero .eyebrow { text-shadow: 0 1px 14px rgba(7,7,28,.75); }
.hero__title { font-size: clamp(2.3rem, 4.6vw, 4rem); font-weight: 700; max-width: 17ch; margin-bottom: 1.2rem; letter-spacing: -0.035em; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-2); max-width: 54ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }

/* Short laptop screens (e.g. 1366x768): keep the four facts above the fold */
@media (min-width: 900px) and (max-height: 860px) {
  .hero { padding-top: calc(var(--header-h) + 14px); padding-bottom: 48px; }
  .hero .eyebrow { margin-bottom: .9rem; }
  .hero__title { font-size: clamp(2.3rem, 4vw, 3.4rem); margin-bottom: .9rem; }
  .hero__lead { font-size: 1.08rem; margin-bottom: 1.3rem; }
  .hero__actions { margin-bottom: 1.6rem; }
}

.hero__facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 900px; padding: 0; }
/* Light glass: mostly transparent so the video shows through, a faint frost and a
   light hairline edge that is brightest at the top and fades towards the bottom */
.hero__facts li { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.05rem; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 60%, rgba(7,7,28,.12));
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transition: background .25s; }
.hero__facts li::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(182,242,58,.14) 35%, rgba(255,255,255,.04) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.hero__facts li:hover { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025) 60%, rgba(7,7,28,.12)); }
.fact__icon { width: 22px; height: 22px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .45rem; filter: drop-shadow(0 1px 8px rgba(7,7,28,.8)); }
.fact__k { font-size: 1.5rem; font-weight: 500; color: var(--text); }
.fact__v { font-size: .86rem; color: var(--text-2); line-height: 1.4; }
@media (max-width: 720px) {
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hero__controls { position: absolute; right: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: .9rem; }
.hero__caption { font-size: .72rem; letter-spacing: .08em; color: var(--text-3); text-transform: uppercase; }
.hero__toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(7,7,28,.5); backdrop-filter: blur(6px); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.hero__toggle svg { width: 16px; height: 16px; fill: currentColor; }
.hero__toggle .i-play, .hero.is-paused .hero__toggle .i-pause { display: none; }
.hero.is-paused .hero__toggle .i-play { display: block; }
@media (max-width: 600px) { .hero__caption { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--band { background: linear-gradient(180deg, var(--indigo-800), var(--indigo-900)); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__lead { color: var(--text-2); font-size: 1.1rem; max-width: 60ch; }
.prose p { color: var(--text-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--center { align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---------- Problem: requirements + versus comparison ---------- */
.problem__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-2); margin-bottom: 1.8rem; }
.problem__req-label { font: 500 .74rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: .9rem; }
.problem__reqs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.problem__reqs li {
  display: flex; flex-direction: column; gap: .7rem; padding: 1.1rem 1.1rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); font: 600 1.02rem/1.2 var(--f-display); color: var(--text);
  position: relative; overflow: hidden;
}
.problem__reqs li::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); }
.problem__reqs svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .problem__reqs { grid-template-columns: 1fr; } .problem__reqs li { flex-direction: row; align-items: center; } }

/* Three columns: ML (dimmed panel) · topic on a glowing spine · SI (highlighted panel) */
.versus { --spine: 220px; margin-top: clamp(48px, 7vw, 80px); position: relative; display: grid; gap: 0; }
.versus::before, .versus::after { content: ""; position: absolute; top: 0; bottom: 0; width: calc(50% - var(--spine) / 2 - 10px); border-radius: var(--radius); pointer-events: none; }
.versus::before { left: 0; background: rgba(255,255,255,.02); border: 1px solid var(--line); }
.versus::after {
  right: 0; border: 1px solid transparent;
  background: linear-gradient(160deg, rgba(20,200,180,.12), rgba(34,211,238,.04)) padding-box, linear-gradient(var(--indigo-900), var(--indigo-900)) padding-box, var(--grad) border-box;
  box-shadow: 0 30px 80px -40px rgba(20,200,180,.45);
}
.versus__row { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) var(--spine) minmax(0, 1fr); align-items: center; }
.versus__row > * { padding: 1.05rem 1.6rem; }
.versus__ml { display: flex; align-items: center; justify-content: flex-end; gap: .9rem; text-align: right; color: var(--text-3); }
.versus__si { display: flex; align-items: center; gap: .9rem; color: var(--text); font-weight: 500; }
.versus__ml svg, .versus__si svg { flex-shrink: 0; width: 30px; height: 30px; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.versus__ml svg { stroke: var(--text-3); opacity: .7; order: 2; }
.versus__si svg { stroke: var(--teal); filter: drop-shadow(0 0 8px rgba(20,200,180,.35)); }
.versus__row:not(.versus__head) .versus__ml span { text-decoration: line-through; text-decoration-color: rgba(129,135,181,.35); }

/* The spine: a gradient line with each topic as a chip */
.versus__topic { position: relative; display: flex; justify-content: center; align-items: center; text-align: center; }
.versus__row:not(.versus__head) .versus__topic { padding: .7rem .5rem; }
.versus__row:not(.versus__head) .versus__topic::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--line-strong), rgba(20,200,180,.55), var(--line-strong)); }
.versus__chip {
  position: relative; z-index: 1; display: inline-block; padding: .5rem .85rem; border-radius: 999px;
  background: var(--indigo-850); border: 1px solid var(--line-strong);
  font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.versus__row:hover .versus__chip { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,200,180,.1); }
.versus__row:hover .versus__si { color: #fff; }

.versus__head > * { padding-top: 1.6rem; padding-bottom: 1.2rem; }
.versus__head .versus__ml { font: 500 .78rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.versus__head .versus__si { flex-direction: column; align-items: flex-start; gap: .3rem; font: 600 1.05rem/1.2 var(--f-display); }
.versus__head .versus__si small { font: 400 .85rem/1.4 var(--f-body); color: var(--text-2); }
.versus__vs {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font: 700 .9rem/1 var(--f-display); color: var(--indigo-950); background: var(--grad);
  box-shadow: 0 0 0 6px rgba(20,200,180,.12), 0 10px 30px -8px rgba(20,200,180,.6);
}

@media (max-width: 760px) {
  .versus::before, .versus::after { display: none; }
  .versus { gap: .8rem; }
  .versus__row { grid-template-columns: 1fr 1fr; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
  .versus__row > * { padding: .8rem .9rem; }
  .versus__topic { grid-column: 1 / -1; order: -1; justify-content: flex-start; text-align: left; border-bottom: 1px solid var(--line); background: var(--surface-2); }
  .versus__row:not(.versus__head) .versus__topic { padding: .6rem .9rem; }
  .versus__row:not(.versus__head) .versus__topic::before { display: none; }
  .versus__chip { padding: 0; border: 0; background: none; }
  .versus__ml { justify-content: flex-start; text-align: left; flex-direction: column; align-items: flex-start; gap: .5rem; font-size: .9rem; }
  .versus__ml svg { order: 0; width: 24px; height: 24px; }
  .versus__si { flex-direction: column; align-items: flex-start; gap: .5rem; font-size: .9rem; background: linear-gradient(160deg, rgba(20,200,180,.10), rgba(34,211,238,.04)); }
  .versus__si svg { width: 24px; height: 24px; }
  .versus__head { border: 0; }
  .versus__head .versus__topic { display: none; }
  .versus__head .versus__si { background: none; }
}

/* ---------- Platform ---------- */
/* The idea in three frames, then the three documents for readers who want more */
.pl-sub { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 .9rem; }

/* One live five-layer estate: normal, incident storm, structural reading, one change */
.pl-live { margin: 0; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, rgba(20,200,180,.07), transparent 60%), var(--surface); overflow: hidden; }
.pl-live__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(14px, 2vw, 24px) 0; }
.pl-live__st { margin: 0; font: 600 .8rem/1.3 var(--f-mono); letter-spacing: .04em; }
.pl-live__st > span, .pl-live__count > span + span { display: none; }
.pl-live[data-phase="0"] .pl-live__st0 { display: inline; color: var(--cyan); }
.pl-live[data-phase="1"] .pl-live__st1 { display: inline; color: var(--red); }
.pl-live[data-phase="2"] .pl-live__st2 { display: inline; color: var(--amber); }
.pl-live[data-phase="3"] .pl-live__st3 { display: inline; color: var(--lime); }
.pl-live__count { margin: 0; white-space: nowrap; font: 500 .78rem/1 var(--f-mono); color: var(--text-3); }
.pl-live__count [data-pl-count] { font-size: 1.6rem; font-weight: 600; color: var(--text-2); vertical-align: -.2rem; margin-right: .25rem; transition: color .3s; }
.pl-live[data-phase="1"] .pl-live__count [data-pl-count], .pl-live[data-phase="2"] .pl-live__count [data-pl-count] { color: var(--red); }
.pl-live[data-phase="3"] .pl-live__count [data-pl-count] { color: var(--lime); }
.pl-live:not([data-phase="2"]) .pl-live__cl0, .pl-live[data-phase="2"] .pl-live__cl1 { display: inline; }
.pl-live__stage { position: relative; padding: 0 clamp(8px, 1.5vw, 16px); }
.pl-live__canvas { position: relative; }
.pl-live__svg { display: block; width: 100%; height: auto; }
.pl-row { font: 500 10px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; fill: var(--text-3); }
.pl-l { fill: none; stroke: rgba(20,200,180,.22); stroke-width: 1.1; transition: stroke .35s, stroke-width .35s, opacity .35s; }
.pl-live[data-phase="0"] .pl-l { stroke-dasharray: 3 7; animation: pl-flow 1.4s linear infinite; }
@keyframes pl-flow { to { stroke-dashoffset: -20; } }
.pl-dev { transition: opacity .35s; }
.pl-dev .ic { fill: var(--indigo-850); stroke: rgba(20,200,180,.6); stroke-width: 1.4; transition: stroke .3s, fill .3s; }
.pl-dev .ic-l { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.pl-dev__lb { font: 500 9.5px var(--f-mono); fill: var(--text-3); text-anchor: middle; }
.pl-dev__inc { fill: var(--red); opacity: 0; transition: opacity .2s; }
.pl-dev.is-inc .ic { stroke: var(--red); fill: rgba(248,113,113,.14); }
.pl-dev.is-inc .ic-l { stroke: #FCA5A5; }
.pl-dev.is-inc .pl-dev__inc { opacity: 1; animation: pl-blink 1s ease-in-out infinite; }
@keyframes pl-blink { 50% { opacity: .35; } }
.pl-dev.is-dim, .pl-l.is-dim { opacity: .2; }
.pl-l.is-path { stroke: var(--amber); stroke-width: 1.5; opacity: .9; }
.pl-l.is-heal { stroke: var(--lime); stroke-width: 1.6; opacity: .8; }
.pl-dev.is-root .ic { stroke: var(--amber); fill: rgba(251,191,36,.16); stroke-width: 2.4; animation: pl-root 1s ease-in-out infinite; }
.pl-dev.is-root .ic-l { stroke: var(--amber); }
@keyframes pl-root { 50% { stroke-width: 4.5; } }
.pl-dev.is-fixed .ic { stroke: var(--lime); fill: rgba(182,242,58,.16); stroke-width: 2.4; }
.pl-dev.is-fixed .ic-l { stroke: var(--lime); }
.pl-tag { opacity: 0; transition: opacity .35s; }
.pl-tag text { font: 600 11.5px var(--f-mono); text-anchor: middle; }
.pl-tag rect { fill: var(--indigo-900); stroke-width: 1.2; }
.pl-tag--root text { fill: var(--amber); } .pl-tag--root rect { stroke: rgba(245,184,61,.6); }
.pl-tag--fix text { fill: var(--lime); } .pl-tag--fix rect { stroke: rgba(182,242,58,.6); }
.pl-tag.is-on { opacity: 1; }
.pl-rcpt { position: absolute; right: 2%; bottom: 3%; width: min(300px, 40%); padding: .8rem .9rem; border-radius: var(--radius-sm); border: 1px solid rgba(182,242,58,.45); background: rgba(10,10,36,.94); box-shadow: 0 12px 40px rgba(0,0,0,.5); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; pointer-events: none; }
.pl-rcpt.is-on { opacity: 1; transform: none; }
.pl-rcpt__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; font-size: .72rem; color: var(--text-3); }
.pl-rcpt dl { margin: 0; display: grid; gap: .35rem; }
.pl-rcpt dl div { display: grid; grid-template-columns: 44% 1fr; gap: .5rem; font-size: .74rem; line-height: 1.3; }
.pl-rcpt dt { color: var(--text-3); }
.pl-rcpt dd { margin: 0; color: var(--text); }
.pl-live__illus { position: absolute; left: clamp(14px, 2vw, 24px); bottom: .2rem; margin: 0; font-size: .72rem; font-style: italic; color: var(--text-3); }
.pl-live__steps { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pl-live__steps li + li { border-left: 1px solid var(--line); }
.pl-live__steps button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; width: 100%; height: 100%; padding: 1.1rem 1.2rem 1.2rem; position: relative; transition: background .3s; }
.pl-live__steps button::before { content: ""; position: absolute; inset: -1px 0 auto; height: 2px; background: transparent; transition: background .3s; }
.pl-live__steps button:hover { background: rgba(255,255,255,.025); }
.pl-live__steps button:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.pl-live__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; border: 1px solid var(--line-strong); color: var(--text-3); transition: all .3s; }
.pl-live__steps strong { display: block; font: 600 .98rem/1.25 var(--f-display); margin: .15rem 0 .3rem; color: var(--text-2); transition: color .3s; }
.pl-live__steps strong + span { color: var(--text-3); font-size: .85rem; line-height: 1.5; transition: color .3s; }
.pl-live[data-phase="0"] [data-pl-step="0"], .pl-live[data-phase="1"] [data-pl-step="1"], .pl-live[data-phase="2"] [data-pl-step="2"], .pl-live[data-phase="3"] [data-pl-step="3"] { background: rgba(255,255,255,.03); --c: var(--cyan); }
.pl-live[data-phase="1"] [data-pl-step="1"] { --c: var(--red); }
.pl-live[data-phase="2"] [data-pl-step="2"] { --c: var(--amber); }
.pl-live[data-phase="3"] [data-pl-step="3"] { --c: var(--lime); }
.pl-live[data-phase="0"] [data-pl-step="0"]::before, .pl-live[data-phase="1"] [data-pl-step="1"]::before, .pl-live[data-phase="2"] [data-pl-step="2"]::before, .pl-live[data-phase="3"] [data-pl-step="3"]::before { background: var(--c); }
.pl-live[data-phase="0"] [data-pl-step="0"] .pl-live__n, .pl-live[data-phase="1"] [data-pl-step="1"] .pl-live__n, .pl-live[data-phase="2"] [data-pl-step="2"] .pl-live__n, .pl-live[data-phase="3"] [data-pl-step="3"] .pl-live__n { border-color: var(--c); color: var(--c); }
.pl-live[data-phase="0"] [data-pl-step="0"] strong, .pl-live[data-phase="1"] [data-pl-step="1"] strong, .pl-live[data-phase="2"] [data-pl-step="2"] strong, .pl-live[data-phase="3"] [data-pl-step="3"] strong { color: var(--text); }
.pl-live[data-phase="0"] [data-pl-step="0"] strong + span, .pl-live[data-phase="1"] [data-pl-step="1"] strong + span, .pl-live[data-phase="2"] [data-pl-step="2"] strong + span, .pl-live[data-phase="3"] [data-pl-step="3"] strong + span { color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .pl-live .pl-l, .pl-dev .ic, .pl-dev__inc { animation: none !important; } }
@media (max-width: 1080px) {
  .pl-live__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-live__steps li:nth-child(3) { border-left: 0; }
  .pl-live__steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .pl-live__stage { overflow-x: auto; }
  .pl-live__canvas { min-width: 720px; }
  .pl-live__illus { position: static; padding: .3rem 0 0; }
  .pl-live__bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .pl-live__steps { grid-template-columns: 1fr; }
  .pl-live__steps li + li { border-left: 0; border-top: 1px solid var(--line); }
}

.pl-trust { margin-top: clamp(56px, 8vw, 96px); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); scroll-margin-top: 96px; }
.pl-trust__title { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; margin: 0 0 1rem; }
/* Further reading */
.pl-docs { margin-top: clamp(40px, 6vw, 64px); }
.pl-docs__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pl-doc { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 1.1rem; padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, transform .2s; }
.pl-doc:hover { border-color: rgba(20,200,180,.45); transform: translateY(-3px); }
.pl-doc__cover { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; padding: .5rem; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(165deg, rgba(34,211,238,.14), rgba(14,14,48,.9) 55%); border: 1px solid rgba(34,211,238,.3); box-shadow: 4px 4px 0 -1px rgba(255,255,255,.05), 8px 8px 0 -2px rgba(255,255,255,.03); overflow: hidden; }
.pl-doc__cover::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.pl-doc__cover .mono { font-size: .68rem; color: var(--teal); }
.pl-doc__cover svg { width: 100%; height: auto; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-doc__body { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.pl-doc__body strong { font: 600 1rem/1.25 var(--f-display); }
.pl-doc__body p { margin: 0; color: var(--text-2); font-size: .88rem; }
.pl-doc__body .pl-doc__meta { font-size: .7rem; color: var(--text-3); margin-top: .15rem; }
.pl-doc__link { margin-top: auto; padding-top: .6rem; font-weight: 600; font-size: .9rem; color: var(--lime); text-decoration: none; }
.pl-doc__link:hover, .pl-doc__link:focus-visible { text-decoration: underline; }
@media (max-width: 1080px) {
  .pl-docs__list { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 560px) {
  .pl-doc { grid-template-columns: 72px minmax(0, 1fr); }
}

/* ---------- Decision receipt ---------- */
.receipt {
  margin: 0; padding: 1.6rem 1.6rem 1.3rem; border-radius: var(--radius);
  background: linear-gradient(180deg, #121238, #0C0C2C); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7), 0 0 0 1px rgba(20,200,180,.08) inset;
  position: relative; overflow: hidden;
}
.receipt::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.receipt__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.receipt__id { font-size: .8rem; color: var(--text-3); letter-spacing: .06em; }
.badge { font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: .38rem .6rem; border-radius: 999px; }
.badge--red { color: var(--red); background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4); }
.badge--amber { color: var(--amber); background: rgba(245,184,61,.12); border: 1px solid rgba(245,184,61,.35); }
.receipt__title { font-size: 1.12rem; margin-bottom: 1.2rem; }
.badge--green { color: var(--lime); background: rgba(182,242,58,.1); border: 1px solid rgba(182,242,58,.4); }
.receipt__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 1.2rem; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.receipt__grid div { background: #0E0E30; padding: .8rem .9rem; }
.receipt__grid dt { font-size: .76rem; color: var(--text-3); margin-bottom: .25rem; }
.receipt__grid dd { margin: 0; font-size: 1.1rem; color: var(--text); }
.receipt__bar { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--red) 0 30%, #F59E5B 30% 50%, var(--amber) 50% 70%, #9BE36B 70% 85%, var(--green) 85% 100%); position: relative; margin-bottom: 1.3rem; opacity: .85; }
.receipt__bar span { position: absolute; top: -5px; left: calc(var(--v) * 100%); width: 3px; height: 16px; border-radius: 2px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 0 3px rgba(10,10,36,.9); }
.receipt__label { font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.receipt__action { color: var(--text); font-size: .98rem; }
.receipt__hash { font-size: .74rem; color: var(--text-3); margin: 0; padding-top: .9rem; border-top: 1px dashed var(--line-strong); }
.receipt__cap { font-size: .75rem; color: var(--text-3); margin-top: .7rem; font-style: italic; }

/* ---------- Products ---------- */

/* ---------- Why / Europe ---------- */

/* ---------- Partners ---------- */
@media (max-width: 880px) { .partners { grid-template-columns: 1fr; } }

/* ---------- Contact form ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.form__row { display: flex; flex-direction: column; gap: .45rem; }
.form__row--full { grid-column: 1 / -1; }
.form label { font-size: .85rem; color: var(--text-2); font-weight: 500; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(7,7,28,.6); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .75rem .9rem; transition: border-color .2s, box-shadow .2s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.form select option { background: var(--indigo-900); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,200,180,.18); }
.form textarea { resize: vertical; min-height: 120px; }
.form__check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: .7rem; }
.form__check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); flex: none; }
.form__check label { font-weight: 400; color: var(--text-3); }
.form__check a { color: var(--teal); }
.form__opt { color: var(--text-3); font-weight: 400; }
.form__err { margin: 0; font-size: .8rem; line-height: 1.35; color: var(--red); }
.form__err:empty { display: none; }
.form__row.is-invalid input, .form__row.is-invalid select, .form__row.is-invalid textarea { border-color: var(--red); }
.form__row.is-invalid input:focus, .form__row.is-invalid select:focus, .form__row.is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(248,113,113,.2); }
.form__check .form__err { flex-basis: 100%; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: .8rem 0 0; font-size: .9rem; min-height: 1.4em; }
.form__status.is-error { color: var(--red); }
.form__status.is-ok { color: var(--green); }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: radial-gradient(60% 50% at 15% 0%, rgba(20,200,180,.08), transparent 70%), radial-gradient(50% 40% at 90% 100%, rgba(123,108,246,.10), transparent 70%), var(--indigo-950); border-top: 1px solid var(--line); padding: 0 0 0; font-size: .92rem; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.site-footer__brand p { color: var(--text-3); margin-top: 1rem; max-width: 30ch; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.site-footer h2 { font: 500 .74rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1.1rem; }
.site-footer__cols ul { list-style: none; display: grid; gap: .6rem; }
.site-footer__cols a { color: var(--text-2); text-decoration: none; }
.site-footer__cols a:hover { color: var(--text); }
.site-footer__notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; margin: 32px 0; padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(19,19,61,.45); }
.site-footer__notice p { color: var(--text-3); font-size: .82rem; line-height: 1.6; margin-bottom: .7em; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; padding-top: 24px; }
.site-footer__bottom p { margin: 0; color: var(--text-3); font-size: .78rem; }
.site-footer__bottom a { color: var(--text-2); }
@media (max-width: 880px) { .site-footer__top { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .4em; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 1.2rem; margin-bottom: 1em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.4rem; margin: 0 0 1.5em; }
.legal dt { color: var(--text-3); }
.legal dd { margin: 0; color: var(--text); }
.legal a { color: var(--teal); }
.legal__lead { font-size: 1.08rem; color: var(--text) !important; margin: 1.6rem 0; }
.legal__toc { padding: 1.2rem 1.5rem; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm); background: rgba(255,255,255,.02); margin: 0 0 1rem; }
.legal__toc h2 { font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 .9rem; }
.legal__toc ol { margin: 0; padding-left: 1.4rem; columns: 2; column-gap: 2rem; }
.legal__toc li { margin-bottom: .35rem; break-inside: avoid; }
.legal__toc a { text-decoration: none; }
.legal__toc a:hover { text-decoration: underline; }
.legal h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
@media (max-width: 640px) { .legal__toc ol { columns: 1; } }
.legal__table { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm); }
.legal__table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; }
.legal__table th { font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); text-align: left; background: rgba(255,255,255,.03); }
.legal__table th, .legal__table td { padding: .75rem .9rem; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; color: var(--text-2); }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table code { font: .82rem var(--f-mono); color: var(--teal); word-break: break-all; }
.legal__updated { font: .8rem var(--f-mono); color: var(--text-3); }
.legal__draft { padding: .9rem 1.1rem; border: 1px solid rgba(245,184,61,.4); background: rgba(245,184,61,.08); color: var(--amber); border-radius: var(--radius-sm); font-size: .88rem; margin: 1.6rem 0; }
@media (max-width: 540px) { .legal dl { grid-template-columns: 1fr; gap: .1rem; } .legal dd { margin-bottom: .6rem; } }

/* ---------- Cookie consent ---------- */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--text-2); cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--text); }
.cookie-banner {
  position: fixed; z-index: 90; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(960px, calc(100% - 32px));
  display: flex; align-items: center; gap: 1rem 2rem;
  padding: 1.1rem 1.4rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(14, 14, 48, .94); backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; border-radius: var(--radius) var(--radius) 0 0; background: var(--grad); }
.cookie-banner h2 { font: 500 .74rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 .5rem; }
.cookie-banner p { margin: 0; font-size: .88rem; color: var(--text-2); }
.cookie-banner a { color: var(--teal); }
.cookie-banner__status { margin-top: .4rem !important; font: .78rem var(--f-mono) !important; color: var(--text-3) !important; }
.cookie-banner__actions { display: flex; gap: .6rem; flex-shrink: 0; }
@media (max-width: 720px) {
  .cookie-banner { flex-direction: column; align-items: stretch; bottom: 12px; }
  .cookie-banner__actions > * { flex: 1; justify-content: center; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.steps .step.reveal:nth-child(2) { transition-delay: .08s; }
.steps .step.reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- Long-form bilingual blocks (legal pages) ----------
   For long prose, write both languages side by side:
   <div data-lang-block="es">…</div><div data-lang-block="en">…</div> */
html:not([lang="en"]) [data-lang-block="en"],
html[lang="en"] [data-lang-block="es"] { display: none; }

/* ---------- Sector demos (demo-player.js, swarm-demo.js, cyber-demo.js) ---------- */
[data-demo-card] { cursor: pointer; }
body.demo-open { overflow: hidden; }

.demo {
  width: min(1100px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0;
  background: var(--indigo-900); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: 0 40px 120px -30px rgba(0,0,0,.8); overflow: auto;
}
.demo:focus, .demo:focus-visible { outline: none; }
.demo::backdrop { background: rgba(4, 4, 18, .78); backdrop-filter: blur(4px); }
.demo::before { content: ""; display: block; height: 3px; background: var(--grad); }
.demo__head { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 1.8rem .8rem; }
.demo__head h2 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); margin-bottom: .35rem; }
.demo__head .eyebrow { margin-bottom: .5rem; }
.demo__lead { color: var(--text-2); font-size: .9rem; line-height: 1.5; max-width: 80ch; margin: 0; }
.demo__close { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.demo__close:hover { border-color: var(--teal); }
.demo__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }

.demo__stage { position: relative; margin: 0 auto; max-width: calc(100% - 3.6rem); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #090920; }
.demo__canvas { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 560; }
.demo__canvas--wide { aspect-ratio: 1000 / 600; }
.demo__canvas--tall { aspect-ratio: 1000 / 620; }

.demo__hud { position: absolute; top: 14px; left: 14px; width: 190px; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(9,9,32,.82); backdrop-filter: blur(6px); }
.demo__hud p { margin: 0; }
.demo__hud-k { font: 500 .68rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.demo__hud-v { font-size: 1.6rem; line-height: 1.2; margin: .25rem 0 !important; transition: color .3s; }
.demo__meter { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: .7rem; }
.demo__meter span { display: block; height: 100%; width: 100%; transition: background-color .3s; }
.demo__stats { display: grid; gap: .25rem; margin: 0; font-size: .74rem; }
.demo__stats div { display: flex; justify-content: space-between; gap: .5rem; }
.demo__stats dt { color: var(--text-3); }
.demo__stats dd { margin: 0; color: var(--text); }

.demo__receipt {
  position: absolute; top: 14px; right: 14px; width: 270px; padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgba(14,14,48,.94);
  backdrop-filter: blur(6px); opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s; pointer-events: none;
}
.demo__receipt::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.demo__receipt.is-on { opacity: 1; transform: none; }
.demo__receipt--bottom { top: auto; bottom: 14px; transform: translateY(8px); }
.demo__receipt--bottom-left { top: auto; right: auto; bottom: 14px; left: 14px; transform: translateY(8px); }
/* Smaller stage (short screens): scale the overlays down so they cover less of the scene */
.demo__stage.is-compact .demo__hud { transform: scale(.82); transform-origin: top left; }
.demo__stage.is-compact .demo__receipt { transform-origin: top right; }
.demo__stage.is-compact .demo__receipt.is-on { transform: scale(.82); }
.demo__stage.is-compact .demo__receipt--bottom { transform-origin: bottom right; }
.demo__stage.is-compact .demo__receipt--bottom-left { transform-origin: bottom left; }
/* Very short screens: drop the intro paragraph so the scene keeps its size */
@media (max-height: 760px) and (min-width: 721px) { .demo__lead { display: none; } }
.demo__receipt .receipt__top { margin-bottom: .6rem; }
.demo__receipt-title { font: 600 .92rem/1.3 var(--f-display); margin: 0 0 .7rem; }
.demo__receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 0 0 .8rem; }
.demo__receipt-grid dt { font-size: .7rem; color: var(--text-3); }
.demo__receipt-grid dd { margin: 0; font-size: .95rem; }
.demo__receipt-action { font-size: .84rem; margin: 0; color: var(--text); }

.demo__steps { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; margin: .8rem 1.8rem 0; padding: 0; }
.demo__steps button {
  width: 100%; text-align: left; padding: .55rem .75rem; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font: 500 .88rem/1.2 var(--f-body);
  position: relative; overflow: hidden;
}
.demo__steps button .mono { color: var(--text-3); font-size: .74rem; margin-right: .3rem; }
.demo__steps button:hover { border-color: var(--line-strong); color: var(--text); }
.demo__steps button[aria-current="step"] { color: var(--text); border-color: rgba(20,200,180,.5); background: rgba(20,200,180,.08); }
.demo__steps button[aria-current="step"]::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); }
.demo__captions { margin: .6rem 1.8rem 0; min-height: 2.9em; }
.demo__captions p { margin: 0; color: var(--text-2); font-size: .9rem; line-height: 1.5; }
.demo__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 1.8rem .9rem; }
.demo__note { margin: 0; font-size: .75rem; color: var(--text-3); font-style: italic; }
.demo__controls { display: flex; gap: .5rem; }

@media (max-width: 720px) {
  .demo { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .demo__head { padding: 1.2rem 16px 1rem; }
  .demo__stage { max-width: calc(100% - 32px); }
  .demo__steps, .demo__captions { margin-left: 16px; margin-right: 16px; }
  .demo__foot { padding: 1rem 16px 1.4rem; }
  .demo__hud { position: static; width: auto; border: 0; border-top: 1px solid var(--line); border-radius: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; }
  .demo__hud .demo__meter { grid-column: 1 / -1; }
  .demo__hud .demo__stats { grid-column: 1 / -1; grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .demo__receipt { position: static; width: auto; border: 0; border-top: 1px solid var(--line); border-radius: 0; display: none; transform: none; }
  .demo__receipt.is-on { display: block; }
  .demo__steps { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Receipt deck: a lazily rotating stack of decision receipts (receipt-deck.js) ---------- */
.deck { position: relative; }
.deck__stack { display: grid; padding: 46px 46px 0 0; }
.deck__card {
  grid-area: 1 / 1; align-self: start; margin: 0;
  transition: transform 1.2s cubic-bezier(.22,.7,.2,1), opacity 1.2s ease, filter 1.2s ease;
  transform-origin: 30% 100%; will-change: transform, opacity;
}
.deck__card[data-pos="0"] { z-index: 5; }
.deck__card[data-pos="1"] { z-index: 4; transform: translate(22px, -22px) rotate(2.4deg) scale(.97); opacity: .55; filter: saturate(.5); }
.deck__card[data-pos="2"] { z-index: 3; transform: translate(44px, -42px) rotate(4.8deg) scale(.94); opacity: .25; filter: saturate(.3); }
.deck__card[data-pos="hidden"] { z-index: 1; transform: translate(56px, -52px) rotate(6deg) scale(.92); opacity: 0; }
.deck__card[data-pos="out"] { z-index: 6; transform: translate(-80px, 24px) rotate(-7deg) scale(.96); opacity: 0; }
.deck__card:not([data-pos="0"]) { pointer-events: none; }
.receipt__meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.receipt__sector { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); padding: .28rem .5rem; border-radius: 999px; border: 1px solid rgba(20,200,180,.35); }

.deck__bar { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.deck__tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.deck__tabs button {
  position: relative; overflow: hidden; cursor: pointer; padding: .42rem .7rem; border-radius: 999px;
  font: 500 .68rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3); background: transparent; border: 1px solid var(--line);
  transition: color .3s, border-color .3s;
}
.deck__tabs button:hover { color: var(--text); border-color: var(--line-strong); }
.deck__tabs button[aria-selected="true"] { color: var(--text); border-color: rgba(20,200,180,.55); }
/* The active tab fills slowly: a quiet cue for when the next receipt arrives. */
.deck__tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad);
  transform-origin: left; animation: deck-progress var(--deck-interval, 7s) linear forwards;
}
.deck.is-paused .deck__tabs button[aria-selected="true"]::after { animation-play-state: paused; }
.deck.is-static .deck__tabs button[aria-selected="true"]::after { animation: none; }
@keyframes deck-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.deck__toggle { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.deck__toggle:hover { color: var(--text); border-color: var(--teal); }
.deck__toggle svg { width: 12px; height: 12px; fill: currentColor; }
.deck__toggle .i-play, .deck.is-paused .deck__toggle .i-pause { display: none; }
.deck.is-paused .deck__toggle .i-play { display: block; }
.deck.is-static .deck__toggle { display: none; }
.deck__cap { margin-top: .7rem; }
@media (prefers-reduced-motion: reduce) { .deck__card { transition: none; } }
@media (max-width: 540px) { .deck__stack { padding: 18px 18px 0 0; } .deck__card[data-pos="2"] { opacity: 0; } }

/* ---------- Sector explorer (sectors.js): tabs on the left, one panel with demo tiles ---------- */
.sx { display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.sx-tabs { display: flex; flex-direction: column; gap: 8px; }
.sx-tab {
  position: relative; display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; cursor: pointer;
  padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); transition: background-color .25s, border-color .25s, color .25s, transform .25s; overflow: hidden;
}
.sx-tab:hover { border-color: var(--line-strong); color: var(--text); transform: translateX(2px); }
.sx-tab[aria-selected="true"] { color: var(--text); border-color: rgba(20,200,180,.55); background: linear-gradient(90deg, rgba(20,200,180,.14), rgba(34,211,238,.03)); }
.sx-tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.sx-tab__icon { flex-shrink: 0; width: 28px; height: 28px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sx-tab__text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.sx-tab__title { font: 600 .95rem/1.25 var(--f-display); }
.sx-tab__count { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.sx-tab[aria-selected="true"] .sx-tab__count { color: var(--teal); }

.sx-panels { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: relative; overflow: hidden; }
.sx-panels::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--grad); }
.sx-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 36px); padding: clamp(20px, 3vw, 32px); animation: sx-in .45s ease; }
.sx-panel[hidden] { display: none; }
@keyframes sx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sx-panel__icon { width: 40px; height: 40px; fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }
.sx-panel__info h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin-bottom: .7rem; }
.sx-panel__info p { color: var(--text-2); font-size: .98rem; }
.sx-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.sx-chips li { font-size: .82rem; line-height: 1.35; color: var(--text-2); padding: .4rem .7rem; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.02); }

.sx-panel__demos { display: grid; gap: 14px; align-content: start; }
.sx-demo {
  display: grid; grid-template-rows: auto auto; text-align: left; cursor: pointer; padding: 0; overflow: hidden;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--indigo-950); color: var(--text);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.sx-demo:hover, .sx-demo:focus-visible { border-color: var(--teal); box-shadow: 0 18px 40px -20px rgba(20,200,180,.55); transform: translateY(-2px); }
.sx-demo__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #090920; }
.sx-demo__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sx-demo:hover .sx-demo__thumb img { transform: scale(1.04); }
html[lang="en"] .sx-lang-es, html:not([lang="en"]) .sx-lang-en { display: none; }
.sx-demo__play {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: var(--indigo-950);
  box-shadow: 0 0 0 6px rgba(20,200,180,.18), 0 10px 30px -8px rgba(0,0,0,.6); transition: transform .25s;
}
.sx-demo:hover .sx-demo__play { transform: scale(1.08); }
.sx-demo__play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 3px; }
.sx-demo__body { display: flex; flex-direction: column; gap: .3rem; padding: .85rem 1rem 1rem; }
.sx-demo__kicker { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.sx-demo__title { font: 600 .98rem/1.3 var(--f-display); }
/* Two demos: horizontal tiles so both fit beside the text */
.sx-panel--duo .sx-demo { grid-template-rows: none; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
.sx-panel--duo .sx-demo__play { width: 42px; height: 42px; margin: -21px 0 0 -21px; }

@media (max-width: 980px) {
  .sx { grid-template-columns: 1fr; }
  .sx-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .sx-tabs::-webkit-scrollbar { display: none; }
  .sx-tab { width: auto; flex-shrink: 0; padding: .6rem .85rem; }
  .sx-tab:hover { transform: none; }
  .sx-tab[aria-selected="true"]::before { inset: auto 0 0 0; width: auto; height: 3px; }
  .sx-tab__count { display: none; }
  .sx-tab__icon { width: 22px; height: 22px; }
  .sx-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sx-panel--duo .sx-demo { grid-template-columns: 1fr; }
}

/* ---------- Products: three cards wired to one shared core ---------- */
.prods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.prod {
  position: relative; display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: radial-gradient(500px 200px at 0% 0%, rgba(123,108,246,.10), transparent 60%), var(--surface);
  transition: border-color .3s, transform .3s;
}
.prod:hover { border-color: rgba(20,200,180,.45); transform: translateY(-3px); }
/* connector from each card down to the core */
.prod::after {
  content: ""; position: absolute; left: 50%; bottom: calc(-1 * clamp(28px, 4vw, 44px) - 1px); width: 2px; height: clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, transparent 0 30%, var(--teal) 30% 60%, transparent 60%) 0 0 / 2px 14px repeat-y; animation: flow-y-prod 1s linear infinite;
}
@keyframes flow-y-prod { to { background-position: 0 14px; } }
.prod__media { border-radius: var(--radius-sm); border: 1px solid var(--line); background: radial-gradient(120% 120% at 50% 0%, rgba(20,200,180,.08), transparent 60%), rgba(7,7,28,.55); padding: 10px; margin-bottom: 1.2rem; }
.prod__viz { display: block; width: 100%; height: auto; max-height: 140px; margin: 0 auto; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pv-lines path { stroke: rgba(20,200,180,.35); stroke-width: 1.4; }
.pv-nodes circle { fill: var(--indigo-850); stroke: var(--teal); stroke-width: 1.8; }
.pv-flow { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 3 22; animation: pv-dash 1.6s linear infinite; }
.pv-warn { fill: var(--amber); }
.pv-ring { stroke: var(--amber); stroke-width: 1.5; animation: pv-pulse 1.6s ease-out infinite; transform-origin: 150px 55px; }
.pv-bad { fill: var(--red); }
.pv-contain { stroke: var(--lime); stroke-width: 1.8; stroke-dasharray: 140; stroke-dashoffset: 140; animation: pv-close 3.2s ease-in-out infinite; }
.pv-broken { stroke: var(--red); stroke-width: 2; stroke-dasharray: 4 5; }
.pv-alt { stroke: var(--lime); stroke-width: 2.2; stroke-dasharray: 8 6; animation: pv-dash 1.2s linear infinite; }
@keyframes pv-dash { to { stroke-dashoffset: -50; } }
@keyframes pv-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes pv-close { 0%, 15% { stroke-dashoffset: 140; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 140; } }
.prod__name { font-size: .85rem; letter-spacing: .04em; color: var(--lime); margin-bottom: .5rem; }
.prod h3 { margin-bottom: .5rem; }
.prod > p:not(.prod__name) { color: var(--text-2); font-size: .94rem; margin-bottom: 1rem; }
.prod__chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.prod__chips li { font-size: .78rem; color: var(--text-2); padding: .32rem .6rem; border-radius: 999px; border: 1px solid var(--line-strong); }
.prod__link { margin-top: auto; align-self: flex-start; font-weight: 500; font-size: .9rem; color: var(--teal); text-decoration: none; }
.prod__link:hover { color: var(--text); }
.prod__link span[aria-hidden] { display: inline-block; transition: transform .2s; }
.prod__link:hover span[aria-hidden] { transform: translateX(4px); }

.prods__core {
  position: relative; margin-top: clamp(28px, 4vw, 44px); display: flex; align-items: center; gap: 1.2rem;
  padding: 1.2rem 1.5rem; border-radius: var(--radius); border: 1px solid transparent;
  background: linear-gradient(90deg, rgba(20,200,180,.12), rgba(34,211,238,.05)) padding-box, linear-gradient(var(--indigo-900), var(--indigo-900)) padding-box, var(--grad) border-box;
  box-shadow: 0 24px 60px -30px rgba(20,200,180,.5);
}
.prods__core-mark svg { width: 44px; height: 44px; fill: none; stroke: var(--lime); stroke-width: 1.8; }
.prods__core-mark circle { fill: var(--lime); stroke: none; animation: pl-pulse-dot 2s ease-in-out infinite; transform-origin: 20px 20px; }
@keyframes pl-pulse-dot { 50% { transform: scale(1.35); } }
.prods__core-title { font: 600 1.05rem/1.3 var(--f-display); margin: 0 0 .5rem; }
.prods__core-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.prods__core-list li { font-size: .88rem; color: var(--text-2); position: relative; padding-left: 1rem; }
.prods__core-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.pv-turbine > path, .pv-blades path { stroke: var(--teal); stroke-width: 1.6; }
.pv-blades { transform-origin: 30px 13px; animation: pv-spin 3s linear infinite; }
.pv-hub { fill: var(--lime); }
.pv-wave { stroke: var(--lime); stroke-width: 1.6; opacity: .8; }
@keyframes pv-spin { to { transform: rotate(360deg); } }
@media (max-width: 1180px) { .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prod::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .pv-blades, .prod::after, .pv-flow, .pv-ring, .pv-contain, .pv-alt, .prods__core-mark circle { animation: none; } .pv-contain { stroke-dashoffset: 0; } }
@media (max-width: 880px) {
  .prods { grid-template-columns: 1fr; }
  .prod::after { display: none; }
  .prods__core { flex-direction: column; align-items: flex-start; }
}

/* ---------- Company: Granada on the map of Europe, three pillars ---------- */
.co { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.co__map { position: relative; margin: 1.6rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(60% 70% at 26% 88%, rgba(182,242,58,.10), transparent 60%), radial-gradient(120% 120% at 50% 0%, rgba(123,108,246,.10), transparent 60%), rgba(7,7,28,.55); }
.co__map svg { display: block; width: 100%; height: auto; }
.co-land { fill: rgba(123,108,246,.13); stroke: rgba(129,135,181,.35); stroke-width: 1; }
.co-arc { fill: none; stroke: rgba(20,200,180,.55); stroke-width: 1.4; stroke-dasharray: 3 7; animation: co-flow 1.4s linear infinite; }
.co-mesh { stroke: rgba(34,211,238,.14); stroke-width: 1; }
.co-node { fill: var(--indigo-850, #12123a); stroke: var(--teal); stroke-width: 1.6; }
.co-node-pulse { fill: none; stroke: var(--teal); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: co-ping 3s ease-out infinite; opacity: 0; }
.co-home { fill: var(--lime); }
.co-home-ring { fill: none; stroke: var(--lime); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: co-ping 2s ease-out infinite; }
@keyframes co-flow { to { stroke-dashoffset: -20; } }
@keyframes co-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.co__coords { position: absolute; right: 14px; bottom: 12px; display: flex; align-items: center; gap: .5rem; margin: 0; padding: .35rem .7rem; font-size: .72rem; letter-spacing: .04em; color: var(--text);
  border: 1px solid rgba(182,242,58,.45); border-radius: 999px; background: rgba(9,9,32,.85); }
.co__pin-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.co__pillars { list-style: none; padding: 0; display: grid; gap: 1rem; }
.co-pillar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; padding: 1.3rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(400px 160px at 0% 0%, rgba(20,200,180,.08), transparent 60%), var(--surface); transition: border-color .3s, transform .3s; }
.co-pillar:hover { border-color: rgba(20,200,180,.45); transform: translateX(4px); }
.co-pillar__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; border: 1px solid transparent;
  background: linear-gradient(var(--indigo-900), var(--indigo-900)) padding-box, var(--grad) border-box; }
.co-pillar__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--lime); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.co-pillar h3 { margin: 0 0 .35rem; }
.co-pillar p { color: var(--text-2); font-size: .94rem; margin: 0 0 .8rem; }
.co-pillar__tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.co-pillar__tags li { font-size: .76rem; color: var(--text-2); padding: .28rem .6rem; border-radius: 999px; border: 1px solid var(--line-strong); }
@media (prefers-reduced-motion: reduce) { .co-arc, .co-node-pulse, .co-home-ring { animation: none; } }
@media (max-width: 880px) { .co { grid-template-columns: 1fr; } }

/* ---------- Partners: core → API → partners → critical infrastructure ---------- */
.pt-flow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.3fr); gap: clamp(28px, 3.4vw, 48px); align-items: stretch;
  padding: clamp(20px, 2.6vw, 32px); border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(70% 90% at 0% 50%, rgba(182,242,58,.07), transparent 60%), radial-gradient(70% 90% at 100% 50%, rgba(34,211,238,.07), transparent 60%), var(--surface); }
.pt-col { position: relative; display: flex; flex-direction: column; }
.pt-col > :not(.pt-col__k) { margin-block: auto; }
.pt-col__k { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 0 0 .8rem; }
/* flowing connector into the next column */
.pt-col:not(:last-child)::after {
  content: ""; position: absolute; top: calc(50% + .75rem); right: calc(-1 * clamp(28px, 3.4vw, 48px)); width: clamp(28px, 3.4vw, 48px); height: 2px;
  background: linear-gradient(90deg, var(--teal) 0 40%, transparent 40%) 0 0 / 12px 2px repeat-x; animation: pt-flow 0.9s linear infinite;
}
@keyframes pt-flow { to { background-position: 12px 0; } }
.pt-core { display: grid; justify-items: center; gap: .7rem; text-align: center; padding: 1.4rem 1rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: linear-gradient(var(--indigo-900), var(--indigo-900)) padding-box, var(--grad) border-box; box-shadow: 0 20px 50px -28px rgba(182,242,58,.6); }
.pt-core svg { width: 48px; height: 48px; fill: none; stroke: var(--lime); stroke-width: 1.8; }
.pt-core circle { fill: var(--lime); stroke: none; transform-origin: 20px 20px; animation: pl-pulse-dot 2s ease-in-out infinite; }
.pt-core p { margin: 0; font: 600 .98rem/1.3 var(--f-display); }
.pt-api { display: grid; gap: .45rem; }
.pt-api p { margin: 0; border-radius: var(--radius-sm); font-size: .86rem; }
.pt-api__main { padding: .8rem .9rem; font-weight: 600; color: var(--text); border: 1px solid rgba(20,200,180,.55); background: rgba(20,200,180,.10); font-family: var(--f-mono, 'IBM Plex Mono', monospace); font-size: .8rem !important; }
.pt-api__layer { padding: .6rem .9rem; color: var(--text-2); border: 1px dashed var(--line-strong); }
.pt-partners { list-style: none; padding: 0; display: grid; gap: .6rem; }
.pt-partner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; align-items: center; padding: .75rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(9,9,32,.55); transition: border-color .3s, transform .3s; }
.pt-partner:hover { border-color: rgba(20,200,180,.45); transform: translateX(3px); }
.pt-partner__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-strong); }
.pt-partner__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pt-partner__name { margin: 0; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.pt-partner__d { margin: .15rem 0 0; font-size: .8rem; color: var(--text-2); }
.pt-sectors { list-style: none; padding: 0; display: grid; gap: .45rem; }
.pt-sectors li { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--text-2); line-height: 1.25; }
.pt-sectors svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pt-cta { margin-top: 1.6rem; }
@media (prefers-reduced-motion: reduce) { .pt-col::after, .pt-core circle { animation: none; } }
@media (max-width: 1080px) {
  .pt-flow { grid-template-columns: 1fr 1fr; }
  .pt-col::after { display: none; }
}
@media (max-width: 640px) { .pt-flow { grid-template-columns: 1fr; } }

/* ---------- Contact: sector chips, next steps, contact card, framed form ---------- */
.ct-split { align-items: stretch; }
.ct-form { grid-template-rows: auto auto auto auto 1fr auto auto; }
.ct-form .form__row--grow textarea { flex: 1; }
@media (max-width: 880px) { .ct-form { grid-template-rows: none; } }
.ct__k { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 1.8rem 0 .8rem; }
.ct-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem .5rem .6rem; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(9,9,32,.4); color: var(--text-2); font: 500 .85rem/1 var(--f-body, inherit); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.ct-chip svg { width: 18px; height: 18px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ct-chip:hover { border-color: rgba(20,200,180,.6); color: var(--text); }
.ct-chip[aria-pressed="true"] { border-color: transparent; color: var(--indigo-950); background: var(--grad); }
.ct-chip[aria-pressed="true"] svg { stroke: var(--indigo-950); }
.ct-chip:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ct-steps { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 1rem; }
.ct-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 3.2rem; width: 2px; background: var(--grad); opacity: .5; }
.ct-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: .9rem; align-items: start; }
.ct-step__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: .75rem; color: var(--lime);
  border: 1px solid rgba(182,242,58,.5); background: var(--indigo-900); position: relative; z-index: 1; }
.ct-step__t { margin: .35rem 0 .15rem; font-weight: 600; }
.ct-step__d { margin: 0; color: var(--text-2); font-size: .9rem; }
.ct-card { margin-top: 1.8rem; display: grid; gap: .6rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.ct-card__row { display: flex; align-items: center; gap: .7rem; margin: 0; color: var(--text-2); font-size: .92rem; }
.ct-card__row svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--lime); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ct-card__row a { color: var(--teal); }
.ct-form { position: relative; border-color: transparent; background: radial-gradient(500px 220px at 100% 0%, rgba(20,200,180,.08), transparent 60%) padding-box, linear-gradient(var(--indigo-850), var(--indigo-850)) padding-box, linear-gradient(160deg, rgba(182,242,58,.55), rgba(20,200,180,.25) 40%, rgba(129,135,181,.15)) border-box;
  box-shadow: 0 30px 80px -40px rgba(20,200,180,.45); }
.ct-form__title { grid-column: 1 / -1; margin: 0 0 .2rem; font: 600 1.15rem/1.3 var(--f-display); }

/* ---------- Footer: network band, products, icons, notice card, wordmark ---------- */
.site-footer__net { height: 80px; margin-bottom: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.site-footer__net svg { display: block; width: 100%; height: 100%; }
.fn-link { stroke: rgba(20,200,180,.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fn-flow { stroke: var(--teal); stroke-dasharray: 2 10; stroke-width: 1.4; animation: fn-flow 1.6s linear infinite; }
.fn-node { fill: var(--indigo-850); stroke: var(--teal); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.fn-hot { fill: var(--lime); stroke: none; animation: fn-blink 2.4s ease-in-out infinite; }
@keyframes fn-flow { to { stroke-dashoffset: -24; } }
@keyframes fn-blink { 50% { opacity: .35; } }
.site-footer__products { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0 0; }
.site-footer__products a { display: inline-block; font-size: .72rem; padding: .3rem .6rem; border-radius: 999px; border: 1px solid rgba(182,242,58,.35); color: var(--lime); text-decoration: none; transition: background-color .2s, border-color .2s; }
.site-footer__products a:hover { background: rgba(182,242,58,.1); border-color: var(--lime); }
.site-footer__place { display: flex; align-items: center; gap: .5rem; margin: 1.1rem 0 0; max-width: none; color: var(--text-2); font-size: .86rem; }
.site-footer__place svg, .site-footer__icon-link svg, .site-footer__notice-icon svg, .site-footer__social svg { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__place svg { width: 18px; height: 18px; stroke: var(--lime); stroke-width: 2; }
.site-footer__social { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-top: 1rem; border-radius: 11px; border: 1px solid var(--line-strong); transition: border-color .2s, background-color .2s; }
.site-footer__social svg { width: 20px; height: 20px; stroke: var(--text-2); stroke-width: 2; }
.site-footer__social:hover { border-color: var(--teal); background: rgba(20,200,180,.08); }
.site-footer__social:hover svg { stroke: var(--text); }
.site-footer__icon-link { display: inline-flex; align-items: center; gap: .55rem; }
.site-footer__icon-link svg { flex: none; width: 17px; height: 17px; stroke: var(--teal); stroke-width: 2; opacity: .8; transition: opacity .2s; }
.site-footer__icon-link:hover svg { opacity: 1; }
.site-footer h2::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: .6rem; vertical-align: middle; background: var(--grad); }
.site-footer__notice h2::before { display: none; }
.site-footer__notice-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); }
.site-footer__notice-icon svg { width: 22px; height: 22px; stroke: var(--text-3); stroke-width: 1.8; }
.site-footer__notice p:last-child { margin-bottom: 0; }
.site-footer__bottom { padding-bottom: 8px; }
.site-footer__mark { margin: 0; padding: 0 var(--gutter); text-align: center; font: 700 clamp(4rem, 17vw, 15rem)/.8 var(--f-display); letter-spacing: -.04em; user-select: none; pointer-events: none;
  background: linear-gradient(180deg, rgba(182,242,58,.16), rgba(20,200,180,.04) 70%, transparent); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateY(18%); }
@media (prefers-reduced-motion: reduce) { .fn-flow, .fn-hot { animation: none; } }
