/* FAQs page. Design plan: _work/design-plan.md; site plan: _work/site-plan.md (FAQ).
   Opener: compact ruled band with the search field and topic chips on the first screen.
   Set piece: live search and topic filter (Flip) over grouped questions; answers open with a measured height tween. */

@keyframes fq-drift-32 { to { background-position: 0 32px; } }
@keyframes fq-drift-36 { to { background-position: 0 36px; } }
@keyframes fq-glint { 0% { transform: translateX(-110%); } 30%, 100% { transform: translateX(320%); } }
@keyframes fq-breathe { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes fq-caret { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } }

/* ---------- 1. Opener ---------- */
.fq-open { position: relative; overflow: clip; background: var(--blush); padding: calc(var(--head-h) + clamp(26px, 5vh, 60px)) 0 clamp(40px, 6vh, 72px); }
.fq-open__ruling { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(117,21,35,.07) 31px, rgba(117,21,35,.07) 32px); animation: fq-drift-32 20s linear infinite; }
.fq-open__ruling::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(14px, 3.2vw, 52px); width: 1px; background: rgba(163,24,62,.38); }
.fq-open__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.fq-open h1 { font-size: clamp(2.6rem, min(4.8vw, 8.6vh), 4.9rem); margin-bottom: clamp(12px, 2vh, 22px); }
.fq-open__lede { color: var(--ink); margin-bottom: clamp(20px, 3vh, 30px); }

.fq-search { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 56px; background: #fff; box-shadow: 0 20px 40px rgba(34,9,15,.1); border: 1px solid var(--rule); }
.fq-search__icon { position: absolute; left: 18px; top: 50%; width: 24px; height: 24px; margin-top: -12px; color: var(--claret); }
.fq-search input { flex: 1 1 auto; min-width: 0; height: 56px; padding: 0 6px; border: 0; background: none; font: inherit; font-size: 1.15rem; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none; }
.fq-search input::placeholder { color: #7A6A6F; opacity: 1; }
.fq-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.fq-search__go { flex: none; }
.fq-search__rule { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--crimson); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); overflow: hidden; }
.fq-search:focus-within .fq-search__rule { transform: scaleX(1); }
.fq-search:focus-within { box-shadow: 0 20px 40px rgba(34,9,15,.14), inset 0 0 0 1.5px rgba(163,24,62,.3); }
.fq-search::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 30%; height: 2px; background: linear-gradient(90deg, rgba(163,24,62,0), var(--crimson), rgba(163,24,62,0)); transform: translateX(-110%); pointer-events: none; }
.motion .fq-search::after { animation: fq-glint 6s cubic-bezier(.5,0,.4,1) 2s infinite; }
.fq-search:focus-within::after { animation: none; }

.fq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(16px, 2.4vh, 24px); }
.fq-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px 6px 14px; border: 1.5px solid rgba(117,21,35,.28); border-radius: var(--btn-r); background: rgba(255,255,255,.7); color: var(--ink); font-weight: 700; font-size: .98rem; text-decoration: none; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.fq-chip span { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; background: var(--blush); color: var(--claret); font-size: .85rem; border-radius: 2px; transition: background-color .3s, color .3s; }
.fq-chip:hover { border-color: var(--crimson); color: var(--crimson); transform: translateY(-2px); }
.fq-chip[aria-current] { background: var(--claret); border-color: var(--claret); color: #fff; }
.fq-chip[aria-current] span { background: var(--highlight); color: var(--ink); }

.fq-open__ph { position: relative; margin: 0; padding: 20px 20px 46px 0; }
.fq-open__oval { position: absolute; left: -10%; top: -6%; width: 118%; height: 112%; overflow: visible; pointer-events: none; }
.fq-open__oval ellipse { fill: none; stroke: var(--crimson); stroke-width: 1.5; stroke-dasharray: 5 10; opacity: .55; animation: dash-turn 30s linear infinite; }
.fq-open__frame { position: relative; aspect-ratio: 4 / 3.6; max-height: min(52vh, 460px); width: 100%; box-shadow: 20px 20px 0 rgba(117,21,35,.1); }
.fq-open__frame img { position: absolute; inset: 0; object-position: 30% 50%; }
.motion .fq-open__frame img { animation: fq-breathe 13s ease-in-out infinite alternate; }
.fq-open__note { position: absolute; left: -36px; bottom: 0; z-index: 2; display: grid; gap: 2px; padding: 14px 18px 14px 16px; background: #fff; border-left: 4px solid var(--crimson); box-shadow: 0 18px 36px rgba(34,9,15,.18); }
.fq-open__note b { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.05; color: var(--claret); }
.fq-open__note span { font-size: .95rem; color: var(--ink-soft); }
.motion:not(.motion-fail) [data-fq-in], .motion:not(.motion-fail) [data-fq-note] { opacity: 0; }
.motion:not(.motion-fail) [data-fq-wipe] { clip-path: inset(0 100% 0 0); }

@media (min-width: 901px) and (max-height: 860px) {
  .fq-open { padding-top: calc(var(--head-h) + 18px); padding-bottom: 30px; }
  .fq-open__frame { max-height: 46vh; }
}
@media (max-width: 900px) {
  .fq-open__grid { grid-template-columns: minmax(0, 1fr); }
  .fq-open__ph { width: min(100%, 520px); padding-left: 24px; }
  .fq-open__frame { aspect-ratio: 1264 / 848; }
  .fq-open__note { left: 0; }
}
@media (max-width: 560px) {
  .fq-open h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .fq-search { padding-left: 46px; }
  .fq-search__icon { left: 14px; }
  .fq-search input { font-size: 1.05rem; height: 52px; }
  .fq-search__go { padding-inline: 16px; }
  .fq-chip { font-size: .95rem; }
}

/* ---------- 2. Questions and answers ---------- */
.fq { overflow: clip; }
.fq__ruling { position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(117,21,35,.05) 35px, rgba(117,21,35,.05) 36px); animation: fq-drift-36 24s linear infinite; }
.fq__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.fq__status { margin: 0 0 clamp(18px, 2.4vw, 30px); font-weight: 600; color: var(--ink-soft); font-size: 1.05rem; }
.fq__status b { color: var(--claret); font-size: 1.3rem; }
.fq-group { margin-bottom: clamp(30px, 3.6vw, 48px); }
.fq-group[hidden] { display: none; }
.fq-group__h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: clamp(1.6rem, 2.2vw, 2.1rem); color: var(--ink); }
.fq-group__h::after { content: ''; flex: 1 1 auto; height: 1.5px; background: linear-gradient(90deg, var(--crimson), rgba(163,24,62,0)); transform-origin: left; transform: scaleX(var(--rule, 1)); align-self: center; }
.qa { position: relative; border-bottom: 1px solid rgba(117,21,35,.2); }
.qa[hidden] { display: none; }
.qa__q { margin: 0; font: inherit; }
.qa__q button { display: flex; width: 100%; min-height: 60px; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border: 0; background: none; text-align: left; font-weight: 700; font-size: clamp(1.05rem, 1.2vw, 1.16rem); line-height: 1.35; color: var(--ink); cursor: pointer; transition: color .3s; }
.qa__q button:hover { color: var(--claret); }
.qa__q mark, .qa__inner mark { padding: 0 .06em; background: rgba(242,214,75,.85); color: inherit; }
.qa__icon { position: relative; flex: none; width: 34px; height: 34px; border: 1.5px solid var(--claret); border-radius: var(--btn-r); transition: background-color .35s, border-color .35s; }
.qa__icon::before, .qa__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--claret); transition: transform .45s var(--ease), background-color .35s; }
.qa__icon::after { transform: rotate(90deg); }
.qa.is-open .qa__icon { background: var(--crimson); border-color: var(--crimson); }
.qa.is-open .qa__icon::before, .qa.is-open .qa__icon::after { background: #fff; }
.qa.is-open .qa__icon::after { transform: rotate(0deg); }
.qa__a { overflow: hidden; }
.js .qa:not(.is-open) .qa__a { height: 0; }
.qa__inner p { margin: 0; padding: 0 60px 22px 0; color: var(--ink-soft); }
.qa::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--crimson); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.qa.is-open::after { transform: scaleX(1); }
.fq-none { padding: 28px 30px; background: var(--blush); border-left: 4px solid var(--crimson); }
.fq-none[hidden] { display: none; }
.fq-none__h { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; margin-bottom: 8px !important; }
.fq-none a:not(.text-link) { color: var(--claret); font-weight: 700; }

.fq__side { position: sticky; top: calc(var(--head-h) + 24px); }
.fq__photo { position: relative; margin: 0; padding: 22px 22px 0 0; width: min(100%, 360px); }
.fq__ring { position: absolute; left: -8%; top: -3%; width: 114%; height: 106%; overflow: visible; pointer-events: none; }
.fq__ring ellipse { fill: none; stroke: var(--crimson); stroke-width: 1.5; stroke-dasharray: 6 10; opacity: .55; animation: dash-turn 32s linear infinite; }
.fq__frame { position: relative; aspect-ratio: 4 / 4.6; max-height: 46vh; }
.fq__frame img { position: absolute; inset: -6% 0 auto; height: 112%; object-position: 50% 35%; }
.fq__cap { left: -16px; bottom: 24px; border-left: 3px solid var(--crimson); box-shadow: 0 10px 24px rgba(34,9,15,.14); }
.fq__card { position: relative; z-index: 2; margin-top: -26px; padding: 22px 24px 24px; background: #fff; border-top: 3px solid var(--crimson); box-shadow: 0 20px 44px rgba(34,9,15,.14); }
.fq__card-h { font-size: clamp(1.45rem, 1.9vw, 1.8rem); line-height: 1.15; margin-bottom: 8px; }
.fq__card p { color: var(--ink-soft); }
@media (max-height: 820px) and (min-width: 961px) { .fq__frame { max-height: 36vh; } }
@media (max-width: 960px) {
  .fq__grid { grid-template-columns: minmax(0, 1fr); }
  .fq__side { position: relative; top: 0; }
  .fq__photo { margin: 0 auto; }
  .fq__cap { left: 0; }
  .qa__inner p { padding-right: 8px; }
}

/* ---------- 3. Call to action ---------- */
.fq-cta { overflow: clip; }
.fq-cta__oval { position: absolute; right: -16vw; top: -10%; width: min(1100px, 86vw); overflow: visible; pointer-events: none; }
.fq-cta__oval ellipse { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.4; }
.fq-cta__oval .dash { stroke: rgba(242,214,75,.3); stroke-dasharray: 3 12; animation: dash-turn 46s linear infinite; }
.fq-cta__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); gap: clamp(36px, 5.5vw, 96px); align-items: center; }
.fq-cta h2 { color: #fff; margin-bottom: 18px; }
.fq-cta .lede { margin-bottom: 26px; max-width: 120ch; }
.fq-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 3.4vw, 44px); }
.fq-next a { position: relative; display: grid; gap: 4px; height: 100%; padding: 18px 54px 18px 18px; background: #fff; color: var(--ink); text-decoration: none; border-left: 4px solid var(--crimson); transition: box-shadow .4s var(--ease); }
.fq-next a:hover { box-shadow: 0 20px 36px rgba(0,0,0,.35); }
.fq-next b { font-size: 1.06rem; line-height: 1.25; }
.fq-next span { font-size: .95rem; line-height: 1.4; color: var(--ink-soft); }
.fq-next svg { position: absolute; right: 16px; bottom: 18px; width: 20px; color: var(--crimson); transition: transform .35s var(--ease); }
.fq-next a:hover svg { transform: translateX(4px); }
.fq-cta__ph { position: relative; margin: 0; padding: 0 0 26px 26px; }
.fq-cta__ph::before { content: ''; position: absolute; inset: 18px 18px 0 0; border: 1.5px solid rgba(242,214,75,.55); pointer-events: none; }
.fq-cta__frame { position: relative; aspect-ratio: 4 / 5; max-height: min(64vh, 560px); }
.fq-cta__frame img { position: absolute; inset: -6% 0 auto; height: 112%; object-position: 50% 30%; }
.fq-cta__cap { left: auto; right: -14px; bottom: 50px; border-left: 3px solid var(--crimson); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
@media (max-width: 1100px) { .fq-next { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .fq-cta__grid { grid-template-columns: minmax(0, 1fr); } .fq-cta__ph { width: min(80%, 360px); } .fq-cta__cap { right: 0; } }

/* Ambient: the framed photos breathe slowly while you read */
@keyframes fq-breathe-s { from { transform: scale(1); } to { transform: scale(1.035); } }
.motion .fq__frame { animation: fq-breathe-s 9s ease-in-out infinite alternate; }
.motion .fq-cta__frame { animation: fq-breathe-s 10s ease-in-out -4s infinite alternate; }
.fq-search { overflow: clip; }
.motion .fq__card .btn--primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); animation: fq-shine 5s ease-in-out 2s infinite; pointer-events: none; }
@keyframes fq-shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
