/* Gatsbee — FAQ page
   Loaded after gatsbee.css. Uses the same tokens:
   midnight hero with the sunburst, powder body, Archivo questions, gold diamonds from the week timeline,
   chamfered corners from the logo wings. */

/* ============ HERO ============ */
.faq-hero{overflow:hidden;padding:clamp(64px,8vw,112px) 0 clamp(56px,6vw,88px)}
.faq-hero .sunburst{right:-14%;top:-30%;width:62%;height:160%;opacity:.18}
.faq-hero .wrap{position:relative}
.faq-hero h1{max-width:14ch;margin-bottom:26px}
.faq-hero .lede{color:var(--on-dark-soft);margin-bottom:44px}

/* page-load cascade, same feel as the home hero */
.faq-hero .load{opacity:0;transform:translateY(12px);animation:rise 700ms var(--ease-out) forwards}
.faq-hero-text .load:nth-child(2){animation-delay:60ms}
.faq-hero-text .load:nth-child(3){animation-delay:120ms}
.faq-hero .faq-hero-img.load{animation:fadeStage 900ms 150ms var(--ease-out) forwards;transform:none}

/* photo next to the title: chamfered frame with the gold edge, as on the home page */
.faq-hero-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(32px,6vw,96px);align-items:center}
.faq-hero-img{aspect-ratio:4/5;max-height:440px;width:100%;max-width:360px;justify-self:end;--cut:24px}
.faq-hero-img img{object-position:50% 40%}

/* ============ BODY ============ */
.faq-body{padding-top:clamp(56px,7vw,104px)}
.faq-layout{display:grid;grid-template-columns:minmax(200px,260px) minmax(0,1fr);gap:clamp(32px,6vw,96px);align-items:start}

/* sticky index, left */
.faq-index{position:sticky;top:108px}
.faq-index-label{font-size:13px;font-weight:700;color:var(--ink-soft);margin-bottom:14px;letter-spacing:.04em;text-transform:uppercase}
.faq-index ol{list-style:none;margin:0 0 28px;padding:0;border-top:2px solid var(--ink)}
.faq-index li a{
  display:grid;grid-template-columns:14px 1fr auto;align-items:center;gap:12px;
  padding:13px 0;border-bottom:1px solid var(--line-light);
  text-decoration:none;font-weight:600;font-size:16px;color:var(--ink-soft);transition:color 200ms ease;
}
.faq-index li a b{font-size:18px;font-weight:500;color:var(--ink-soft)}
.faq-index .mk{width:9px;height:9px;transform:rotate(45deg);box-shadow:inset 0 0 0 1.5px var(--ink-soft);transition:background-color 250ms ease,box-shadow 250ms ease}
.faq-index li a:hover,.faq-index li a.on{color:var(--ink)}
.faq-index li a.on .mk{background:var(--gold);box-shadow:none}

/* groups, right */
.faq-groups{display:grid;gap:clamp(56px,7vw,96px)}
.faq-group{scroll-margin-top:100px}
.faq-group-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 18px;padding-bottom:22px;border-bottom:2px solid var(--ink)}
.faq-group-head .numeral{font-size:clamp(28px,2.6vw,36px);line-height:1;color:var(--gold)}
.faq-group-head h2{font-size:clamp(30px,3.2vw,44px)}

/* one question */
.qa{border-bottom:1px solid var(--line-light);scroll-margin-top:100px}
.qa summary{
  list-style:none;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) 22px;gap:24px;align-items:center;
  padding:24px 0;
}
.qa summary::-webkit-details-marker{display:none}
.qa .q{font-family:var(--f-display);font-stretch:110%;font-weight:560;font-size:clamp(19px,1.6vw,22px);line-height:1.25;letter-spacing:-.01em;transition:color 200ms ease}
.qa summary:hover .q{color:var(--midnight-3)}

/* the marker: the timeline diamond with a plus that turns into a minus */
.qa .mark{position:relative;width:22px;height:22px;justify-self:end}
.qa .mark::before{content:"";position:absolute;inset:3px;transform:rotate(45deg);box-shadow:inset 0 0 0 1.5px var(--ink);transition:background-color 250ms ease,box-shadow 250ms ease,transform 300ms var(--ease-out)}
.qa .mark::after{
  content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;
  background:linear-gradient(var(--ink),var(--ink)) center/8px 1.5px no-repeat,linear-gradient(var(--ink),var(--ink)) center/1.5px 8px no-repeat;
  transition:transform 300ms var(--ease-out);
}
.qa[open] .mark::before{background:var(--gold);box-shadow:none;transform:rotate(135deg)}
.qa[open] .mark::after{transform:rotate(90deg);background:linear-gradient(var(--midnight),var(--midnight)) center/8px 1.5px no-repeat}

.qa .a{padding:0 46px 28px 0}
.qa .a p{color:var(--ink-soft);font-size:17px;max-width:62ch}
.qa[open] .a{animation:answerIn 360ms var(--ease-out) both}
@keyframes answerIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* deep link to a question: a brief gold wash so the eye finds it */
.qa.flash{animation:flash 1600ms ease-out}
@keyframes flash{from{background:rgba(217,154,30,.18)}to{background:transparent}}

/* ============ STILL A QUESTION ============ */
.faq-cta .wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:32px 64px}
.faq-cta h2{margin-bottom:22px}
.faq-cta .lede{color:var(--on-dark-soft)}
.faq-cta-actions{display:flex;flex-wrap:wrap;gap:14px}

/* ============ SMALL SCREENS ============ */
@media (max-width:900px){
  .faq-hero-grid{grid-template-columns:1fr}
  .faq-hero-img{justify-self:start;max-width:none;aspect-ratio:16/10;max-height:none}
  .faq-layout{grid-template-columns:1fr}
  .faq-index{display:none}               /* small screens: the groups follow straight after the hero */
  .faq-cta .wrap{grid-template-columns:1fr;align-items:start}
}
@media (max-width:480px){
  .qa .a{padding-right:0}
}

@media (prefers-reduced-motion:reduce){
  .faq-hero .load{opacity:1;transform:none;animation:none}
  .qa[open] .a,.qa.flash{animation:none}
}
