/* "Meet Noor" band under the homepage hero (templates/home.php). Black on black: Noor, a warm glow behind her, one card. */
.noor{position:relative;overflow:hidden;padding-block:clamp(4rem,9vw,8rem)}
.noor::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(60% 55% at 28% 52%,rgba(92,52,20,.32),transparent 70%)}
.noor-in{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(2rem,5vw,5rem);align-items:center}

/* the stage: still images until the 3D Noor is ready (desktop), and for good on phones */
.noor-stage{position:relative;aspect-ratio:4/5;width:100%;max-width:560px;justify-self:center}
.noor-glow{position:absolute;inset:8% 4% 18%;border-radius:50%;
  background:radial-gradient(closest-side,rgba(230,201,130,.11),rgba(120,70,30,.06) 55%,transparent);filter:blur(10px)}
.noor-img,.noor-cv{position:absolute;inset:0;width:100%;height:100%;display:block;
  -webkit-mask-image:radial-gradient(75% 70% at 50% 46%,#000 62%,transparent 100%);mask-image:radial-gradient(75% 70% at 50% 46%,#000 62%,transparent 100%)}
.noor-img{object-fit:contain}
.noor-shut{opacity:0}
html.anim .noor-shut{animation:noorBlink 6.5s infinite 2.5s}
@keyframes noorBlink{0%,94%,100%{opacity:0}96%,97.5%{opacity:1}}
.noor-cv{opacity:0;transition:opacity 1.2s ease}
.noor.is-3d .noor-cv{opacity:1}
.noor.is-3d .noor-img{opacity:0;animation:none;transition:opacity 1.2s ease}

/* the copy */
.noor-copy h2{margin-bottom:1.2rem}
.noor-copy h2 em{color:#e6c982}
.noor-lede{max-width:34rem;color:var(--bone-2);font-size:1.08rem;margin-bottom:2rem}
.noor-card{position:relative;max-width:36rem;min-height:8.6rem;padding:1.4rem 1.6rem 1.3rem;border:1px solid rgba(230,201,130,.28);border-radius:18px;
  background:linear-gradient(180deg,rgba(238,235,228,.05),rgba(238,235,228,.02));margin-bottom:1.6rem;transition:min-height .35s ease}
@media (prefers-reduced-motion:reduce){.noor-card{transition:none}}
.noor-card::before{content:"";position:absolute;left:-7px;top:2.2rem;width:12px;height:12px;transform:rotate(45deg);
  background:#121012;border-left:1px solid rgba(230,201,130,.28);border-bottom:1px solid rgba(230,201,130,.28)}
.noor-say{font:italic 400 clamp(1.25rem,1.9vw,1.6rem)/1.35 var(--serif);color:var(--bone);margin:0}
.noor-say .cur{display:inline-block;width:.5em;color:#e6c982;animation:noorCur 1s steps(1) infinite}
@keyframes noorCur{50%{opacity:0}}
.noor-go{display:inline-flex;gap:.45rem;align-items:center;margin-top:1rem;color:#e6c982;font:500 .78rem/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;text-decoration:none;
  border-bottom:1px solid rgba(230,201,130,.4);padding-bottom:.3rem}
.noor-go:hover{border-bottom-color:#e6c982}
.noor-ask-l{color:#cdb27a;margin-bottom:.8rem}
.noor-qs{display:flex;flex-direction:column;gap:.6rem;max-width:36rem}
.noor-q{all:unset;box-sizing:border-box;cursor:pointer;display:block;width:100%;padding:1rem 1.2rem;border-radius:14px;border:1px solid var(--bone-rule);
  font:400 1rem/1.35 var(--sans);color:var(--bone);transition:border-color .25s,background .25s}
.noor-q:hover{border-color:rgba(230,201,130,.5);background:rgba(238,235,228,.03)}
.noor-q:focus-visible{outline:2px solid #e6c982;outline-offset:3px}
.noor-q[aria-pressed="true"]{border-color:#e6c982;background:rgba(230,201,130,.07)}

/* without JS the three answers are simply on the page; with JS Noor types them into the card */
.noor-answers{margin-top:2rem;display:grid;gap:1.4rem;max-width:36rem}
.noor-a h3{font:500 1.05rem/1.3 var(--sans);margin:0 0 .4rem}
.noor-a p{color:var(--bone-2);margin:0 0 .5rem}
.noor-a a{color:#e6c982}
html.js .noor-answers{display:none}
html:not(.js) .noor-card,html:not(.js) .noor-qs,html:not(.js) .noor-ask-l{display:none}

/* phones: Noor big and centred, the card under her with its tail pointing up, full-width questions */
@media (max-width:820px){
  .noor-in{grid-template-columns:1fr;gap:1rem}
  .noor-stage{max-width:min(88vw,420px);margin-inline:auto}
  .noor::before{background:radial-gradient(80% 40% at 50% 22%,rgba(92,52,20,.32),transparent 70%)}
  /* heading first, then Noor, then her card and the questions */
  .noor-copy{display:contents;text-align:center}
  .noor-copy .kicker{order:1;justify-content:center;margin-bottom:.6rem}
  .noor-copy h2{order:2;text-align:center;margin-bottom:.6rem}
  .noor-lede{order:3;margin:0 auto .4rem;text-align:center}
  .noor-stage{order:4;margin-top:-14%;margin-bottom:-6%}
  .noor-card{order:5}.noor-ask-l{order:6;text-align:center}.noor-qs{order:7}.noor-answers{order:8}
  .noor-card{margin-inline:auto;text-align:left}
  .noor-card::before{left:50%;top:-7px;margin-left:-6px;border-bottom:0;border-top:1px solid rgba(230,201,130,.28)}
  .noor-qs{margin-inline:auto}
  .noor-q{text-align:left;min-height:44px}
}
@media (prefers-reduced-motion:reduce){html .noor-shut{animation:none}.noor-say .cur{animation:none}}
/* Noor herself is a button: tap her and she answers the next question */
.noor-stage{cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:24px}
.noor-stage:focus-visible{outline:2px solid #e6c982;outline-offset:6px}
/* sound on/off for Noor's glass tones */
.noor-snd{all:unset;cursor:pointer;position:absolute;top:.7rem;right:.7rem;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#cdb27a;transition:background .2s,color .2s}
.noor-snd:hover{background:rgba(230,201,130,.1);color:#e6c982}
.noor-snd:focus-visible{outline:2px solid #e6c982;outline-offset:2px}
.noor-snd svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.noor-snd svg path:first-child{fill:currentColor;stroke:none}
.noor-snd[aria-pressed="true"] .x,.noor-snd[aria-pressed="false"] .w{display:none}
.noor-snd[aria-pressed="false"]{color:var(--bone-2)}
.noor-say{padding-right:2rem}
/* the product finder: Noor's choices appear inside her card */
.noor-picks{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.noor-picks[hidden]{display:none}
.noor-pick{all:unset;box-sizing:border-box;cursor:pointer;padding:.6rem .95rem;border-radius:999px;border:1px solid rgba(230,201,130,.35);
  font:400 .92rem/1.2 var(--sans);color:var(--bone);transition:background .2s,border-color .2s;min-height:40px;display:inline-flex;align-items:center}
.noor-pick:hover{background:rgba(230,201,130,.08);border-color:#e6c982}
.noor-pick:focus-visible{outline:2px solid #e6c982;outline-offset:2px}
.noor-pick[aria-pressed="true"]{background:#e6c982;color:#141012;border-color:#e6c982}
.noor-q-quiz{color:#f1e3bd}
.noor-q-quiz span{color:#e6c982}
.noor-a ul{margin:.3rem 0 0;padding-left:1.1rem;color:var(--bone-2)}
@media (max-width:820px){.noor-picks{justify-content:flex-start}.noor-pick{flex:1 1 calc(50% - .5rem);justify-content:center;text-align:center}}
/* two links under an answer; the finder button leads the list in gold */
.noor-links{display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;margin:0}
.noor-links .noor-go{margin-top:1rem}
.noor-links .noor-go[hidden]{display:none}
.noor-go2{color:var(--bone);border-bottom-color:rgba(238,235,228,.3)}
.noor-q-quiz{color:#f6e7bf;font-weight:500}
/* only the question you clicked is gold; the finder stands out by its gold text and star only */
.noor-q-quiz[aria-pressed="true"],.noor-q-quiz:hover{border-color:#e6c982;background:rgba(230,201,130,.07)}
/* speaking cues: the little sound wave in the card corner and the glow behind her follow her voice (--talk 0..1) */
.noor{--talk:0}
.noor-wave{position:absolute;top:1.15rem;right:3.2rem;display:flex;align-items:center;gap:3px;height:18px;opacity:.35;transition:opacity .3s}
.noor.is-talking .noor-wave{opacity:1}
.noor-wave i{display:block;width:3px;height:18px;border-radius:2px;background:#e6c982;transform:scaleY(.18);transform-origin:50% 50%}
.noor-glow{transition:none;opacity:calc(.75 + var(--talk) * .9);transform:scale(calc(1 + var(--talk) * .06))}
.noor-say{padding-right:5rem}
@media (max-width:820px){.noor-say{padding-right:4.2rem}}

/* read-along: the whole answer is there at once, the words she is saying light up */
.noor-say.is-reading span{opacity:.42;transition:opacity .3s}
.noor-say.is-reading span.on{opacity:1}
@media (prefers-reduced-motion:reduce){.noor-say.is-reading span{transition:none}}
