/* ChemicallyFired — Orbital Atlas teaser (homepage) + mini clouds (2026-09-25).
   Scoped to .orb-home and .orb-mini. Same instrument tokens as the founder
   block: dark under Precision (dark), light under Precision light / Legacy. */

.orb-home {
  --om-surface: #111416;
  --om-cell: #15191b;
  --om-border: rgba(255, 255, 255, 0.09);
  --om-border-strong: rgba(255, 255, 255, 0.18);
  --om-text: #eef0f0;
  --om-muted: rgba(226, 230, 231, 0.7);
  --om-dim: rgba(226, 230, 231, 0.5);
  --om-orange: #ff5a1f;
  --om-font: "CF Founder Sans", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --om-mono: "CF Founder Mono", "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) clamp(16px, 4.6vw, 72px);
  color: var(--om-text);
  font-family: var(--om-font);
}

html[data-pl-mode="light"] .orb-home,
html:not([data-theme="precision-lab"]) .orb-home {
  --om-surface: #ffffff;
  --om-cell: #f6f7f6;
  --om-border: rgba(0, 0, 0, 0.09);
  --om-border-strong: rgba(0, 0, 0, 0.18);
  --om-text: #121517;
  --om-muted: rgba(18, 21, 23, 0.72);
  --om-dim: rgba(18, 21, 23, 0.52);
}

.orb-home .orb-home-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(20px, 3.4vw, 36px);
  border: 1px solid var(--om-border-strong);
  border-radius: 22px;
  background: var(--om-surface);
}

.orb-home .orb-home-label {
  margin: 0 0 12px;
  color: var(--om-orange);
  font-family: var(--om-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.orb-home .orb-home-title {
  margin: 0;
  color: var(--om-text);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 460;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.orb-home .orb-home-text {
  max-width: 46ch;
  margin: 14px 0 0;
  color: var(--om-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.orb-home .orb-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.orb-home .orb-home-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.orb-home .orb-home-card {
  display: grid;
  gap: 6px;
  padding: 10px 10px 12px;
  border: 1px solid var(--om-border);
  border-radius: 14px;
  background: var(--om-cell);
  color: var(--om-text);
  text-decoration: none;
  transition: border-color 0.2s ease, translate 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.orb-home .orb-home-card:hover,
.orb-home .orb-home-card:focus-visible {
  border-color: var(--om-orange);
  translate: 0 -2px;
}

.orb-home .orb-home-card canvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  color: var(--om-text);
}

.orb-home .orb-home-name {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.orb-home .orb-home-meta {
  color: var(--om-dim);
  font-family: var(--om-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orb-home .orb-home-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 0;
  color: var(--om-dim);
  font-family: var(--om-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orb-home .orb-home-legend i {
  display: inline-block;
  width: 14px;
  height: 6px;
  margin-right: 6px;
  border-radius: 2px;
  vertical-align: middle;
  background: var(--om-orange);
}

.orb-home .orb-home-legend i.is-neg {
  background: var(--om-text);
  opacity: 0.55;
}

@media (max-width: 900px) {
  .orb-home .orb-home-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .orb-home .orb-home-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb-home .orb-home-card {
    transition: none;
  }
}

/* A mini cloud inside another component (e.g. the product element profile). */
.orb-mini {
  display: block;
  width: 100%;
  aspect-ratio: 1;
}

/* Background accents: faint clouds behind a few homepage sections. Purely
   decorative (aria-hidden, no pointer events), feathered at the edges. */
.orb-home {
  position: relative;
  isolation: isolate;
}

.orb-bg-host {
  position: relative;
  isolation: isolate;
}

.orb-home .orb-home-inner > .orb-bg,
.orb-bg-host > .orb-bg {
  position: absolute;
  z-index: -1;
  display: block;
  aspect-ratio: 1;
  pointer-events: none;
  color: inherit;
  -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
}

/* Inside the Orbital Atlas card, above its background and below the text and
   tiles (the card is its own stacking context). */
.orb-home .orb-home-inner {
  position: relative;
  isolation: isolate;
}

.orb-home .orb-home-inner > .orb-bg.is-behind {
  top: 50%;
  left: 0;
  width: min(40%, 460px);
  translate: -60% -50%;
}

.orb-home .orb-home-inner {
  background: color-mix(in srgb, var(--om-surface) 88%, transparent);
}

/* Beside the intro text, on the right. */
.orb-bg-host > .orb-bg.is-right {
  top: 50%;
  right: 0;
  width: min(40%, 480px);
  translate: 0 -50%;
}

/* Founder card: in the empty right side, showing through the card. */
.orb-bg-host > .orb-bg.is-card-right {
  top: 50%;
  right: 6%;
  width: min(30%, 340px);
  translate: 0 -50%;
}

.fp-home.orb-bg-host .fp-home-inner {
  background: color-mix(in srgb, var(--fp-surface) 80%, transparent);
}

@media (max-width: 700px) {
  .orb-home .orb-home-inner > .orb-bg.is-behind { width: 80%; opacity: 0.8; }
  .orb-bg-host > .orb-bg.is-right { width: 58%; opacity: 0.8; }
  .orb-bg-host > .orb-bg.is-card-right { display: none; }
}
