/* The home page (docs/plans/plan-site-film.md): the film in the hero, the Archivist's section with its annotated
   picture, and the index of features as tiles. After the format of agent-manager-gd's website, in this site's own
   colours. Loaded by index.html only. */

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.container.wide { max-width: 1380px; }

/* a third, quieter button in the hero */
.btn-ghost { background: transparent; border-color: rgba(169, 212, 255, .35); color: var(--mint-soft); }
.btn-ghost:hover { border-color: var(--mint); }

/* ---------------------------------------------------------------- the index: one tile per feature */
.features-index { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.fx-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.fx-grid a { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 12px;
  padding: 18px 18px 16px; height: 100%; box-sizing: border-box; text-decoration: none; color: var(--text); background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.fx-grid a:hover, .fx-grid a:focus-visible { transform: translateY(-3px); border-color: var(--forest-light); box-shadow: 0 18px 40px -18px rgba(5, 12, 24, .75); }
.fx-n { grid-row: 1 / 3; font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--faint); padding-top: 4px; }
.fx-grid b { font-size: 1.02rem; line-height: 1.3; }
.fx-grid small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
/* the Archivist's tile: the page's thread */
.fx-grid .fx-key a { border-color: rgba(169, 212, 255, .6); background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.fx-grid .fx-key .fx-n { color: var(--mint); }

/* ---------------------------------------------------------------- a section's small heading */
.feat-num { color: var(--mint); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .8em; }
#archivist { scroll-margin-top: 70px; }
#archivist .section-head.center { max-width: 820px; }

/* ---------------------------------------------------------------- a picture with numbered points
   A card per point beside the picture, a line from each card to its point (js/features.js). Under 960 px the
   cards go under the picture and the lines are not drawn. */
.anno { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr) minmax(0, 1fr); gap: clamp(24px, 3.2vw, 48px); align-items: stretch; }
.anno-col { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-around; gap: 16px; }
.anno-fig { position: relative; margin: 0; align-self: center; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--panel); box-shadow: 0 30px 70px -28px rgba(5, 12, 24, .8); }
.anno-fig figcaption { padding: 10px 14px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--border); }
.hot-wrap { position: relative; }
.hot-wrap img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.anno-card { position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr; align-content: start; gap: 4px 11px; padding: 14px 16px 13px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); outline: none;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease; }
.anno-n { grid-row: 1 / 4; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .8rem; font-weight: 700;
  color: var(--mint); border: 1.5px solid var(--mint); background: var(--bg); transition: background .3s ease, color .3s ease; }
.anno-card > b { font-size: .98rem; line-height: 1.3; align-self: center; }
.anno-card > span:not(.anno-n) { grid-column: 2; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.anno-card em { grid-column: 2; justify-self: start; margin-top: 4px; font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.anno-card.on, .anno-card:focus-visible { border-color: var(--mint); background: var(--panel-2); transform: translateY(-2px);
  box-shadow: 0 14px 36px -14px rgba(5, 12, 24, .8), 0 0 0 3px rgba(169, 212, 255, .14); }
.anno-card.on .anno-n { background: var(--mint); color: #13233a; }
.anno-card.on em { color: var(--mint); border-color: rgba(169, 212, 255, .5); }
.anno-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.anno-lines path { fill: none; stroke: rgba(169, 212, 255, .38); stroke-width: 1.5; transition: stroke .3s ease, stroke-width .3s ease; }
.anno-lines path.on { stroke: var(--mint); stroke-width: 2.5; }
.hot { position: absolute; left: var(--x); top: var(--y); z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; font-size: .72rem; font-weight: 700; line-height: 1; color: #13233a; background: var(--mint);
  box-shadow: 0 0 0 3px rgba(27, 40, 60, .85); transition: transform .3s ease, box-shadow .3s ease; }
.hot.on { transform: scale(1.22); box-shadow: 0 0 0 3px rgba(27, 40, 60, .85), 0 0 18px var(--mint); }
/* « Whole picture »: the annotated picture at full size (added by js/features.js) */
.whole { position: absolute; right: 10px; top: 10px; z-index: 4; font: inherit; font-size: .76rem; font-weight: 600; color: var(--text);
  background: rgba(43, 60, 84, .88); border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px; cursor: pointer; }
.whole:hover, .whole:focus-visible { border-color: var(--mint); }

/* ---------------------------------------------------------------- the door (section 02)
   Three ways in, one door, the Brain behind it. */
.door { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px;
  margin: 0 auto clamp(32px, 5vw, 56px); max-width: 1040px; }
.door-in { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.door-in li { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.door-in b, .door-gate b, .door-brain b { display: block; font-size: 1rem; }
.door-in span, .door-gate small, .door-brain small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.door-arrow { color: var(--mint); font-size: 1.5rem; text-align: center; }
.door-arrow small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.door-gate { text-align: center; padding: 22px 18px; border-radius: var(--radius); border: 1.5px solid var(--mint);
  background: linear-gradient(160deg, var(--panel-2), var(--panel)); box-shadow: 0 0 0 4px rgba(169, 212, 255, .1), 0 24px 60px -28px rgba(5, 12, 24, .8); }
.door-badge { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mint); color: #13233a;
  font-weight: 800; margin-bottom: 8px; }
.door-brain { text-align: center; padding: 22px 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }

/* its directives */
.rules { list-style: none; margin: clamp(28px, 4vw, 44px) auto 0; padding: 0; max-width: 1040px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.rules li { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.rules b { display: block; margin-bottom: 4px; line-height: 1.3; }
.rules span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.limit-note { max-width: 820px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: .92rem; }

@media (max-width: 960px) {
  .anno { grid-template-columns: 1fr; }
  .anno-fig { order: -1; }
  .anno-lines { display: none; }
  .door { grid-template-columns: 1fr; }
  .door-arrow { transform: rotate(90deg); }
  .door-arrow small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-grid a, .anno-card, .hot { transition: none; }
}

/* ---------------------------------------------------------------- the film in the hero
   In the Archivist's own tile, over the living graph (owner, 2026-11-13): muted and looping, with Sound, pause and
   full screen (js/features.js). The scripted demonstration's elements stay in the page, out of sight: its script
   draws the graph behind. */
.hero-live .hero-grid > .hero-capture.has-film { max-width: 640px; }
.film-card { margin: 0 0 10px; width: 100%; padding: 12px; gap: 10px; text-align: left; box-sizing: border-box; }
.film-card .a-head b { font-weight: 700; }
.film-right { margin-left: auto; display: flex; gap: 6px; }
.film-card button { font: inherit; font-size: .78rem; line-height: 1.5; color: var(--text); background: rgba(169, 212, 255, .1);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 11px; cursor: pointer; }
.film-card button:hover, .film-card button:focus-visible { border-color: var(--mint); }
.film-card .film-sound { background: var(--mint); color: #13233a; border-color: var(--mint); font-weight: 700; }
.film-card .film-sound[aria-pressed="true"] { background: transparent; color: var(--mint); }
.film-card video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: #1b283c; cursor: pointer; }
.demo-parked { display: none; }
@media (min-width: 961px) { .hero-live .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); } }
@media (min-width: 1280px) { .hero-live .hero-grid { max-width: 1250px; } }   /* a little more room for the film */
