/* Ephor — the hero: a star chart with Orion drawn on it, and ONE Monday
   briefing (owner, 2026-10-07: mockup A, light mode, chosen to stop the page
   reading as a copy of thor.ai's photo-in-a-frame and floating tickets).
   Full-bleed, no rounded shell. The sky's paper and its weather follow the
   viewer's hour and sky (weather.js sets data-phase / data-sky on <html>;
   weather.css tints it) — but the page stays light at every hour. */

.hero-chart {
  position: relative; isolation: isolate; overflow: hidden;
  min-block-size: max(100dvh, 760px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center; gap: var(--s-8);
  /* the content edge is the header's: the pill is 90% wide (max 80rem) and its
     logo sits 1.5rem in, so the words start under the logo and the briefing
     ends under the CTA */
  padding: calc(var(--s-32) + var(--s-4)) var(--edge) var(--section-pad);
  background: radial-gradient(1100px 760px at 66% 38%, #fff 0%, #f3f8f9 46%, #e4eef1 100%);
  transition: background 1.2s ease;
}
/* the chart: its coordinate lines and the faint field of stars (js/hero.js) */
.chart-sky { position: absolute; inset: 0; z-index: -2; inline-size: 100%; block-size: 100%; }
.chart-sky .grid { fill: none; stroke: var(--navy); stroke-opacity: 0.07; stroke-width: 1; }
.chart-sky .specks circle { fill: var(--navy); }

/* Orion, in the gap between the words and the briefing, so the belt is never
   behind the card. The belt is the mark (docs/brand-mark.md); the rest is ink. */
.hunter {
  position: absolute; z-index: -1; inset-block-start: 11%; inset-inline-start: 36%;
  inline-size: min(35vw, 520px); block-size: auto;
}
.hunter .figure line { stroke: var(--navy); stroke-opacity: 0.22; stroke-width: 1; }
.hunter .stars { fill: var(--navy); }
.hunter .belt-line { stroke: #ffb84d; stroke-opacity: 0.6; stroke-width: 1.4; }

.hero-copy { position: relative; z-index: 1; max-inline-size: 38rem; }
.hero-copy .shift-tag { background: #dce9ea; }
.hero-copy h1 {
  margin: var(--s-6) 0;
  font-size: var(--fs-display); letter-spacing: var(--ls-display); line-height: var(--lh-display);
}
/* the section lede's treatment: --fs-lede, muted ink */
.intro { max-inline-size: 33rem; margin-block-end: var(--s-8); font-size: var(--fs-lede); line-height: var(--lh-body); color: var(--mutek); }
.intro b { font-weight: 500; color: var(--navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.button-ghost {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-6);
  border: 1px solid #16294e40; border-radius: var(--r-pill); color: var(--navy); font-weight: 500;
  transition: background 0.2s ease;
}
.button-ghost:hover { background: #16294e0d; }

/* ---- the Monday briefing: a sheet handed over, not a floating card ----
   A navy masthead, then the figure, then one line per seat in that seat's
   accent (tokens.css --seat-*, CLAUDE.md §7's Day Command values). Its
   figures are the Orion film's own (site/index.html). */
.briefing {
  position: relative; z-index: 1; justify-self: end; align-self: end;
  inline-size: min(100%, 440px); margin-block-start: var(--s-32); overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: var(--r-panel); background: #fff;
  box-shadow: var(--shadow-lift);
}
.b-head {
  display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-5);
  background: var(--navy); color: var(--on-navy); font-size: var(--fs-micro); letter-spacing: var(--ls-caps);
}
.b-head time { margin-inline-start: auto; letter-spacing: var(--ls-caps); color: var(--on-navy-soft); }
.b-body { padding: var(--s-4) var(--s-5) var(--s-4); }
.b-who { margin: 0 0 var(--s-4); font-size: var(--fs-caption); color: var(--grey); }
.b-total { margin: 0 0 var(--s-1); font-size: var(--fs-body); color: var(--slate); }
.b-total strong {
  display: block; font-size: var(--fs-title); font-weight: 500; letter-spacing: var(--ls-tight); line-height: var(--lh-tight);
  color: var(--navy); unicode-bidi: isolate;
}
.b-rec { margin: 0 0 var(--s-4); font-size: var(--fs-small); color: var(--found); }
.b-rows { list-style: none; margin: 0; padding: 0; border-block-start: 1px solid var(--line-soft); }
.b-rows li {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-0) var(--s-3);
  padding-block: var(--s-3); border-block-end: 1px solid var(--line-soft);
}
.seat-dots { display: flex; gap: var(--s-1); padding-block-start: var(--s-2); }
.seat-dots i { inline-size: 7px; block-size: 7px; border-radius: 50%; background: var(--c); }
.b-seat { font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--ls-caps); color: var(--c); }
.b-seat span { color: var(--c2); }
.b-text { grid-column: 2; margin: 0; font-size: var(--fs-small); line-height: var(--lh-body); color: var(--slate); }
.b-text b { font-weight: 600; color: var(--navy); unicode-bidi: isolate; }
.b-owner { grid-column: 2; font-size: var(--fs-caption); color: var(--grey); }
.b-foot {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; justify-content: space-between;
  margin-block-start: var(--s-4); font-size: var(--fs-caption); color: var(--grey);
}
.readback {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-3); border-radius: var(--r-pill);
  background: #0a76871a; color: var(--seat-anchor); font-size: var(--fs-caption); white-space: nowrap;
}
.readback i { inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; animation: readback 1.8s ease-in-out infinite; }
@keyframes readback { 50% { opacity: 0.3; } }

/* ---- entrance: the words, then the sky, then the sheet ---- */
html.anim-armed .hero-copy > *:not(h1),
html.anim-armed .briefing,
html.anim-armed .hunter {
  opacity: 0; translate: 0 1.125rem;
  transition: opacity 0.65s cubic-bezier(0.215, 0.61, 0.355, 1), translate 0.65s cubic-bezier(0.215, 0.61, 0.355, 1);
}
html.anim-armed .hunter { translate: 0 0; transition-duration: 1.4s; }
html.anim-armed .hero-in .hero-copy > *:not(h1),
html.anim-armed .hero-in .briefing,
html.anim-armed .hero-in .hunter { opacity: 1; translate: 0 0; }
.hero-in .hero-copy .intro { transition-delay: 0.1s; }
.hero-in .hero-copy .hero-actions { transition-delay: 0.2s; }
.hero-in .hunter { transition-delay: 0.25s; }
.hero-in .briefing { transition-delay: 0.45s; }

/* ---- the pointer (js/pointer.js; owner, 2026-10-08) ----
   Only with a mouse and never with reduced motion: pointer.js sets
   html.pointer-fx and the --mx/--my/--px/--py/--on these read. A soft light
   follows the pointer and the chart's lines sharpen under it; faint lines
   reach for the three nearest stars; the chart moves a little and Orion's
   figure more, so the figure reads as nearer; the briefing turns slightly
   towards the pointer, a sheet held in the hand. All on `transform`: the
   entrance above owns `translate` on the figure and the card. */
.pointer-lamp, .pointer-lines, .pointer-links {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.pointer-lamp {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 40%), #b9d6ff59, #b9d6ff00 70%);
  opacity: var(--on, 0);
}
.pointer-lines, .pointer-links { inline-size: 100%; block-size: 100%; }
.pointer-lines {
  mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 40%), #000, #0000 75%);
  opacity: var(--on, 0);
}
.pointer-lines .grid { fill: none; stroke: var(--navy); stroke-opacity: 0.45; stroke-width: 1.2; }
.pointer-lines .specks circle { fill: var(--navy); }
.pointer-links { overflow: visible; }
.pointer-links line { stroke: var(--navy); stroke-width: 1; stroke-linecap: round; }
.pointer-links circle { fill: var(--watcher); }
.pointer-links .pointer-dot { fill: var(--navy); }
/* the chart and the lines that reach into it move together (pointer.js's
   SKY_X and SKY_Y are these 12 and 9), so a line still lands on its star */
html.pointer-fx :is(.chart-sky, .pointer-lines, .pointer-links) {
  transform: translate3d(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -9px), 0);
}
html.pointer-fx .hunter { transform: translate3d(calc(var(--px, 0) * -30px), calc(var(--py, 0) * -20px), 0); }
html.pointer-fx .briefing {
  transform: perspective(1100px) rotateY(calc(var(--px, 0) * 4deg)) rotateX(calc(var(--py, 0) * -3deg));
}
