/* Silent Ratchet orbit: the homepage signature fold (three panels). Drawing lives in orbit-*.js as SVG;
   this file only frames it. Colours are the site tokens from styles.css. Orange stays semantic.
   Legibility rule: every SVG scene is drawn at 1 SVG unit = 1 CSS px, so text sizes below are real sizes.
   Informational labels are 16px; nothing essential is smaller than 14px. */

.orbit { padding-block: clamp(2.5rem, 7vh, 4.75rem); border-top: 1px solid var(--line); }
.orbit-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.orbit-grid, .orbit-pair { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 60em) { .orbit-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.orbit-panel {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #17181C 0%, #121316 100%);
  border: 1px solid #2C2D31; border-radius: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
.orbit-head { padding: 1.25rem 1.25rem 0.5rem; }
.orbit-title { font-family: var(--serif); font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 400; line-height: 1.15; color: var(--paper); }
.orbit-stage { position: relative; flex: 1 0 auto; }
.js .orbit-top .orbit-stage { min-height: 24rem; }
.js .orbit-pair .orbit-stage { min-height: 22rem; }
.orbit-canvas { position: relative; }
.orbit-pair .orbit-stage { display: flex; flex-direction: column; justify-content: center; }
.orbit-svg { display: block; width: 100%; height: auto; overflow: hidden; transition: opacity 0.24s ease; }
.orbit-panel.is-resetting .orbit-svg { opacity: 0; }
html:not(.js) .orbit-svg { display: none; }

/* SVG type (real px) */
.o-lbl { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0.005em; }
.o-lbl-l { font-size: 18px; }
.o-txt { font-family: var(--sans); font-size: 16px; font-weight: 450; }
.o-step { font-family: var(--sans); font-size: 15px; font-weight: 600; }
.o-sub { font-family: var(--sans); font-size: 14px; font-weight: 450; }
.o-strong { font-weight: 600; }

/* The shared estimate: hovering it anywhere marks it in every panel */
.o-hlring { opacity: 0; transition: opacity 0.2s ease; }
[data-hl="estimate"] .o-est .o-hlring { opacity: 1; }

/* Hotspots appear once a panel has finished */
.orbit-hit { position: absolute; inset: 0; pointer-events: none; }
.orbit-spot {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto;
  padding: 0; border: 0; border-radius: 14px; background: none; cursor: pointer;
}
.orbit-spot:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }
.orbit-tip {
  position: absolute; z-index: 2; max-width: 20rem; padding: 0.75rem 1rem; pointer-events: none;
  background: rgba(30, 31, 36, 0.97); border: 1px solid #3A3B40; border-radius: 14px;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  font-family: var(--sans); font-size: 1rem; line-height: 1.45; color: var(--steel);
}

/* Footer bar: illustrative note + controls */
.orbit-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; min-height: 3.25rem; padding: 0.25rem 0.5rem 0.25rem 1.25rem; border-top: 1px solid #26272B; }
.orbit-note { font-family: var(--sans); font-size: 0.875rem; line-height: 1.45; color: var(--muted); padding-block: 0.5rem; }
.orbit-ctl { display: flex; gap: 0.25rem; margin-left: auto; }
.orbit-btn {
  min-height: 2.75rem; padding: 0 1rem; border: 1px solid transparent; border-radius: 999px; background: none; cursor: pointer;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; color: var(--text);
}
.orbit-btn:hover, .orbit-btn:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.07); }
.orbit-btn:focus-visible { outline: 2px solid var(--steel); outline-offset: 0; }
.orbit-btn[hidden] { display: none; }
.is-still .orbit-ctl, .is-still .orbit-bar-ctl, html:not(.js) .orbit-ctl, html:not(.js) .orbit-bar-ctl { display: none; }

/* The Signal's resolution line (founder-selected, V2.1) */
.orbit-line { padding: 0.5rem 1.25rem 1.25rem; font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem); font-weight: 400; line-height: 1.25; color: var(--paper); }
.js .orbit-line { opacity: 0; }

/* Without JS the description becomes the content */
html:not(.js) .orbit-desc { position: static !important; width: auto; height: auto; clip-path: none; white-space: normal; padding: 1.25rem; font-family: var(--sans); font-size: 1rem; line-height: 1.5; color: var(--text); }
