/* ============================================================
   RWRK® — estilos extra de /demo (propuesta de copy + The big picture)
   Se cargan después de styles.css; la página principal no los usa.
   ============================================================ */

/* Hero: etiqueta RWRK® / REWORK sobre el título */
.hero-kicker { grid-column: 1 / -1; font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }

/* Servicios: bajada debajo del título, en la misma columna */
.head-sub { grid-column: 4 / 11; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.45; color: var(--muted); max-width: 52ch; }

/* Panel del servicio: la frase en inglés como bajada destacada */
.panel-claim { font-size: clamp(20px, 1.8vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }

/* Pie: lema arriba del ©  */
.foot-tagline { display: block; color: #fff; margin-bottom: 2px; }

/* ---------- THE BIG PICTURE ---------- */
.bigpic { padding-block: var(--space) calc(var(--space) * 0.6); }
.orbit { position: relative; height: clamp(420px, 56vh, 560px); margin-top: 0; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-lines line {
  stroke: #d9d9d9; stroke-width: 1;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 900ms var(--ease-out) var(--d, 0ms), stroke 300ms ease;
}
.orbit.is-in .orbit-lines line { stroke-dashoffset: 0; }
.orbit-lines line.is-hot { stroke: var(--c); stroke-width: 2; }

.orbit-nodes { position: absolute; inset: 0; }
.node {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 18px; border: 1px solid #e3e3e3; border-radius: 999px; background: var(--bg);
  font-size: clamp(14px, 1.05vw, 17px);
  transform: translate(-50%, -50%) translateY(12px); opacity: 0;
  transition: opacity 600ms var(--ease-out) var(--d, 0ms), transform 700ms var(--ease-out) var(--d, 0ms), border-color 300ms ease;
}
.orbit.is-in .node { opacity: 1; transform: translate(-50%, -50%); }
.node-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
@media (hover: hover) and (pointer: fine) { .node:hover { border-color: var(--c); } }

.orbit-core {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: clamp(200px, 19vw, 280px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 8px; padding: 28px;
  background: var(--ink); color: #fff;
  transform: translate(-50%, -50%) scale(0.94); opacity: 0;
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
}
.orbit.is-in .orbit-core { opacity: 1; transform: translate(-50%, -50%); }
.core-title { font-size: clamp(26px, 2.4vw, 38px); letter-spacing: -0.035em; line-height: 1; }
.core-text { font-size: 13px; line-height: 1.4; color: #a8a8a8; }

.bigpic-sub { max-width: 52ch; margin: clamp(16px, 3vh, 32px) auto 0; text-align: center; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.45; color: var(--muted); }

/* ---------- TABLET ---------- */
@media (max-width: 1024px) {
  .head-sub { grid-column: 3 / 9; }
  .orbit { height: 520px; }
}

/* ---------- MOBILE: centro arriba y las áreas en dos columnas ---------- */
@media (max-width: 720px) {
  .head-sub { grid-column: 1 / -1; }
  .hero-text { align-items: stretch; }
  .hero-text .hero-kicker { margin-top: auto; margin-bottom: -6px; }
  .hero-text .hero-title { margin-top: 0; }
  .orbit { height: auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
  .orbit-lines { display: none; }
  .orbit-core { position: relative; left: auto; top: auto; width: 200px; transform: scale(0.94); order: -1; }
  .orbit.is-in .orbit-core { transform: none; }
  .orbit-nodes { position: static; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .node { position: static; transform: translateY(12px); justify-content: flex-start; padding: 12px 14px; font-size: 14px; }
  .orbit.is-in .node { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .node, .orbit-core, .orbit-lines line { transition: opacity 200ms ease !important; transform: translate(-50%, -50%) !important; stroke-dashoffset: 0 !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 720px) {
  .node, .orbit-core { transform: none !important; }
}
