/* Rethink art direction · FAQ · 2026-11-19
   Loads after site.css on the two FAQ pages, with faq.js at the end of <body>. No markup changes.

   Owner, 2026-11-19: the page lacked hierarchy, the title column most of all, which needs to be much bigger; the
   question cards and the way they open need a more modern treatment.

   So: the title is the page's one large thing and stays in view while the questions scroll past it. The
   questions are one tall glass panel, a row each: its number, its question and one square control whose plus
   closes to a minus; the open row turns to solid Paper, its question to Lumen, and the answer unfolds to its own height (faq.js).
   Owner, later the same day: the purple shape behind the questions made no sense there. It is removed; the
   panel stands on the plain Mist ground. System sources: tokens.json > rules["surface.glass"].page.light, components.cardCorner. */

main > section:first-child{background:var(--mist);position:relative;isolation:isolate;overflow:clip;}
main > section:first-child .head{container-type:inline-size;width:100%;gap:0;}
main > section:first-child .head .eyebrow{font-size:13px;font-weight:600;margin-bottom:var(--s3);}
html[dir="ltr"] main > section:first-child .head .eyebrow{letter-spacing:.16em;text-transform:uppercase;}
main > section:first-child .title--xl{font-size:clamp(52px,17vw,84px);line-height:1;letter-spacing:-.03em;}
html[dir="rtl"] main > section:first-child .title--xl{line-height:1.3;letter-spacing:0;}
main > section:first-child .head .sub{margin-top:var(--s3);max-width:20em;font-size:clamp(19px,1.7vw,24px);line-height:1.45;color:var(--ink);}

/* ── the questions ── */
main > section:first-child .split > div:last-child{position:relative;z-index:1;display:flex;flex-direction:column;gap:0;counter-reset:q;
  border-radius:0;border-start-end-radius:calc(var(--radius) * 4);box-shadow:var(--gl-shadow);}
.acc,.acc:first-child{position:relative;counter-increment:q;border:1px solid var(--gl-rim);border-radius:0;
  background:var(--gl-bg);box-shadow:none;-webkit-backdrop-filter:blur(var(--gl-blur));backdrop-filter:blur(var(--gl-blur));}
.acc summary{display:grid;grid-template-columns:2.2em minmax(0,1fr) 46px;align-items:center;gap:var(--s2);
  padding:var(--s2) var(--s2) var(--s2) var(--s3);padding-inline:var(--s3) var(--s2);
  font-size:clamp(18px,1.55vw,22px);font-weight:400;line-height:1.35;color:var(--ink);text-wrap:balance;
  transition:color 200ms;}
html[dir="rtl"] .acc summary{line-height:1.6;}
.acc summary::before{content:counter(q,decimal-leading-zero);font-family:var(--font-latin);font-size:13px;font-weight:600;
  letter-spacing:.1em;color:var(--ember);font-variant-numeric:tabular-nums;}
/* the control: the system's 46px square, a plus that turns into a close mark */
.acc summary::after{content:"";width:46px;height:46px;border-radius:var(--radius);font-size:0;line-height:0;
  border:1px solid rgba(112,25,189,.30);background-color:rgba(255,255,255,.72);
  background-image:linear-gradient(var(--lumen),var(--lumen)),linear-gradient(var(--lumen),var(--lumen));
  background-size:16px 1.5px,1.5px 16px;background-position:center;background-repeat:no-repeat;
  transition:transform 420ms cubic-bezier(.2,.7,.2,1),background-size 300ms cubic-bezier(.2,.7,.2,1),background-color 200ms,border-color 200ms;}
.acc + .acc{border-top:0;}
.acc:first-child{border-start-end-radius:calc(var(--radius) * 4);}
.acc summary:hover::after{border-color:var(--lumen);background-color:#fff;}
.acc summary:focus-visible{outline:2px solid var(--halo);outline-offset:-4px;border-radius:var(--radius);}
.acc[open]:not(.rk-closing){z-index:1;background:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none;
  box-shadow:0 14px 44px rgba(112,25,189,.14);}
.acc[open]:not(.rk-closing) summary{color:var(--lumen);font-weight:500;}
.acc[open]:not(.rk-closing) summary::after{content:"";transform:rotate(180deg);border-color:var(--lumen);background-color:var(--lumen);
  background-image:linear-gradient(#fff,#fff),linear-gradient(#fff,#fff);background-size:16px 1.5px,1.5px 0;}
.acc .acc-body{max-width:none;padding:0 var(--s3) var(--s4);padding-inline:calc(var(--s3) + 2.2em * 1.2 + var(--s2)) calc(var(--s2) + 46px + var(--s2));
  font-size:var(--step-0);line-height:1.75;color:rgba(12,0,43,.86);}
.acc .acc-body a{color:var(--lumen);text-decoration:underline;text-underline-offset:.2em;}
html.rk-faq .acc[open] .acc-body{animation:none;}

@media (min-width:1024px){
  main > section:first-child > .wrap.split{grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:var(--s6);align-items:start;}
  main > section:first-child .head{position:sticky;top:calc(72px + var(--s5));z-index:0;}
  main > section:first-child .title--xl{font-size:24cqi;}
  .acc summary{padding-block:var(--s3);}
}
@media (max-width:1023px){
  main > section:first-child > .wrap.split{grid-template-columns:minmax(0,1fr);row-gap:var(--s5);}
}
@media (max-width:560px){
  .acc summary{grid-template-columns:1.9em minmax(0,1fr) 40px;gap:var(--s1);padding-inline:var(--s2) var(--s1);}
  .acc summary::after{width:40px;height:40px;}
  .acc .acc-body{padding-inline:var(--s2);}
}

/* photo:begin-your-story
   The FAQ's closing band ("Begin your story"). Owner, 2026-11-19: a better image here, the photograph he chose
   for this banner; show the two using the screen; and set the Rethink icon on that screen.
   img/begin-your-story.jpg is his photograph with the monogram set into the tablet's screen in perspective (made
   by img/make-begin-your-story.py); img/begin-your-story-ar.jpg is the same picture turned over for Arabic, with
   the monogram set into the turned screen the right way round.
   Owner, 2026-11-20: after the About page's closing band lost its fade ("too harsh"; not how the best brands set
   words beside a picture), use the same here. So this band is the same clean split (about.css): the words on
   solid Ink on the near side, the photograph on the far 56% of the band, full height, running off the band's far
   edge, one clean edge between them, nothing over the photograph and nothing fading. The photograph's upper
   corner beside the words is rounded, the system's one rounded corner.
   The crop: the photograph shows the far 62% of the picture, the two of them from above their heads down to the
   table and the tablet; the near 38%, the plant and the shelves, is not shown. The picture is laid in a box wider
   than the part shown and the box is clipped to that part, so the crop holds at any band height.
   A phone stacks them: the whole photograph on top with a clean edge, the words centred under it on Ink.
   build.py leaves this block out while the photograph is not in the folder. */
main > section.image-band:last-of-type{min-height:clamp(460px,40vw,1000px);background:var(--ink);}
main > section.image-band:last-of-type::after{content:"";position:absolute;z-index:-2;top:0;bottom:0;inset-inline-start:auto;inset-inline-end:0;width:90.32%;
  background:url("img/begin-your-story.jpg") 45% 57% / cover no-repeat;clip-path:inset(0 0 0 38% round clamp(28px,4.4vw,84px) 0 0 0);}
html[dir="rtl"] main > section.image-band:last-of-type::after{background-image:url("img/begin-your-story-ar.jpg");background-position:55% 57%;clip-path:inset(0 38% 0 0 round 0 clamp(28px,4.4vw,84px) 0 0);}
main > section.image-band:last-of-type .bgwrap,main > section.image-band:last-of-type .bg{display:none;}
main > section.image-band:last-of-type::before,html[dir="rtl"] main > section.image-band:last-of-type::before{background:none;}
main > section.image-band:last-of-type .copy{width:auto;max-width:min(37%,36rem);}
@media (max-width:833px){
  /* a phone stacks them: the whole photograph on top at full light, the screen in view, and the words centred
     under it on Ink (owner, 2026-11-19: where the band is stacked, the words stand centred) */
  main > section.image-band:last-of-type{display:block;min-height:0;padding-top:56vw;}
  main > section.image-band:last-of-type::after,html[dir="rtl"] main > section.image-band:last-of-type::after{bottom:auto;width:auto;inset-inline:0;height:56vw;background-size:cover;background-position:50% 50%;clip-path:none;}
  main > section.image-band:last-of-type .copy{max-width:none;padding-top:var(--s4);align-items:center;text-align:center;}
  main > section.image-band:last-of-type .copy .title{text-align:center;}
  main > section.image-band:last-of-type .copy .actions{justify-content:center;}
}
/* end photo */

/* The entrance (site.css, section 7): the question rows arrive one after another. The panel's own shadow waits for
   the first row, so an empty outline never stands there before them. */
@media (prefers-reduced-motion:no-preference){
  main > section:first-child .split > div:last-child{transition:box-shadow 1400ms ease;}
  html.rk-on main > section:first-child .split > div:last-child:has(> .acc:first-child:not(.rk-in)){box-shadow:inset 0 1px 0 rgba(255,255,255,0),inset 1px 0 0 rgba(255,255,255,0),0 9px 35.9px rgba(112,25,189,0);}
}
