/* Ephor — ask (the council) and deployment (setup). Modules live in modules.css. */

/* ---- ask ---- */
.ask { padding-block: var(--section-pad); }
.ask-wrapper { position: relative; overflow: clip; padding: var(--s-16); border-radius: var(--r-xl); background: var(--panel-ice); }
.sec-bg { position: absolute; inset: 0; z-index: 1; inline-size: 100%; block-size: 100%; pointer-events: none; }
.sec-bg img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: top; opacity: 0.85; }
.ask-split { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 2.4fr; gap: var(--s-16); }
.ask-questions { display: flex; flex-direction: column; gap: var(--s-2); }
.ask-question {
  padding: var(--s-3) var(--s-5); border: 1px solid #fff; border-radius: var(--r-card);
  background: #fff9; backdrop-filter: blur(20px); color: var(--slate);
  font-size: var(--fs-small); text-align: start; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ask-question[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---- the council: who Orion asks (js/ask.js) ----
   Replaces the chat box (owner, 2026-10-07). Six seats in their accents; the
   ones a question needs light up, the rest stay back; then one reply, each
   point signed by its seat. */
.council-panel {
  display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--shadow-card);
}
.council-label { margin: 0; font-size: var(--fs-micro); letter-spacing: var(--ls-caps); color: var(--grey); }
.council { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); }
.seat {
  display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3) var(--s-3);
  border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--haze);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
/* an unlit seat steps back by colour, not by fading its words: at 40%
   opacity its labels fell far below a readable contrast (audit, 2026-10-08) */
.seat:not([data-on="true"]) i { opacity: 0.45; }
.seat i { inline-size: 0.6rem; block-size: 0.6rem; margin-block-end: var(--s-1); border-radius: 50%; background: var(--c); }
/* the seat's name as it is written everywhere on the page: small capitals */
.seat b { font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--grey); transition: color 0.3s ease; }
.seat[data-on="true"] b { color: var(--c); }
.seat small { font-size: var(--fs-caption); color: var(--grey); }
.seat[data-on="true"] {
  border-color: var(--c); background: var(--white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 14%, transparent);
}
.council-route { margin: 0; min-block-size: 1.5em; font-size: var(--fs-small); color: var(--slate); }
.council-route b { font-weight: 600; color: var(--navy); }
.council-answer {
  padding-block-start: var(--s-4); border-block-start: 1px solid var(--line-soft);
  transition: opacity 0.35s ease, translate 0.35s ease;
}
.council-answer[data-state="waiting"] { opacity: 0; translate: 0 0.5rem; }
.ans-q { margin: 0 0 var(--s-2); font-size: var(--fs-small); color: var(--grey); }
.ans-a { margin: 0 0 var(--s-4); font-size: var(--fs-body-lg); font-weight: 500; line-height: var(--lh-body); color: var(--navy); }
.ans-points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.ans-points li {
  display: grid; grid-template-columns: auto 4.75rem 1fr; gap: var(--s-2); align-items: baseline;
  font-size: var(--fs-body); line-height: var(--lh-body); color: var(--slate);
}
.ans-points .seat-dots { padding-block-start: 0; }
.ans-points b { font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--c); }
.ans-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2);
  margin-block-start: var(--s-4); font-size: var(--fs-small); color: var(--grey);
}

/* ---- deployment (setup) ---- */
.setup {
  position: relative; padding: var(--section-pad) var(--edge);
  background: var(--ice) url("../assets/img/setup-ephor.jpg") center/cover no-repeat;
}
/* the veil is heavier than when white cards carried the words: the timeline's
   text now sits on the photograph itself */
.setup::before { content: ""; position: absolute; inset: 0; background: #e8f0f0c4; }
.setup > * { position: relative; }
.setup-head {
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), translate 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
/* ---- the timeline: three weeks on one line, ending on the first briefing ----
   Replaced three step cards (owner, 2026-10-07: the thor.ai changes). Each
   week draws the segment to the next node — its own width plus the gap, so it
   lands on the next node's centre at any width — and the segments draw in,
   week by week, as the section arrives. */
.timeline {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: var(--s-8);
}
.tl-week, .tl-end { position: relative; display: flex; flex-direction: column; gap: var(--s-2); }
.tl-week::after {
  content: ""; position: absolute; inset-block-start: 0.55rem; inset-inline-start: 0.55rem;
  inline-size: calc(100% + 2rem); block-size: 2px; margin-block-start: -1px;
  background: var(--navy); transform-origin: 0 50%;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 250ms + 350ms);
}
.tl-node {
  position: relative; z-index: 1; inline-size: 1.1rem; block-size: 1.1rem; margin-block-end: var(--s-4);
  border: 2px solid var(--navy); border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--ice);
}
.tl-end .tl-node { background: var(--navy); }
.tl-when { margin: 0; font-size: var(--fs-caption); font-weight: 500; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--teal); }
/* tracking left to the shared h3 rule, so these match the other card titles */
.tl-week h3 { margin: 0; font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-snug); }
.tl-week > p:not(.tl-when) { margin: 0; max-inline-size: 22rem; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--slate); }
.tl-brief {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-radius: var(--r-card);
  background: var(--navy); color: var(--on-navy); font-size: var(--fs-micro); letter-spacing: var(--ls-caps); white-space: nowrap;
  box-shadow: var(--shadow-float);
}
.tl-week, .tl-end {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 250ms + 300ms),
              translate 0.8s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i, 0) * 250ms + 300ms);
}
html.anim-armed.reveals-armed .setup:not(.is-revealed) :is(.tl-week, .tl-end) { opacity: 0; translate: 0 1.5rem; }
html.anim-armed.reveals-armed .setup:not(.is-revealed) .tl-week::after { transform: scaleX(0); }
