/* Shunya Bots. Brand kit v1: Midnight, Electric Violet, Signal Cyan, Saffron, Cloud, Slate.
   Sora + Inter, self-hosted. No third-party requests. */
@font-face {
  font-family: "Sora Fallback";
  src: local("Arial");
  size-adjust: 105%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.64%;
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sb-midnight: #0B1033;
  --sb-violet: #6D5BFF;
  --sb-violet-deep: #5546F0;
  --sb-cyan: #22D3EE;
  --sb-cyan-deep: #0891B2;
  --sb-saffron: #FFA41B;
  --sb-cloud: #F6F7FB;
  --sb-slate: #475569;
  --sb-white: #FFFFFF;
  --sb-gradient: linear-gradient(135deg, #8B7BFF 0%, #22D3EE 100%);
  --sb-gradient-light: linear-gradient(135deg, #5546F0 0%, #0891B2 100%);
  --sb-font-head: "Sora", "Sora Fallback", system-ui, sans-serif;
  --sb-font-body: "Inter", "Inter Fallback", system-ui, sans-serif;
  --line: #E2E5EF;
  --header-h: 72px;
  --ink-soft: #C9CDE3;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--sb-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sb-midnight);
  background: var(--sb-white);
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--sb-font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
}
h1 { font-size: clamp(2.05rem, 4.6vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--sb-violet-deep); }
a:hover { color: var(--sb-midnight); }
:focus-visible { outline: 3px solid var(--sb-saffron); outline-offset: 3px; }
::selection { background: var(--sb-saffron); color: var(--sb-midnight); }

.shell { width: min(1400px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 760px; }
.measure { max-width: 68ch; }
.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--sb-saffron);
  color: var(--sb-midnight);
  padding: 12px 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sb-midnight);
  color: var(--sb-cloud);
  border-bottom: 1px solid rgba(246, 247, 251, 0.08);
}
.bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 150px; height: auto; aspect-ratio: 1296 / 246; }
.desk { margin-left: auto; }
.desk ul, .mob nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.desk a, .mob a {
  color: var(--sb-cloud);
  text-decoration: none;
  font-family: var(--sb-font-head);
  font-weight: 500;
  min-height: 48px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.desk a:hover, .mob a:hover { background: rgba(255, 255, 255, 0.08); color: var(--sb-white); }
.mob { display: none; }
.mob summary {
  list-style: none;
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--sb-cloud);
  font-family: var(--sb-font-head);
  font-weight: 600;
  border-radius: 999px;
}
.mob summary::-webkit-details-marker { display: none; }
.mob nav {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--sb-midnight);
  border: 1px solid rgba(246, 247, 251, 0.16);
  border-radius: 14px;
  min-width: 230px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.mob nav ul { flex-direction: column; }
.mob a { display: flex; border-radius: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 48px;
  padding: 0.7em 1.25em;
  border-radius: 999px;
  font-family: var(--sb-font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  background: transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--sb-saffron); color: var(--sb-midnight); }
.btn-primary:hover { background: #FFB547; color: var(--sb-midnight); }
.btn-ghost { border-color: rgba(246, 247, 251, 0.75); color: var(--sb-cloud); }
.btn-ghost:hover { background: rgba(246, 247, 251, 0.1); color: var(--sb-white); }
/* Ghost buttons on light sections get a midnight outline (Ops H1, 18 Oct). Dark panels inside or as sections keep the light outline. */
.section:not(.page-hero) .btn-ghost { color: #0B1033; border-color: #0B1033; }
.section:not(.page-hero) .btn-ghost:hover { background: rgba(11, 16, 51, 0.06); color: #0B1033; }
.section.ch-studio .btn-ghost, .section .x-live .btn-ghost { border-color: rgba(246, 247, 251, 0.75); color: var(--sb-cloud); }
.section.ch-studio .btn-ghost:hover, .section .x-live .btn-ghost:hover { background: rgba(246, 247, 251, 0.1); color: var(--sb-white); }
.btn-line { border-color: var(--sb-midnight); color: var(--sb-midnight); }
.btn-line:hover { background: var(--sb-midnight); color: var(--sb-cloud); }
.btn-sm { min-height: 48px; padding: 0.45em 0.95em; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 14px; }

.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(540px 420px at 92% -8%, rgba(109, 91, 255, 0.42), transparent 68%),
    radial-gradient(460px 380px at -8% 86%, rgba(8, 145, 178, 0.38), transparent 70%),
    var(--sb-midnight);
  color: var(--sb-cloud);
  padding: 28px 0 64px;
}
.hero h1 { color: var(--sb-white); max-width: 16ch; }
.rule {
  display: block;
  width: 96px;
  height: 5px;
  border-radius: 5px;
  background: var(--sb-gradient);
  margin: 16px 0 18px;
}
.lead { font-size: 1.12rem; color: var(--sb-ink, var(--ink-soft)); max-width: 46ch; }
.trust { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

.tag {
  align-self: flex-start;
  font-family: var(--sb-font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sb-saffron);
  color: var(--sb-midnight);
}
.tag-soon, .tag-dev, .tag-progress {
  background: var(--sb-cloud);
  color: var(--sb-midnight);
  border: 1px solid var(--sb-midnight);
  letter-spacing: 0.04em;
}
.pname { font-family: var(--sb-font-head); font-size: 1.05rem; line-height: 1.25; }
.one { font-size: 0.92rem; line-height: 1.4; color: var(--sb-slate); }
.tprice { font-family: var(--sb-font-head); font-weight: 600; font-size: 0.88rem; color: var(--sb-midnight); }

.art .sheet { fill: var(--sb-cloud); }
.art .ink { fill: none; stroke: var(--sb-slate); stroke-width: 3; stroke-linecap: round; }
.art .hair { fill: none; stroke: #C9CDE3; stroke-width: 3; stroke-linecap: round; }
.art .on-saffron { fill: #0B1033; }
.art .on-violet { fill: #F6F7FB; }
.art .stamp { fill: none; stroke: var(--sb-saffron); stroke-width: 3; transform-origin: 118px 124px; transform: scale(0.6); opacity: 0.35; }
.tile.play .stamp, .page-art.play .stamp { animation: stamp 3.6s ease-in-out infinite; }
@keyframes stamp {
  0%, 18% { transform: scale(0.4); opacity: 0; }
  32%, 70% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0; }
}
.art .route { fill: none; stroke: #8B7BFF; stroke-width: 3; stroke-dasharray: 7 6; }
.art .node { fill: var(--sb-cyan); }
.art .node-end { fill: var(--sb-saffron); }
.crate { transform: translate(168px, 96px); }
.tile.play .crate, .page-art.play .crate { animation: crate 3.6s ease-in-out infinite; }
@keyframes crate {
  0% { transform: translate(168px, 108px); opacity: 0; }
  18% { opacity: 1; }
  70% { transform: translate(268px, 48px); opacity: 1; }
  100% { transform: translate(268px, 48px); opacity: 0; }
}
.art-drop .lane { fill: none; stroke: rgba(139, 123, 255, 0.85); stroke-width: 3; stroke-dasharray: 1 8; stroke-linecap: round; }
.art-drop .tote { transform: translate(46px, 112px); }
.tile.play .art-drop .tote, .page-art.play .art-drop .tote { animation: tote 3.6s ease-in-out infinite; }
@keyframes tote {
  0% { transform: translate(46px, 112px); opacity: 0; }
  12% { opacity: 1; }
  45% { transform: translate(150px, 58px); }
  78% { transform: translate(250px, 104px); opacity: 1; }
  100% { transform: translate(250px, 104px); opacity: 0; }
}
.art text { font-family: var(--sb-font-head); font-size: 13px; fill: var(--sb-cloud); }
.card-a, .card-b { fill: rgba(246, 247, 251, 0.08); stroke: rgba(246, 247, 251, 0.28); }
.flagged { transform-origin: 78px 78px; }
.tile.play .flagged, .page-art.play .flagged { animation: nudge 3.6s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: none; }
  40% { transform: translateY(-4px); }
}

.section { padding: 72px 0; }
.alt { background: var(--sb-cloud); }
.intro { font-size: 1.08rem; color: var(--sb-slate); max-width: 62ch; }
.kicker {
  font-family: var(--sb-font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sb-violet-deep);
  margin: 0 0 8px;
}
.problem-list, .grid-3, .svc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.problem-list li, .card, .svc {
  background: var(--sb-white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
}
.problem-list li { border-left: 4px solid var(--sb-violet-deep); color: var(--sb-slate); }
.problem-list strong, .svc h3 { display: block; color: var(--sb-midnight); font-family: var(--sb-font-head); }
.card p, .svc p, .entry p { color: var(--sb-slate); }
.grid-3 { grid-template-columns: 1fr; }
.card h3 { margin-bottom: 0.35em; }

.catalogue { list-style: none; margin: 8px 0 0; padding: 0; }
.entry {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 18px 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.entry h3 { margin-bottom: 0.2em; }
.outcome { border-left: 3px solid var(--sb-cyan-deep); padding-left: 12px; }
.outcome span, .pprice { font-weight: 600; color: var(--sb-midnight); }
.pprice { font-family: var(--sb-font-head); }
.more { font-family: var(--sb-font-head); font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; }
.subhead { margin-top: 36px; }

.timeline { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: step; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--sb-gradient-light);
}
.timeline li { counter-increment: step; position: relative; padding: 0 0 28px 68px; }
.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sb-gradient-light);
  color: var(--sb-white);
  font-family: var(--sb-font-head);
  font-weight: 700;
}
.timeline p { color: var(--sb-slate); margin: 0; }
.trust-row { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row li {
  background: var(--sb-white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.price-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.price-card {
  background: var(--sb-white);
  border: 2px solid var(--sb-violet-deep);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 12px 30px rgba(85, 70, 240, 0.1);
}
.price-care { border-color: var(--line); box-shadow: none; }
.price {
  font-family: var(--sb-font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1;
  margin: 0.1em 0 0.35em;
  color: var(--sb-midnight);
}
.price-note, .muted { color: var(--sb-slate); }
.small { font-size: 0.95rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { position: relative; padding-left: 28px; margin: 0 0 10px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--sb-cyan-deep);
  border-bottom: 3px solid var(--sb-cyan-deep);
  transform: rotate(-45deg);
}
.price-pair { font-family: var(--sb-font-head); font-weight: 600; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--sb-white);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 48px 14px 18px;
  font-family: var(--sb-font-head);
  font-weight: 600;
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--sb-violet-deep);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--sb-slate); }

.contact { background: linear-gradient(180deg, var(--sb-cloud), #ECEBFF); }
.form-gate {
  background: var(--sb-white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-top: 8px;
}
.contact iframe {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
  border-radius: 16px;
  background: var(--sb-white);
}
.email-line { margin-top: 22px; font-size: 1.05rem; }
.back { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; text-decoration: none; }

.page-hero {
  background:
    radial-gradient(420px 280px at 100% 0%, rgba(109, 91, 255, 0.45), transparent 70%),
    var(--sb-midnight);
  color: var(--sb-cloud);
  padding: 48px 0 40px;
}
.page-hero h1 { color: var(--sb-white); max-width: 18ch; }
.page-hero p { color: var(--ink-soft); max-width: 58ch; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; padding: 0; margin: 0 0 14px; font-size: 0.92rem; }
.crumbs a { color: var(--sb-cyan); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--ink-soft); }
/* Current-page crumb on the same line as Home (Ops M3, 18 Oct). */
.crumbs { display: flex; align-items: center; }
.crumbs li { display: flex; align-items: center; min-height: 44px; }
.crumbs a { min-width: 44px; }
.status-pill {
  display: inline-block;
  background: var(--sb-cloud);
  color: var(--sb-midnight);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--sb-font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.figure-art {
  margin: 8px 0 28px;
  background: var(--sb-midnight);
  border-radius: 18px;
  overflow: hidden;
}
.figure-art svg, .figure-art img { width: 100%; height: auto; display: block; }
.figure-art figcaption { color: var(--sb-slate); font-size: 0.92rem; padding: 10px 2px 0; }
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 8px 0 20px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 14px; background: var(--sb-cloud); }
.gallery figcaption { font-size: 0.9rem; color: var(--sb-slate); margin-top: 6px; }
.page-art.play .stamp, .page-art.play .crate, .page-art.play .tote, .page-art.play .flagged { }

.demo-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.demo-card {
  display: flex;
  flex-direction: column;
  background: var(--sb-white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.demo-card .shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sb-cloud);
  margin-bottom: 12px;
}
.demo-card .shot picture, .demo-card .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.demo-card .tag { position: absolute; top: 10px; left: 10px; z-index: 1; }
.legal { padding: 36px 0 64px; }
.legal h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.legal .note { color: var(--sb-slate); }
.notfound { padding: 72px 0; text-align: center; }

.site-footer {
  background: var(--sb-midnight);
  color: var(--ink-soft);
  padding: 40px 0 28px;
  font-size: 0.98rem;
}
.footer-inner { display: grid; gap: 18px; }
.site-footer img { width: 137px; height: auto; aspect-ratio: 1296 / 246; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-links a {
  color: var(--sb-cloud);
  text-decoration: none;
  min-height: 48px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: var(--sb-cyan); }
.copy { font-size: 0.9rem; }
.copy p { margin: 0 0 0.3em; }

@media (min-width: 720px) {
  .grid-3, .problem-list { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 640px; }
  .demo-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1.2fr 0.8fr; }
  .gallery .wide { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .desk { display: none; }
  .mob { display: block; position: relative; }
  .hero h1 { max-width: none; }
  .entry { grid-template-columns: 1fr; gap: 6px; }
  .brand img { width: 124px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .kid-alt { display: none !important; }
}

/* ---------- Hero (two balanced columns) ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.pitch { max-width: 560px; }
.hero h1 { max-width: 14ch; margin-bottom: 0.4em; }
.hero .lead { max-width: 40ch; margin-bottom: 1.1em; }
.commit { font-family: var(--sb-font-head); font-weight: 600; color: var(--sb-cloud); font-size: 0.98rem; margin: 4px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 1024px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
}

/* ---------- Cover Flow (scoped to .cf-wrap) ---------- */
.cf-wrap { min-width: 0; text-align: center; }
.cf-title { color: var(--sb-white); font-size: 1.5rem; margin: 0; }
.cf-sub { color: var(--ink-soft); margin: 2px 0 0; font-size: 0.95rem; }
.cf { position: relative; outline: none; border-radius: 20px; }
.cf:focus-visible { box-shadow: 0 0 0 3px var(--sb-cyan); }
.cf-stage {
  position: relative;
  height: 600px;
  overflow: hidden;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  container-type: inline-size;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.cf-orbit {
  position: absolute; left: 50%; top: 50%;
  width: 94%; height: 70%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 50%;
  pointer-events: none;
}
.cf-track { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.cf-card { pointer-events: auto; }
.cf-card {
  --cw: 300px;
  position: absolute;
  left: 50%; top: 50%;
  width: var(--cw); height: 440px;
  margin: -220px 0 0 calc(var(--cw) / -2);
  display: flex; flex-direction: column;
  background: #fff;
  color: var(--sb-midnight);
  border-radius: 20px;
  padding: 10px;
  text-align: left;
  box-shadow: 0 18px 40px rgba(3, 6, 25, 0.45);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  backface-visibility: hidden;
  cursor: pointer;
}
.cf-card.is-active { cursor: default; }
.cf-card.is-zoom { box-shadow: 0 26px 56px rgba(3, 6, 25, 0.55), 0 0 0 2px rgba(34, 211, 238, 0.55); }
/* Resting positions before the script runs (match the script's first frame: TradeSignal in front). */
.cf-card:nth-child(1) { transform: translate3d(max(-44cqw, -320px), 0, -160px) rotateY(62deg) scale(0.74); z-index: 50; }
.cf-card:nth-child(2) { transform: translate3d(max(-30cqw, -210px), 0, -80px) rotateY(50deg) scale(0.86); z-index: 75; }
.cf-card:nth-child(3) { transform: none; z-index: 100; }
.cf-card:nth-child(4) { transform: translate3d(min(30cqw, 210px), 0, -80px) rotateY(-50deg) scale(0.86); z-index: 75; }
.cf-card:nth-child(5) { transform: translate3d(min(44cqw, 320px), 0, -160px) rotateY(-62deg) scale(0.74); z-index: 50; }
.cf-card:nth-child(6) { opacity: 0; visibility: hidden; transform: translate3d(0, 0, -240px) scale(0.6); z-index: 25; }
.cf-screen {
  position: relative; display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sb-midnight);
  flex: none;
}
.cf-screen img, .cf-screen svg { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; pointer-events: none; }
.cf-sample {
  position: absolute; top: 8px; right: 8px;
  font: 700 0.68rem/1 var(--sb-font-head); letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92); color: var(--sb-midnight);
  padding: 4px 7px; border-radius: 6px;
}
.cf-meta { display: flex; flex-direction: column; gap: 4px; padding: 12px 6px 4px; min-height: 0; flex: 1; }
.cf-labels { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cf-labels .tag { background: var(--sb-saffron); color: var(--sb-midnight); border-radius: 999px; min-height: 22px; }
.cf-labels .tag-soon { background: #E7E4FF; color: #3A2DB8; }
.cf-aud { font-size: 0.8rem; font-weight: 600; color: var(--sb-slate); }
.cf-name { font-family: var(--sb-font-head); font-size: 1.2rem; line-height: 1.2; }
.cf-one { font-size: 0.9rem; line-height: 1.4; color: var(--sb-slate); }
.cf-avail { font-size: 0.82rem; font-weight: 600; color: var(--sb-midnight); margin-top: auto; }
.cf-go {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  min-height: 44px; padding: 0 2px;
  font-family: var(--sb-font-head); font-weight: 700; color: var(--sb-violet-deep); text-decoration: none;
}
.cf-go:hover { text-decoration: underline; color: var(--sb-violet-deep); }
.cf-card:not(.is-active) .cf-go { pointer-events: none; }
.cf-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 4px; }
.cf-controls > button {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(246, 247, 251, 0.3); background: transparent; color: var(--sb-white);
  font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.cf-controls > button:hover { background: rgba(246, 247, 251, 0.1); }
.cf-dots { display: flex; gap: 2px; }
.cf-dots button { width: 32px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.cf-dots button::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #4A547D; transition: background 0.2s; }
.cf-dots button[aria-current="true"]::before { background: var(--sb-saffron); }
.cf-note { color: var(--ink-soft); font-size: 0.8rem; margin: 2px 0 0; }
@container (max-width: 439px) {
  .cf-card { --cw: min(78cqw, 300px); }
  .cf-card:nth-child(1), .cf-card:nth-child(5) { opacity: 0; visibility: hidden; }
  .cf-card:nth-child(2) { transform: translate3d(-62cqw, 0, -80px) rotateY(38deg) scale(0.86); }
  .cf-card:nth-child(4) { transform: translate3d(62cqw, 0, -80px) rotateY(-38deg) scale(0.86); }
}
@media (max-width: 599px) {
  .cf-stage { height: 480px; }
}

/* ---------- Problem chips, studio builds ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 20px 0 0; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #D5D8EA; color: var(--sb-midnight); text-decoration: none; font-weight: 600; }
.chips a:hover { border-color: var(--sb-violet-deep); color: var(--sb-violet-deep); }
.build-grid { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
.build { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.build h3 { margin: 4px 0 0; }
.build p { color: var(--sb-slate); margin: 0; }
.build .more { margin-top: auto; }
.build-art { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--sb-midnight); }
.build-art img, .build-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.build .tag { background: var(--sb-cloud); color: var(--sb-midnight); border-radius: 999px; min-height: 22px; }
@media (min-width: 720px) { .build-grid { grid-template-columns: repeat(3, 1fr); } }
.form-status { color: var(--sb-slate); }
#contact-title:focus { outline: none; }
#contact-title:focus-visible { outline: 3px solid var(--sb-saffron); }
@media (prefers-reduced-motion: reduce) {
  .cf-card.is-zoom { box-shadow: 0 18px 40px rgba(3, 6, 25, 0.45), 0 0 0 2px rgba(34, 211, 238, 0.55); }
}

/* ---------- Shunya Social page (ported from v4) ---------- */
.art-social .feed { transform: translateY(0); }
.page-art.play .art-social .feed, .cf-card.is-zoom .art-social .feed { animation: feed-scroll 4.8s linear infinite; }
@keyframes feed-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-64px); }
}
.x-live {
  margin: 8px auto 28px;
  max-width: 520px;
  background: var(--sb-midnight);
  color: var(--sb-cloud);
  border-radius: 22px;
  border: 1px solid rgba(34, 211, 238, 0.55);
  box-shadow: 0 22px 48px rgba(11, 16, 51, 0.16), inset 0 0 0 1px rgba(109, 91, 255, 0.45);
  overflow: hidden;
}
.x-live-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(246, 247, 251, 0.12);
}
.x-ring {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid var(--sb-cyan);
  position: relative;
}
.x-ring::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sb-saffron);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.x-live-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.3;
}
.x-live-title strong { display: block; color: var(--sb-white); font-family: var(--sb-font-head); }
.x-state { color: var(--ink-soft); font-size: 0.82rem; }
.x-live .btn { flex: 0 0 auto; }
.x-viewport {
  height: 540px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--sb-violet-deep) var(--sb-midnight);
  background: var(--sb-midnight);
}
.x-track { min-height: 100%; }
.x-track .twitter-timeline {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin: 16px;
  color: var(--sb-cloud);
}
.x-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px;
  padding: 16px 16px 18px;
  min-height: 148px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--sb-cloud);
  background: rgba(246, 247, 251, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.35);
}
.x-card:hover { color: var(--sb-white); }
.x-card strong { font-family: var(--sb-font-head); color: var(--sb-white); }
.x-card-kicker {
  font-family: var(--sb-font-head);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sb-cyan);
}
.x-note { color: var(--sb-slate); }
.x-track .twitter-tweet { margin: 12px auto !important; }
.x-track iframe { pointer-events: none; }
.x-links { padding-left: 1.2em; }
.x-links a { min-height: 44px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) { .x-viewport { scroll-behavior: auto; } }

/* ---------- Products menu, product grid and /products/ (products-v1) ---------- */
.psub > summary {
  list-style: none;
  cursor: pointer;
  color: var(--sb-cloud);
  font-family: var(--sb-font-head);
  font-weight: 500;
  min-height: 48px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
}
.psub > summary::-webkit-details-marker { display: none; }
.psub > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.psub[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.psub > summary:hover, .psub[open] > summary { background: rgba(255, 255, 255, 0.08); color: var(--sb-white); }
.psub-list { list-style: none; margin: 0; padding: 0; }
.psub-list a { justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; border-radius: 10px; }
.pm-name { min-width: 0; }
.desk .pm-name { white-space: nowrap; }
.psub-all { border-bottom: 1px solid rgba(246, 247, 251, 0.12); }
.psub-all a { font-weight: 600; }
/* The panel hangs from the header bar, right-aligned, so it never runs off-screen. */
.site-header .bar { position: relative; }
.desk .has-psub { position: static; }
.desk .psub-list {
  position: absolute;
  right: 0;
  top: calc(100% - 4px);
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 8px;
  width: min(760px, 100%);
  padding: 8px;
  background: var(--sb-midnight);
  border: 1px solid rgba(246, 247, 251, 0.16);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.desk .psub-list .psub-all { grid-column: 1 / -1; }
.desk .psub-list a { display: flex; border-radius: 10px; }
.mob nav { max-height: calc(100vh - var(--header-h) - 12px); max-height: calc(100dvh - var(--header-h) - 12px); overflow-y: auto; overscroll-behavior: contain; min-width: min(350px, calc(100vw - 40px)); }
.mob .psub > summary { display: flex; width: 100%; justify-content: space-between; border-radius: 10px; }
.mob .psub-list { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px 6px; margin-left: 8px; border-left: 1px solid rgba(246, 247, 251, 0.16); }
.pb {
  flex: none;
  display: inline-flex;
  align-items: center;
  font-family: var(--sb-font-head);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sb-saffron);
  color: var(--sb-midnight);
}
.pb-beta { background: #E7E4FF; color: #3A2DB8; }
.pb-dev, .pb-region { background: var(--sb-cloud); color: var(--sb-midnight); box-shadow: inset 0 0 0 1px var(--sb-midnight); }
.site-header .pb-dev, .site-header .pb-region { box-shadow: none; }

.pgrid { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.pcard { background: var(--sb-white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: calc(var(--header-h) + 12px); }
.pcard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.pkick { color: var(--sb-slate); font-size: 0.88rem; }
.pcard h2, .pcard h3 { font-size: 1.15rem; font-weight: 600; margin: 4px 0 0; }
.pline { color: var(--sb-slate); margin: 0; }
.plinks { margin: auto 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.plinks .more, .pmore .more { min-height: 44px; display: inline-flex; align-items: center; }
.ptry { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ptry a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.92rem; }
.ptry a:hover { border-color: var(--sb-violet-deep); }
.pmore { margin: 14px 0 0; }
.pquote { margin: 28px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.products-hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.products-mark { display: none; }
.products-mark img { width: 112px; height: auto; }
@media (min-width: 720px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-hero-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .products-mark { display: block; }
  .pcard-wide { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pgrid-page { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pgrid-page > .pcard { grid-column: span 2; }
  .pgrid-page > .pcard-half { grid-column: span 3; }
  .pgrid-page > .pcard-wide { grid-column: 1 / -1; }
}
/* Tap targets of at least 44px: header logo, carousel dots, video studio breadcrumb */
.site-header .brand { min-height: 44px; }
.cf-dots { gap: 0; }
.cf-dots button { width: 44px; }
/* Ops recheck R2: arrows never shrink; on small screens the dots narrow to 36px (still 44px tall). */
.cf-prev, .cf-next { flex: 0 0 44px; width: 44px; height: 44px; }
@media (max-width: 480px) { .cf-dots { gap: 0; } .cf-dots button { width: 36px; } }
/* Ops recheck R3: two studio builds (Niryat hidden) sit in two columns, no empty third slot. */
@media (min-width: 720px) { #builds .build-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Ops recheck R4: /products/ Home crumb 44px wide. */
.products-hero .crumbs a { min-width: 44px; }
/* Ops recheck R5: shorter video studio kicker on small screens, so it shares a line with the Beta pill. */
.pl-short { display: none; }
@media (max-width: 480px) { .pl-long { display: none; } .pl-short { display: inline; } }
@media (max-width: 380px) { .ch-pill-row .status-pill { letter-spacing: 0.02em; } .ch-pill-row .pb { margin-right: 4px; } }
/* Ops recheck R6: all footer links fit one row at wide screens. */
@media (min-width: 1100px) { .footer-links { gap: 4px 0; } }
.chal .ch-hero .crumbs a { min-height: 44px; min-width: 44px; }
.chal .ch-hero .crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.ch-pill-row .pb { margin-right: 6px; vertical-align: middle; }

.pay [hidden] { display: none !important; }
.pay-card { background: var(--sb-cloud); border: 1px solid rgba(11, 16, 51, 0.1); border-radius: 18px; padding: 24px; margin: 0 0 20px; }
.pay-card h2 { margin-top: 0; }
.pay-mark { display: block; margin: 0 0 12px; }
.pay-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.pay-dl dt { font-size: 0.85rem; color: var(--sb-slate); text-transform: uppercase; letter-spacing: 0.06em; }
.pay-dl dd { margin: 4px 0 0; font-family: var(--sb-font-head); font-weight: 600; overflow-wrap: anywhere; }
.pay-amt { font-size: 1.6rem; }
.pay-qr { display: block; width: 264px; max-width: 100%; height: auto; margin: 12px 0; border-radius: 12px; border: 1px solid rgba(11, 16, 51, 0.15); }
.pay-vpa { font-size: 0.95rem; color: var(--sb-slate); overflow-wrap: anywhere; }
.pay-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.pay-btn.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; filter: grayscale(1); }
.pay-off { font-size: 0.92rem; color: var(--sb-slate); margin: 4px 0; }
.pay-note { font-size: 0.95rem; color: var(--sb-slate); }
.pay-alert { background: #FFF4E0; border-left: 4px solid var(--sb-saffron); padding: 12px 16px; border-radius: 8px; }
.pay-legal { font-size: 0.92rem; color: var(--sb-slate); margin-top: 8px; }
.refund h2 { font-size: 1.25rem; margin-top: 28px; }
.refund ul { padding-left: 1.2em; }
.refund li { margin: 6px 0; }

.flagpage .crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.pay-hero .shell { max-width: 760px; }
body:has(main.flagpage) { display: flex; flex-direction: column; min-height: 100vh; }
body:has(main.flagpage) > main { flex: 1 0 auto; }
.site-header .bar > .desk + .mob { margin-left: auto; }
.legal.flagpage .crumbs a { color: var(--sb-violet-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal.flagpage .crumbs a:hover { color: var(--sb-midnight); }
.legal.flagpage .crumbs li:not(:last-child)::after { color: var(--sb-slate); }
