/* ai.consiliences "Living Instrument" homepage. Reuses palette vars from
   tokens.css/style.css. Dark sections set data-palette="observatory". */
.home-sec { padding: 72px 0; }
.home-sec[data-palette="observatory"] { background: var(--bg); color: var(--ink); }
.home-sec[data-palette="parchment"]   { background: var(--bg); color: var(--ink-2); }
.home-inner { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.home-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.home-h { font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(28px,3.2vw,40px); line-height: 1.06; color: var(--ink); margin: 0 0 10px; }
/* scroll-assemble entrance */
.assemble { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.assemble.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .assemble { opacity: 1; transform: none; transition: none; } }
@media (max-width: 600px) { .home-sec { padding: 48px 0; } .home-inner { padding: 0 16px; } }

/* ---- Hero ---- */
.home-hero { position: relative; min-height: 88vh; display: flex; flex-direction: column;
  justify-content: center; padding: 0; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 20%, #1a2129 0%, #0e1217 55%, #0a0d11 100%); }
.hero-mesh { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.hero-wires path { stroke: #2c333d; stroke-width: 1; fill: none; stroke-dasharray: 4 7;
  animation: hero-flow 3.2s linear infinite; }
@keyframes hero-flow { to { stroke-dashoffset: -44; } }
.hero-mesh .n { fill: var(--confirm); } .hero-mesh .hub { fill: var(--accent); }
.hero-mesh .p { animation: hero-breathe 2.6s ease-in-out infinite; }
@keyframes hero-breathe { 0%,100% { opacity: 1; } 50% { opacity: .22; } }
.hero-scrim { position: relative; text-align: center; padding: 0 28px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(14,18,23,.72) 0%, rgba(14,18,23,.2) 70%, transparent 100%); }
.hero-live { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--confirm); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.hero-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--confirm); animation: hero-breathe 2.2s ease-in-out infinite; }
.hero-wm { display: block; text-decoration: none; line-height: .9; }
.hero-wm-the { font-family: var(--serif); font-variant: small-caps; letter-spacing: .18em; font-size: 16px; color: var(--ink-3); display: block; }
.hero-wm-name { font-family: var(--serif); font-style: italic; font-size: clamp(64px,9vw,110px); color: var(--ink); display: block; }
.hero-thesis { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); max-width: 460px; margin: 14px auto 0; }
.hero-telem { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 30px;
  padding: 28px 0 6px; margin-top: 40px; }
.hero-telem .ht { text-align: center; }
.hero-telem .ht-n { font-family: var(--mono); font-size: 22px; color: var(--ink); display: block; }
.hero-telem .ht-l { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .hero-wires path, .hero-mesh .p, .hero-live i { animation: none; } }
@media (max-width: 600px) { .home-hero { min-height: 78vh; } .hero-telem { gap: 16px 22px; } }

/* ---- Fleet wall ---- */
.home-fleet { background: var(--bg); }
.fleet-sub { font-family: var(--serif); font-size: 15px; color: var(--ink-2); max-width: 640px; margin: 0 0 22px; }
.fleet-fam { margin-bottom: 16px; }
.fleet-fam-h { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0;
  border-bottom: 1px solid var(--rule-2); padding: 0 0 6px; margin: 0 0 9px; cursor: default;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--fc); }
.fleet-fam-h .sw { width: 8px; height: 8px; border-radius: 2px; }
.fleet-fam-blurb { color: var(--ink-3); }
.fleet-fam-cnt { margin-left: auto; color: var(--ink-3); }
.fleet-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 8px; }
.fleet-tile { position: relative; background: var(--bg-2); border: 1px solid var(--rule-2);
  border-top: 2px solid var(--fc); border-radius: 6px; padding: 10px 12px; cursor: pointer;
  transition: transform .12s, box-shadow .12s; }
.fleet-tile:hover, .fleet-tile:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.5); outline: none; }
.fleet-tile:focus-visible { outline: 2px solid var(--fc); outline-offset: 2px; }
.ft-n { font-family: var(--mono); font-size: 10px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.ft-t { font-family: var(--serif); font-size: 12.5px; line-height: 1.32; color: var(--ink-2); }
.fleet-pop { position: absolute; left: 50%; top: -10px; transform: translate(-50%,-100%) scale(.96);
  width: 272px; max-width: 86vw; background: #11161d; border: 1px solid var(--fc); border-top: 3px solid var(--fc);
  border-radius: 8px; padding: 13px 15px; box-shadow: 0 18px 50px rgba(0,0,0,.7); z-index: 50;
  opacity: 0; visibility: hidden; transition: opacity .13s, transform .13s; pointer-events: none; }
.fleet-tile:hover, .fleet-tile:focus-within { z-index: 40; }
.fleet-tile:hover .fleet-pop, .fleet-tile:focus-within .fleet-pop, .fleet-tile.pop-open .fleet-pop {
  opacity: 1; visibility: visible; transform: translate(-50%,-100%) scale(1); }
.fp-n { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.fp-d { font-family: var(--serif); font-size: 13px; line-height: 1.48; color: var(--ink-2); margin-bottom: 9px; }
.fp-f { font-family: var(--mono); font-size: 8px; letter-spacing: .05em; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--rule-2); padding-top: 7px; }
.fp-f b { color: var(--fc); font-weight: 400; }
.fleet-pop::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%) rotate(45deg); width: 12px; height: 12px; background: #11161d; border-right: 1px solid var(--fc); border-bottom: 1px solid var(--fc); }
.fleet-more { text-align: center; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); padding: 14px 0 0; }
/* mobile accordion: show toggle affordance, collapse families */
@media (max-width: 600px) {
  .fleet-fam-h { cursor: pointer; }
  .fleet-fam-h::after { content: "+"; margin-left: 6px; color: var(--ink-3); }
  .fleet-fam-h[aria-expanded="true"]::after { content: "-"; }
  .fleet-pop { position: static; transform: none; width: auto; max-width: none; opacity: 1; visibility: visible;
    box-shadow: none; margin-top: 8px; pointer-events: auto; display: none; }
  .fleet-tile.pop-open .fleet-pop { display: block; }
  .fleet-pop::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fleet-tile { transition: none; }
  .fleet-pop { transition: none; }
}

/* ---- Heartbeat ---- */
.hb-lede { font-family: var(--serif); font-size: 16px; color: var(--ink-2); max-width: 600px; margin: 8px 0 22px; }
.hb { position: relative; height: 150px; border: 1px solid var(--rule-2); border-radius: 6px; background: #0b0e12; overflow: hidden; }
.hb-lane { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #1c222b; }
.hb-stage { position: absolute; top: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--ink-3); }
.hb-gate { position: absolute; top: 14px; bottom: 14px; width: 1px; background: #242c36; }
.hb-dot { position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; margin-top: -4px; background: var(--confirm); }
.hb-dot.d { animation: hb-discard 5s ease-in infinite; }
.hb-dot.s { background: var(--accent); box-shadow: 0 0 8px rgba(201,161,90,.6); animation: hb-travel 5s linear infinite; }
@keyframes hb-travel { 0% { left: -2%; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { left: 100%; opacity: 1; } }
@keyframes hb-discard { 0% { left: -2%; top: 50%; opacity: 0; } 6% { opacity: 1; } 42% { left: 46%; top: 50%; opacity: 1; } 70% { left: 50%; top: 120%; opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hb-dot { animation: none; opacity: 1; } .hb-dot.d { left: 30%; } .hb-dot.s { left: 80%; } }

/* ---- shared narrow reading column ---- */
.home-narrow { max-width: 760px; }
/* ---- Trust gate ---- */
.tg { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; margin-top: 18px; }
.tg-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--rule); background: var(--bg); }
.tg-lab { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tg-lab b { color: var(--accent); font-weight: 400; display: block; font-size: 13px; }
.tg-agents { display: flex; gap: 5px; flex-wrap: wrap; }
.tg-agents i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); opacity: .8; }
.tg-row .tg-agents i { opacity: .35; } .tg-row.t1 .tg-agents i { opacity: .55; } .tg-row.t2 .tg-agents i { opacity: .78; } .tg-row.t3 .tg-agents i { opacity: 1; }
.tg-human { background: #fbeee9; border-top: 1px solid var(--verdict-negative); border-bottom: 1px solid var(--verdict-negative); padding: 7px 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--verdict-negative); }
.tg-note { font-family: var(--serif); font-size: 14px; color: var(--ink-3); font-style: italic; margin-top: 12px; }

/* ---- light reading sections ---- */
.home-read .home-p, .home-p { font-family: var(--serif); font-size: 18px; line-height: 1.72; color: var(--ink-2); max-width: 720px; }
.home-read .home-h { color: var(--ink); }

/* ---- Four arms ---- */
.fa { position: relative; height: 260px; max-width: 720px; margin: 18px auto 0; }
.fa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fa-wire { stroke: #2c333d; stroke-width: 1; stroke-dasharray: 4 7; animation: hero-flow 3.2s linear infinite; }
.fa-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent), #9c7838); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: #0e1217; font-weight: 600; }
.fa-arm { position: absolute; transform: translate(-50%,-50%); text-align: center; text-decoration: none; }
.fa-ring { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--confirm); margin: 0 auto 6px; animation: hero-breathe 2.6s ease-in-out infinite; }
.fa-nm { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink); }
.fa-ct { display: block; font-family: var(--mono); font-size: 9px; color: var(--ink-3); letter-spacing: .06em; margin-top: 2px; }
a.fa-arm:hover .fa-nm { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .fa-wire, .fa-ring { animation: none; } }

/* ---- operator / engage ---- */
.home-disclosure { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--ink-3); margin-top: 28px; }
.home-read a { color: var(--accent); }
