/* Brand pages and the door transition. Every animation starts quick and ends slowly. */
:root { --out: cubic-bezier(.16, .84, .3, 1); }

/* Door burst on the home page */
.burst {
  position: fixed; z-index: 200; background: var(--bg); overflow: hidden;
  display: grid; place-items: center; border-radius: 28px;
  transition: top .9s var(--out), left .9s var(--out), width .9s var(--out), height .9s var(--out), border-radius .9s var(--out);
}
.burst .plogo { transform: scale(.9); opacity: .0; transition: transform .9s var(--out), opacity .5s var(--out); }
.burst.open { border-radius: 0; }
.burst.open .plogo { transform: scale(1.6); opacity: 1; }
.burst .ring { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; border: 2px solid var(--accent2); opacity: .7; transform: scale(0); transition: transform 1.2s var(--out), opacity 1.2s var(--out); }
.burst.open .ring { transform: scale(90); opacity: 0; }
.burst .ring.r2 { border-color: var(--accent); transition-delay: .12s; }
.doors.leaving .door:not(.chosen) { opacity: 0; transition: opacity .5s var(--out); }

/* Curtain that opens each brand page */
.curtain { position: fixed; inset: 0; z-index: 300; display: flex; pointer-events: none; }
.curtain i { flex: 1; background: var(--bg); transform-origin: top; transition: transform 1s var(--out); }
.curtain i:nth-child(even) { background: var(--surface2); }
.curtain .curtain-mark { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .6s var(--out), transform 1s var(--out); }
.curtain .plogo { transform: scale(1.25); }
.curtain.go i { transform: scaleY(0); }
.curtain.go .curtain-mark { opacity: 0; transform: translateY(-30px) scale(.9); }
.curtain.gone { display: none; }

/* Progress bar */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent2), var(--accent), var(--lg-h2)); }

/* Brand hero */
.brand-page .top { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.bhero { position: relative; min-height: calc(100vh - 66px); display: grid; align-items: center; overflow: hidden; background: var(--bg); color: var(--ink); padding: 40px 0 90px; }
.bhero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.spot { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 40%), color-mix(in srgb, var(--accent2) 22%, transparent), transparent 60%); }
.bhero-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.back { position: absolute; z-index: 2; top: 22px; left: max(16px, calc(50% - 560px)); text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.back:hover { color: var(--accent); }
.big { font-size: clamp(56px, 11vw, 132px) !important; line-height: 1; margin: 6px 0 4px; }
.bhero-tag { font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); color: var(--accent); margin: 10px 0 0; }
.bhero .lead { margin: 14px auto 28px; text-align: center; }
.bhero .cta-row { justify-content: center; }

/* Staged entrance after the curtain */
.rise { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1.1s var(--out), transform 1.1s var(--out), filter 1.1s var(--out); transition-delay: calc(var(--d, 0) * 1ms); }
.ready .rise { opacity: 1; transform: none; filter: none; }
[data-letters] .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(6deg); filter: blur(8px);
  transition: opacity 1s var(--out), transform 1.1s var(--out), filter 1s var(--out); transition-delay: calc(var(--i) * 55ms + var(--d0, 300ms)); }
.ready [data-letters] .ch { opacity: 1; transform: none; filter: none; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent2); animation: cue 1.8s var(--out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }

/* Section basics on brand pages */
.bsec { background: var(--bg); color: var(--ink); position: relative; overflow: hidden; }
.bsec h2 { color: var(--heading); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Tilt cards */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1000px; }
.tcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--out), box-shadow .8s var(--out); transform-style: preserve-3d; overflow: hidden; }
.tcard:hover { box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--accent) 45%, transparent); }
.tcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 0%), color-mix(in srgb, var(--accent2) 12%, transparent), transparent 60%); opacity: 0; transition: opacity .6s var(--out); }
.tcard:hover::after { opacity: 1; }
.tcard h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: 0; margin: 14px 0 6px; }
.tcard p { margin: 0; color: var(--muted); font-size: 15px; }
.blob { width: 46px; height: 46px; border-radius: 14px; position: relative; display: grid; place-items: center; }
.blob::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c, var(--accent2)); opacity: .2; }
.blob i { width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--accent2)); animation: pulse 2.6s var(--out) infinite; animation-delay: var(--pd, 0s); }
@keyframes pulse { 0% { transform: scale(.7); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c, #888) 50%, transparent); } 70% { transform: scale(1); box-shadow: 0 0 0 14px transparent; } 100% { transform: scale(.7); } }

/* Stagger children on reveal */
[data-stagger] > * { opacity: 0; transform: translateY(30px) scale(.97); transition: opacity 1s var(--out), transform 1s var(--out); transition-delay: calc(var(--si, 0) * 90ms); }
[data-stagger].in > * { opacity: 1; transform: none; }

/* Glowing price card */
.glow { position: relative; border-radius: 26px; padding: 2px; overflow: hidden; max-width: 560px; margin: 0 auto; }
.glow::before { content: ""; position: absolute; inset: -60%; background: conic-gradient(from 0deg, var(--accent2), var(--accent), var(--lg-h2), var(--lg-core), var(--accent2)); animation: spin 6s linear infinite; }
.glow > div { position: relative; background: var(--surface); border-radius: 24px; padding: 36px; text-align: center; }
@keyframes spin { to { transform: rotate(1turn); } }
.price-big { font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); color: var(--heading); line-height: 1.05; margin: 8px 0; }
.price-sub { color: var(--muted); margin: 0 0 22px; }

/* Particles from buttons */
.spark { position: fixed; z-index: 400; width: 8px; height: 8px; margin: -4px; border-radius: 50%; pointer-events: none; transition: transform .9s var(--out), opacity .9s var(--out); }

/* Marquee */
.marquee { display: flex; overflow: hidden; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 14px; flex: none; animation: slide 36s linear infinite; }
.marquee.rev .track { animation-direction: reverse; }
.marquee span { flex: none; padding: 12px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--accent); white-space: nowrap; }
@keyframes slide { to { transform: translateX(calc(-100% - 14px)); } }

/* Scroll scenes: --p goes 0 to 1 while the section scrolls past */
.scene { height: 320vh; position: relative; background: var(--bg); }
.sticky { position: sticky; top: 66px; height: calc(100vh - 66px); display: grid; align-items: center; overflow: hidden; }
.scene-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.steps-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps-list li { padding: 14px 18px; border-radius: 14px; border: 1px solid transparent; color: var(--muted); transition: all .8s var(--out); }
.steps-list li b { display: block; color: var(--muted); font-size: 18px; transition: color .8s var(--out); }
.steps-list li.on { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); transform: translateX(8px); }
.steps-list li.on b { color: var(--accent); }

@media (max-width: 900px) {
  .tgrid { grid-template-columns: 1fr 1fr; }
  .scene-grid { grid-template-columns: 1fr; gap: 16px; }
  .scene { height: 280vh; }
  .steps-list { margin-top: 12px; gap: 6px; }
  .steps-list li { padding: 8px 12px; font-size: 14px; }
  .steps-list li:not(.on) span { display: none; }
}
@media (max-width: 620px) {
  .tgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  .rise, [data-letters] .ch, [data-stagger] > * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .glow::before, .marquee .track, .scroll-cue span, .blob i { animation: none; }
  .burst { transition: none; }
}

/* ---------- Varelyno ---------- */
.vx-mark { width: clamp(110px, 16vw, 170px); height: auto; overflow: visible; margin-top: 10px; }
.vx-mark .vl { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; transition: stroke-dashoffset 1s var(--out); transition-delay: calc(var(--d) * 1ms); }
.vx-mark .vring { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .45; transition: stroke-dashoffset 1.6s var(--out) .8s; }
.vx-mark .vhub { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 1s var(--out) .15s; }
.vx-mark .vn { transform-box: fill-box; transform-origin: center; opacity: 0; transform: translate(var(--fx), var(--fy)) scale(.2);
  transition: transform 1.2s var(--out), opacity .8s var(--out); transition-delay: calc(var(--d) * 1ms); }
.vx-mark .vf { animation: vfloat 5s ease-in-out infinite; animation-delay: var(--fd); }
@keyframes vfloat { 50% { transform: translate(0, -1.4px); } }
.ready .vx-mark .vl, .ready .vx-mark .vring { stroke-dashoffset: 0; }
.ready .vx-mark .vhub { transform: none; }
.ready .vx-mark .vn { opacity: 1; transform: none; }

.vx-net { width: 100%; max-width: 520px; justify-self: center; overflow: visible; }
.vx-net text { font: 700 15px var(--sans); fill: var(--heading); text-anchor: middle; opacity: 0; transition: opacity .8s var(--out); }
.vx-net .vx-line { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--k, 0)); opacity: .55; }
.vx-net .vx-node { fill: var(--c); transform-box: fill-box; transform-origin: center; transform: scale(var(--k, 0)); }
.vx-net .vx-halo { fill: var(--c); opacity: .12; transform-box: fill-box; transform-origin: center; transform: scale(var(--k, 0)); animation: halo 3s var(--out) infinite; }
.vx-net .vx-sat { fill: var(--c); opacity: calc(var(--k, 0) * .55); transform-box: fill-box; transform-origin: center; transform: scale(var(--k, 0)); }
.vx-net .vx-g.on text { opacity: 1; }
.vx-net .vx-hubring { fill: none; stroke: #5FB0F0; stroke-width: 2; opacity: .25; transform-box: fill-box; transform-origin: center; animation: hubring 3s var(--out) infinite; }
@keyframes halo { 0% { opacity: .2; } 100% { opacity: .06; } }
@keyframes hubring { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Teachvara ---------- */
.tx-tree { width: clamp(170px, 24vw, 250px); aspect-ratio: 1; margin-top: 4px; }
.tx-tree svg { width: 100%; height: 100%; overflow: visible; }
.tx-tree .br { transition: stroke-dashoffset 1.2s var(--out); }
.tx-tree .lf { transform: scale(0); transition: transform .9s var(--out); }
.tx-tree.grown .lf { transform: none; }
.tx-tree .motto, .tx-tree .sg, .tx-tree .k, .tx-tree .sp { opacity: 0; transition: opacity 1.2s var(--out); }
.tx-tree.book .k, .tx-tree.book .sp { opacity: 1; }
.tx-tree.grown .motto, .tx-tree.grown .sg { opacity: 1; transition-delay: 1.4s; }
.tw.big { font-size: clamp(40px, 8vw, 96px) !important; letter-spacing: .12em; }
.tx-leaves { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tx-leaves b { position: absolute; top: -40px; width: 18px; height: 9px; border-radius: 0 100% 0 100%; opacity: .55; animation: fall linear infinite; }
@keyframes fall {
  0% { transform: translate(0, -40px) rotate(0deg); }
  25% { transform: translate(40px, 25vh) rotate(90deg); }
  50% { transform: translate(-20px, 50vh) rotate(180deg); }
  75% { transform: translate(35px, 75vh) rotate(270deg); }
  100% { transform: translate(0, 105vh) rotate(360deg); }
}
.vine-wrap { position: relative; max-width: 760px; margin: 0 auto; }
.vine { position: absolute; left: 28px; top: 0; bottom: 0; width: 4px; border-radius: 4px; background: var(--line); }
.vine::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(var(--lg-h2), var(--accent)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.tx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.tx-steps li { position: relative; padding: 18px 22px 18px 76px; border-radius: 18px; color: var(--muted); transition: all .9s var(--out); }
.tx-steps li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line); transition: all .8s var(--out); }
.tx-steps li::after { content: ""; position: absolute; left: 42px; top: 14px; width: 22px; height: 11px; border-radius: 0 100% 0 100%; background: var(--lg-h2); transform: rotate(-30deg) scale(0); transform-origin: left center; transition: transform .9s var(--out) .15s; }
.tx-steps li b { display: block; font-family: var(--serif); font-size: 22px; color: var(--muted); transition: color .8s var(--out); }
.tx-steps li.on { background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.tx-steps li.on::before { background: var(--accent); border-color: var(--accent2); }
.tx-steps li.on::after { transform: rotate(-30deg) scale(1); }
.tx-steps li.on b { color: var(--heading); }
.tx-scene { height: 260vh; }
.tx-scene .sticky { align-items: center; }
.ring-wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; max-width: 820px; margin: 0 auto; }
.cpd-ring { width: 220px; height: 220px; position: relative; }
.cpd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cpd-ring .trk { fill: none; stroke: var(--line); stroke-width: 14; }
.cpd-ring .val { fill: none; stroke: var(--accent); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--out); }
.cpd-ring.in .val { stroke-dashoffset: .25; }
.cpd-ring .mid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.cpd-ring .mid b { font-family: var(--serif); font-size: 46px; color: var(--heading); line-height: 1; display: block; }
.cpd-ring .mid span { color: var(--muted); font-size: 13px; }
.plans3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plans3 .tcard { text-align: left; }
.plans3 .amt { font-family: var(--serif); font-size: 30px; color: var(--heading); margin: 6px 0 2px; }
.gold-rule { height: 2px; background: var(--accent2); width: 0; margin: 18px auto 0; transition: width 1.6s var(--out); }
.in .gold-rule, .gold-rule.in { width: min(320px, 70%); }
@media (max-width: 900px) { .plans3 { grid-template-columns: 1fr; } .ring-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
@media (prefers-reduced-motion: reduce) {
  .vx-mark .vl, .vx-mark .vring { stroke-dashoffset: 0; } .vx-mark .vhub, .vx-mark .vn { transform: none; opacity: 1; }
  .tx-leaves { display: none; } .tx-tree .lf { transform: none; } .tx-tree .motto, .tx-tree .sg, .tx-tree .k, .tx-tree .sp { opacity: 1; }
  .vx-net .vx-halo, .vx-net .vx-hubring, .vx-mark .vf { animation: none; }
}

/* Richer colour washes behind each brand hero */
.w-v.bhero { background:
  radial-gradient(900px 600px at 12% 18%, color-mix(in srgb, #e51a73 13%, transparent), transparent 60%),
  radial-gradient(800px 600px at 88% 22%, color-mix(in srgb, #00a9a8 15%, transparent), transparent 60%),
  radial-gradient(900px 700px at 50% 100%, color-mix(in srgb, #1e86c8 16%, transparent), transparent 65%),
  radial-gradient(600px 400px at 80% 85%, color-mix(in srgb, #efb332 14%, transparent), transparent 60%), var(--bg); }
.w-t.bhero { background:
  radial-gradient(800px 520px at 50% 30%, color-mix(in srgb, #E8B74F 22%, transparent), transparent 62%),
  radial-gradient(900px 700px at 0% 100%, color-mix(in srgb, #2E7D4F 14%, transparent), transparent 60%),
  radial-gradient(800px 600px at 100% 90%, color-mix(in srgb, #7A9A3A 14%, transparent), transparent 60%), var(--bg); }
.w-v.bsec:nth-of-type(even), .w-v.scene { background: linear-gradient(180deg, var(--bg), color-mix(in srgb, #1e86c8 7%, var(--bg))); }
.w-t.bsec:nth-of-type(even), .w-t.scene { background: linear-gradient(180deg, var(--bg), color-mix(in srgb, #7A9A3A 9%, var(--bg))); }

/* Teachvara tree: dark colours follow the page theme, not only the computer setting */
.tx-tree.tx-tree .br{stroke:#C9A27A}.tx-tree.tx-tree .l1{fill:#6FBF8A}.tx-tree.tx-tree .l3{fill:#3E9A62}.tx-tree.tx-tree .k{fill:#E9E2CF}.tx-tree.tx-tree .sp{stroke:#15231B}.tx-tree.tx-tree .motto{fill:#E9E2CF}

/* Varelyno: circles that mean something */
.vx-circles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; text-align: center; }
.vx-circles h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; letter-spacing: 0; margin: 22px 0 6px; }
.vx-circles p { color: var(--muted); margin: 0; font-size: 15px; }
@property --f { syntax: "<number>"; inherits: false; initial-value: 0; }
.vc { --s: 120px; width: var(--s); height: var(--s); margin: 0 auto; border-radius: 50%; position: relative; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--f) * 1turn), color-mix(in srgb, var(--c) 18%, transparent) 0); transition: --f 2s var(--out); }
.in .vc { --f: var(--fill); }
.vc span { width: 74%; height: 74%; border-radius: 50%; background: var(--c); box-shadow: inset 0 -8px 16px rgba(0,0,0,.12); }
.vc-big { --s: 150px; animation: grow 4s var(--out) infinite; }
@keyframes grow { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.04); } }
.vc-warm::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: -16px; height: 34px; border-radius: 50%; background: #ff8a3c; filter: blur(14px); opacity: .55; animation: warm 2.4s ease-in-out infinite; }
@keyframes warm { 50% { opacity: .9; transform: scale(1.1); } }
.vc-quiet { animation: quiet 5s ease-in-out infinite; }
@keyframes quiet { 0%, 100% { opacity: .95; filter: saturate(1); } 50% { opacity: .38; filter: saturate(.25); } }

/* Varelyno: Work and Personal */
.vx-lives { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.vx-switch { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.vx-switch button { position: relative; z-index: 1; border: 0; background: none; font: 600 15px var(--sans); padding: 10px 26px; border-radius: 999px; cursor: pointer; color: var(--muted); transition: color .6s var(--out); }
.vx-switch button[aria-selected="true"] { color: #fff; }
.vx-switch i { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: #0e67b3; transition: transform .8s var(--out), background .8s var(--out); }
.vx-switch.personal i { transform: translateX(100%); background: #e51a73; }
.vx-worlds { color: var(--muted); font-size: 15px; margin-top: 18px; }
.vx-life { position: relative; height: 300px; perspective: 1200px; }
.vx-life-card { position: absolute; inset: 0; border-radius: 26px; padding: 34px; color: #fff; overflow: hidden; transition: transform 1s var(--out), opacity 1s var(--out); }
.vx-life-card h3 { color: #fff; font-size: 34px; }
.vx-life-card p { color: rgba(255,255,255,.9); max-width: 30ch; }
.vx-life-card.work { background: linear-gradient(135deg, #0e67b3, #00a9a8); }
.vx-life-card.personal { background: linear-gradient(135deg, #e51a73, #efb332); }
.vx-life[data-life="work"] .personal, .vx-life[data-life="personal"] .work { opacity: 0; transform: rotateY(-25deg) translateX(40px) scale(.92); pointer-events: none; }
.vx-orbs b { position: absolute; border-radius: 50%; background: rgba(255,255,255,.22); animation: orb 7s ease-in-out infinite; }
.vx-orbs b:nth-child(1) { width: 90px; height: 90px; right: 30px; bottom: 30px; }
.vx-orbs b:nth-child(2) { width: 44px; height: 44px; right: 150px; bottom: 70px; animation-delay: -2s; }
.vx-orbs b:nth-child(3) { width: 26px; height: 26px; right: 90px; bottom: 150px; animation-delay: -4s; }
.vx-orbs b:nth-child(4) { width: 60px; height: 60px; right: 210px; bottom: 20px; animation-delay: -1s; }
.vx-orbs b:nth-child(5) { width: 18px; height: 18px; right: 40px; bottom: 150px; animation-delay: -3s; }
@keyframes orb { 50% { transform: translate(-10px, -14px); } }

/* Varelyno: run chart */
.vx-qi { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.vx-chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.vx-chart svg { width: 100%; height: auto; overflow: visible; }
.vx-chart figcaption { color: var(--muted); font-size: 13px; text-align: right; }
.vx-chart .axis { stroke: var(--line); stroke-width: 2; }
.vx-chart .median { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: .7; }
.vx-chart .mlabel { font: 600 11px var(--sans); fill: var(--muted); text-anchor: end; }
.vx-chart .run { fill: none; stroke: #5FB0F0; stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--out); }
.vx-chart .pts circle { fill: #5FB0F0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--out); }
.vx-chart .pts circle.shift { fill: #e51a73; }
.vx-chart.in .run { stroke-dashoffset: 0; }
.vx-chart.in .pts circle { transform: scale(1); }
.vx-signal { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.vx-signal span { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #e51a73; animation: sig 1.8s var(--out) infinite; }
@keyframes sig { 0% { box-shadow: 0 0 0 0 rgba(229,26,115,.5); } 70% { box-shadow: 0 0 0 12px transparent; } }

/* Varelyno: maker's note */
.vx-quote { max-width: 820px; margin: 0 auto; text-align: center; }
.vx-quote p { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 32px); line-height: 1.35; color: var(--heading); margin: 0; }
.vx-quote p::before { content: "\201C"; display: block; font-size: 80px; line-height: .6; color: #e51a73; margin-bottom: 18px; }
.vx-quote footer { margin-top: 20px; color: var(--muted); font-weight: 600; }

@media (max-width: 900px) { .vx-circles, .vx-lives, .vx-qi { grid-template-columns: 1fr; } .vx-life { height: 260px; } }
@media (prefers-reduced-motion: reduce) { .vc-big, .vc-quiet, .vc-warm::before, .vx-orbs b, .vx-signal span { animation: none; } .vx-chart .run { stroke-dashoffset: 0; } .vx-chart .pts circle { transform: none; } }

/* Teachvara: a grand round, counted */
.tx-round { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.tx-room { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.tx-seats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-bottom: 22px; }
.tx-seats i { aspect-ratio: 1; border-radius: 50%; background: var(--line); transition: background .6s var(--out), transform .6s var(--out); }
.tx-seats i.on { background: var(--accent); transform: scale(1.08); }
.tx-seats i.on:nth-child(3n) { background: #2E7D4F; }
.tx-seats i.on:nth-child(5n) { background: var(--accent2); }
.tx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.tx-stats b { display: block; font-family: var(--serif); font-size: 34px; color: var(--heading); line-height: 1.1; }
.tx-stats span { color: var(--muted); font-size: 13px; }

/* Teachvara: words that change */
.tx-swap { font-size: clamp(30px, 4.6vw, 52px); }
.tx-word { display: inline-block; color: var(--accent); border-bottom: 3px solid var(--accent2); transition: opacity .5s var(--out), transform .5s var(--out), filter .5s var(--out); }
.tx-word.out { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
.tx-word.in-start { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: none; }
.tx-small { border-bottom-width: 2px; }

/* Teachvara: your colours */
.tx-brand { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.tx-swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.tx-swatches button { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface); background: var(--sw); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .6s var(--out), box-shadow .6s var(--out); }
.tx-swatches button:hover { transform: scale(1.1); }
.tx-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--sw); transform: scale(1.12); }
@property --b { syntax: "<color>"; inherits: true; initial-value: #1E5631; }
.tx-preview { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: --b 1.1s var(--out); }
.tp-bar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--b); }
.tp-logo { width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--b) 40%, #fff); }
.tp-name { color: #fff; font-weight: 700; }
.tp-body { padding: 22px; display: grid; gap: 12px; background: color-mix(in srgb, var(--b) 5%, var(--surface)); }
.tp-h { height: 18px; width: 55%; border-radius: 8px; background: var(--b); opacity: .85; }
.tp-l { height: 10px; width: 90%; border-radius: 6px; background: color-mix(in srgb, var(--b) 18%, transparent); }
.tp-l.short { width: 60%; }
.tp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.tp-cards i { height: 64px; border-radius: 12px; background: color-mix(in srgb, var(--b) 12%, var(--surface)); border-top: 4px solid var(--b); }
.tp-btns { display: flex; gap: 10px; margin-top: 6px; }
.tp-btn { width: 110px; height: 34px; border-radius: 999px; background: var(--b); }
.tp-btn.ghost { background: transparent; border: 2px solid var(--b); }

@media (max-width: 900px) { .tx-round, .tx-brand { grid-template-columns: 1fr; } .tx-stats { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tx-word { transition: none; } .tx-preview { transition: none; } }

/* ---------- Polish pass 30 Oct ---------- */
/* A soft veil so the constellation never runs through the hero words */
.bhero-in { isolation: isolate; }
.w-v .bhero-in::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: min(980px, 110vw); height: 78%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 92%, transparent) 55%, transparent); pointer-events: none; }
/* Circles: same height slot so the captions line up */
.vc { margin: calc((170px - var(--s)) / 2) auto; }
.vx-circles h3 { margin-top: 8px; }
/* Price card: room for the heading on one line */
.glow { max-width: 680px; }
.price-big { font-size: clamp(34px, 4.6vw, 54px); }
/* Shorter scroll scene */
.scene { height: 250vh; }

/* Seamless product worlds: glows tuned for the deep backgrounds */
.w-v .vc span { box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .25); }
.w-v .vx-net circle[fill="#0e67b3"] { fill: #1E86C8; }
.w-t .tx-leaves b { opacity: .7; }
.w-t .tp-body { background: color-mix(in srgb, var(--b) 10%, var(--surface)); }
.marquee span { background: var(--surface); }
