/* ═══════════════════════════════════════════════════════════════
   SECTION 04 — ASK YOUR COMPANY A QUESTION
   The one light section in a dark site. Parchment is canonical brand
   ("light documents / print"), and this section is about what is
   actually written down — so it reads as paper, deliberately.

   No internal vocabulary. A visitor sees a question, the four answers
   their company gives today, and the one answer ALEX returns.
   ═══════════════════════════════════════════════════════════════ */

.section--cream {
  background: var(--parchment);
  color: #08090B;
  position: relative;
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}
/* a warm page-light so the flat fill does not read as a slab */
.section--cream::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(90% 60% at 85% 100%, rgba(184,137,42,.09), transparent 62%);
}
.section--cream > .wrap { position: relative; z-index: 1; }

.section--cream .eyebrow { color: #7A5A1A; }
.section--cream .eyebrow::after { background: linear-gradient(90deg, rgba(122,90,26,.55), transparent); }
.section--cream .h2 { color: #08090B; }
.section--cream .lede { color: #5C5650; }
.section--cream .prose p { color: #5C5650; }
.section--cream .prose strong { color: #08090B; }
.section--cream .emph { color: #7A5A1A; }
.section--cream .tlink { color: #08090B; }
.section--cream .tlink::before { background: #D4C8A8; }
.section--cream .tlink::after { background: #7A5A1A; }

/* ── the question chips ───────────────────────────────────────── */
.q-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px,3.4vw,40px); }
.q-chip {
  font-family: var(--sans); font-size: 14px; line-height: 1.35;
  color: #5C5650; background: rgba(250,246,236,.7);
  border: 1px solid #D4C8A8; padding: 11px 18px;
  border-radius: 100px; text-align: left;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.q-chip:hover { border-color: #7A5A1A; color: #08090B; }
.q-chip[aria-selected="true"] {
  background: #08090B; border-color: #08090B; color: var(--parchment);
}

/* ── the two panels ───────────────────────────────────────────── */
.ask-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: clamp(26px,3vw,38px);
  background: #D4C8A8;
  border: 1px solid #D4C8A8;
}
.ask-col { background: #F0EDE6; padding: clamp(24px,2.8vw,36px); min-height: 430px; }
.ask-col.is-alex { background: #FAF6EC; }

.ask-hd {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em;
  text-transform: uppercase; color: #6F6658;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ask-hd b { color: #8B2020; font-weight: 400; letter-spacing: .1em; }
.ask-hd .seal {
  width: 13px; height: 15px; background: #7A5A1A; flex-shrink: 0;
  -webkit-mask: var(--seal) center/contain no-repeat; mask: var(--seal) center/contain no-repeat;
}

/* ── what the company says today ──────────────────────────────── */
.ask-src-list { list-style: none; margin-top: 22px; }
.ask-src {
  padding: 15px 0 15px 16px; border-left: 2px solid #E8DEC8;
  border-bottom: 1px solid #E8DEC8;
  transition: border-color .5s var(--ease), opacity .5s var(--ease);
  position: relative;
}
.ask-src:last-child { border-bottom: 0; }
.ask-src-who {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: #6F6658;
}
.ask-src-says {
  font-family: var(--serif); font-size: clamp(1.05rem,1.7vw,1.35rem);
  color: #08090B; margin-top: 7px; line-height: 1.3;
}
.ask-src-tag {
  display: inline-block; margin-top: 9px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid currentColor; opacity: 0;
  transition: opacity .45s var(--ease);
}
.ask-src.is-resolved .ask-src-tag { opacity: 1; }

.ask-src.is-governs { border-left-color: #2A6B47; }
.ask-src.is-governs .ask-src-tag { color: #2A6B47; }
.ask-src.is-superseded { opacity: .5; }
.ask-src.is-superseded .ask-src-tag { color: #6F6658; }
.ask-src.is-superseded .ask-src-says { text-decoration: line-through; text-decoration-color: rgba(139,32,32,.6); }
.ask-src.is-contradicts { border-left-color: #B8892A; }
.ask-src.is-contradicts .ask-src-tag { color: #7A5A1A; }
.ask-src.is-stale { opacity: .55; }
.ask-src.is-stale .ask-src-tag { color: #6F6658; }

/* ── what ALEX returns ────────────────────────────────────────── */
.alex-answer { margin-top: 24px; }
.alex-a {
  font-family: var(--serif); font-size: clamp(1.6rem,3vw,2.5rem);
  line-height: 1.14; color: #08090B; letter-spacing: -.015em;
}
.alex-a em { font-style: normal; color: #7A5A1A; }
.alex-because {
  font-family: var(--body); font-size: 14.5px; line-height: 1.6;
  color: #5C5650; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid #E8DEC8;
}
.alex-flag {
  margin-top: 18px; padding: 14px 16px;
  border: 1px solid rgba(139,32,32,.3); background: rgba(139,32,32,.045);
}
.alex-flag-k {
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: #8B2020; margin-bottom: 7px;
}
.alex-flag p { font-size: 14px; line-height: 1.55; color: #5C5650; }

.ask-note {
  margin-top: 18px; font-size: 12.5px; color: #6F6658; line-height: 1.55; max-width: 72ch;
}

/* swap transition */
[data-swap-ask] { transition: opacity .3s var(--ease); }
.is-swapping [data-swap-ask] { opacity: 0; }

@media (max-width: 900px) {
  .ask-grid { grid-template-columns: 1fr; }
  .ask-col { min-height: 0; }
}

/* The verdict lands a beat after the row, staggered down the column. This is
   pacing, not correctness — the classes are already on the element. */
.ask-src-tag { transition: opacity .45s var(--ease) .30s; }
.ask-src:nth-child(2) .ask-src-tag { transition-delay: .40s; }
.ask-src:nth-child(3) .ask-src-tag { transition-delay: .50s; }
.ask-src:nth-child(4) .ask-src-tag { transition-delay: .60s; }
.ask-src.is-superseded .ask-src-says,
.ask-src.is-governs, .ask-src.is-contradicts, .ask-src.is-stale {
  transition: border-color .5s var(--ease) .3s, opacity .5s var(--ease) .3s;
}

/* ── the comparison: what a search tool returns ────────────────
   Always visible, never behind a tab. The visitor should not have to
   opt in to the argument. Hierarchy does the work: the search answer
   is small and grey, the governed answer is large and ink. */
.sr-block { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #D4C8A8; }
.sr-k {
  font-family: var(--mono); font-size: 9px; letter-spacing: .18em;
  text-transform: uppercase; color: #6F6658; margin-bottom: 10px;
}
.sr-a {
  font-family: var(--serif); font-size: clamp(1.15rem,1.9vw,1.5rem);
  color: #6F6658; line-height: 1.2;
}
.sr-why { font-size: 13px; color: #6F6658; line-height: 1.55; margin-top: 8px; }
.sr-warn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 11px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em;
  text-transform: uppercase; color: #8B2020;
  border: 1px solid rgba(139,32,32,.35); padding: 4px 9px;
}

/* the governed answer gets the weight, and a gold edge that ties it
   back to the source it came from */
.alex-answer { position: relative; padding-left: 18px; }
.alex-answer::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px;
  background: var(--gold); transform: scaleY(0); transform-origin: top;
  transition: transform .6s var(--ease) .5s;
}
.ask-grid.is-linked .alex-answer::before { transform: scaleY(1); }

/* ── the line from the source that governs, across to the answer ── */
.ask-grid { position: relative; }
.ask-link {
  position: absolute; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; z-index: 3;
  transition: transform .55s var(--ease) .45s;
  pointer-events: none;
}
.ask-link::after {
  content: ''; position: absolute; right: -3px; top: -2.5px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.ask-grid.is-linked .ask-link { transform: scaleX(1); }

/* ── the count reads as a problem ─────────────────────────────── */
.ask-hd b { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .ask-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ask-link, .alex-answer::before { transition: none; }
}
