/* ------------------------------------------------------------------
   Home hero: orbiting bedside phrases (option C, picked by Hayden Nov 9).
   Loaded after site.css on index.html only. Fold into site.css in the build.
   Phrases float around the photo; one at a time lights up and flips
   over to show the Spanish.
   ------------------------------------------------------------------ */
.hero-art .orbit{position:absolute;inset:0;z-index:2;pointer-events:none}

.chip-pos{position:absolute;width:max-content;max-width:212px;pointer-events:auto}
.chip-pos.is-on{z-index:3}
.chip-par,.chip-float{display:block}
.flip{display:grid}
.face{grid-area:1/1;-webkit-backface-visibility:hidden;backface-visibility:hidden;padding:10px 14px 11px;border-radius:12px;
  font:600 .9375rem/1.35 "Open Sans",sans-serif;text-wrap:pretty}
.face small{display:block;font:700 .625rem/1 Montserrat,sans-serif;letter-spacing:.1em;margin-bottom:5px}
/* Resting chip: deep navy glass, readable over the photo (white at 88% measures over 9:1 on it) */
.face.en{background:rgba(17,55,100,.88);color:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.16);
  box-shadow:0 2px 4px rgba(8,36,68,.2),0 14px 28px -14px rgba(0,0,0,.65)}
.face.en small{color:rgba(255,255,255,.62)}
.face.es{background:var(--green-deep);color:#fff;border:1px solid rgba(92,212,108,.45);visibility:hidden;
  box-shadow:0 0 0 4px rgba(92,212,108,.14),0 16px 32px -12px rgba(20,80,30,.85)}
.face.es small{color:rgba(255,255,255,.78)}

/* Two clean columns with shared edges: left cards line up on one edge, right cards on the other.
   Measured against the 1440 layout (hero art 440x542): her face sits at about x 110-250, y 85-255,
   the patient's head at x 305-425, y 245-455, so right cards stay above or below his head and left cards
   clear of her face. Same-side cards keep a 60px+ gap (Hayden: "too close together", Nov 9). */
.chip-pos.p1,.chip-pos.p3,.chip-pos.p5{transform-origin:0 50%}   /* grow and shrink from the shared edge */
.chip-pos.p2,.chip-pos.p4,.chip-pos.p6{transform-origin:100% 50%}
.chip-pos.p1{left:-12%;top:7%}
.chip-pos.p2{right:-8%;top:0%}
.chip-pos.p3{left:-12%;top:49.5%}
.chip-pos.p4{right:-8%;top:28%}
.chip-pos.p5{left:-12%;top:79%}
.chip-pos.p6{right:-8%;top:87%}

/* Pause control sits at the top of the arch, where no phrase goes */
.hero-art .convo-toggle{top:-2px;right:auto;left:50%;margin-left:-22px}

@media (max-width:1100px){
  .chip-pos{max-width:190px}
  .face{font-size:.875rem}
}
/* Arch fixes (Hayden, Nov 9): the moving phrases already frame the photo, so the home hero drops the thin
   outer ring (it stays on About and Request Information, where it draws itself in). Hidden, not removed,
   so the script can still measure it. */
.hero-art .ring,.hero-art .arch-ring{visibility:hidden}

@media (max-width:820px){
  /* Taller arch on phones (4:5 instead of 4:3) so the crop shows both the clinician and the patient. */
  .hero-art .arch{aspect-ratio:4/5}
  .hero-art .arch img{object-position:50% 35%!important}
  /* Phone: the photo is a 4:3 crop with the face in the upper middle, so only two phrases show, both in the
     lower third: one on the clinician's coat at the left, one across the arch foot. Text stays at 15px. */
  .chip-pos{max-width:min(52%,200px)}
  .face{font-size:.9375rem;padding:9px 12px 10px}
  .face small{margin-bottom:4px}
  .chip-pos.p2,.chip-pos.p3,.chip-pos.p5,.chip-pos.p6{display:none}
  .chip-pos.p1{left:0;top:58%}
  .chip-pos.p4{left:0;right:0;top:auto;bottom:-18px;margin:0 auto;width:max-content;transform-origin:50% 50%}
  .hero-art .convo-toggle{top:0;left:auto;right:0;margin:0}
}
