/* KaiOrb — design system. Deep space is the primary expression; light mode is the day side. */

:root {
  --bg0: #05060c;
  --bg1: #0a0e1c;
  --ink: #e9edf9;
  --mut: #98a0ba;
  --line: rgba(146, 164, 220, .16);
  --gold: #f2c56d;
  --gold-deep: #e9b45a;
  --gold-soft: rgba(242, 197, 109, .32);
  --blue: #7aaefc;
  --violet: #a78bfa;
  --surface: rgba(18, 24, 44, .55);
  --tint-h: 230;
  --tint-a: .09;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg0: #f5f6fb;
    --bg1: #e9edf8;
    --ink: #181c2c;
    --mut: #5b6378;
    --line: rgba(40, 60, 120, .15);
    --gold: #a9791c;
    --gold-deep: #8a6212;
    --gold-soft: rgba(169, 121, 28, .18);
    --blue: #2d5fd0;
    --violet: #6d4fd0;
    --surface: rgba(255, 255, 255, .66);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font: 400 1rem/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 700px at 50% -8%, hsla(var(--tint-h), 55%, 45%, var(--tint-a)), transparent 62%),
    linear-gradient(var(--bg1), var(--bg0) 46rem);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Tiled starfield — deep space only */
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 22px 34px, rgba(233, 237, 249, .55), transparent 1.5px),
    radial-gradient(1px 1px at 130px 90px, rgba(233, 237, 249, .35), transparent 1.5px),
    radial-gradient(1.5px 1.5px at 80px 190px, rgba(122, 174, 252, .4), transparent 2px),
    radial-gradient(1px 1px at 200px 150px, rgba(233, 237, 249, .3), transparent 1.5px);
  background-size: 260px 260px, 260px 260px, 420px 420px, 340px 340px;
  opacity: .5;
}
@media (prefers-color-scheme: light) { .stars { display: none; } }

h1, h2, h3, .brand, .btn { font-family: "Space Grotesk", Inter, system-ui, sans-serif; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: .01em; line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--bg0); color: var(--ink); padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 8px;
}
.skip:focus { left: 8px; }

.container { max-width: 1080px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

/* ---------- Header ---------- */
.head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg0) 62%, transparent);
  border-bottom: 1px solid var(--line);
}
.head .container { display: flex; align-items: center; gap: 1.4rem; height: 62px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.06rem; color: var(--ink); letter-spacing: .04em; }
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.nav { display: flex; gap: 1.15rem; margin-left: auto; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--mut); font-size: .92rem; font-weight: 500; padding: .3rem .5rem; position: relative; transition: color .18s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px var(--gold-soft);
}
.nav .join { color: var(--gold); font-weight: 600; }

main { padding-top: 62px; }

/* ---------- Buttons ---------- */
.cta-row { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; border-radius: 999px; padding: .78rem 1.7rem;
  font-size: .95rem; font-weight: 600; letter-spacing: .02em; transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-core { color: #14100a; background: linear-gradient(135deg, #f6d38b, var(--gold-deep)); box-shadow: 0 0 26px var(--gold-soft); }
.btn-core:hover { box-shadow: 0 0 38px var(--gold-soft); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }

/* ---------- Hero ---------- */
.hero { min-height: calc(100vh - 62px); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 1.25rem 0 3.5rem; }
.k-hero-stage {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
  width: 100%;
  max-width: 1240px;
  margin: 0.5rem auto;
}
.k-hero-left-col { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; max-width: 540px; margin: 0 auto; text-align: left; }
.k-hero-right-col { width: 100%; max-width: 580px; margin: 0 auto; text-align: center; }
.cosmos-wrap { width: 100%; max-width: 480px; margin: 0 auto; }
@media (max-width: 990px) {
  .k-hero-stage { grid-template-columns: 1fr; gap: 2.5rem; }
  .k-hero-left-col, .hero-copy, .hero-copy h1, .hero-copy .tag, .hero-copy .whisper { text-align: center; margin-inline: auto; }
}
.cosmos { width: 100%; height: auto; display: block; }
.hero-copy { text-align: left; }
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: .12em; margin: 0; text-align: left; }
.hero-copy .tag { font-size: clamp(1rem, 2.2vw, 1.22rem); color: var(--ink); margin-top: .3rem; font-weight: 500; text-align: left; }
.hero-copy .whisper { color: var(--mut); font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; margin-top: .5rem; text-align: left; }
.hero-copy .cta-row { margin-top: 1.4rem; justify-content: flex-start; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Cosmos SVG ---------- */
.cosmos .orbit { fill: none; stroke: var(--line); stroke-width: 1.4; }
.cosmos .ray { stroke: var(--blue); stroke-width: 1.2; opacity: .13; }
.cosmos .ray-founding { stroke: var(--gold); opacity: .26; }
.cosmos .node { fill: var(--blue); }
.cosmos .node-founding { fill: var(--gold); }
.cosmos .cdot { fill: var(--mut); }
.cosmos .nlabel { fill: var(--ink); font: 500 27px "Space Grotesk", sans-serif; text-anchor: middle; }
.cosmos .nsub { fill: var(--mut); font: 400 22px Inter, sans-serif; text-anchor: middle; }
.cosmos .clabel { fill: var(--mut); font: 500 23px "Space Grotesk", sans-serif; text-anchor: middle; letter-spacing: .06em; }
.cosmos .seat-ring { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 7; }
.cosmos .seat-label { fill: var(--gold); font: 500 23px "Space Grotesk", sans-serif; text-anchor: middle; }

/* Keep the moving labels readable where they cross the fixed ones.
 *
 * The brand names ride rotating orbits while the sector words (SOFTWARE,
 * EVENTS, COMMERCE…) and BRAHMANDO stay put, so twice per revolution a brand
 * name lands exactly on top of one and both become unreadable — "Brahmexa ·
 * USA" over "SOFTWARE" is the one people notice. Nothing can be moved to fix
 * this, because the collision depends on the rotation angle.
 *
 * So the name that is on top wins cleanly: paint-order draws a background
 * halo behind the glyphs first, which cuts the label underneath instead of
 * letting the two interleave. Uses the page background, so it works in both
 * themes and costs no extra markup. */
.cosmos .nlabel,
.cosmos .seat-label {
  paint-order: stroke fill;
  stroke: var(--bg0);
  stroke-width: 7px;
  stroke-linejoin: round;
}
.cosmos a { cursor: pointer; }
.cosmos a:hover .node, .cosmos a:focus .node { filter: brightness(1.35); }
.cosmos a:hover .nlabel { fill: var(--gold); }

/* rotation machinery */
.rot { transform-box: view-box; transform-origin: 50% 50%; }
/* .keep counter-rotates about its own node center — each node sets transform-origin inline in viewBox units */
.keep { transform-box: view-box; }
.o1g { animation: spin 180s linear infinite; }
.o1g .keep { animation: spinr 180s linear infinite; }
.o3g { animation: spinr 260s linear infinite; }
.o3g .keep { animation: spin 260s linear infinite; }
.corepulse { transform-box: fill-box; transform-origin: center; animation: pulse 4.2s ease-in-out infinite; }
.seat-ring { animation: seatpulse 4.2s ease-in-out infinite; }

@keyframes spin { to { transform: rotate(1turn); } }
@keyframes spinr { to { transform: rotate(-1turn); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.045); opacity: 1; } }
@keyframes seatpulse { 0%, 100% { opacity: .38; } 50% { opacity: .85; } }
@keyframes awaken { from { opacity: 0; transform: scale(.955); } to { opacity: 1; transform: scale(1); } }

/* the awakening — staggered arrival */
.aw { opacity: 0; transform-box: view-box; transform-origin: 50% 50%; animation: awaken 1.3s cubic-bezier(.2, .7, .2, 1) forwards; }
.aw-copy { opacity: 0; animation: awaken 1.3s cubic-bezier(.2, .7, .2, 1) forwards; }
.d1 { animation-delay: .15s; }
.d2 { animation-delay: 1s; }
.d3 { animation-delay: 1.8s; }
.d4 { animation-delay: 2.6s; }
.d5 { animation-delay: 3.4s; }
.d6 { animation-delay: 4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aw, .aw-copy { opacity: 1; animation: none; }
  .o1g, .o1g .keep, .o3g, .o3g .keep, .corepulse, .seat-ring { animation: none; }
  .btn { transition: none; }
}

/* ---------- Bands ---------- */
.band { padding: clamp(3.6rem, 8vw, 6.4rem) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band header { max-width: 42rem; margin-bottom: 2.4rem; }
.band header.centered { margin-inline: auto; text-align: center; }
.kicker { color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; margin-bottom: .7rem; }
.lede { color: var(--mut); font-size: 1.08rem; margin-top: .7rem; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.step { border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; background: var(--surface); }
.step .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold-soft); margin-bottom: .9rem; }
.step p { color: var(--mut); font-size: .95rem; margin-top: .4rem; }

/* constellations - circular theme */
.constellations { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1.6rem; }
.constellation {
  display: inline-flex; align-items: center; gap: .8rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .65rem 1.25rem; color: var(--ink); font-weight: 500;
  font-size: .95rem; background: var(--surface);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  cursor: pointer;
}
.constellation:hover {
  transform: translateY(-2px); border-color: var(--gold); color: var(--gold);
  box-shadow: 0 0 18px var(--gold-soft); text-decoration: none;
}
.constellation svg { flex: none; filter: drop-shadow(0 0 6px rgba(242,197,109,0.3)); }

/* duo panels */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.panel { border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem; background: var(--surface); }
.panel p { color: var(--mut); margin: .5rem 0 1rem; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.tags li {
  list-style: none; border: 1px solid var(--line); border-radius: 999px;
  padding: .32rem .85rem; font-size: .85rem; color: var(--mut);
}

/* inner pages */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 0; text-align: center; }
.page-hero .lede { margin-inline: auto; max-width: 36rem; }
.chart { display: flex; justify-content: center; margin: 2.2rem 0; }
.chart svg { width: min(88vw, 560px); height: auto; }
.prose { max-width: 44rem; margin-inline: auto; }
.prose h3 { margin: 1.8rem 0 .35rem; }
.prose p { color: var(--mut); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 2.6rem 0 3rem; margin-top: 3rem; }
footer .cols { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: space-between; }
footer .fnav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
footer a { color: var(--mut); font-size: .9rem; }
footer a:hover { color: var(--ink); }
footer .foundry { color: var(--mut); font-size: .84rem; margin-top: 1.4rem; }
footer .always { font-family: "Space Grotesk", sans-serif; color: var(--ink); font-weight: 600; }


/* ---------- Orbital worlds ---------- */
/* Founding trinity: three planets seated on a shared arc. */
.trinity { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.trinity-arc { position: absolute; top: 0; left: 0; width: 100%; height: 216px; overflow: visible; pointer-events: none; }
.trinity-arc path { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 9; }
.trinity > .orb-world:nth-of-type(2) { padding-top: 0; }
.trinity > .orb-world:nth-of-type(1),
.trinity > .orb-world:nth-of-type(3) { padding-top: 58px; }

.orb-world {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem;
  background: transparent; border: 0; padding: 0; margin: 0; color: inherit; font: inherit;
}
button.orb-world, a.orb-world { cursor: pointer; }
a.orb-world:hover { text-decoration: none; }
.orb-name { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.05rem; }
.orb-world:hover .orb-name { color: var(--gold); }
.orb-field .orb-name { font-size: .98rem; }
.orb-body { display: block; }
.orb-desc { display: block; color: var(--mut); font-size: .93rem; margin-top: .3rem; max-width: 22rem; margin-inline: auto; }
.orb-link { display: inline-block; font-size: .87rem; margin-top: .5rem; }

/* the planet */
.orb { position: relative; flex: none; display: grid; place-items: center; border-radius: 50%; }
.orb-code { font: 600 .78rem/1 "Space Grotesk", sans-serif; letter-spacing: .12em; }
.orb-ring {
  position: absolute; inset: -13px; border-radius: 50%;
  border: 1px solid var(--gold-soft);
  transform: rotate(-24deg) scaleY(.4);
  animation: ringtumble 42s linear infinite;
}
.orb-sat {
  position: absolute; top: 2px; right: -2px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 8px var(--gold-soft);
}
@keyframes ringtumble { from { transform: rotate(-24deg) scaleY(.4); } to { transform: rotate(336deg) scaleY(.4); } }

/* founding = luminous gold; brands = quiet worlds */
.orb-founding {
  width: 112px; height: 112px; color: #1a1408;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .5), transparent 58%),
    linear-gradient(150deg, #f6d38b, #d9a13f);
  box-shadow: 0 0 34px var(--gold-soft);
}
.orb-brand {
  width: 86px; height: 86px; color: var(--mut);
  background: var(--surface); border: 1px solid var(--line);
}
.orb-brand .orb-ring { inset: -10px; border-color: color-mix(in srgb, var(--blue) 34%, transparent); }
.orb-brand .orb-sat { width: 5px; height: 5px; background: var(--blue); box-shadow: 0 0 8px color-mix(in srgb, var(--blue) 40%, transparent); }
.orb-world:hover .orb-brand { border-color: var(--gold); }

/* the open seat, as a world that isn't there yet */
.orb-seat {
  width: 86px; height: 86px; color: var(--gold);
  border: 2px dashed var(--gold); background: transparent;
  font: 400 1.7rem/1 "Space Grotesk", sans-serif;
  animation: seatpulse 4.2s ease-in-out infinite;
}

/* brand field: worlds scattered at one remove */
.orb-field { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2.4rem 1.2rem; }
.orb-field .orb-world { gap: .85rem; }
.orb-field .orb-body h3 { font-size: .98rem; }
.orb-field .orb-desc { font-size: .88rem; }

/* compact row — for contact/join listings */
.orb-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.6rem 1rem; }

@media (max-width: 899px) {
  .trinity { grid-template-columns: 1fr; gap: 1.8rem; position: relative; }
  .trinity::before {
    content: ''; position: absolute; left: 55px; top: 40px; bottom: 40px;
    border-left: 1px dashed var(--line);
  }
  .trinity-arc { display: none; }
  .trinity > .orb-world:nth-of-type(1),
  .trinity > .orb-world:nth-of-type(2),
  .trinity > .orb-world:nth-of-type(3) { padding-top: 0; }
  .trinity .orb-world { flex-direction: row; align-items: center; text-align: left; gap: 1.2rem; }
  .trinity .orb-desc { max-width: none; }
  .orb-field { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .orb-ring, .orb-seat { animation: none; }
}

/* ---------- Offerings ---------- */
.offerings { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.offering {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem 1.4rem 1.3rem;
  background: var(--surface); color: var(--ink); font: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.offering:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 0 28px var(--gold-soft); }
.offering::after {
  content: ''; position: absolute; right: -34px; top: -34px; width: 108px; height: 108px;
  border-radius: 50%; border: 1px solid var(--gold-soft);
  transform: rotate(-24deg) scaleY(.4); pointer-events: none;
}
.offering h3 { font-size: 1.06rem; }
.offering p { color: var(--mut); font-size: .93rem; margin-top: .35rem; }
.offering .open { display: inline-block; margin-top: .9rem; font-size: .84rem; font-weight: 600; color: var(--gold); letter-spacing: .04em; }

.offering .theme { display: block; font: 600 .72rem/1 "Space Grotesk", sans-serif; letter-spacing: .13em; text-transform: uppercase; color: var(--mut); margin-bottom: .6rem; }
.offering.soon { cursor: default; opacity: .58; }
.offering.soon:hover { border-color: var(--line); transform: none; box-shadow: none; }
.offering.soon::after { border-color: var(--line); }
.pill { display: inline-flex; align-items: center; gap: .42rem; font: 600 .7rem/1 "Space Grotesk", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin-top: .9rem; }
.pill.live { color: var(--gold); }
.pill.work { color: var(--blue); }
.pill.work::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 9px color-mix(in srgb, var(--blue) 45%, transparent);
}
.pill.off::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--mut); }
.pill.live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 9px var(--gold-soft);
  animation: pulse 3s ease-in-out infinite;
}
.notice {
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 1rem 1.3rem; color: var(--mut); font-size: .92rem;
  background: var(--surface); max-width: 46rem;
}
@media (prefers-reduced-motion: reduce) { .pill.live::before { animation: none; } }

/* ---------- Offering viewer (in-page frame) ---------- */
.viewer[hidden] { display: none; }
.viewer {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg0) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.viewer-chrome {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .7rem clamp(.8rem, 3vw, 1.4rem); border-bottom: 1px solid var(--line);
  background: var(--bg0);
}
.viewer-mark { display: flex; align-items: center; gap: .5rem; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
.viewer-title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .95rem; }
.viewer-title span { color: var(--mut); font-weight: 400; font-size: .82rem; margin-left: .5rem; }
.viewer-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.viewer-btn {
  border: 1px solid var(--line); background: transparent; color: var(--mut);
  border-radius: 999px; padding: .4rem .95rem; font: 500 .85rem/1.4 Inter, sans-serif; cursor: pointer;
}
.viewer-btn:hover { color: var(--ink); border-color: var(--gold); text-decoration: none; }
.viewer-stage { position: relative; flex: 1; min-height: 0; background: var(--bg1); }
.viewer-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.viewer-loading {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  color: var(--mut); font-size: .9rem; background: var(--bg1);
}
.viewer-loading[hidden] { display: none; }
.viewer-loading .pip { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px var(--gold-soft); animation: pulse 1.6s ease-in-out infinite; margin-inline: auto; }
body.viewer-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .offering { transition: none; }
  .viewer-loading .pip { animation: none; }
}

/* ---------- Q&A ---------- */
.qa { max-width: 46rem; margin-inline: auto; display: grid; gap: .7rem; }
.qa details {
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  padding: 0 1.3rem; transition: border-color .18s ease;
}
.qa details[open] { border-color: var(--gold-soft); }
.qa summary {
  cursor: pointer; list-style: none; padding: 1.05rem 0;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; gap: .85rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
  content: ''; flex: none; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--gold); transition: background .18s ease;
}
.qa details[open] summary::before { background: var(--gold); box-shadow: 0 0 10px var(--gold-soft); }
.qa summary:hover { color: var(--gold); }
.qa .a { color: var(--mut); font-size: .95rem; padding: 0 0 1.15rem 1.9rem; }
.qa .a a { font-weight: 500; }
.qa .a p + p { margin-top: .6rem; }
.qa-group { font: 600 .74rem/1 "Space Grotesk", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 2.2rem 0 .9rem; }
.qa-group:first-child { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { .qa details { transition: none; } }

/* ---------- Application forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 44rem; margin-inline: auto; text-align: left; }
.field label { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: .72rem .95rem; color: var(--ink); font: inherit;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; border: 1px solid var(--line); border-radius: 999px; padding: .38rem .95rem; font-size: .88rem; color: var(--mut); cursor: pointer; user-select: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { border-color: var(--gold); color: var(--ink); box-shadow: 0 0 12px var(--gold-soft); }
.after-note { border: 1px dashed var(--gold); border-radius: 12px; padding: 1rem 1.2rem; color: var(--mut); font-size: .92rem; }
.hint { color: var(--mut); font-size: .85rem; margin-top: .35rem; }
.fork { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.fork .panel h3 { font-size: 1.3rem; }
.fork .panel .btn { margin-top: .6rem; }

@media print {
  .stars, .head, .cta-row { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Founding trinity (React island) ---------- */
.k-trinity {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 54rem;
  margin-inline: auto;
  padding: 2rem 0 1rem 0;
}
.k-trinity-edges {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; color: var(--gold); overflow: visible;
}
.k-trinity-core { opacity: 0.95; }

.k-world {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 1rem; color: inherit; text-decoration: none; position: relative; z-index: 2;
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.k-world:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 0 28px var(--gold-soft);
}
.k-world-2 { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 24rem; }

.k-world-info { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.k-world-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.k-world:hover .k-world-name { color: var(--gold); }
.k-world-desc { color: var(--mut); font-size: 0.92rem; line-height: 1.45; max-width: 20rem; }
.k-world-link { font-size: 0.85rem; font-weight: 600; color: var(--blue); margin-top: 0.25rem; }

.k-orb { position: relative; display: grid; place-items: center; flex: none; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.2)); }
.k-orb svg { display: block; }
.k-orb-disc { fill: #f8fafc; }
.k-orb-edge { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.k-orb-ring {
  position: absolute; inset: -12px; border-radius: 50%;
  border: 1.5px solid var(--gold-soft);
  transform: rotate(-24deg) scaleY(.4);
  animation: ringtumble 42s linear infinite;
}
.k-world:hover .k-orb-edge { stroke: var(--gold); filter: drop-shadow(0 0 8px var(--gold-soft)); }
.k-orb-code {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  font: 700 .72rem/1 "Space Grotesk", sans-serif; letter-spacing: .14em;
  color: var(--gold); background: #0b1222;
  border: 1px solid var(--gold); border-radius: 999px; padding: .25rem .65rem;
  box-shadow: 0 0 10px var(--gold-soft);
}

@media (max-width: 720px) {
  .k-trinity { grid-template-columns: 1fr; gap: 2rem; }
  .k-world-2 { grid-column: auto; }
  .k-trinity-edges { display: none; }
}
@media (prefers-reduced-motion: reduce) { .k-orb-ring { animation: none; } }

/* ---------- Small Business Evolution Stage ---------- */
.k-business-evolution-stage {
  max-width: 860px;
  margin: 1rem auto 2rem auto;
  text-align: center;
}

.k-biz-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0.4rem 0;
  color: var(--ink);
}

.k-biz-microcopy {
  font-size: 1.05rem;
  color: var(--mut);
  max-width: 36rem;
  margin: 0.4rem auto;
  line-height: 1.5;
}

.k-biz-disclaimer {
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.85;
  margin-top: 0.4rem;
}

.k-biz-offer-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 0 20px var(--gold-soft);
  margin: 1.2rem auto;
  max-width: 40rem;
  text-align: left;
}

.k-biz-offer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.k-biz-offer-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.k-offer-bullet {
  color: #ef4444;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.k-nexus-line {
  border-top: 1px dashed var(--line);
  padding-top: 0.65rem;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.k-nexus-tag {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f6d38b, var(--gold-deep));
  color: #14100a;
  box-shadow: 0 0 12px var(--gold-soft);
  flex-shrink: 0;
}

.k-biz-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem 0;
}

.k-biz-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--surface);
  color: var(--mut);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.k-biz-pill:hover {
  border-color: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
}

.k-biz-pill.active {
  border-color: var(--gold);
  color: var(--ink);
  background: color-mix(in srgb, var(--gold) 15%, var(--surface));
  box-shadow: 0 0 16px var(--gold-soft);
  font-weight: 600;
}

.k-biz-diagram {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
}

.k-biz-svg {
  width: 100%;
  max-width: 680px;
  height: auto;
}

.k-biz-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
  text-align: left;
}

.k-biz-flow-step {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
  background: var(--surface);
}

.k-biz-flow-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.35rem;
}

.k-biz-flow-step h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.k-biz-flow-step p {
  color: var(--mut);
  font-size: 0.9rem;
  line-height: 1.45;
}


