/* ─────────────────────────────────────────────────────────────────────────────
   SIGIL Graph — "Where we're going" band (the planets' corkscrew)
   2026-11-17 (rocky; Viktor: "make the corkscrew animation also show on the front page")
   Same non-destructive pattern as countdown.css: the markup sits in index.html
   ABOVE #root, every selector starts with .sg-ck, nothing targets the app.
   The animation itself runs in /corkscrew.html (station 14 of /datacenter.html),
   framed here with loading="lazy". Palette = the countdown's (taken from the
   live cascade): accent #7de3c3, deep #10a37f, gold #f4b860, text #f2f7f4,
   dim #a5b5ae, dimmer #6e8078.
   ──────────────────────────────────────────────────────────────────────────── */
.sg-ck {
  --ck-accent: #7de3c3;
  --ck-gold: #f4b860;
  --ck-text: #f2f7f4;
  --ck-dim: #a5b5ae;
  --ck-dimmer: #6e8078;
  /* the band's full-width backdrop, continuous with the countdown above it */
  background: linear-gradient(180deg, #080b0a 0%, #0a0e0d 100%);
  border-bottom: 1px solid rgba(125, 227, 195, 0.10);
  padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1rem, 4vw, 2rem);
  font-family: "Sora", system-ui, sans-serif;
  color: var(--ck-text);
  overflow: hidden;
}
.sg-ck__in {
  display: grid;
  grid-template-columns: minmax(0, 25.5rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.2vw, 2.75rem);
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
}

.sg-ck__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(244, 184, 96, 0.25);
  border-radius: 999px;
  background: rgba(244, 184, 96, 0.06);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ck-gold);
}
.sg-ck__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ck-gold); }

.sg-ck__title {
  margin: 1rem 0 0.65rem;
  font-size: clamp(1.55rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.sg-ck__title em {
  font-style: normal;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--ck-accent) 0%, var(--ck-gold) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.sg-ck__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ck-dim);
}
.sg-ck__lead b { color: var(--ck-text); font-weight: 600; }

.sg-ck__facts {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  color: var(--ck-dimmer);
}
.sg-ck__facts li { display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.sg-ck__facts span { color: var(--ck-dim); min-width: 5.4rem; }
.sg-ck__facts b { color: var(--ck-accent); font-weight: 600; }
.sg-ck__facts i { font-style: normal; }
.sg-ck__facts li:first-child b { color: var(--ck-gold); }

.sg-ck__gauges {
  margin: 1rem 0 0;
  padding: 0.65rem 0.85rem 0.7rem;
  border: 1px solid rgba(125, 227, 195, 0.14);
  border-radius: 10px;
  background: rgba(17, 25, 22, 0.6);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ck-dim);
}
.sg-ck__gauges p { margin: 0 0 0.2rem; }
.sg-ck__g { display: grid; margin-top: 0.4rem; }
.sg-ck__g span { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.76rem; color: var(--ck-text); }
.sg-ck__g small { font-size: 0.7rem; color: var(--ck-dimmer); }
.sg-ck__gauges b { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 600; color: var(--ck-text); }
.sg-ck__gauges .is-stable   { color: #34d399; }
.sg-ck__gauges .is-elevated { color: #fbbf24; }
.sg-ck__gauges .is-critical { color: #f87171; }
.sg-ck__gauges .is-blind    { color: #cbd5e1; }

.sg-ck__note {
  margin: 0.8rem 0 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--ck-dimmer);
}

.sg-ck__cta { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; margin-top: 1.1rem; }
.sg-ck__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: linear-gradient(100deg, #7de3c3 0%, #4fd1c5 100%);
  color: #06120e;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.sg-ck__btn:hover { filter: brightness(1.08); }
.sg-ck__link {
  color: var(--ck-dim);
  font-size: 0.82rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(165, 181, 174, 0.35);
}
.sg-ck__link:hover { color: var(--ck-text); }
.sg-ck__btn:focus-visible, .sg-ck__link:focus-visible { outline: 2px solid var(--ck-accent); outline-offset: 3px; }

/* the window into space */
.sg-ck__win {
  position: relative;
  height: clamp(22rem, 36vw, 32rem);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(125, 227, 195, 0.20);
  background: #05060c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.sg-ck__win iframe { display: block; width: 100%; height: 100%; border: 0; background: #05060c; }

/* While the band is on screen, the small floating datacenter card (sigil-datacenter-frontpage.js)
   steps aside: the band is the bigger version of the same invitation, and the card would sit on
   top of these words. The class is set by sigil-corkscrew-frontpage.mjs; the card's own fade
   transition does the rest. */
html.sg-ck-in-view #sig-dc { opacity: 0 !important; transform: translateY(14px) !important; pointer-events: none; }

/* phone and narrow tablet: animation first, words under it */
@media (max-width: 860px) {
  .sg-ck__in { grid-template-columns: minmax(0, 1fr); }
  .sg-ck__win { order: -1; height: clamp(18rem, 78vw, 24rem); }
  .sg-ck__facts span { min-width: 5.6rem; }
}
