/* Retain — Page-specific components */

/* ─── Nav ─────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  background: rgba(246, 244, 239, 0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; letter-spacing: -0.02em; font-size: 1.05rem; }
.nav__brand-mark { width: 22px; height: 22px; }
.brand-word { font-family: 'Source Serif 4', serif; font-weight: 600; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 1.85rem; align-items: center; }
.nav__links a {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 450;
  transition: color 160ms;
}
.nav__links a:hover {
  color: var(--ink);
}

.nav__links a.active,
.nav__links a[aria-current="page"] {
  background: linear-gradient(100deg, var(--holo-1) 0%, var(--holo-2) 35%, var(--holo-3) 70%, var(--holo-1) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: holo-shift 8s linear infinite;
}

.nav__cta { display: flex; gap: 0.5rem; align-items: center; }

.nav__menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav__menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}
.nav.is-open .nav__menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__menu-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav {
    flex-wrap: nowrap;
  }

  .nav__brand {
    position: relative;
    z-index: 1202;
  }

  .nav__cta {
    display: none !important;
  }

  .nav__menu-toggle {
    display: flex;
    margin-left: auto;
    z-index: 1202;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 5.6rem 0 0;
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
    overflow-y: auto;
    z-index: 1000;
  }

  .nav__links a {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.08rem;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink) !important;
    -webkit-text-fill-color: var(--ink) !important;
  }

  .nav__links a:last-child {
    border-bottom: none;
  }

  .nav__links a.active,
  .nav__links a[aria-current="page"] {
    background: linear-gradient(100deg, var(--holo-1) 0%, var(--holo-2) 35%, var(--holo-3) 70%, var(--holo-1) 100%) !important;
    background-size: 200% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: holo-shift 8s linear infinite !important;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav.is-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
  }

  html.menu-open,
  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  .nav__brand {
    min-width: 0;
    max-width: calc(100% - 4rem);
  }

  .nav__brand > div {
    margin-left: 0 !important;
    flex-wrap: wrap;
  }

  .footer .container {
    flex-wrap: wrap;
    gap: 0.7rem;
  }
}

/* ─── Hero ─────────────────────────── */
.hero {
  position: relative; overflow: visible;
  padding: clamp(1rem, 2.5vw, 2.5rem) 0 clamp(3rem, 6vw, 6rem);
}
.hero__topo { position: absolute; inset: -10% -10% -20% -10%; opacity: 0.7; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.85rem; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--bg-elev); }
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.hero__title {
  font-size: var(--t-display);
  margin: 1.4rem 0 1.4rem;
  max-width: 16ch;
  font-weight: 350;
}
.hero--small .hero__title {
  font-size: calc(var(--t-display) * 0.8);
}
.hero__title em { font-style: normal; }
.hero__sub { max-width: 56ch; font-size: 1.18rem; color: var(--ink-3); }
.hero__cta { display: flex; gap: 0.85rem; margin-top: 2.2rem; align-items: center; }

/* Hero canvas — flowing particles converge to center */
.hero__canvas-wrap {
  position: relative;
  margin: 3.5rem auto 0;
  height: clamp(400px, 50vw, 580px);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--bg-elev), var(--bg) 100%);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.hero__canvas-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(36% 50% at 50% 50%, var(--accent-glow), transparent 70%),
    radial-gradient(50% 60% at 50% 0%, rgba(155,212,216,0.12), transparent 70%);
  pointer-events: none;
}
.hero__canvas { position: absolute; inset: 0; }

/* Retain core in hero */
.hero__core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 168px; height: 168px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 4;
  background: radial-gradient(circle at 30% 30%, #fff, #fbfaf6 60%, #efece5 100%);
  border: 1px solid var(--hairline-strong);
  box-shadow:
    0 20px 50px rgba(20, 19, 15, 0.08),
    0 0 0 6px rgba(251, 250, 246, 0.6),
    inset 0 0 30px rgba(236, 106, 58, 0.04);
}
.hero__core::before {
  content: ""; position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1px dashed var(--hairline-strong);
  opacity: 0.5;
  animation: ring-spin 60s linear infinite;
}
.hero__core::after {
  content: ""; position: absolute; inset: -28px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 50%, var(--accent-glow) 70%, transparent 100%);
  opacity: 0.6;
  animation: core-pulse 4s var(--ease-in-out) infinite;
  z-index: -1;
}
.hero__core img { width: 70px; height: 70px; }
.hero__core-label { font-family: "Geist Mono", monospace; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.4rem; }
@keyframes core-pulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.06); }
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .hero__core { width: 110px; height: 110px; }
  .hero__core img { width: 48px; height: 48px; }
}

/* ─── Knowledge diagram (How it works section) ─── */
.kv-wrap {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 3rem auto 0;
  padding: 3rem 1rem;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-sunken));
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.concept-highlight {
  display: inline-block;
  padding: 0.1em 0.42em;
  margin: 0 0.08em;
  border-radius: 0.38em;
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 3px 12px rgba(20, 19, 15, 0.05);
  vertical-align: baseline;
  white-space: nowrap;
}

.concept-highlight .holo-text {
  display: inline-block;
  background: linear-gradient(100deg, #b64f2a 0%, #8d6a9f 36%, #4f7f83 72%, #b64f2a 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .concept-highlight .holo-text {
    background: none;
    color: var(--accent-deep);
  }
}
.kv {
  display: grid;
  grid-template-columns: 200px 1fr 240px 1fr 220px;
  align-items: center;
  gap: 0;
  position: relative;
}
.kv__col { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; position: relative; z-index: 2; }
.kv__col--inputs { gap: 1.4rem; }
.kv__col--outputs { gap: 1.4rem; padding-left: 1rem; }
.kv__entity {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: border-color 200ms, transform 200ms;
}
.kv__entity .kv-ico {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 13px;
}
.kv__entity--out .kv-ico { background: var(--bg); color: var(--ink-2); border: 1px solid var(--hairline-strong); }
.kv__entity--active { border-color: var(--accent); }
.kv__entity--active .kv-ico { background: var(--accent); color: #fff; }

.kv__core {
  width: 220px; height: 130px;
  background: var(--bg-elev);
  border: 1.5px solid var(--accent);
  border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: 0 16px 36px rgba(236, 106, 58, 0.12);
  position: relative; z-index: 3;
}
.kv__core img { width: 60px; height: 60px; }
.kv__core-label { font-family: "Geist Mono", monospace; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.35rem; }

.kv__lines { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.kv__col-label {
  font-family: "Geist Mono", monospace; font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.85rem;
  text-align: left;
}

@media (max-width: 880px) {
  .kv { grid-template-columns: 1fr; gap: 1rem; }
  .kv__lines { display: none; }
  .kv__core { width: 100%; }
}

/* ─── Manifesto ─────────────────────────── */
.manifesto {
  text-align: center;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.25;
  color: var(--ink-2);
  font-weight: 350;
  letter-spacing: -0.02em;
  max-width: 32ch;
  margin: 0 auto;
}
.manifesto em { font-style: normal; color: var(--ink); }

/* ─── KPI strip ─────────────────────────── */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.kpi {
  padding: 2.2rem 1.5rem;
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 0.35rem;
}
.kpi:last-child { border-right: none; }
.kpi__num {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.04em;
  font-weight: 350;
  line-height: 1;
  color: var(--ink);
}
.kpi__num .accent { color: var(--accent); }
.kpi__label { color: var(--ink-3); font-size: 0.92rem; }
@media (max-width: 760px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2) { border-right: none; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--hairline); }
}

/* ─── Pipeline (4-step flow) ─────────────────────────── */
.pipeline-wrap {
  position: relative;
  padding: 3rem 0 1rem;
}
.pipeline-svg {
  display: block; width: 100%; height: auto;
}
.pipeline-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.pipe-step {
  border: 1px solid var(--hairline);
  background: var(--bg-elev);
  border-radius: var(--r-md);
  padding: 1.2rem 1.25rem 1.25rem;
}
.pipe-step__num {
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  color: var(--ink-4); letter-spacing: 0.14em;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.6rem;
}
.pipe-step__num .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: dot-pulse 2.4s var(--ease-out) infinite;
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(236,106,58,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(236,106,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(236,106,58,0); }
}
.pipe-step__title { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 0.4rem; }
.pipe-step__desc { font-size: 0.92rem; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 880px) {
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Solutions cards ─────────────────────────── */
.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.sol-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  display: flex; flex-direction: column;
  min-height: 360px;
  transition: transform 280ms var(--ease-out), border-color 280ms;
}
.sol-card:hover { transform: translateY(-4px); border-color: var(--accent-soft); }
.sol-card__visual {
  flex: 1; min-height: 180px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--hairline);
  margin-bottom: 1.2rem;
  position: relative; overflow: hidden;
}
.sol-card__label {
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 0.4rem;
}
.sol-card__title { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 0.3rem; }
.sol-card__sub { font-size: 0.95rem; color: var(--ink-3); margin-bottom: 1rem; }
.sol-card__link { font-size: 0.92rem; color: var(--ink-2); display: inline-flex; gap: 0.4rem; align-items: center; }
.sol-card:hover .sol-card__link { color: var(--accent-deep); }
@media (max-width: 880px) { .solutions { grid-template-columns: 1fr; } }

/* ─── Try It teaser ─────────────────────────── */
.tryit {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-sunken));
  position: relative; overflow: hidden;
}
.tryit::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 90% 100%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.tryit__copy { position: relative; z-index: 1; }
.tryit__viz { position: relative; z-index: 1; height: 280px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 880px) { .tryit { grid-template-columns: 1fr; } }

/* ─── Trust strip ─────────────────────────── */
.trust {
  display: flex; align-items: center; justify-content: center;
  gap: 3.5rem; flex-wrap: wrap;
  padding: 2.5rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.trust img { height: 28px; opacity: 0.55; filter: grayscale(100%); transition: opacity 200ms, filter 200ms; }
.trust img:hover { opacity: 1; filter: none; }
.trust__line { color: var(--ink-3); font-size: 0.95rem; max-width: 60ch; text-align: center; }

/* ─── Closing CTA ─────────────────────────── */
.closer { text-align: center; padding: clamp(4rem, 8vw, 7rem) 0; }
.closer--tight-top { padding-top: clamp(1rem, 2vw, 1.75rem); }
.closer__title {
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  font-weight: 350;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 18ch; margin: 0 auto 2rem;
}

/* ─── Footer ─────────────────────────── */
.footer {
  background: var(--bg-deep);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--hairline);
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--hairline);
}
.footer__col h4 { font-size: 0.78rem; font-family: "Geist Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 1rem; font-weight: 500; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col a { color: var(--ink-2); font-size: 0.95rem; }
.footer__col a:hover { color: var(--accent-deep); }
.footer__brand p { color: var(--ink-3); font-size: 0.95rem; max-width: 32ch; margin: 0.5rem 0 0; }
.footer__base { display: flex; justify-content: space-between; padding-top: 1.5rem; color: var(--ink-4); font-size: 0.85rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* Knowledge Visual Port from React */
.kv-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 6rem 2rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.kv-scroll-stage {
  position: relative;
}

.kv-scroll-stage.kv-scroll-stage--active {
  min-height: 0;
}

.kv-scroll-stage.kv-scroll-stage--active .kv-container {
  position: sticky;
  top: clamp(4.75rem, 9vh, 7rem);
}

@media (max-width: 768px) {
  .kv-container { flex-direction: column; padding: 2.25rem 0 1rem; gap: 0; }
}

@media (max-width: 900px) {
  .kv-scroll-stage.kv-scroll-stage--active .kv-container {
    position: sticky;
    top: clamp(4.5rem, 10vh, 6.5rem);
  }
}
.kv-entities {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}
@media (max-width: 768px) {
  .kv-entities { flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 1.5rem; width: auto; }
}
.kv-entity-wrapper {
  transition: all 0.6s ease;
  transform: translate(-100px, 0);
  opacity: 0;
}
.kv-entity-wrapper[data-visible="true"] {
  transform: translate(0, 0);
  opacity: 1;
}
@media (max-width: 768px) {
  .kv-entity-wrapper { transform: translate(0, -100px); }
  .kv-entity-wrapper[data-visible="true"] { transform: translate(0, 0); }
}
.kv-entity-box {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: #18216d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}
.kv-entity-box[data-pulsing="true"] { background: var(--accent); }
.kv-entity-box svg { width: 24px; height: 24px; stroke: currentColor; fill: none; }
.kv-center-box {
  width: 220px;
  height: 108px;
  background: white;
  border: 2px solid transparent;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(24, 33, 109, 0.1);
  z-index: 2;
  position: relative;
  isolation: isolate;
}
@media (max-width: 768px) {
  .kv-center-box {
    width: 190px;
    height: 94px;
  }
}
.kv-center-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(100deg, var(--holo-1) 0%, var(--holo-2) 35%, var(--holo-3) 70%, var(--holo-1) 100%);
  background-size: 200% 100%;
  animation: holo-shift 8s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.kv-center-box > * {
  position: relative;
  z-index: 1;
}
.kv-center-box span {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  width: 100%;
  text-align: center;
  display: block;
}
.kv-right-col {
  display: flex;
  flex-direction: column;
  gap: 107px;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .kv-right-col { flex-direction: row; gap: 52px; margin-top: 0; width: 100%; justify-content: center; align-items: flex-start; }
}
.kv-right-box-wrapper { display: flex; align-items: center; gap: 1.5rem; }
@media (max-width: 768px) {
  .kv-right-box-wrapper { flex-direction: column; gap: 1.5rem; }
}
.kv-box-label { font-weight: 600; color: #5a5a5a; font-size: 1.1rem; width: 140px; text-align: left; }
@media (max-width: 768px) {
  .kv-box-label { text-align: center; width: 140px; margin-top: 1rem; }
}
.kv-right-wrapper {
  --kv-box-offset: 66px;
  position: relative;
  width: 85px;
  height: 235px;
  display: block;
}
@media (max-width: 768px) {
  .kv-right-wrapper {
    --kv-box-offset: 62px;
    width: 250px;
    height: 125px;
  }
}
.kv-right-box {
  width: 85px;
  height: 85px;
  background: white;
  border: 2px solid transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  isolation: isolate;
}
.kv-right-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(100deg, var(--holo-1) 0%, var(--holo-2) 35%, var(--holo-3) 70%, var(--holo-1) 100%);
  background-size: 200% 100%;
  animation: holo-shift 8s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.kv-right-box > * {
  position: relative;
  z-index: 1;
}
.kv-right-box--future {
  opacity: 1;
}
.kv-right-box--future svg {
  width: 42px;
  height: 42px;
  display: block;
  color: #18216d;
}
.kv-right-box svg { width: 44px; height: 44px; color: #18216d; display: none; }
.kv-right-box img { width: 40px; height: 40px; object-fit: contain; position: absolute; display: none; }
.kv-right-box svg.active, .kv-right-box img.active { display: block; animation: kvFadeAnim 3s infinite ease-in-out; }
.kv-right-box--future svg { display: block; }
.kv-right-box .text-fallback {
  font-size: 1rem; font-weight: 600; color: #18216d; text-align: center; line-height: 1.2;
  animation: kvFadeAnim 3s infinite ease-in-out; display: none;
}
.kv-right-box .text-fallback.active { display: block; }
.kv-right-box #kv-platform-icon {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.kv-platform-band {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateY(0%);
  transition: transform 120ms linear;
}
.kv-platform-band__item {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kv-platform-band__item img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
  position: static;
}
@keyframes kvFadeAnim {
  0% { opacity: 0; transform: scale(0.9); }
  10% { opacity: 1; transform: scale(1); }
  90% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}
.kv-name-label {
  position: absolute;
  top: calc(50% + var(--kv-box-offset) + 48px);
  left: 50%;
  font-weight: 600;
  color: #18216d;
  font-size: 0.9rem;
  text-align: center;
  width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(14px);
}
.kv-name-label--future {
  top: calc(50% - var(--kv-box-offset) + 48px);
}
@media (max-width: 768px) {
  .kv-name-label {
    top: calc(50% + 56px);
    left: calc(50% + var(--kv-box-offset));
    width: 124px;
    font-size: 0.82rem;
  }

  .kv-name-label--future {
    top: calc(50% + 56px);
    left: calc(50% - var(--kv-box-offset));
  }
}
.kv-multi-line { display: flex; align-items: center; justify-content: center; margin: 0 -10px; }
@media (max-width: 768px) {
  .kv-multi-line { transform: rotate(90deg) rotateX(180deg); margin: -56px 0; }
}
.kv-single-line { display: flex; align-items: center; justify-content: center; margin: 0 -56px; position: relative; height: 240px; z-index: 3; }
.kv-edge-connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}
.kv-edge-connector line {
  stroke: var(--accent);
  stroke-width: 4;
}
@media (max-width: 768px) {
  .kv-single-line {
    transform: none;
    margin: -10px 0 0;
    height: 130px;
    width: 100%;
    max-width: 290px;
  }
}
.kv-conn-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  opacity: 0;
}
.kv-single-connector-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  opacity: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(155, 212, 216, 0.45));
}
.kv-conn-path[data-step="enter"] { animation: kvDrawLeft 1.5s forwards ease-out; }
.kv-conn-path[data-step="calendar"], .kv-conn-path[data-step="phone"] { stroke-dashoffset: 0; opacity: 1; transition: opacity 0.3s ease; }
.kv-conn-path[data-step="pulse"] {
  stroke: var(--accent);
  stroke-width: 4;
  animation: kvPulseRight 1.5s forwards ease-in-out;
}
@keyframes kvDrawLeft {
  0% { stroke-dashoffset: -400; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes kvPulseRight {
  0% { stroke-dasharray: 150 400; stroke-dashoffset: 150; opacity: 1; }
  100% { stroke-dasharray: 150 400; stroke-dashoffset: -400; opacity: 1; }
}
.kv-glowing-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(255, 139, 80, 0.8));
}
.kv-left-connector-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}
.kv-left-flow-label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: rgba(251, 250, 246, 0.9);
  color: var(--ink-2);
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(14px);
  box-shadow: 0 4px 12px rgba(20, 19, 15, 0.08);
  z-index: 5;
  pointer-events: none;
}
.kv-mini-screen {
  position: absolute;
  top: 138px;
  left: -128px;
  width: 86px;
  height: 166px;
  border-radius: 8px;
  border: 0.5px solid rgba(247, 245, 239, 0.24);
  background: #0f1115;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transform-origin: center;
  z-index: 4;
  box-shadow: 0 14px 30px rgba(20, 19, 15, 0.18);
}
.kv-mini-screen__window {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0.12rem;
  background:
    radial-gradient(95% 70% at 50% 18%, rgba(236, 106, 58, 0.16), transparent 52%),
    radial-gradient(120% 140% at 10% 0%, rgba(216, 180, 240, 0.12), transparent 56%),
    linear-gradient(160deg, rgba(21, 24, 30, 0.98) 0%, rgba(9, 11, 14, 1) 100%);
}
.kv-mini-screen__window::before {
  display: none;
}
.kv-mini-screen__camera {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 245, 239, 0.06) 0%, rgba(247, 245, 239, 0.015) 18%, rgba(247, 245, 239, 0.01) 100%),
    radial-gradient(85% 55% at 50% 28%, rgba(236, 106, 58, 0.22), transparent 62%),
    linear-gradient(180deg, #1a1f27 0%, #0c0f14 100%);
}
.kv-mini-screen__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1.0;
  filter: saturate(0.78) contrast(0.88) brightness(0.75);
}
.kv-mini-screen__camera::before {
  content: "";
  position: absolute;
  top: 0.48rem;
  left: 50%;
  width: 1.7rem;
  height: 0.22rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(247, 245, 239, 0.18);
  z-index: 2;
}
.kv-mini-screen__glow {
  position: absolute;
  inset: auto 0.9rem 1.15rem;
  height: 3.7rem;
  border-radius: 999px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(236, 106, 58, 0.22) 0%, rgba(216, 180, 240, 0.12) 48%, rgba(9, 11, 14, 0) 100%);
  filter: blur(10px);
  opacity: 0.72;
}
.kv-mini-screen__live {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 1;
}
.kv-mini-screen__live-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  display: block;
  background: #de2f23;
  box-shadow: 0 0 0 0 rgba(222, 47, 35, 0.6);
  animation: concept-rec-pulse 1.6s infinite;
}
.kv-bubble {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--hairline-strong);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
}
.kv-bubble svg {
  width: 50%;
  height: 50%;
}

.kv-orbit-lines line {
  transform-origin: 260px 220px;
  transition: opacity 140ms linear;
}

.kv-container.kv-scroll-enhanced .kv-bubble {
  opacity: 0;
  transform: translate(0, 0) scale(0.64);
  will-change: transform, opacity;
}

.kv-container.kv-scroll-enhanced .kv-mini-screen,
.kv-container.kv-scroll-enhanced .kv-left-flow-label {
  opacity: 0;
}

.kv-container.kv-scroll-enhanced .kv-center-box {
  opacity: 0;
}

.kv-container.kv-scroll-enhanced .kv-orbit-lines line {
  opacity: 0;
}

.kv-container.kv-scroll-enhanced .kv-right-box--future {
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
}

.kv-container.kv-scroll-enhanced .kv-single-connector-path {
  opacity: 0.14;
}

.kv-container.kv-scroll-enhanced .kv-glowing-dot {
  display: none;
}

.kv-scroll-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 8px rgba(236, 106, 58, 0.9));
  transition: opacity 100ms linear;
}

.kv-container.kv-scroll-enhanced .kv-center-box {
  transition: transform 120ms linear, box-shadow 120ms linear, opacity 120ms linear;
  will-change: transform, box-shadow;
}

.kv-right-box.kv-data-hit {
  animation: kvDataHitPulse 360ms ease-out;
}

@keyframes kvDataHitPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@media (min-width: 769px) {
  .kv-mini-screen {
    top: 154px;
    left: -160px;
    width: 96px;
    height: 184px;
  }

  .kv-mini-screen__window {
    padding: 0.12rem;
  }
}

@media (max-width: 768px) {
  .kv-mini-screen {
    width: 92px;
    height: 176px;
    border-radius: 8px;
    border-width: 0.5px;
  }

  .kv-mini-screen__window {
    padding: 0.12rem;
  }

  .kv-mini-screen__window::before {
    display: none;
  }

  .kv-mini-screen__window::before,
  .kv-mini-screen__camera {
    border-radius: 6px;
  }
}

/* Force active nav links to text-only holo style (no underline, no bubble) */
.nav .nav__links a.active,
.nav .nav__links a[aria-current="page"] {
  background: linear-gradient(100deg, var(--holo-1) 0%, var(--holo-2) 35%, var(--holo-3) 70%, var(--holo-1) 100%) !important;
  background-size: 200% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
  animation: holo-shift 8s linear infinite !important;
}

.nav .nav__links a.active::after,
.nav .nav__links a[aria-current="page"]::after,
.nav .nav__links a::after {
  content: none !important;
  background: none !important;
  transform: none !important;
  animation: none !important;
}

@media (max-width: 860px) {
  .nav .nav__links a {
    color: var(--ink) !important;
    -webkit-text-fill-color: var(--ink) !important;
  }

  .nav .nav__links a.active,
  .nav .nav__links a[aria-current="page"] {
    background: linear-gradient(100deg, var(--holo-1) 0%, var(--holo-2) 35%, var(--holo-3) 70%, var(--holo-1) 100%) !important;
    background-size: 200% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: holo-shift 8s linear infinite !important;
  }
}

