/* Observatory homepage. Shared marketing and product pages keep their own styles. */
body.ki-home {
  --ki-bg: #080709;
  --ki-ink: #f3efe8;
  --ki-copy: #b9b4b0;
  --ki-muted: #96908d;
  --ki-red: #a31320;
  --ki-red-deep: #620c16;
  --ki-line: rgba(222, 210, 204, .16);
  --ki-ease: cubic-bezier(.2, .75, .2, 1);
  --ki-gutter: clamp(24px, 4.7vw, 88px);
  --atlas-progress: 1;
  background: var(--ki-bg);
}
.ki-home ::selection { background: var(--ki-red-deep); color: #fff; }
.ki-home h2 { border-left: 0; padding-left: 0; }
.ki-home :is(a, button):focus-visible { outline: 2px solid var(--ki-ink); outline-offset: 5px; }
.ki-home button { -webkit-tap-highlight-color: transparent; }
.ki-home .ki-scene { background: radial-gradient(ellipse at 83% 43%, #270b10, #10090b 35%, #080709 72%); }
.ki-home.atlas-is-ready .ki-scene { background: var(--ki-bg); }
.ki-home #earth { opacity: 1; filter: none; }
.ki-home #earth.is-dragging { opacity: 1; }
.ki-home .canvas-fallback {
  top: 44svh; right: var(--ki-gutter); z-index: 6; gap: 14px;
  width: min(320px, calc(100vw - 2 * var(--ki-gutter))); max-width: none;
  padding: 20px; align-items: flex-start; border: 1px solid var(--ki-line);
  background: rgba(8,7,9,.94); color: var(--ki-copy);
  font:400 13px/1.7 var(--ki-font-text); text-align: left; text-transform: none;
}
.ki-home #earth-fallback.is-visible:not([hidden]) { display: flex !important; }
.ki-home .canvas-fallback[hidden],
.ki-home .canvas-fallback[data-globe-state="loading"] [data-globe-retry] { display: none; }
.ki-home [data-globe-retry] { pointer-events: auto; min-height: 44px; }
@media (max-width: 767px) {
  .ki-home .canvas-fallback { top: auto; bottom: 20px; }
}
.ki-home .ki-scene-shade {
  background: linear-gradient(90deg, rgba(8,7,9,.84), rgba(8,7,9,.62) 27%, rgba(8,7,9,.08) 53%, transparent 76%);
  transition: opacity 650ms var(--ki-ease);
}
.ki-home[data-atlas-open] .ki-scene-shade {
  background: linear-gradient(90deg, rgba(8,7,9,.98), rgba(8,7,9,.89) 28%, rgba(8,7,9,.22) 51%, transparent 71%);
}
.ki-home .ki-eyebrow { color: #b6aaa5; }
.ki-home .ki-signal-dot { background: var(--ki-red); box-shadow: 0 0 0 4px rgba(163,19,32,.13), 0 0 22px rgba(163,19,32,.3); }
.ki-home .ki-hero { min-height: max(760px, calc(100svh - 112px)); padding-bottom: 154px; }
.ki-home .ki-hero-copy { width: 49%; max-width: 720px; }
.ki-home .ki-hero h1 { font-weight:500; letter-spacing:-.015em; }
.ki-home .ki-hero h1 > span { position: relative; color: var(--ki-ink); white-space: nowrap; isolation: isolate; }
.ki-home .ki-hero h1 > span::after {
  content: ""; position: absolute; z-index: -1; left: .025em; right: -.05em; bottom: .05em; height: .105em;
  background: var(--ki-red);
}
.ki-home .ki-hero-description { color: var(--ki-copy); font-size: clamp(14px, 1.12vw, 17px); line-height: 1.85; }
.ki-home .ki-button {
  position: relative; min-height: 52px; padding: 14px 22px; color: var(--ki-ink)!important;
  background: var(--ki-red); border-color: var(--ki-red); border-radius: 2px;
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 6px 24px rgba(71,5,11,.15);
  transition: background 200ms var(--ki-ease), border-color 200ms var(--ki-ease), box-shadow 200ms var(--ki-ease), transform 200ms var(--ki-ease);
}
.ki-home .ki-button:hover { background: #ba1424; border-color: #ba1424; box-shadow: inset 0 1px rgba(255,255,255,.12), 0 8px 30px rgba(111,8,20,.28); transform: translateY(-2px); }
.ki-home .ki-button:active { background: #800f1b; border-color: #800f1b; transform: translateY(1px) scale(.98); box-shadow: inset 0 2px 5px rgba(0,0,0,.22); }
.ki-home .ki-button svg { transition: transform 220ms var(--ki-ease); }
.ki-home .ki-button:hover svg { transform: translateX(3px); }
.ki-home .ki-button-outline { background: transparent; border-color: #69232a; box-shadow: none; }
.ki-home .ki-button-outline:hover { background: var(--ki-red); border-color: var(--ki-red); }
.ki-home .ki-text-link { color: #d8d1ca; text-underline-offset: 6px; text-decoration-color: var(--ki-red); }
.ki-home .ki-text-link:hover { color: var(--ki-ink); text-decoration: underline; text-decoration-color: var(--ki-red); }

.ki-home .ki-hero-baseline { color: #99908a; }
.ki-home .ki-hero-baseline a > span { color: var(--ki-ink); }
.ki-home .ki-atlas-marker { color: #e4d7cd; pointer-events: none; z-index: 1; }
.ki-home .ki-atlas-marker-dot,
.ki-home .ki-atlas-marker-label { pointer-events: auto; }
.ki-home .ki-atlas-marker[aria-current="true"] { z-index: 5; }
.ki-home .ki-atlas-marker:is(:hover, :focus-visible) { z-index: 4; }
.ki-home .ki-atlas-marker[data-label-visible="false"] .ki-atlas-marker-label { visibility: hidden; pointer-events: none; }
.ki-home .ki-atlas-marker-dot::before { background: #e7d8ca; border-color: #f3e8db; box-shadow: 0 0 0 5px rgba(163,19,32,.27), 0 0 24px 8px rgba(163,19,32,.3); }
.ki-home .ki-atlas-marker-label { background: rgba(13,7,9,.85); border-color: rgba(166,72,76,.4); border-left-color: var(--ki-red); }
.ki-home .ki-atlas-marker-label { transform: translateY(var(--atlas-label-y, 0px)); }
.ki-home .ki-atlas-marker::after { content: ""; position: absolute; top: var(--atlas-leader-top, 22px); left: 52px; width: 1px; height: var(--atlas-leader-height, 0px); background: #70242e; pointer-events: none; }
.ki-home .ki-atlas-marker[data-label-side="left"]::after { left: auto; right: 52px; }
.ki-home .ki-atlas-marker[data-label-side="left"] .ki-atlas-marker-label { border-left-color: rgba(166,72,76,.4); border-right-color: var(--ki-red); }
.ki-home .ki-atlas-marker:is(:hover, :focus-visible) .ki-atlas-marker-dot { border-color: #a31320; background: rgba(163,19,32,.18); }
.ki-home .ki-atlas-marker:is(:hover, :focus-visible) .ki-atlas-marker-label { border-color: #a31320; color: var(--ki-ink); }
.ki-home .ki-atlas-marker[aria-current="true"] .ki-atlas-marker-label { background: #570e18; border-color: var(--ki-red); color: var(--ki-ink); }
/* A small patch of sky; its familiar outline resolves only on discovery. */
.ki-home .ki-constellation { color: #c2b9ae!important; transition: opacity 700ms ease; }
.ki-home .ki-constellation-field { opacity: .38; }
.ki-home .ki-constellation-lines { fill: none; stroke: #b9c4d4; stroke-width: .55; stroke-linecap: round; opacity: .065; transition: opacity 850ms ease; }
.ki-home .ki-constellation-halos { opacity: .72; transition: opacity 1000ms ease; }
.ki-home .ki-constellation-stars { filter: none; }
.ki-home .ki-constellation > span { transition: opacity 650ms ease; }
.ki-home .ki-constellation:is(:hover, :focus-visible) .ki-constellation-lines { opacity: .36; }
.ki-home .ki-constellation:is(:hover, :focus-visible) .ki-constellation-halos { opacity: 1; }
.ki-home .ki-constellation:focus-visible { outline: 1px solid rgba(194,185,174,.65); outline-offset: 7px; border-radius: 3px; }
.ki-home .ki-lower { background: linear-gradient(180deg, rgba(10,8,10,.95), #080709 380px); border-bottom: 0; }
.ki-home .ki-section-header { margin-bottom: 34px; }
.ki-home .ki-section-header h2 { font-size: clamp(34px, 3.7vw, 58px); letter-spacing:-.015em; }
.ki-home .ki-section-header > p { font-size: 13px; }
.ki-home .ki-project-index { padding: 88px 0 64px; }
.ki-home .ki-project-list { gap: 0 48px; }
.ki-home .ki-project-link { position: relative; min-height: 166px; padding: 26px 0; }
.ki-home .ki-project-link::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ki-red);
  transform: scaleX(0); transform-origin: left; transition: transform 330ms var(--ki-ease);
}
.ki-home .ki-project-number { color: #a08e87; font-size: 11px; }
.ki-home .ki-project-name { color: var(--ki-ink); transition: transform 250ms var(--ki-ease); }
.ki-home .ki-project-description { font-size: 13px; color: #a9a19b; }
.ki-home .ki-project-category { color: #9e958e; }
.ki-home .ki-project-link:is(:hover, :focus-visible) .ki-project-name,
.ki-home .ki-project-link[aria-current="true"] .ki-project-name { color: var(--ki-ink); transform: translateX(5px); }
.ki-home .ki-project-link:is(:hover, :focus-visible)::before { transform: scaleX(1); }
.ki-home .ki-project-arrow { width: 42px; height: 42px; transition: color 220ms, border-color 220ms, background 220ms, transform 220ms var(--ki-ease); }
.ki-home .ki-project-link:is(:hover, :focus-visible) .ki-project-arrow { color: var(--ki-ink); background: var(--ki-red); border-color: var(--ki-red); transform: rotate(-35deg); }
.ki-home .ki-project-link:active .ki-project-arrow { transform: rotate(-35deg) scale(.93); }
.ki-home .ki-index-foot { justify-content: flex-end; padding-top: 16px; }
.ki-home .ki-company { padding: 72px 0 64px; }
.ki-home .ki-company-grid { align-items: start; }
.ki-home .ki-company-grid > h2 > span { color: #a9a19a; }
.ki-home .ki-company-grid p { max-width: 57ch; line-height: 1.85; }
.ki-home .ki-principles { margin-top: 48px; gap: 32px; }
.ki-home .ki-principles > div > span { color: #ad9f96; }
.ki-home .ki-principles > div { border-color: #492228; }
/* Observatory instruments live in the shared footer's tools slot. */
.ki-home .ki-footer { background: linear-gradient(180deg, rgba(8,7,9,0), var(--ki-bg) 96px); }
.ki-home .ki-footer:has(.ki-texture-credits[open]) { z-index: 7; }
.ki-home .ki-texture-credits { position: relative; color: var(--ki-muted); font-size: 11px; }
.ki-home .ki-texture-credits > summary { display: flex; align-items: center; min-height: 44px; list-style: none; cursor:var(--ki-cursor-link,pointer); -webkit-tap-highlight-color: transparent; }
.ki-home .ki-texture-credits > summary::-webkit-details-marker { display: none; }
.ki-home .ki-texture-credits > summary:focus-visible { outline: 2px solid var(--ki-ink); outline-offset: 5px; }
.ki-home .ki-texture-credits > summary:is(:hover, :focus-visible) { color: var(--ki-ink); text-decoration: underline; text-decoration-color: var(--ki-red); text-underline-offset: 6px; }
.ki-home .ki-texture-credits-tip {
  position: absolute; right: 0; bottom: 100%; z-index: 10;
  width: min(19rem, calc(100vw - 2 * var(--ki-gutter))); padding: 12px 14px;
  border: 1px solid var(--ki-line); background: var(--ki-bg); color: var(--ki-copy);
  box-shadow: 0 8px 24px #0006; font-size: 11px; line-height: 1.7;
}
.ki-home .ki-texture-credits-tip a { color: var(--ki-ink); text-decoration: underline; text-underline-offset: 3px; }
.ki-home .ki-instruments { margin: 0; min-height: 44px; gap: 12px; }
.ki-home .ki-instrument { width: 44px; height: 44px; color: #a18b80; }
.ki-home .ki-instrument:is(:hover, :focus-visible) { color: var(--ki-ink); }
.ki-home .ki-instrument svg circle:last-child { fill: var(--ki-red); }
.ki-home .orbital-toggle { min-height: 44px; color: #a59a92; }
.ki-home .orbital-toggle:hover { color: var(--ki-ink); }
.ki-home .orbital-toggle__switch { border-color: #6c333a; background: #210c11; }
.ki-home .orbital-toggle[aria-pressed="true"] .orbital-toggle__switch { border-color: var(--ki-red); background: var(--ki-red); }
.ki-home .orbital-toggle__switch::after,
.ki-home .orbital-toggle[aria-pressed="true"] .orbital-toggle__switch::after { background: var(--ki-ink); box-shadow: none; }

/* Selected projects keep the globe in view, then open into a full-width chapter. */
.ki-home .ki-project-view { padding-top: 30px; padding-bottom: 64px; }
.ki-home .ki-project-panel { width: 100%; max-width: none; pointer-events: none; }
.ki-home .ki-back { min-height: 48px; margin-bottom: 36px; color: #bcb0a8; pointer-events: auto; transition: color 180ms, transform 180ms var(--ki-ease); }
.ki-home .ki-back > span { color: var(--ki-ink); transition: transform 180ms var(--ki-ease); }
.ki-home .ki-back:hover { color: var(--ki-ink); }
.ki-home .ki-back:hover > span { transform: translateX(-4px); }
.ki-home .ki-back:active { transform: translateX(-2px); }
/* Leave the complete viewport available to the globe before the chapter starts.
   Southern project markers sit low in the fixed-tilt projection. */
.ki-home .ki-project-intro { width: 47%; max-width: 680px; min-height: max(620px, calc(100svh - 226px)); padding-bottom: 50px; pointer-events: auto; }
.ki-home .ki-project-heading .ki-eyebrow { color: #b4a196; font:500 10px/1.6 var(--ki-font-text); letter-spacing: .14em; }
.ki-home .ki-project-heading .ki-eyebrow::before { content: ""; display: inline-block; width: 23px; height: 2px; margin: 0 12px 3px 0; background: var(--ki-red); }
.ki-home .ki-project-heading h2 { font-size: clamp(46px, 5.6vw, 86px); margin: 21px 0 24px; color: var(--ki-ink); font-weight:500; letter-spacing:-.015em; line-height: 1.05; overflow-wrap: normal; }
.ki-home .ki-project-heading h2.ki-project-title--long { font-size: clamp(39px, 4.7vw, 73px); }
.ki-home .ki-project-deck { margin-bottom: 27px; font-size: clamp(25px, 2.35vw, 36px); letter-spacing: -.045em; line-height: 1.27; color: #d6cec6; }
.ki-home .ki-project-body { max-width: 495px; margin-bottom: 30px; font-size: 14px; line-height: 1.9; color: #b5ada6; }
.ki-home .ki-project-actions { gap: 18px 24px; }
.ki-home .ki-project-actions .ki-text-link { font-size: 11px; line-height: 1.5; }
.ki-home .ki-project-status { margin: 29px 0 8px; color: #c6b9af; font-size: 9px; letter-spacing: .13em; }
.ki-home .ki-project-status > span { width: 5px; height: 5px; border-radius: 50%; background: var(--ki-red); box-shadow: 0 0 0 3px rgba(163,19,32,.15); }
.ki-home .ki-project-deployment { margin: 0; font-size: 11px; line-height: 1.7; color: #928780; }
/* The chapter's picture is the Ecosystem's own artwork for the system
   (scripts/sync-observatory-projects.mjs), framed to sit beside the globe. */
.ki-home .ki-project-visual { max-width: 540px; margin: -6px 0 28px; pointer-events: auto; }
.ki-home .ki-project-visual .eco-visual { margin: 0; border: 1px solid rgba(255,255,255,.1); background: radial-gradient(110% 95% at 50% 8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%), rgba(10,8,11,.74); box-shadow: 0 24px 60px rgba(0,0,0,.42); backdrop-filter: blur(8px); }
.ki-home .ki-project-visual .eco-artwork { aspect-ratio: 2.15; }
.ki-home .ki-project-visual .eco-visual figcaption { padding: 0 18px 12px; min-height: 0; }
/* Stays on screen at the bottom of the viewport until the workbench arrives,
   so the chapter always says there is more below. */
.ki-home .ki-project-jump { position: sticky; bottom: 22px; z-index: 3; display: flex; width: max-content; align-items: center; gap: 18px; min-height: 56px; margin-top: 28px; padding: 8px 9px 8px 20px; border: 1px solid rgba(230,187,198,.26); border-radius: 999px; background: rgba(12,9,11,.82); color: var(--ki-ink); font:600 13px/1.35 var(--ki-font-text); text-align: left; box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 8px 46px 26px rgba(8,7,9,.72); backdrop-filter: blur(12px); cursor:var(--ki-cursor-link,pointer); transition: border-color 200ms, transform 200ms var(--ki-ease); }
.ki-home .ki-project-jump:hover { border-color: rgba(230,187,198,.5); transform: translateY(-2px); }
.ki-home .ki-project-jump:focus-visible { outline: 2px solid var(--ki-ink); outline-offset: 4px; }
.ki-home .ki-project-jump-copy { display: grid; gap: 2px; }
.ki-home .ki-project-jump-copy small { color: #b9a9a0; font:500 9px/1.5 var(--ki-font-text); letter-spacing: .16em; text-transform: uppercase; }
.ki-home .ki-project-jump-arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ki-red); color: #fff; font-size: 16px; box-shadow: 0 0 18px rgba(198,39,44,.45); animation: ki-jump-nudge 1.9s var(--ki-ease) infinite; }
@keyframes ki-jump-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .ki-home .ki-project-jump-arrow { animation: none; } }
.ki-home .ki-focus-caption { left: 66%; right: var(--ki-gutter); top: 540px; bottom: auto; }
.ki-home .ki-focus-caption > .ki-eyebrow { color: #ae9b8e; }
.ki-home .ki-focus-caption > span:nth-child(2) { color: #ded1c7; }
.ki-home .ki-focus-line { background: linear-gradient(90deg, var(--ki-red), transparent); }
.ki-home .ki-product-workbench {
  position: relative; margin: 0 calc(var(--ki-gutter) * -1); padding: 76px var(--ki-gutter) 40px;
  border-top: 1px solid var(--ki-line); background: linear-gradient(160deg, #120a0d, #09080a 400px);
  pointer-events: auto; scroll-margin-top: 30px;
}
.ki-home .ki-product-workbench > * { max-width: 1280px; margin-inline: auto; }
.ki-home .ki-workbench-heading { display: grid; grid-template-columns: 1.45fr .8fr; align-items: end; gap: clamp(35px, 8vw, 120px); margin-bottom: 36px; }
.ki-home .ki-workbench-heading .ki-eyebrow { margin: 0 0 17px; color: #a48e82; font-size: 9px; letter-spacing: .15em; }
.ki-home .ki-workbench-heading h3 { max-width: 740px; margin: 0; font-size: clamp(30px, 3.5vw, 48px); font-weight:500; letter-spacing:-.015em; line-height: 1.2; }
.ki-home .ki-workbench-heading > p { max-width: 335px; margin: 0 0 4px; color: #a99c93; font-size: 13px; line-height: 1.9; }
.ki-home .ki-capabilities { display: flex; align-items: stretch; gap: 8px; margin-bottom: 20px; padding: 5px 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #69212b transparent; }
.ki-home .ki-capabilities button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex: 0 0 auto; min-height: 48px; padding: 12px 20px;
  border: 1px solid rgba(205,183,169,.2); border-radius: 2px; color: #b9ada4; background: rgba(8,7,9,.4);
  font:500 12px/1.5 var(--ki-font-text); cursor:var(--ki-cursor-link,pointer);
  transition: color 180ms, background 180ms, border-color 180ms, transform 180ms var(--ki-ease), box-shadow 180ms;
}
.ki-home .ki-capabilities button > span { color: #9f8b7e; font:400 9px/1.5 var(--ki-font-text); letter-spacing: .03em; }
.ki-home .ki-capabilities button:hover { color: var(--ki-ink); border-color: #82303a; background: #270e15; }
.ki-home .ki-capabilities button[aria-pressed="true"] { color: var(--ki-ink); border-color: var(--ki-red); background: var(--ki-red); box-shadow: inset 0 1px rgba(255,255,255,.1); }
.ki-home .ki-capabilities button[aria-pressed="true"] > span { color: #e8d9cd; }
.ki-home .ki-capabilities button:active { transform: scale(.975); background: #800f1b; }
.ki-home .ki-product-media { margin-top: 0; margin-bottom: 0; border: 1px solid rgba(201,172,157,.2); border-radius: 3px; overflow: hidden; background: #08080a; box-shadow: 0 28px 90px rgba(0,0,0,.2); }
.ki-home .ki-product-media:not([hidden]) { animation: ki-media-enter 360ms var(--ki-ease) both; }
.ki-home .ki-media-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 53px; padding: 0 22px; border-bottom: 1px solid rgba(210,182,168,.12); color: #b5a79d; background: #100d10; font:500 10px/1.5 var(--ki-font-text); letter-spacing: .06em; }
.ki-home .ki-media-toolbar > span:first-child { display: inline-flex; align-items: center; gap: 12px; }
.ki-home .ki-media-indicator { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--ki-red); }
.ki-home .ki-media-toolbar > a { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; flex-shrink: 0; color: #ded2c7; font:500 10px/1.5 var(--ki-font-text); letter-spacing: 0; }
.ki-home .ki-media-toolbar > a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ki-home .ki-media-toolbar > a > span { color: #b3a192; font-size: 16px; }
.ki-home .ki-media-window { position: relative; overflow: hidden; background: #050506; }
.ki-home .ki-media-window > img { display: block; width: 100%; max-width: 100%; height: auto; }
.ki-home .ki-media-window--predictions { aspect-ratio: 24 / 7; }
.ki-home .ki-media-window--predictions > img { position: absolute; left: 0; top: 0; width: 150%; max-width: none; transform: translate(-33.333333%, -66%); }
.ki-home .ki-product-media figcaption { display: grid; grid-template-columns: 33px 1fr; gap: 20px; padding: 29px 32px 30px; border-top: 1px solid rgba(210,182,168,.13); background: #100d10; }
.ki-home .ki-media-number { padding-top: 4px; color: #a59182; font:400 11px/1.5 var(--ki-font-text); }
.ki-home .ki-product-media h4 { margin: 0 0 8px; color: #eee4da; font:500 22px/1.4 var(--ki-font-text); letter-spacing: -.03em; }
.ki-home .ki-product-media figcaption p { max-width: 755px; margin: 0; color: #b2a69c; font-size: 13px; line-height: 1.9; }
.ki-home .ki-product-media figcaption small { display: block; margin-top: 12px; color: #93847a; font-size: 10px; line-height: 1.65; }
.ki-home .ki-project-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 42px; margin-bottom: 32px; border-top: 1px solid var(--ki-line); }
.ki-home .ki-project-features > div { display: block; padding: 26px 0 0; border: 0; }
.ki-home .ki-project-features dt { display: flex; align-items: baseline; gap: 14px; color: #d9cdc2; font-size: 15px; font-weight:500; line-height: 1.65; }
.ki-home .ki-project-features dt > span { color: #9f897b; font:400 9px/1.6 var(--ki-font-text); }
.ki-home .ki-project-features dd { margin: 12px 0 0 27px; color: #a99c92; font-size: 12px; line-height: 1.9; }
.ki-home .ki-workbench-foot { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-top: 23px; border-top: 1px solid var(--ki-line); }
.ki-home .ki-workbench-foot > span { color: #a28e80; font:400 9px/1.7 var(--ki-font-text); letter-spacing: .08em; text-transform: uppercase; }
.ki-home .ki-workbench-foot .ki-text-link { flex-shrink: 0; font-size: 12px; }
/* Source-backed system overviews for portfolio entries without a product capture. */
.ki-home .ki-system-diagram { position: relative; isolation: isolate; overflow: hidden; padding: 50px 40px 48px; min-height: 335px; background: radial-gradient(ellipse at 50% 0, #3a1019 0, #170c12 42%, #0b090c 80%); }
.ki-home .ki-system-grid { position: absolute; inset: 0; z-index: -1; opacity: .4; background-image: linear-gradient(rgba(150,72,82,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(150,72,82,.13) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(#000, transparent); }
.ki-home .ki-system-signature { position: relative; margin: 0 0 42px; font:500 clamp(20px, 3vw, 38px)/1.25 var(--ki-font-text); letter-spacing: -.035em; color: #dfcdc2; }
.ki-home .ki-system-signature::after { content: ""; display: block; width: 38px; height: 2px; margin-top: 15px; background: var(--ki-red); box-shadow: 0 0 18px #8f1727; }
.ki-home .ki-system-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ki-home .ki-system-stages > li { position: relative; min-width: 0; padding: 22px 18px 24px; border: 1px solid #56303a; background: linear-gradient(145deg, rgba(53,24,33,.8), rgba(12,9,13,.92)); box-shadow: inset 0 1px rgba(232,205,190,.06); }
.ki-home .ki-system-stages > li:not(:last-child)::after { content: ""; position: absolute; top: 47px; right: -21px; width: 20px; height: 1px; background: #8e3845; }
.ki-home .ki-system-step { display: block; margin-bottom: 21px; color: #c88d91; font:400 10px/1.4 var(--ki-font-text); letter-spacing: .12em; }
.ki-home .ki-system-stages h4 { margin: 0 0 10px; color: #f0e6dc; font:500 clamp(16px, 1.5vw, 21px)/1.35 var(--ki-font-text); letter-spacing: -.035em; }
.ki-home .ki-system-stages p { margin: 0; color: #b9a69c; font-size: 12px; line-height: 1.75; }
.ki-home .ki-system-diagram[data-system="mabos"] { background: radial-gradient(ellipse at 25% 20%, #4a101d, #180c13 50%, #09080b); }
.ki-home .ki-system-diagram[data-system="hardgap"] { background: linear-gradient(115deg, #201c21, #0c0b0e 35%, #2b181e 75%, #0a090b); }
.ki-home .ki-system-diagram[data-system="legacy-of-the-horizon"] { background: radial-gradient(ellipse at 75% 20%, #361326, #130e17 50%, #08080c); }
@media (max-width: 980px) {
  .ki-home .ki-system-diagram { padding: 32px 24px; }
  .ki-home .ki-system-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ki-home .ki-system-stages > li:nth-child(2)::after { display: none; }
  .ki-home .ki-system-stages > li:not(:last-child)::after { right: -17px; width: 16px; }
}
@media (max-width: 480px) {
  .ki-home .ki-system-diagram { padding: 27px 17px 22px; }
  .ki-home .ki-system-signature { margin-bottom: 28px; font-size: 24px; overflow-wrap: anywhere; }
  .ki-home .ki-system-stages { grid-template-columns: 1fr; gap: 13px; }
  .ki-home .ki-system-stages > li { display: grid; grid-template-columns: 24px 1fr; gap: 0 12px; padding: 17px 16px; }
  .ki-home .ki-system-step { grid-row: 1 / 3; margin: 3px 0 0; }
  .ki-home .ki-system-stages h4 { font-size: 18px; margin: 0 0 5px; }
  .ki-home .ki-system-stages p { grid-column: 2; font-size: 11px; }
  .ki-home .ki-system-stages > li:not(:last-child)::after { display: block; top: auto; bottom: -14px; left: 28px; right: auto; width: 1px; height: 13px; }
}
.ki-home .ki-project-pagination { max-width: 1280px; margin: 0 auto; padding-top: 18px; border-color: var(--ki-line); pointer-events: auto; }
.ki-home .ki-project-pagination button { min-height: 52px; color: #c8b9ae; font-size: 12px; transition: color 180ms, transform 180ms var(--ki-ease); }
.ki-home .ki-project-pagination button:hover { color: var(--ki-ink); }
.ki-home .ki-project-pagination button:active { transform: translateY(2px); }
.ki-home .ki-project-pagination > span { color: #a18a7b; }
.ki-home .ki-mobile-globe-stage { display: none; }

/* QuoteChecker's example is authored HTML, explicitly separate from product captures. */
.ki-home .ki-quote-demo { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; min-height: 540px; background: radial-gradient(ellipse at 82% 30%, #350d16, #10090d 65%); }
.ki-home .ki-quote-paper { margin: 40px 15px 40px 40px; padding: 37px; background: #eee8de; color: #27211e; box-shadow: 0 22px 55px rgba(0,0,0,.4); transform: rotate(-.7deg); transition: transform 380ms var(--ki-ease); }
.ki-home .ki-quote-demo:hover .ki-quote-paper { transform: rotate(0); }
.ki-home .ki-quote-paper-meta { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 32px; color: #766960; font:500 9px/1.6 var(--ki-font-text); text-transform: uppercase; letter-spacing: .09em; }
.ki-home .ki-quote-paper h4 { max-width: 350px; margin: 0 0 9px; color: #28201d; font-size: 25px; line-height: 1.3; letter-spacing: -.04em; }
.ki-home .ki-quote-paper-intro { margin: 0 0 29px; color: #756a61; font-size: 11px; }
.ki-home .ki-quote-lines { margin: 0; border-top: 1px solid #bcb0a4; }
.ki-home .ki-quote-lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 17px 0; border-bottom: 1px solid #d0c4b7; }
.ki-home .ki-quote-lines dt { color: #493c34; font-size: 12px; }
.ki-home .ki-quote-lines dd { margin: 0; font-size: 14px; font-weight:600; font-variant-numeric: tabular-nums; }
.ki-home .ki-quote-lines .ki-quote-line--flagged { position: relative; }
.ki-home .ki-quote-line--flagged::before { content: ""; position: absolute; top: 11px; bottom: 11px; left: -15px; width: 3px; background: var(--ki-red); }
.ki-home .ki-quote-reference { display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; margin-left: 6px; border: 1px solid #b18d83; border-radius: 50%; color: #81202a; font:500 8px/1 var(--ki-font-text); vertical-align: middle; }
.ki-home .ki-quote-lines .ki-quote-total { margin-top: 2px; border: 0; }
.ki-home .ki-quote-total dd { color: #27201c; font-size: 25px; letter-spacing: -.04em; }
.ki-home .ki-quote-paper-foot { margin: 20px 0 0; color: #847266; font-size: 11px; line-height: 1.7; }
.ki-home .ki-quote-annotation { padding: 45px clamp(26px, 4.8vw, 75px); }
.ki-home .ki-quote-annotation .ki-eyebrow { margin: 0 0 23px; color: #be9f8e; font-size: 9px; }
.ki-home .ki-quote-annotation h4 { margin: 0 0 25px; color: #f0e5db; font-size: clamp(30px, 3vw, 43px); font-weight:500; letter-spacing: -.04em; line-height: 1.2; }
.ki-home .ki-quote-annotation > p { color: #c2aea0; font-size: 13px; line-height: 2; }
.ki-home .ki-quote-annotation-line { display: block; width: 53px; height: 2px; margin: 28px 0 23px; background: var(--ki-red); }
.ki-home .ki-quote-annotation .ki-quote-annotation-foot { max-width: 260px; margin: 0; color: #a88f7d; font-size: 11px; line-height: 1.8; }
.ki-home .ki-quote-questions { margin: 31px 0 8px; padding: 0; list-style: none; }
.ki-home .ki-quote-questions > li { display: grid; grid-template-columns: 20px 1fr; gap: 13px; padding: 19px 0; border-top: 1px solid #c6b8aa; }
.ki-home .ki-quote-questions > li > span { color: #8c2830; font:500 9px/1.8 var(--ki-font-text); }
.ki-home .ki-quote-questions p { margin: 0; color: #59483d; font-size: 12px; line-height: 1.8; }

/* Camera and material transitions expose their progress to the surrounding chapter. */
.ki-home[data-atlas-phase="entering"] .ki-project-intro,
.ki-home[data-atlas-phase="switching"] .ki-project-intro {
  opacity: clamp(.05, var(--atlas-progress), 1);
  transform: translateY(calc((1 - var(--atlas-progress)) * 22px));
}
.ki-home[data-atlas-phase="returning"] .ki-hero-copy {
  opacity: clamp(.05, var(--atlas-progress), 1);
  transform: translateY(calc((1 - var(--atlas-progress)) * 14px));
}
@keyframes ki-media-enter { from { opacity: .15; transform: translateY(9px); } to { opacity: 1; transform: none; } }

@media (min-width: 1700px) {
  .ki-home .ki-hero h1 { font-size: 110px; }
  .ki-home .ki-project-intro { min-height: max(665px, calc(100svh - 226px)); }

}
@media (max-width: 1100px) {
  .ki-home .ki-hero { min-height: 740px; padding-top: 77px; }
  .ki-home .ki-hero-copy { width: 52%; }

  .ki-home .ki-project-intro { width: 49%; min-height: max(665px, calc(100svh - 226px)); }
  .ki-home .ki-project-body { font-size: 13px; }
  .ki-home .ki-project-actions { gap: 8px 18px; }
  .ki-home .ki-workbench-heading { gap: 40px; grid-template-columns: 1.5fr 1fr; }
  .ki-home .ki-project-features { gap: 25px; }
  .ki-home .ki-project-features dt { font-size: 13px; }
  .ki-home .ki-project-features dd { margin-left: 0; }
  .ki-home .ki-quote-paper { margin-left: 28px; padding: 30px; }
}
@media (max-width: 767px), (pointer: coarse) and (max-width: 1024px) {
  body.ki-home { --ki-gutter: 24px; }
  .ki-home .ki-scene,
  .ki-home.atlas-is-ready .ki-scene { background: #080709; }
  .ki-home .ki-scene-shade { display: none; }
  .ki-home[data-atlas-mobile="true"] #earth { display: block!important; visibility: visible; touch-action: pan-y; opacity: 1; filter: none; clip-path: inset(max(0px, var(--atlas-stage-top, 0px)) 0 max(0px, calc(100% - var(--atlas-stage-top, 0px) - var(--atlas-stage-height, 0px)))); }
  .ki-home[data-atlas-mobile="true"] #earth.canvas-disabled { display: none!important; }
  .ki-home[data-atlas-mobile="true"].atlas-is-ready .ki-atlas-markers { display: block!important; clip-path: inset(max(0px, var(--atlas-stage-top, 0px)) 0 max(0px, calc(100% - var(--atlas-stage-top, 0px) - var(--atlas-stage-height, 0px)))); }
  .ki-home:not(.atlas-is-ready) .ki-atlas-markers { display: none!important; }
  .ki-home .ki-atlas-marker-label { font-size: 8px; padding: 4px 6px; letter-spacing: .04em; }
  .ki-home .ki-atlas-marker-dot { width: 44px; height: 44px; }
  .ki-home .ki-hero { display: flex; flex-direction: column; min-height: 0; padding: 38px var(--ki-gutter) 0; }
  .ki-home .ki-hero-copy { display: contents; pointer-events: none; }
  .ki-home .ki-hero-copy > * { pointer-events: auto; }
  .ki-home .ki-hero-copy > .ki-eyebrow { order: 0; max-width: 240px; margin: 0; font-size: 8px; letter-spacing: .11em; line-height: 1.8; }
  .ki-home .ki-hero h1 { order: 1; margin: 21px 0 0; font-size: clamp(34px, 11vw, 83px); line-height: 1.045; letter-spacing:-.015em; }
  .ki-home .ki-mobile-globe-stage { display: block; width: calc(100% + var(--ki-gutter) * 2); height: clamp(290px, 88vw, 390px); margin: 0 calc(var(--ki-gutter) * -1); order: 2; pointer-events: none; }
  .ki-home:has(#earth.canvas-disabled) .ki-mobile-globe-stage,
  html:not(.is-enhanced) .ki-home .ki-mobile-globe-stage { height: 22px; }

  .ki-home .ki-hero-description { order: 4; max-width: 530px; margin: 23px 0 0; font-size: 13px; line-height: 1.9; }
  .ki-home .ki-hero-actions { order: 5; margin: 25px 0 39px; gap: 14px 22px; }
  .ki-home .ki-hero-actions .ki-text-link { font-size: 11px; }
  .ki-home .ki-button { min-height: 50px; padding: 13px 18px; gap: 22px; font-size: 11px; }
  .ki-home .ki-hero-baseline { position: static; order: 6; height: 69px; min-height: 69px; font-size: 7px; gap: 14px; }
  .ki-home .ki-hero-baseline a { gap: 10px; }
  .ki-home .ki-constellation { top: 22px; right: 10px; }
  .ki-home .ki-lower { background: linear-gradient(180deg, #0d090c, #080709 380px); }
  .ki-home .ki-project-index { padding: 54px 0 44px; }
  .ki-home .ki-section-header { margin-bottom: 26px; }
  .ki-home .ki-section-header h2 { max-width: 330px; font-size: 36px; }
  .ki-home .ki-project-list { grid-template-columns: 1fr; }
  .ki-home .ki-project-link { min-height: 140px; gap: 18px; padding: 23px 0; }
  .ki-home .ki-project-name { font-size: 31px; }
  .ki-home .ki-project-description { font-size: 12px; }
  .ki-home .ki-project-arrow { width: 36px; height: 36px; }
  .ki-home .ki-index-foot { align-items: flex-start; }
  .ki-home .ki-company { padding: 48px 0; }
  .ki-home .ki-company-grid > h2 { font-size: 39px; }
  .ki-home .ki-principles { margin-top: 32px; gap: 20px; }
  .ki-home .ki-texture-credits-tip { right: auto; left: 0; }
  .ki-home .orbital-toggle { display: inline-flex; min-height: 44px; font-size: 8px; }
  .ki-home .ki-instruments { flex-basis: auto; justify-content: flex-end; gap: 12px; }
  .ki-home .ki-project-view { padding: 20px var(--ki-gutter) 38px; }
  .ki-home .ki-back { margin-bottom: 28px; font-size: 10px!important; }
  .ki-home [data-atlas-detail] { display: flex; flex-direction: column; }
  .ki-home .ki-project-intro { display: contents; }
  .ki-home .ki-project-heading { order: 0; pointer-events: auto; }
  .ki-home .ki-project-heading .ki-eyebrow { font-size: 8px; letter-spacing: .13em; }
  .ki-home .ki-project-heading h2 { margin: 20px 0 21px; font-size: clamp(43px, 11.2vw, 69px); line-height: 1.08; }
  .ki-home .ki-project-heading h2.ki-project-title--long { font-size: clamp(34px, 9.8vw, 60px); }
  .ki-home .ki-project-deck { max-width: 530px; margin-bottom: 0; font-size: clamp(24px, 6.4vw, 34px); line-height: 1.3; }
  .ki-home .ki-mobile-globe-stage--project { order: 1; height: clamp(280px, 78vw, 350px); }
  .ki-home .ki-project-visual { order: 2; width: 100%; margin: 6px 0 22px; }
  .ki-home .ki-project-body { order: 2; max-width: 540px; margin: 3px 0 25px; font-size: 13px; line-height: 1.9; pointer-events: auto; }
  .ki-home .ki-project-actions { order: 3; gap: 12px 23px; pointer-events: auto; }
  .ki-home .ki-project-status { order: 4; margin-top: 24px; font-size: 8px; }
  .ki-home .ki-project-deployment { order: 5; font-size: 10px; }
  .ki-home .ki-project-jump { order: 6; align-self: flex-start; margin-top: 18px; margin-bottom: 27px; pointer-events: auto; }
  .ki-home .ki-product-workbench { order: 7; padding-top: 45px; padding-bottom: 28px; scroll-margin-top: 15px; }
  .ki-home .ki-workbench-heading { display: block; margin-bottom: 23px; }
  .ki-home .ki-workbench-heading .ki-eyebrow { font-size: 8px; margin-bottom: 17px; }
  .ki-home .ki-workbench-heading h3 { max-width: 580px; font-size: 33px; line-height: 1.2; }
  .ki-home .ki-workbench-heading > p { max-width: 530px; margin-top: 20px; margin-bottom: 0; font-size: 12px; }
  .ki-home .ki-capabilities { gap: 7px; margin-bottom: 13px; padding: 5px 0; }
  .ki-home .ki-capabilities button { min-height: 47px; padding: 10px 13px; gap: 8px; font-size: 10px; }
  .ki-home .ki-capabilities button > span { font-size: 8px; }
  .ki-home .ki-media-toolbar { min-height: 48px; padding: 0 12px; gap: 12px; font-size: 8px; line-height: 1.6; letter-spacing: .02em; }
  .ki-home .ki-media-toolbar > span:first-child { gap: 7px; }
  .ki-home .ki-media-toolbar > a { gap: 8px; min-height: 45px; font-size: 9px; }
  .ki-home .ki-media-window--predictions { aspect-ratio: 24 / 8; }
  .ki-home .ki-product-media figcaption { grid-template-columns: 19px 1fr; gap: 12px; padding: 21px 17px 24px; }
  .ki-home .ki-media-number { font-size: 9px; padding-top: 5px; }
  .ki-home .ki-product-media h4 { font-size: 19px; line-height: 1.4; }
  .ki-home .ki-product-media figcaption p { font-size: 12px; line-height: 1.8; }
  .ki-home .ki-product-media figcaption small { font-size: 9px; line-height: 1.7; }
  .ki-home .ki-project-features { display: block; margin-top: 29px; margin-bottom: 25px; }
  .ki-home .ki-project-features > div { padding: 21px 0; border-bottom: 1px solid var(--ki-line); }
  .ki-home .ki-project-features dt { gap: 13px; font-size: 14px; }
  .ki-home .ki-project-features dt > span { font-size: 9px; }
  .ki-home .ki-project-features dd { max-width: 540px; margin: 9px 0 0 25px; font-size: 12px; line-height: 1.85; }
  .ki-home .ki-workbench-foot { align-items: flex-start; flex-direction: column; gap: 8px; border: 0; padding-top: 0; }
  .ki-home .ki-workbench-foot > span { font-size: 8px; }
  .ki-home .ki-workbench-foot .ki-text-link { font-size: 11px; }
  .ki-home .ki-project-pagination { padding-top: 14px; }
  .ki-home .ki-project-pagination button { font-size: 10px; gap: 10px; }
  .ki-home .ki-focus-caption { display: none; }
  .ki-home .ki-quote-demo { display: block; min-height: 0; padding-top: 19px; }
  .ki-home .ki-quote-paper { margin: 0 18px; padding: 26px 21px; transform: none; }
  .ki-home .ki-quote-paper-meta { gap: 10px; margin-bottom: 25px; font-size: 7px; }
  .ki-home .ki-quote-paper h4 { font-size: 22px; line-height: 1.3; }
  .ki-home .ki-quote-paper-intro { font-size: 10px; margin-bottom: 21px; }
  .ki-home .ki-quote-lines dt { font-size: 10px; }
  .ki-home .ki-quote-lines dd { font-size: 12px; }
  .ki-home .ki-quote-lines .ki-quote-total dd { font-size: 22px; }
  .ki-home .ki-quote-reference { width: 16px; height: 16px; margin-left: 4px; font-size: 7px; }
  .ki-home .ki-quote-paper-foot { margin-top: 13px; font-size: 10px; }
  .ki-home .ki-quote-annotation { padding: 32px 27px; }
  .ki-home .ki-quote-annotation .ki-eyebrow { margin-bottom: 15px; font-size: 8px; }
  .ki-home .ki-quote-annotation h4 { font-size: 28px; margin-bottom: 18px; }
  .ki-home .ki-quote-annotation > p { font-size: 12px; }
  .ki-home .ki-quote-annotation-line { margin: 20px 0 17px; }
  .ki-home .ki-quote-annotation .ki-quote-annotation-foot { font-size: 10px; max-width: 100%; }
  .ki-home .ki-quote-questions { margin-top: 23px; }
  .ki-home .ki-quote-questions p { font-size: 11px; line-height: 1.8; }
  .ki-home[data-atlas-phase="entering"] .ki-project-intro,
  .ki-home[data-atlas-phase="returning"] .ki-hero-copy { opacity: 1; transform: none; }
}
@media (max-width: 380px) {
  body.ki-home { --ki-gutter: 20px; }
  .ki-home .ki-hero { padding-top: 33px; }
  .ki-home .ki-hero h1 { font-size: clamp(34px, 11vw, 42px); }
  .ki-home .ki-hero-actions { gap: 12px; }
  .ki-home .ki-hero-actions .ki-text-link { font-size: 10px; }
  .ki-home .ki-project-name { font-size: 28px; }
  .ki-home .ki-project-heading h2.ki-project-title--long { font-size: 35px; }
  .ki-home .ki-capabilities button { padding-inline: 11px; font-size: 9px; }
  .ki-home .ki-capabilities button > span { font-size: 7px; }
  .ki-home .ki-workbench-heading h3 { font-size: 31px; }
  .ki-home .ki-media-toolbar { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .ki-home *, .ki-home *::before, .ki-home *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
  .ki-home[data-atlas-phase] .ki-project-intro,
  .ki-home[data-atlas-phase] .ki-hero-copy { opacity: 1; transform: none; }
  .ki-home .ki-quote-paper { transform: none; }
}

/* The Observatory's globe and its glow are fixed behind the page. The shared
   footer is see-through so silk backgrounds on other pages run beneath it;
   here it is solid, so the globe stops at the footer instead of showing
   through it. */
.ki-home .site-footer { background: var(--ki-bg, #08070a); border-top: 1px solid rgba(222, 210, 204, .08); }

/* Fit the released Display metrics without compressing its signature counters. */
@media(min-width:768px) and (pointer:fine){.ki-home .ki-hero-copy{width:54%}.ki-home .ki-hero h1{font-size:clamp(43px,5.7vw,92px)}}
.ki-home .ki-project-description,.ki-home .ki-hero-description{font-weight:500}

