/* ============================================================
   hs-imagery.css — the High Touch image set, placed.
   One file holds every placement, so swapping an image is one
   line here and one run of scripts/imagery/build-imagery.mjs.

   Rules it keeps (style guide, 2 Nov 2026):
   - Decorative photos are CSS backgrounds behind text; they carry
     no alt text because they say nothing the words don't.
   - Photos that carry meaning are <img> with alt in both languages.
   - Text never sits on a photo without a dark scrim (contrast).
   - Two widths per photo; phones never download the 1600.
   - Reduced data / print: photos drop out, the page still reads.
   ============================================================ */

/* ── 1. Background layer behind a hero or header ─────────────── */
.hs-photo-bg{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:var(--hs-img-lg);background-size:cover;background-position:var(--hs-img-pos,center);
  background-repeat:no-repeat;opacity:var(--hs-img-op,.9)}
.hs-photo-bg::after{content:"";position:absolute;inset:0;
  background:var(--hs-img-scrim,linear-gradient(90deg,rgba(11,9,16,.93) 0%,rgba(11,9,16,.72) 36%,rgba(11,9,16,.18) 68%,rgba(11,9,16,.05) 100%)),
             linear-gradient(180deg,rgba(11,9,16,.35) 0%,rgba(11,9,16,0) 22%,rgba(11,9,16,0) 72%,rgba(11,9,16,1) 100%)}
@media (max-width:760px){
  .hs-photo-bg{background-image:var(--hs-img-sm,var(--hs-img-lg));opacity:var(--hs-img-op-sm,.6)}
  .hs-photo-bg::after{background:linear-gradient(180deg,rgba(11,9,16,.7) 0%,rgba(11,9,16,.86) 55%,rgba(11,9,16,1) 100%)}
}
/* the host makes its own stacking context, so the layer sits behind
   everything in it without touching any child's positioning */
.hs-has-photo{isolation:isolate}

/* ── 2. Banner band at the top of a back-office page ─────────── */
.hs-band{position:relative;overflow:hidden;isolation:isolate;border-radius:18px;border:1px solid rgba(232,200,120,.14);
  height:clamp(132px,22vw,220px);margin:0 0 22px;background:#0b0910}
.hs-band .hs-photo-bg{opacity:1}
.hs-band .hs-photo-bg::after{background:linear-gradient(90deg,rgba(11,9,16,.55) 0%,rgba(11,9,16,.1) 60%,rgba(11,9,16,.25) 100%)}

/* ── 3. Figure inside a section ──────────────────────────────── */
.hs-figure{margin:28px 0 32px;position:relative}
.hs-figure img{display:block;width:100%;height:auto;aspect-ratio:21/9;object-fit:cover;object-position:var(--hs-img-pos,center);
  border-radius:18px;border:1px solid rgba(232,200,120,.14);background:#0b0910}
@media (max-width:760px){.hs-figure img{aspect-ratio:4/3}}
.hs-figure figcaption{margin-top:10px;font-size:13px;line-height:1.5;color:rgba(255,255,255,.62)}

/* the honesty note on AI-generated people near opportunity content */
.hs-illus{position:absolute;right:12px;bottom:10px;z-index:2;font-size:11px;letter-spacing:.06em;
  color:rgba(255,255,255,.72);background:rgba(11,9,16,.6);padding:3px 8px;border-radius:999px}

/* ── 4. Photo on a card ───────────────────────────────────────── */
.hs-card-photo{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:14px;margin:0 0 16px;background:#0b0910}

/* ── placements ───────────────────────────────────────────────── */
/* index.html hero — the evening plan; the Spanish build shows the family table */
.hs-img--home{--hs-img-lg:url(/assets/img/h2/people-01-evening-plan-1600.webp);--hs-img-sm:url(/assets/img/h2/people-01-evening-plan-960.webp);--hs-img-pos:62% 40%}
html:lang(es) .hs-img--home{--hs-img-lg:url(/assets/img/h2/people-07-familia-1600.webp);--hs-img-sm:url(/assets/img/h2/people-07-familia-960.webp);--hs-img-pos:center 45%}
/* opportunity.html hero — the mentor (centred hero, so an even scrim) */
.hs-img--mentor{--hs-img-lg:url(/assets/img/h2/people-02-mentor-1600.webp);--hs-img-sm:url(/assets/img/h2/people-02-mentor-960.webp);--hs-img-op:.85;
  --hs-img-scrim:radial-gradient(ellipse at 50% 45%,rgba(11,9,16,.8) 0%,rgba(11,9,16,.5) 55%,rgba(11,9,16,.2) 100%)}
/* share-kit.html band — sharing with one real person */
.hs-img--share{--hs-img-lg:url(/assets/img/h2/people-04-porch-share-1200.webp);--hs-img-sm:url(/assets/img/h2/people-04-porch-share-640.webp);--hs-img-pos:center 40%}
/* launch.html band — learning it together */
.hs-img--launch{--hs-img-lg:url(/assets/img/h2/people-05-group-training-1200.webp);--hs-img-sm:url(/assets/img/h2/people-05-group-training-640.webp);--hs-img-pos:center 45%}
/* acm-price-compare.html spot tiles — the metal itself, in someone's hand.
   ::before only: the page already uses ::after for its price-change flash. */
.spot[data-metal]{isolation:isolate}
.spot[data-metal]::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,rgba(11,9,16,.94) 38%,rgba(11,9,16,.6)),var(--hs-spot) right center/auto 100% no-repeat}
.spot[data-metal="gold"]{--hs-spot:url(/assets/img/h2/metal-09-gold-bar-320.webp)}
.spot[data-metal="silver"]{--hs-spot:url(/assets/img/h2/metal-10-silver-round-320.webp)}
.spot[data-metal="platinum"]{--hs-spot:url(/assets/img/h2/metal-13-platinum-320.webp)}

/* ── 5. Full-bleed photo break between sections (home) ───────── */
.hs-break{position:relative;isolation:isolate;overflow:hidden;height:clamp(240px,34vw,440px);margin:0;background:#0b0910}
.hs-break .hs-photo-bg{opacity:1}
.hs-break .hs-photo-bg::after{background:linear-gradient(180deg,#0b0910 0%,rgba(11,9,16,.15) 26%,rgba(11,9,16,.1) 74%,#0b0910 100%)}
@media (max-width:760px){.hs-break{height:220px}.hs-break .hs-photo-bg{opacity:.85}}
.hs-img--break-group{--hs-img-lg:url(/assets/img/h2/people-05-group-training-1600.webp);--hs-img-sm:url(/assets/img/h2/people-05-group-training-640.webp);--hs-img-pos:center 48%}
.hs-img--break-dawn{--hs-img-lg:url(/assets/img/h2/header-25-today-1600.webp);--hs-img-sm:url(/assets/img/h2/header-25-today-960.webp);--hs-img-pos:62% 50%}
.hs-img--break-beacon{--hs-img-lg:url(/assets/img/h2/header-28-beacon-1600.webp);--hs-img-sm:url(/assets/img/h2/header-28-beacon-960.webp);--hs-img-pos:center 55%}

/* ── 6. A photo at the top of each "How it works" step ────────── */
.step-photo{display:block;width:calc(100% + 52px);max-width:none;height:auto;aspect-ratio:16/10;object-fit:cover;
  margin:-34px -26px 22px;border-radius:var(--radius,18px) var(--radius,18px) 0 0;border-bottom:1px solid rgba(232,200,120,.14);background:#0b0910}

/* back-office bands (Hub, The Mine, Stats) */
.hs-img--hub{--hs-img-lg:url(/assets/img/h2/header-26-learn-1600.webp);--hs-img-sm:url(/assets/img/h2/header-26-learn-960.webp);--hs-img-pos:30% 62%}
.hs-img--mine{--hs-img-lg:url(/assets/img/h2/people-02-mentor-1600.webp);--hs-img-sm:url(/assets/img/h2/people-02-mentor-960.webp);--hs-img-pos:center 40%}
.hs-img--stats{--hs-img-lg:url(/assets/img/h2/course-17-understanding-acm-1200.webp);--hs-img-sm:url(/assets/img/h2/course-17-understanding-acm-640.webp);--hs-img-pos:center 58%}

/* ── 7. Motion, kept to one drift and one seam ────────────────── */
@media (prefers-reduced-motion:no-preference){
  /* the photo drifts closer, slowly enough that nobody notices it moving */
  .hs-photo-bg{animation:hs-drift 38s ease-in-out infinite alternate;transform-origin:62% 45%}
  @keyframes hs-drift{from{transform:scale(1)}to{transform:scale(1.07)}}
  /* the eyebrow's gold seam pours in as its section arrives */
  .eyebrow.rv::before{width:0;transition:width 1.3s cubic-bezier(.2,.7,.3,1) .35s}
  .eyebrow.rv.in::before{width:26px}
}

/* ── 8. Presentation showcase (home, "Inside the experience") ──────────────
   The real presentation, recorded, playing in a laptop frame at a size you
   can read. hs-showcase.js loads the right file for the screen, plays it only
   while it's in view, and gives it a Pause/Play control (WCAG 2.2.2). */
.hs-showcase{position:relative;margin:8px auto 56px;max-width:980px}
.hs-laptop{position:relative;filter:drop-shadow(0 30px 60px rgba(0,0,0,.55))}
.hs-laptop::before{content:"";position:absolute;inset:8% 10% -4%;z-index:-1;border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(232,200,120,.16),transparent 70%);filter:blur(30px)}
.hs-laptop-screen{position:relative;aspect-ratio:16/10;border-radius:16px 16px 6px 6px;padding:clamp(6px,1.1vw,12px);
  background:linear-gradient(180deg,#1d1924,#121017);border:1px solid rgba(232,200,120,.18)}
.hs-laptop-screen video{display:block;width:100%;height:100%;object-fit:cover;border-radius:8px;background:#05040a}
.hs-laptop-base{height:clamp(10px,1.6vw,18px);margin:0 -6%;border-radius:0 0 18px 18px;
  background:linear-gradient(180deg,#2a2530 0%,#16131b 70%);border:1px solid rgba(232,200,120,.12);border-top:0;position:relative}
.hs-laptop-base::after{content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);width:16%;height:40%;
  border-radius:0 0 8px 8px;background:rgba(0,0,0,.35)}
.hs-showcase-toggle{position:absolute;right:calc(clamp(6px,1.1vw,12px) + 14px);bottom:calc(clamp(10px,1.6vw,18px) + clamp(6px,1.1vw,12px) + 14px);min-height:44px;min-width:44px;
  padding:0 16px;border-radius:999px;border:1px solid rgba(232,200,120,.45);background:rgba(11,9,16,.72);color:#FBF2D9;
  font-size:13px;font-weight:600;font-family:inherit;line-height:1;cursor:pointer;backdrop-filter:blur(6px)}
.hs-showcase-toggle:hover{border-color:#E8C878}
.hs-showcase-toggle:focus-visible{outline:2px solid #E8C878;outline-offset:3px}
.hs-showcase-toggle .hs-st-play{display:none}
.hs-showcase-toggle[data-state="paused"] .hs-st-pause{display:none}
.hs-showcase-toggle[data-state="paused"] .hs-st-play{display:inline}
.hs-showcase figcaption{margin:22px auto 0;max-width:640px;text-align:center;font-size:14px;color:rgba(255,255,255,.62)}
/* 12 Nov 2026: between 761 and 1099px the base ran past the screen edge and the page scrolled sideways. */
@media (max-width:1099px){.hs-laptop-base{margin:0 -2.5%}}
@media (max-width:760px){.hs-showcase{margin:0 auto 40px}.hs-laptop-base{margin:0 -3%}.hs-showcase-toggle{position:static;display:block;margin:14px 0 0 auto}}

@media print{.hs-photo-bg,.hs-band,.hs-break,.step-photo,.spot[data-metal]::before{display:none!important}}
@media (prefers-reduced-data:reduce){.hs-photo-bg{background-image:none!important}.spot[data-metal]::before,.hs-band,.hs-break,.step-photo{display:none}}
