/* Ephor — FAQ (dark) and the footer frame. */

.faq { padding-block: var(--section-pad); background: var(--ink-ground); color: var(--on-dark); }
.faq-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-20); align-items: start; }
.faq-tab-menu { display: flex; flex-direction: column; gap: var(--s-6); }
.faq-tab-link {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  inline-size: 100%; padding: var(--s-5) var(--s-6); border: 0; border-radius: var(--r-pill);
  background: #ffffff4d; color: var(--white); font: inherit; font-size: var(--fs-body-lg); font-weight: 500;
  text-align: start; opacity: 0.72; transition: opacity 0.3s;
}
.faq-tab-link.is-active, .faq-tab-link:hover { opacity: 1; }
.faq-tab-link i, .faq article button i {
  display: flex; flex: none; align-items: center; justify-content: center;
  inline-size: 1.5rem; block-size: 1.5rem; border-radius: var(--r-pill);
  background: #ffffff1a; color: var(--on-dark-2); font-style: normal;
}
.faq-tab-link i svg, .faq article button i svg { inline-size: 0.8rem; block-size: 0.8rem; }
.faq-panes { display: grid; }
.faq-pane {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.1s, visibility 0s 0.1s;
}
.faq-pane.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.3s; }
.faq article + article { border-block-start: 1px solid #ffffff40; }
.faq article button {
  inline-size: 100%; padding: var(--s-4) 0; display: flex; justify-content: space-between;
  align-items: center; gap: var(--s-4); border: 0; background: transparent; color: var(--white);
  text-align: start; font-size: var(--fs-body-lg); font-weight: 500;
}
.faq article button i { color: var(--on-dark-4); transition: transform 0.3s; }
.faq article button[aria-expanded="true"] i { transform: rotate(135deg); }
.faq article .faq-a { max-inline-size: 670px; padding: 0 0 var(--s-6); color: var(--on-dark-4); line-height: var(--lh-body); }
/* fuller answers (owner, 2026-10-06): paragraphs and short lists */
.faq-a p { margin: 0; }
.faq-a p + p, .faq-a ul + p, .faq-a p + ul { margin-block-start: var(--s-3); }
.faq-a ul { margin: 0; padding-inline-start: var(--s-5); display: grid; gap: var(--s-1); }
.faq-a li::marker { color: var(--on-dark-5); }

/* Ask AI about Orion (owner, 2026-10-19/20): one short card under the FAQ,
   the question it sends on one line, two equal buttons — neither assistant is
   the "primary" one */
.faq-ask { margin-block-start: var(--s-16); }
.faq-ask-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-8);
  padding: var(--s-6) var(--s-8); border: 1px solid var(--line-on-dark); border-radius: var(--r-lg);
  background: var(--glass-on-dark);
}
.faq-ask-copy { display: grid; gap: var(--s-1); }
.faq-ask h3 { margin: 0; font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-snug); color: var(--white); }
.faq-ask .faq-ask-question { margin: 0; font-size: var(--fs-small); color: var(--on-dark-4); line-height: var(--lh-body); overflow-wrap: anywhere; }
.faq-ask-buttons { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.faq-ask-button {
  display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-6);
  border-radius: var(--r-pill); background: var(--white); color: var(--navy);
  font-size: var(--fs-body); font-weight: 500; text-decoration: none;
  transition: transform 0.32s ease, opacity 0.32s ease;
}
.faq-ask-logo { flex: none; inline-size: 1.25rem; block-size: 1.25rem; }
.faq-ask-button:hover { transform: scale(0.98); opacity: 0.92; }
.faq-ask-button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* ---- footer ---- */
/* a full-width band, like the FAQ above it (owner, 2026-10-08: it was a
   rounded card inside the shell, from the first design); its words sit on
   the page's one text line, --edge */
.footer { position: relative; background: var(--navy-dark); }
.footer-frame { position: relative; overflow: clip; }
.footer-media { position: absolute; inset: 0; overflow: clip; }
.footer-media img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.footer-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #0d1a30d9, #0d1a3073 48%, #0d1a30cc);
}
.footer-inner {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  justify-content: space-between; gap: var(--s-16); min-block-size: 80dvh;
  padding: var(--s-16) var(--edge) var(--s-5); color: var(--on-dark);
}
.footer-cta-block {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-6); max-inline-size: 56rem; margin: 0 auto; text-align: center;
}
/* the closing call: the one centred head */
.footer h2 { max-inline-size: var(--measure); margin: 0; font-size: var(--fs-h2); font-weight: 400; line-height: var(--lh-heading); letter-spacing: var(--ls-heading); text-wrap: balance; }
.footer .eyebrow { color: var(--sky); }
.footer .brand, .footer .brand-word { color: var(--white); }
.footer-cta { background: #fff; color: var(--navy); inline-size: max-content; }
/* one row (owner, 2026-10-21): the legal pill gives way, never the two buttons —
   with a Guides link the pill alone outgrew the line, and the buttons wrapped */
.footer-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.footer-legal {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3) var(--s-6); min-block-size: 3rem;
  flex: 0 1 auto; min-inline-size: 0;
  padding: var(--s-3) var(--s-6); border-radius: var(--r-pill);
  background: linear-gradient(210deg, #0d1a3099, #0d1a3000 29%), #ffffff14;
  backdrop-filter: blur(24px); font-size: var(--fs-small); color: var(--on-dark-2);
}
.footer-legal p { margin: 0; color: var(--on-dark-3); }
.footer-legal a { color: var(--white); }
.footer-legal a:hover { text-decoration: underline; }
.footer-social { display: flex; flex: none; gap: var(--s-3); }
.footer-social a, .footer-social button {
  display: grid; place-items: center; inline-size: 3rem; block-size: 3rem; border: 0;
  border-radius: 50%; background: #ffffff14; backdrop-filter: blur(24px); color: var(--white);
  transition: transform 0.28s ease, color 0.38s ease;
}
.footer-social a:hover, .footer-social button:hover { transform: scale(0.96); color: var(--on-dark-3); }
.footer-social .belt { inline-size: 20px; block-size: 20px; }
.footer-social .belt i { inline-size: 4px; block-size: 4px; }
.footer-social .belt i:nth-child(2) { inline-size: 6px; block-size: 6px; }
.footer-social .belt i:nth-child(1) { translate: -5px 5px; }
.footer-social .belt i:nth-child(3) { translate: 5px -5px; }

/* the build stamp: small, muted, and deliberately visible */
.build-stamp { color: var(--mute-on-ink); font-size: var(--fs-micro); letter-spacing: var(--ls-caps); }

/* ---- the clock ----
   An instrument, not a caption: its own glass pill, centred, reading as a
   station clock — a LIVE lamp, the day stacked over the date, and the time
   set large in tabular figures with the seconds stepped down beside it, so
   the ticking digit never drags the eye off the hour. */
.footer-clock {
  display: inline-flex; align-items: center; gap: var(--s-4);
  margin: 0 auto var(--s-10); padding: var(--s-3) var(--s-6);
  border: 1px solid #ffffff1f; border-radius: var(--r-pill);
  background: linear-gradient(210deg, #0d1a3099, #0d1a3000 29%), #ffffff14;
  backdrop-filter: blur(24px);
  font-variant-numeric: tabular-nums;
}
.clock-live {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--ls-caps);
  text-transform: uppercase; color: var(--sky);
}
.clock-live i {
  inline-size: 0.4rem; block-size: 0.4rem; border-radius: 50%; flex: none;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: clock-live 2.4s ease-in-out infinite;
}
@keyframes clock-live { 50% { opacity: 0.3; } }
.clock-rule { inline-size: 1px; block-size: 1.6rem; background: #ffffff26; flex: none; }
.clock-stack { display: grid; gap: var(--s-0); line-height: var(--lh-tight); }
.clock-day {
  font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--ls-caps);
  text-transform: uppercase; color: var(--on-dark-4);
}
.clock-date { font-size: var(--fs-small); font-weight: 500; color: var(--white); }
.clock-time {
  display: inline-flex; align-items: baseline; gap: var(--s-0);
  font-size: var(--fs-h3); font-weight: 500; color: var(--on-dark);
}
/* the seconds carry their own colon, or 17:31 17 reads as two numbers */
.clock-sec { font-size: var(--fs-small); font-weight: 500; color: var(--on-dark-4); }
.clock-sec::before { content: ":"; color: var(--on-dark-5); margin-inline-end: 0.04em; }
.clock-zone {
  font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--ls-caps);
  text-transform: uppercase; color: var(--on-dark-5); align-self: flex-end;
  padding-block-end: var(--s-1); margin-inline-start: calc(var(--s-1) * -1);
}
@media (prefers-reduced-motion: reduce) { .clock-live i { animation: none; } }
@media (max-width: 767px) {
  /* it wraps rather than run off a phone's edge */
  .footer-clock { flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-3); padding: var(--s-2) var(--s-4); max-inline-size: 100%; }
  .clock-zone { display: none; }
  /* the weather wraps to its own line, which left this rule hanging at the
     end of the first */
  .clock-sky-rule { display: none; }
}

/* the chip on the dark footer: pale ice would fight the ground it sits on */
.footer .eyebrow.shift-tag { background: #ffffff1f; }

/* ---- the arrival: the Watch Ring at wall-clock scale ----
   The capsule's ring is the wristwatch; this is the wall clock. Same
   --scroll-round drives both, so the big watcher completes its circuit and
   arrives home exactly as the reader reaches the CTA — the round finishing
   at the moment the page asks for the decision. Faint by design: the seal
   presides over the close, it does not compete with it. One appearance,
   never a wandering background (docs/brand-mark.md). Its gap is derived
   like every other: 2×3.4 + 0.9 = 7.7 at r 21, a half-width of 10.5042°,
   drawn into index.html's `.footer-ring` path. This is the thinnest ring
   in the repo, so the caps eat almost none of the arc and the hole is
   very nearly the dot — which is why it barely moved when the rule
   landed, and why it is the wrong ring to eyeball the rule against. */
.footer-ring {
  position: absolute; z-index: 0; pointer-events: none;
  /* hung from the top: the circle (r 21 of 64, so its top is 11/64 of the
     box down) clears the frame's top by --s-6, and the eyebrow and the
     headline sit INSIDE it. Centred at 42% of the frame, its line ran
     straight through the EVIDENCE OVER OPINION pill (owner, 2026-10-08) */
  inset-block-start: calc(var(--s-6) - min(46rem, 96vw) * 11 / 64); inset-inline-start: 50%;
  translate: -50% 0;
  inline-size: min(46rem, 96vw); aspect-ratio: 1;
  color: var(--ring-on-dark);
}
/* a phone: the ring is narrower than the pill's row, so it circles the
   clock instead, as it always did there */
@media (max-width: 767px) {
  .footer-ring { inset-block-start: 42%; translate: -50% -50%; }
}
.footer-ring svg { inline-size: 100%; block-size: 100%; display: block; }
.fr-watcher {
  /* faint, so the watcher can pass behind the headline without hiding a
     letter of it (audit, 2026-10-08: at full strength it covered "hidden") */
  fill: #8fbaff; opacity: 0.3;
  filter: drop-shadow(0 0 8px #5b9dff66);
}

/* where to find us (owner, 2026-10-06): one quiet row above the legal bar */
.footer-contact {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-8);
  font-style: normal; font-size: var(--fs-body); color: var(--on-dark-2);
}
.footer-contact > span { display: inline-flex; align-items: center; gap: var(--s-2); }
.footer-contact .icon { color: var(--sky); }
.footer-contact a { color: var(--white); text-decoration: none; }
.footer-contact a:hover, .footer-contact a:focus-visible { text-decoration: underline; }
.footer-contact .sep { color: var(--on-dark-5); }
.footer-policy { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
.footer-policy a { color: var(--on-dark-3); text-decoration: none; }
.footer-policy a:hover, .footer-policy a:focus-visible { color: var(--white); text-decoration: underline; }

/* ---- the pointer over the close (js/pointer.js; owner, 2026-10-08) ----
   A faint glow follows the pointer and the photograph drifts a little; the
   watcher turns to the pointer (pointer.js steers its round) and shows a
   little brighter while it watches. Only with a mouse, never with reduced
   motion. */
.pointer-glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 40%), #5b9dff2e, #5b9dff00 70%);
  mix-blend-mode: screen; opacity: var(--on, 0);
}
html.pointer-fx .footer-media img {
  scale: 1.06; transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0);
}
html.pointer-fx .footer-ring.is-watching .fr-watcher { opacity: 0.55; transition: opacity 0.4s ease; }
