/* /sobre — Control Plane.
   Loaded only on is_page('sobre').
   Depends on: jacar-cp-components (which depends on jacar-components,
   which itself depends on tokens / base / layout).

   The .cp-* primitives (cp-caret, cp-scanline, cp-anim, cp-eyebrow,
   cp-section-title, cp-status-strip, etc.) live globally in
   cp-components.css since Phase 3 Task 3.2. /sobre-specific overrides
   live below. */

/* hero override */
.sobre-hero { min-height: clamp(380px, 60vh, 560px); }
.sobre-hero__grid { z-index: 1; opacity: 0.18; }

/* Hero background for /sobre/. The homepage carries its own .cp-hero recipe
   in home.css (not loaded here), so without this block .cp-hero on /sobre/
   renders as transparent — leaving its white text invisible on the light
   page. Subtler radial+linear stack than the homepage version, no
   gradient-shift animation. */
.sobre-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 25% 30%, rgba(69, 123, 157, 0.55) 0%, transparent 60%),
    radial-gradient(700px 500px at 80% 75%, rgba(43, 138, 148, 0.32) 0%, transparent 60%),
    linear-gradient(135deg, #0b1730 0%, #152949 40%, #0d1f3a 100%);
  color: #ffffff;
}
.sobre-hero > .cp-hero__inner,
.sobre-hero > .cp-hero__inner > * { position: relative; z-index: 2; }
.sobre-hero .cp-hero__title,
.sobre-hero h1 { color: #ffffff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25); }
.sobre-hero .cp-hero__eyebrow,
.sobre-hero .cp-hero__sub { color: rgba(255, 255, 255, 0.85); }

/* sections share padding */
.sobre-javi, .sobre-jcs, .sobre-constellation-wrap, .sobre-timeline,
.sobre-principles, .sobre-doors, .sobre-cta {
  padding: clamp(2rem, 5vw, 4rem) var(--rhythm-block);
  max-width: 64rem;
  margin: 0 auto;
}

/* javi: stacked — photo/callsign/chips on top, bio below */
.sobre-javi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: start;
}
.sobre-javi__col-left {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  text-align: center;
}
.sobre-javi__photo {
  width: 100%; max-width: 240px; height: auto;
  border-radius: 12px; border: 1px solid var(--color-border);
  display: block;
}
.sobre-javi__callsign {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg-elevated);
}
.sobre-javi__col-right p { margin: 0 0 1rem; line-height: 1.6; color: var(--color-text-body); }
@media (max-width: 720px) {
  .sobre-javi__photo { max-width: 200px; }
}

/* jcs — same stacked layout as .sobre-javi; logo card matches photo size */
.sobre-jcs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: start;
  margin-top: 1rem;
}
.sobre-jcs__col-left  {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  text-align: center;
}
.sobre-jcs__logo-link {
  display: block;
  width: 100%; max-width: 240px;
}
.sobre-jcs__logo {
  width: 100%; max-width: 240px; height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px; border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  padding: 1.25rem;
  display: block;
  object-fit: contain;
  box-sizing: border-box;
  transition: transform var(--duration-fast, 180ms) var(--ease-out, ease), border-color var(--duration-fast, 180ms) var(--ease-out, ease);
}
.sobre-jcs__logo:hover { transform: translateY(-2px); border-color: var(--color-border-strong); }
.sobre-jcs__callsign {
  margin: 0.5rem 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg-elevated);
  text-align: center;
}

.sobre-jcs__col-right p { margin: 0 0 1rem; line-height: 1.6; color: var(--color-text-body); }

.sobre-jcs__subhead {
  margin: 1.5rem 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-text-body);
}

.sobre-jcs__milestones {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  border-left: 2px solid var(--color-border);
}
.sobre-jcs__milestone {
  position: relative;
  padding: 0.5rem 0 0.5rem 1rem;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}
.sobre-jcs__milestone::before {
  content: "";
  position: absolute;
  left: -5px; top: 0.85rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--glow-a);
}
.sobre-jcs__milestone-year {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.sobre-jcs__milestone-claim { line-height: 1.5; font-size: 0.95rem; }

.sobre-jcs__pillars { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sobre-jcs__pillar  {
  display: inline-flex;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-body);
  text-decoration: none;
  font-size: 0.82rem;
  transition: border-color var(--duration-fast, 180ms) var(--ease-out, ease), background var(--duration-fast, 180ms) var(--ease-out, ease);
}
.sobre-jcs__pillar:hover { border-color: var(--glow-a); background: var(--color-bg-elevated); }

@media (max-width: 720px) {
  .sobre-jcs__logo-link { max-width: 200px; }
  .sobre-jcs__logo { max-width: 200px; }
  .sobre-jcs__milestone { grid-template-columns: 4rem 1fr; }
}

/* constellation radar legend */
.sobre-radar { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0 0; }
.sobre-radar__band { border: 1px solid var(--color-border); border-radius: 12px; padding: 1rem; background: var(--color-bg-elevated); }
.sobre-radar__label { margin: 0 0 0.25rem; font-size: 0.85rem; }
.sobre-radar__band--adopt  .sobre-radar__label { color: var(--color-signal-ok); }
.sobre-radar__band--trial  .sobre-radar__label { color: var(--color-signal-info); }
.sobre-radar__band--assess .sobre-radar__label { color: var(--color-signal-warn); }
.sobre-radar__band--hold   .sobre-radar__label { color: var(--color-signal-err); }
.sobre-radar__desc { margin: 0 0 0.5rem; font-size: 0.8rem; color: var(--color-text-muted); }
.sobre-radar__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sobre-radar__chip { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-body); border-radius: 999px; padding: 0.25rem 0.6rem; font-size: 0.78rem; cursor: pointer; }
.sobre-radar__chip:hover, .sobre-radar__chip:focus-visible { border-color: var(--color-border-strong); outline: none; }
.sobre-radar__chip[aria-pressed="true"] { background: var(--color-border); }

/* timeline */
.sobre-timeline__list { list-style: none; padding: 0; margin: 0; position: relative; }
.sobre-timeline__list::before { content: ""; position: absolute; left: 5.5rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--color-border); }
.sobre-timeline__item { display: grid; grid-template-columns: 5rem 1.5rem 1fr; align-items: center; gap: 0.5rem; margin: 0.75rem 0; }
.sobre-timeline__year { color: var(--color-text-muted); font-size: 0.95rem; }
.sobre-timeline__dot  { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--glow-a); justify-self: center; }
.sobre-timeline__claim { line-height: 1.5; }

/* principles */
.sobre-principles__shell { color: var(--color-text-muted); margin: 0 0 0.5rem; font-size: 0.85rem; }
.sobre-principles__prompt { color: var(--color-signal-ok); }
.sobre-principles__list { list-style: none; padding: 0; margin: 1rem 0 0; }
.sobre-principles__item { padding: 0.4rem 0; border-bottom: 1px dashed var(--color-border); font-size: 0.95rem; }
.sobre-principles__item:last-child { border-bottom: none; }

/* doors */
.sobre-doors__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.sobre-doors__card { border: 1px solid var(--color-border); border-radius: 14px; padding: 1.25rem; background: var(--color-bg-elevated); display: flex; flex-direction: column; gap: 0.75rem; transition: transform var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.sobre-doors__card:hover { border-color: var(--color-border-strong); transform: translateY(-2px); }
.sobre-doors__glyph { font-size: 1.2rem; color: var(--glow-b); margin: 0; }
.sobre-doors__name  { margin: 0; font-size: 1.15rem; }
.sobre-doors__when  { list-style: none; padding: 0; margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }
.sobre-doors__when li::before { content: "·"; margin-right: 0.4rem; color: var(--glow-a); }
.sobre-doors__cta   { align-self: flex-start; }

/* brief form */
/* ---- Brief modal — JCS-styled --------------------------------------- */

/* Brand pair pulled from style.css: --teal #2B8A94, --lime #B4C878 */
.sobre-brief-modal {
  width: min(960px, calc(100vw - 2rem));
  max-width: 960px;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.45);
  background: #ffffff;
  color: #1a2332;
}
.sobre-brief-modal::backdrop {
  background: rgba(10, 15, 24, 0.55);
  backdrop-filter: blur(4px);
}
.sobre-brief-modal[open] {
  animation: sobre-brief-pop 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes sobre-brief-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .sobre-brief-modal[open] { animation: none; }
}

.sobre-brief-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #1a2332;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sobre-brief-modal__close:hover {
  transform: rotate(90deg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.sobre-brief-modal__close:focus-visible {
  outline: 2px solid #2B8A94;
  outline-offset: 2px;
}

.sobre-brief-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  min-height: 480px;
}
@media (max-width: 720px) {
  .sobre-brief-modal__grid { grid-template-columns: 1fr; }
}

/* Left dark info panel — JCS canon */
.sobre-brief-modal__info {
  padding: 2rem 1.75rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(43, 138, 148, 0.45) 0%, transparent 50%),
    linear-gradient(135deg, #111111 0%, #1a1a1a 60%, #151515 100%);
}
.sobre-brief-modal__info::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23A8DADC' stroke-opacity='0.1' stroke-width='0.5'%3E%3Cpath d='M0 20h40M20 0v40'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.sobre-brief-modal__info > * { position: relative; z-index: 1; }
.sobre-brief-modal__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B4C878;
  margin: 0 0 0.75rem;
}
.sobre-brief-modal__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
  color: #ffffff;
}
.sobre-brief-modal__title-accent {
  background: linear-gradient(120deg, #B4C878 0%, #ffffff 50%, #B4C878 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sobre-brief-modal__lede {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}
.sobre-brief-modal__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Right form panel */
.sobre-brief-modal__form {
  padding: 2rem 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1rem;
  align-content: start;
  background: #ffffff;
  overflow-y: auto;
}
.sobre-brief-modal__field { display: grid; gap: 0.35rem; }
.sobre-brief-modal__field--full { grid-column: 1 / -1; position: relative; }
.sobre-brief-modal__field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6c757d;
}
.sobre-brief-modal__field input,
.sobre-brief-modal__field textarea {
  border: 1.5px solid rgba(26, 26, 26, 0.15);
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  font: inherit;
  background: #ffffff;
  color: #1a2332;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.sobre-brief-modal__field input:focus,
.sobre-brief-modal__field textarea:focus {
  outline: none;
  border-color: #2B8A94;
  box-shadow: 0 0 0 4px rgba(69, 123, 157, 0.15);
}
.sobre-brief-modal__field textarea { resize: vertical; min-height: 7rem; }
.sobre-brief-modal__counter {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 0.7rem;
  opacity: 0.55;
  pointer-events: none;
  color: #6c757d;
}

.sobre-brief-modal__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.sobre-brief-modal__status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  color: #1a2332;
}
.sobre-brief-modal__status:not(:empty) {
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  background: rgba(43, 138, 148, 0.08);
  border: 1px solid rgba(43, 138, 148, 0.18);
}

.sobre-brief-modal__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.sobre-brief-modal__cancel {
  background: transparent;
  border: 1.5px solid rgba(26, 26, 26, 0.18);
  color: #1a2332;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.sobre-brief-modal__cancel:hover { border-color: rgba(26, 26, 26, 0.4); }
.sobre-brief-modal__submit {
  position: relative;
  overflow: hidden;
  border: none;
  background: linear-gradient(135deg, #1a1a1a 0%, #2B8A94 100%);
  color: #ffffff;
  padding: 0.95rem 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sobre-brief-modal__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.4),
              0 0 30px 3px rgba(43, 138, 148, 0.3);
}
.sobre-brief-modal__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(69, 123, 157, 0.35);
}
.sobre-brief-modal__submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  transition: left 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.sobre-brief-modal__submit:hover::after { left: 180%; }
.sobre-brief-modal__submit-loading { display: none; margin-left: 0.4rem; }
.sobre-brief-modal__submit.is-loading { pointer-events: none; opacity: 0.85; }
.sobre-brief-modal__submit.is-loading .sobre-brief-modal__submit-label   { opacity: 0.6; }
.sobre-brief-modal__submit.is-loading .sobre-brief-modal__submit-loading { display: inline; }

/* Dark theme: invert form panel surfaces, keep brand pair */
[data-theme="dark"] .sobre-brief-modal,
[data-theme="dark"] .sobre-brief-modal__form {
  background: #0d1117;
  color: #e6edf3;
}
[data-theme="dark"] .sobre-brief-modal__close {
  background: rgba(230, 237, 243, 0.10);
  color: #e6edf3;
}
[data-theme="dark"] .sobre-brief-modal__field label { color: #8b949e; }
[data-theme="dark"] .sobre-brief-modal__field input,
[data-theme="dark"] .sobre-brief-modal__field textarea {
  background: #161b22;
  color: #e6edf3;
  border-color: rgba(230, 237, 243, 0.14);
}
[data-theme="dark"] .sobre-brief-modal__field input:focus,
[data-theme="dark"] .sobre-brief-modal__field textarea:focus {
  border-color: #3ecbd8;
  box-shadow: 0 0 0 4px rgba(62, 203, 216, 0.18);
}
[data-theme="dark"] .sobre-brief-modal__cancel {
  border-color: rgba(230, 237, 243, 0.20);
  color: #e6edf3;
}
[data-theme="dark"] .sobre-brief-modal__counter { color: #8b949e; }
@media (prefers-color-scheme: dark) {
  [data-theme="system"] .sobre-brief-modal,
  [data-theme="system"] .sobre-brief-modal__form { background: #0d1117; color: #e6edf3; }
  [data-theme="system"] .sobre-brief-modal__close { background: rgba(230, 237, 243, 0.10); color: #e6edf3; }
  [data-theme="system"] .sobre-brief-modal__field label { color: #8b949e; }
  [data-theme="system"] .sobre-brief-modal__field input,
  [data-theme="system"] .sobre-brief-modal__field textarea {
    background: #161b22; color: #e6edf3;
    border-color: rgba(230, 237, 243, 0.14);
  }
  [data-theme="system"] .sobre-brief-modal__field input:focus,
  [data-theme="system"] .sobre-brief-modal__field textarea:focus {
    border-color: #3ecbd8;
    box-shadow: 0 0 0 4px rgba(62, 203, 216, 0.18);
  }
  [data-theme="system"] .sobre-brief-modal__cancel { border-color: rgba(230, 237, 243, 0.20); color: #e6edf3; }
  [data-theme="system"] .sobre-brief-modal__counter { color: #8b949e; }
}

/* final cta */
.sobre-cta__pair { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }

/* RM */
@media (prefers-reduced-motion: reduce) {
  .sobre-doors__card { transition: none; }
}

/* ============================================================
 * Sobre orbit — was assets/css/sobre-orbit.css (merged 2026-04-28)
 * Styles for the JCS-canon orbit SVG. The SVG is inlined into
 * /sobre via [sobre-constellation], so parent-page selectors
 * (including [data-theme="..."]) reach it.
 * ============================================================ */

/* ==== shared layout / animation ==== */

.jacar-tech-orbit {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
}

.jacar-orbit-guide { pointer-events: none; }

@keyframes jacar-orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes jacar-orbit-counter-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
.jacar-orbit-ring-1 { animation: jacar-orbit-spin 120s linear infinite; transform-origin: 400px 400px; }
.jacar-orbit-ring-2 { animation: jacar-orbit-spin 180s linear infinite; transform-origin: 400px 400px; }
.jacar-orbit-label-1 { animation: jacar-orbit-counter-spin 120s linear infinite; }
.jacar-orbit-label-2 { animation: jacar-orbit-counter-spin 180s linear infinite; }

/* ==== nodes / labels — light theme defaults ==== */

/* Category nodes (inner ring) — brand teal */
.jacar-orbit-cat {
  fill: #2B8A94;
  filter: url(#glow-cat);
  transition: r 0.3s ease, fill 0.3s ease;
}
.jacar-orbit-cat:hover { r: 22; }
.jacar-orbit-cat-label {
  fill: #ffffff;
  stroke: #2B8A94;                       /* teal halo so any text that overflows */
  stroke-width: 2.5px;                   /* the small disc stays legible on the */
  paint-order: stroke fill;              /* light page background instead of */
  stroke-linejoin: round;                /* disappearing as white-on-white */
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

/* Tech nodes (outer ring) — brand lime */
.jacar-orbit-node {
  fill: #B4C878;
  opacity: 0.9;
  transition: r 0.2s ease, opacity 0.2s ease, fill 0.3s ease;
  cursor: pointer;
}
.jacar-orbit-node:hover { r: 11; opacity: 1; }
/* Theme-agnostic tech label colours via CSS custom properties: pure black
   on light, pure white on dark. The 4px halo at 12px text was eroding the
   character body and reading as 'gray' even though fill was nearly black —
   dropping to 2.5px halo keeps separation between adjacent labels in
   dense clusters without thinning the strokes. */
.sobre-constellation {
  --orbit-label-fill: #000000;
  --orbit-label-halo: #ffffff;
}
[data-theme="dark"] .sobre-constellation {
  --orbit-label-fill: #ffffff;
  --orbit-label-halo: #0d1117;
}
@media (prefers-color-scheme: dark) {
  [data-theme="system"] .sobre-constellation {
    --orbit-label-fill: #ffffff;
    --orbit-label-halo: #0d1117;
  }
}
.jacar-orbit-tech-label {
  fill: var(--orbit-label-fill, #000000);
  stroke: var(--orbit-label-halo, #ffffff);
  stroke-width: 2.5px;
  paint-order: stroke fill;
  stroke-linejoin: round;
  font-size: 12px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  transition: fill 0.3s ease;
}

/* Connecting lines */
.jacar-orbit-link {
  stroke: #2B8A94;
  stroke-width: 0.5;
  opacity: 0.18;
  transition: opacity 0.3s ease, stroke 0.3s ease;
}

/* Center disc (white card with brand-teal ring + favicon) */
.jacar-orbit-center circle:first-of-type { fill: #ffffff; opacity: 0.95; transition: fill 0.3s ease, opacity 0.3s ease; }

/* Ring guide strokes — defaults already on the <circle>; we only theme-tweak below */

/* Clickable tech nodes */
a.jacar-orbit-tech-link { cursor: pointer; }
a.jacar-orbit-tech-link:hover .jacar-orbit-node { opacity: 1; r: 11; }

/* ==== explicit dark theme (manual toggle) ==== */

/* tech-label fill/halo come from the CSS custom properties on .sobre-constellation
   (defined above) — light = pure black on white halo, dark = pure white on
   near-black halo. No direct override needed here. */

[data-theme="dark"] .jacar-orbit-cat,
[data-theme="dark"] .sobre-constellation .jacar-orbit-cat {
  fill: #3ecbd8;                         /* brighter teal pops on near-black */
}
[data-theme="dark"] .jacar-orbit-node,
[data-theme="dark"] .sobre-constellation .jacar-orbit-node {
  fill: #c8d88a;                         /* brighter lime */
}
[data-theme="dark"] .jacar-orbit-link,
[data-theme="dark"] .sobre-constellation .jacar-orbit-link {
  stroke: #3ecbd8;
  opacity: 0.22;
}
[data-theme="dark"] .jacar-orbit-center circle:first-of-type,
[data-theme="dark"] .sobre-constellation .jacar-orbit-center circle:first-of-type {
  fill: #161b22;                         /* paper-elev disc */
  opacity: 0.95;
}
/* Ring guides: brighten the dashed circles on dark */
[data-theme="dark"] .jacar-orbit-guide use,
[data-theme="dark"] #orbit-ring-1,
[data-theme="dark"] #orbit-ring-2 {
  stroke: #3ecbd8;
  opacity: 0.30;
}

/* ==== "system" theme + OS dark — same overrides as data-theme=dark ==== */

@media (prefers-color-scheme: dark) {
  /* tech-label colours come from the CSS custom properties — see the
     sobre-constellation @media block above. */

  [data-theme="system"] .jacar-orbit-cat,
  [data-theme="system"] .sobre-constellation .jacar-orbit-cat { fill: #3ecbd8; }

  [data-theme="system"] .jacar-orbit-node,
  [data-theme="system"] .sobre-constellation .jacar-orbit-node { fill: #c8d88a; }

  [data-theme="system"] .jacar-orbit-link,
  [data-theme="system"] .sobre-constellation .jacar-orbit-link { stroke: #3ecbd8; opacity: 0.22; }

  [data-theme="system"] .jacar-orbit-center circle:first-of-type,
  [data-theme="system"] .sobre-constellation .jacar-orbit-center circle:first-of-type {
    fill: #161b22;
    opacity: 0.95;
  }
  [data-theme="system"] .jacar-orbit-guide use,
  [data-theme="system"] #orbit-ring-1,
  [data-theme="system"] #orbit-ring-2 { stroke: #3ecbd8; opacity: 0.30; }

  /* When the SVG is loaded standalone (e.g. via <object>), there's no
     parent [data-theme] selector — fall back to OS-level prefers-dark. */
  .jacar-tech-orbit:not([data-theme]) .jacar-orbit-tech-label { fill: #e6edf3; }
}

/* ==== reduced motion: stop spin ==== */

@media (prefers-reduced-motion: reduce) {
  .jacar-orbit-ring-1,
  .jacar-orbit-ring-2,
  .jacar-orbit-label-1,
  .jacar-orbit-label-2 { animation: none !important; }
}

/* ============================================================
 * Sobre constellation — was assets/css/sobre-constellation.css (merged 2026-04-28)
 * /sobre/ tech constellation styles — wrapper layout + projects pulse
 * + radar-chip highlight pulse animation.
 * ============================================================ */

.sobre-constellation {
  margin: 2rem auto 1rem;
  max-width: 720px;
  position: relative;
}
.sobre-constellation__svg {
  width: 100%;
  height: auto;
  display: block;
}
.sobre-constellation__tip {
  text-align: center;
  min-height: 1.75em;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Projects-in-production pulse: oversized count + muted descriptor */
.sobre-projects-pulse {
  margin: 2rem auto 0;
  text-align: center;
  max-width: var(--w-content);
}
.sobre-projects-pulse__count {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--teal-dark);
  line-height: 1;
}
.sobre-projects-pulse__label {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .sobre-constellation__svg { /* SVG-internal animation gated by its own @media block */ }
}

/* Pulse for radar-chip-driven highlight */
@keyframes sobre-pulse {
  0%   { transform: scale(1);   filter: drop-shadow(0 0 0 currentColor); }
  50%  { transform: scale(1.18); filter: drop-shadow(0 0 8px currentColor); }
  100% { transform: scale(1);   filter: drop-shadow(0 0 0 currentColor); }
}
.is-highlighted { transform-origin: center; animation: sobre-pulse 1.6s var(--ease-out, ease) 2; }
@media (prefers-reduced-motion: reduce) {
  .is-highlighted { animation: none; outline: 2px solid currentColor; outline-offset: 2px; }
}
