/* Vibe Editing — course page. Builds on styles.css (same tokens, buttons, nav, faq, footer).
   Adds: hero with sales video, live terminal, before/after, curriculum, offer card, mobile buy bar. */

.ve { --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace; }
.ve-brand { font-family: var(--display); font-weight: 700; font-size: 1.7rem; line-height: 1; letter-spacing: .01em; }

/* reveal on scroll (vibe.js adds .in) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* hero plays on load (no observer), so the first screen from an ad is never blank */
[data-hero] { animation: ve-in .9s var(--ease-out) both; }
[data-hero]:nth-child(2) { animation-delay: .08s; } [data-hero]:nth-child(3) { animation-delay: .16s; } [data-hero]:nth-child(4) { animation-delay: .24s; }
[data-hero]:nth-child(5) { animation-delay: .32s; } [data-hero]:nth-child(6) { animation-delay: .4s; }
@keyframes ve-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } [data-hero] { animation: none; } }

.ve-sec { padding-block: clamp(84px, 11vw, 150px); position: relative; }
.ve-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--accent-text); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.ve-sec .h2 + .lede { margin-top: 22px; }

/* ---------- HERO ---------- */
.ve-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(120px, 14vw, 160px) 0 clamp(56px, 7vw, 90px); }
.ve-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ve-orb { position: absolute; top: -18%; left: 50%; width: min(1100px, 130vw); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124,92,255,.34), rgba(124,92,255,.08) 55%, transparent 72%); filter: blur(10px); animation: orb 14s ease-in-out infinite alternate; }
@keyframes orb { to { transform: translateY(40px) scale(1.06); } }
.ve-gridlines { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 55% at 50% 30%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 10%, transparent 75%); }
.ve-hero__inner { display: grid; justify-items: center; text-align: center; gap: 26px; }
.ve-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--muted); font-size: .92rem; font-weight: 500; }
.ve-dot { width: 8px; height: 8px; border-radius: 50%; background: #5cffb0; box-shadow: 0 0 0 0 rgba(92,255,176,.6); animation: ping 2s ease-out infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 10px rgba(92,255,176,0); } }
.ve-hero__title { display: grid; justify-items: center; gap: 6px; margin: 0; }
.ve-word { font-family: var(--display); font-weight: 700; line-height: 1; padding: 0 .06em .1em; margin-bottom: -.14em; font-size: clamp(5.4rem, 17vw, 13.5rem); letter-spacing: .005em;
  background: linear-gradient(180deg, #fff 0%, #e4dcff 45%, var(--accent-hi) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 18px 50px rgba(124,92,255,.35)); }
.ve-hero__he { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.ve-hero__sub { max-width: 46ch; color: var(--muted); font-size: clamp(1.06rem, 1.5vw, 1.25rem); text-wrap: pretty; }

.ve-vsl { width: min(100%, 880px); margin-top: 8px; }
.ve-vsl__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-panel); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: 0 50px 120px -50px rgba(124,92,255,.7), 0 0 0 8px rgba(255,255,255,.025); }
.ve-vsl__frame { background: radial-gradient(55% 80% at 28% 60%, rgba(124,92,255,.45), transparent 70%), radial-gradient(40% 50% at 85% 20%, rgba(154,130,255,.18), transparent 70%), #120e1b; }
.ve-vsl__frame::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(70% 80% at 30% 60%, #000, transparent 80%); -webkit-mask-image: radial-gradient(70% 80% at 30% 60%, #000, transparent 80%); }
.ve-vsl__frame video { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover; background: #000; }
.ve-vsl__art { position: absolute; bottom: 0; left: 0; width: 52%; height: 100%; }
.ve-vsl__art img { position: absolute; bottom: 0; left: 0; height: 97%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 22%), linear-gradient(to left, transparent 0%, #000 16%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to top, transparent 0%, #000 22%), linear-gradient(to left, transparent 0%, #000 16%); mask-composite: intersect; }
.ve-vsl__ring { position: absolute; top: 4%; left: 14%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(154,130,255,.55), rgba(124,92,255,.15) 60%, transparent); filter: blur(10px); }
.ve-vsl__word { position: absolute; inset-inline-start: 7%; top: 50%; translate: 0 -50%; display: grid; justify-items: start; gap: 8px; text-align: start; }
.ve-vsl__word span { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1; padding-bottom: .08em;
  background: linear-gradient(180deg, #fff, var(--accent-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ve-vsl__word small { color: var(--muted); font-size: clamp(.9rem, 1.5vw, 1.15rem); font-weight: 500; }
.ve-vsl__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(11,9,16,.8), transparent 30%); }
.ve-vsl__frame.is-playing::after { display: none; }
.ve-vsl__play { position: absolute; z-index: 2; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 30px; box-shadow: 0 0 0 12px rgba(124,92,255,.22), 0 20px 50px -10px rgba(124,92,255,.9); transition: scale .25s var(--ease-out), background-color .2s ease; }
.ve-vsl__play[hidden] { display: none; }
.ve-vsl__play svg { translate: -3px 0; }
.ve-vsl__play:hover { scale: 1.06; background: var(--accent-hi); }
.ve-vsl__cap { position: absolute; z-index: 2; bottom: 18px; inset-inline-start: 22px; font-size: .95rem; color: var(--muted); text-align: start; }
.ve-vsl__cap b { color: var(--fg); }
.ve-vsl__frame.is-playing .ve-vsl__cap { display: none; }

.ve-hero__cta { display: grid; justify-items: center; gap: 12px; }
.ve-hero__price { color: var(--muted); font-size: 1rem; }
.ve-hero__price s, .ve-bar s { color: var(--dim); }
.ve-hero__price b { color: var(--fg); font-size: 1.25rem; margin-inline: 4px; }

.ve-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 5vw, 64px); margin-top: 10px; }
.ve-trust li { display: grid; justify-items: center; }
.ve-trust b { font-family: var(--display); font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: .9; direction: ltr; }
.ve-trust span { color: var(--muted); font-size: .92rem; }

/* ---------- SHIFT ---------- */
.ve-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: clamp(36px, 5vw, 60px); }
.ve-vs__col { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--bg-2); }
.ve-vs__col header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ve-vs__tag { font-weight: 600; color: var(--muted); }
.ve-vs__num { font-family: var(--display); font-size: clamp(3rem, 5vw, 4.4rem); line-height: .85; }
.ve-vs__num small { font-family: var(--body); font-size: .95rem; font-weight: 500; color: var(--muted); }
.ve-vs__col ol { display: grid; gap: 12px; counter-reset: s; }
.ve-vs__col li { position: relative; padding-inline-start: 34px; color: var(--muted); counter-increment: s; }
.ve-vs__col li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; border: 1px solid var(--line-2); color: var(--dim); }
.ve-vs__col--old .ve-vs__num { color: var(--dim); }
.ve-vs__col--new { background: linear-gradient(160deg, rgba(124,92,255,.16), rgba(124,92,255,.03) 60%), var(--bg-2); border-color: rgba(154,130,255,.35); }
.ve-vs__col--new .ve-vs__tag, .ve-vs__col--new .ve-vs__num { color: var(--accent-text); }
.ve-vs__col--new li { color: var(--fg); }
.ve-vs__col--new li::before { background: var(--accent); border-color: transparent; color: #fff; }
.ve-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.ve-three li { padding: 22px 24px; border-radius: 22px; border: 1px solid var(--line); display: grid; gap: 4px; }
.ve-three b { font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--accent-text); }
.ve-three span { color: var(--muted); }

/* ---------- HOW / terminal ---------- */
.ve-studio { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; margin-top: clamp(36px, 5vw, 56px); align-items: stretch; }
.ve-studio .ve-term__body { min-height: 0; }

.ve-term { border-radius: 20px; overflow: hidden; background: #0d0a14; border: 1px solid var(--line-2); box-shadow: 0 50px 100px -40px rgba(0,0,0,.8), 0 0 80px -30px rgba(124,92,255,.45); font-family: var(--mono); font-size: .95rem; }
.ve-term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.ve-term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3150; }
.ve-term__bar i:first-child { background: #ff5f57; } .ve-term__bar i:nth-child(2) { background: #febc2e; } .ve-term__bar i:nth-child(3) { background: #28c840; }
.ve-term__bar span { margin-inline-start: auto; color: var(--dim); font-size: .8rem; }
.ve-term__body { padding: 22px; }
.ve-term__prompt { color: var(--fg); font-family: var(--body); font-size: 1.04rem; font-weight: 500; line-height: 1.55; padding: 14px 16px; border-radius: 12px; background: rgba(124,92,255,.1); border: 1px solid rgba(154,130,255,.25); min-height: 3.6em; }
.ve-term__caret { color: var(--accent-text); font-family: var(--mono); }
.ve-term__typed::after { content: ""; display: inline-block; width: 8px; height: 1.1em; margin-inline-start: 2px; vertical-align: -3px; background: var(--accent-hi); animation: blink 1s steps(1) infinite; }
.ve-term.is-done .ve-term__typed::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.ve-term__out { display: grid; gap: 12px; margin-top: 18px; font-family: var(--body); }
.ve-term__out li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); }
.ve-term__out li::before { content: "✓"; font-family: var(--mono); color: #5cffb0; flex: none; }
.ve-term__out li.is-info::before { content: "●"; color: var(--accent-text); font-size: .8em; }
.ve-term__out li.is-done { color: var(--fg); font-weight: 600; }
.ve-term__out li.is-done::before { content: "→"; color: var(--accent-text); }
.js .ve-term__out li { opacity: .18; transition: opacity .4s ease, color .4s ease; }
.js .ve-term__out li::before { opacity: 0; transition: opacity .3s ease; }
.js .ve-term__out li.on { opacity: 1; }
.js .ve-term__out li.on::before { opacity: 1; }

/* stage: a mini editor playing the real Moti demo. vibe.js sets s1..s8 + data-l as the clip reaches each step and drives the playhead */
.ve-stage { position: relative; border-radius: 20px; border: 1px solid var(--line-2); overflow: hidden; padding: 22px 22px 16px; display: grid; grid-template-rows: 1fr auto auto; gap: 16px;
  background: radial-gradient(70% 60% at 50% 35%, rgba(124,92,255,.22), transparent 70%), #0d0a14; }
.ve-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px;
  mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent); }
.ve-screens { position: relative; display: flex; justify-content: center; align-items: center; }
.ve-scr { position: relative; overflow: hidden; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 60px -20px rgba(124,92,255,.5); }
.ve-scr--v { height: 400px; aspect-ratio: 9 / 16; }
.ve-scr video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ve-badge { position: absolute; top: 10px; inset-inline-start: 10px; padding: 4px 10px; border-radius: 999px; background: #5cffb0; color: #06130c; font-size: .78rem; font-weight: 700; opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .4s var(--ease-out); }
.ve-stage.s8 .ve-badge { opacity: 1; transform: none; }
.ve-tl { position: relative; display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); direction: ltr; overflow: hidden; }
.ve-tl__row { display: flex; gap: 3px; height: 16px; }
.ve-tl__row i { border-radius: 4px; transition: opacity .4s ease, background-color .6s ease, clip-path .8s var(--ease-out); }
.ve-tl__row--txt i { height: 6px; align-self: center; background: repeating-linear-gradient(90deg, rgba(255,216,77,.75) 0 14px, transparent 14px 18px); opacity: 0; }
.ve-stage.s4 .ve-tl__row--txt i[style*="flex:5.2"] { opacity: 1; }
.ve-tl__row--v i { background: var(--accent); opacity: 0; }
.ve-tl__row--v i.log { background: #6b6578; }
.ve-tl__row--v i.br { background: #2fc1a8; }
.ve-tl__row--v i.mg { background: linear-gradient(90deg, #4fb4ff, #7c5cff); }
.ve-tl__row--v i.end { background: linear-gradient(90deg, var(--accent-hi), #fff); }
.ve-stage.s1 .ve-tl__row--v i { opacity: 1; }
.ve-tl__row--a i { flex: 1; background: rgba(92,255,176,.55); opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.ve-stage.s6 .ve-tl__row--a i { opacity: 1; clip-path: polygon(0 40%, 21% 40%, 23% 70%, 70% 70%, 72% 0, 100% 0, 100% 100%, 0 100%); }
.ve-tl__head { position: absolute; top: 4px; bottom: 4px; left: calc(10px + (100% - 20px) * var(--p, 0)); width: 2px; background: #fff; box-shadow: 0 0 10px #fff; opacity: 0; }
.ve-stage.s1 .ve-tl__head { opacity: 1; }
.ve-stage__label { position: relative; height: 1.4em; font-family: var(--mono); font-size: .85rem; color: var(--accent-text); text-align: center; }
.ve-stage__label span { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }
.ve-stage[data-l="0"] [data-l="0"], .ve-stage[data-l="1"] [data-l="1"], .ve-stage[data-l="2"] [data-l="2"], .ve-stage[data-l="3"] [data-l="3"], .ve-stage[data-l="4"] [data-l="4"],
.ve-stage[data-l="5"] [data-l="5"], .ve-stage[data-l="6"] [data-l="6"], .ve-stage[data-l="7"] [data-l="7"], .ve-stage[data-l="8"] [data-l="8"] { opacity: 1; }
.ve-stage[data-l="8"] .ve-stage__label { color: #5cffb0; }

/* ---------- WHO ---------- */
.ve-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.ve-card { padding: 26px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); display: grid; align-content: start; gap: 12px; transition: border-color .3s ease, translate .4s var(--ease-out); }
.ve-card:hover { border-color: rgba(154,130,255,.4); translate: 0 -4px; }
.ve-card__n { font-family: var(--mono); font-size: .82rem; color: var(--accent-text); }
.ve-card h3 { font-family: var(--display); font-size: 2.3rem; line-height: .95; font-weight: 700; }
.ve-card p { color: var(--muted); font-size: .98rem; }

/* ---------- DIRECTOR ---------- */
.ve-director__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.ve-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 14px; align-items: center; }
.ve-split__col { padding: 24px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--bg-2); }
.ve-split__col--you { border-color: rgba(154,130,255,.4); background: linear-gradient(160deg, rgba(124,92,255,.18), transparent 70%), var(--bg-2); }
.ve-split__h { font-weight: 700; margin-bottom: 14px; }
.ve-split__col--you .ve-split__h { color: #fff; font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.ve-split__col--you { position: relative; padding: 30px; isolation: isolate; border-color: transparent; box-shadow: 0 0 0 1px rgba(154,130,255,.5), 0 30px 90px -20px rgba(124,92,255,.75), inset 0 0 60px -20px rgba(154,130,255,.5); }
.ve-split__col--you::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, #b8a8ff 75%, #fff 80%, #7c5cff 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: ang 4s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ang { to { --ang: 360deg; } }
.ve-split__col--you li { display: grid; gap: 0; font-size: 1.02rem; }
.ve-split__col--you li b { color: var(--accent-text); font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.ve-split__col:not(.ve-split__col--you) { opacity: .75; }
.ve-split ul { display: grid; gap: 10px; color: var(--muted); font-size: .98rem; }
.ve-split__col--you ul { color: var(--fg); }

/* ---------- CURRICULUM ---------- */
.ve-parts { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.ve-part { border-bottom: 1px solid var(--line); }
.ve-part summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(14px, 3vw, 32px); padding: 24px 0; }
.ve-part summary::-webkit-details-marker { display: none; }
.ve-part__n { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4rem); line-height: .8; color: var(--dim); transition: color .3s ease; }
.ve-part[open] .ve-part__n, .ve-part summary:hover .ve-part__n { color: var(--accent-text); }
.ve-part__t { display: grid; gap: 2px; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; }
.ve-part__t small { font-size: .95rem; font-weight: 400; color: var(--muted); }
.ve-part__c { color: var(--dim); font-size: .92rem; white-space: nowrap; }
.ve-part summary i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 16px; transition: rotate .35s var(--ease-out), background-color .2s ease; }
.ve-part[open] summary i { rotate: 45deg; background: var(--accent); border-color: transparent; }
.ve-part ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; padding: 0 0 28px; padding-inline-start: calc(clamp(2.6rem, 5vw, 4rem) * .62 + clamp(14px, 3vw, 32px)); counter-reset: l; }
.ve-part li { counter-increment: l; color: var(--muted); display: flex; gap: 12px; }
.ve-part li::before { content: counter(l, decimal-leading-zero); font-family: var(--mono); font-size: .8rem; color: var(--dim); padding-top: 4px; }
.ve-part::details-content { transition: height .45s var(--ease-out), content-visibility .45s allow-discrete; height: 0; overflow: clip; }
.ve-part[open]::details-content { height: auto; }
html { interpolate-size: allow-keywords; }

/* ---------- THREE WAYS ---------- */
.ve-ways__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.ve-way { padding: 28px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--bg-2); display: grid; align-content: start; gap: 12px; }
.ve-way__tag { font-size: .88rem; font-weight: 600; color: var(--dim); }
.ve-way h3 { font-family: var(--display); font-size: 2.4rem; line-height: .95; }
.ve-way p { color: var(--muted); }
.ve-way--best { border-color: var(--accent-hi); background: linear-gradient(165deg, rgba(124,92,255,.24), rgba(124,92,255,.04) 65%), var(--bg-2); box-shadow: 0 40px 90px -45px rgba(124,92,255,.8); }
.ve-way--best .ve-way__tag { color: var(--accent-text); }
.ve-way--best p { color: var(--fg); }

/* ---------- WORK ---------- */
.ve-work__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
.ve-tile { display: grid; gap: 12px; }
.ve-tile__media { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-media); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.ve-tile__media video, .ve-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ve-tile.is-soon .ve-tile__media { background: radial-gradient(80% 60% at 50% 30%, rgba(124,92,255,.28), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--bg-2)); }
.ve-tile.is-soon .ve-tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 2.8s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.ve-tile figcaption { font-weight: 600; color: var(--muted); }

/* ---------- INSTRUCTOR ---------- */
.ve-me__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.ve-me__media { position: relative; max-width: 360px; justify-self: center; width: 100%; }
.ve-me__media img { position: relative; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 22%); mask-image: linear-gradient(to top, transparent 0%, #000 22%); }
.ve-me__glow { position: absolute; inset: 10% 0 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(124,92,255,.55), transparent 75%); filter: blur(20px); }
.ve-me__copy { display: grid; gap: 18px; }
.ve-me__copy > p { font-size: clamp(1.06rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 56ch; }
.ve-me__copy > p.ve-kicker { font-size: .95rem; color: var(--accent-text); }
.ve-me__copy .h2 { margin-bottom: 6px; }
.ve-me__strong { color: var(--fg) !important; font-weight: 600; }

/* ---------- PRICE ---------- */
.ve-price { background: radial-gradient(60% 60% at 30% 50%, rgba(124,92,255,.14), transparent 70%); }
.ve-price__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.ve-incl { display: grid; gap: 16px; margin-top: 32px; }
.ve-incl li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 1.05rem; }
.ve-incl li b { color: var(--fg); }
.ve-incl svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--accent); color: #fff; margin-top: 1px; }
.ve-offer { padding: clamp(28px, 4vw, 44px); display: grid; justify-items: center; text-align: center; gap: 10px; border-color: rgba(154,130,255,.45); box-shadow: 0 60px 120px -50px rgba(124,92,255,.75); }
.ve-offer__badge { padding: 6px 14px; border-radius: 999px; background: rgba(124,92,255,.2); color: var(--accent-text); font-size: .88rem; font-weight: 600; }
.ve-offer__name { font-family: var(--display); font-size: 2.6rem; line-height: 1; margin-top: 6px; }
.ve-offer__price { display: flex; align-items: baseline; gap: 10px; direction: rtl; }
.ve-offer__price s { color: var(--dim); font-size: 1.3rem; }
.ve-offer__price b { font-family: var(--display); font-size: clamp(6rem, 11vw, 8.4rem); line-height: .8; color: var(--fg); }
.ve-offer__price span { font-family: var(--display); font-size: 2.6rem; color: var(--accent-text); }
.ve-offer__save { color: #5cffb0; font-weight: 600; font-size: .98rem; }
.ve-offer__btn { width: 100%; margin-top: 14px; }
.ve-offer__note { color: var(--muted); font-size: .9rem; max-width: 34ch; }
.ve-offer__fine { color: var(--dim); font-size: .82rem; max-width: 36ch; }

/* ---------- FAQ: reuse .faq; summary icon holds an svg ---------- */
.faq .h2 em { display: inline; }

/* ---------- FINAL ---------- */
.ve-final { position: relative; overflow: hidden; padding-block: clamp(90px, 12vw, 160px); text-align: center; isolation: isolate; }
.ve-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 60%, rgba(124,92,255,.28), transparent 70%); }
.ve-final__marquee { display: flex; width: max-content; position: absolute; z-index: -1; top: 50%; translate: 0 -50%; animation: marq 40s linear infinite; }
.ve-final__marquee span { font-family: var(--display); font-weight: 700; font-size: clamp(7rem, 20vw, 17rem); line-height: .9; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(237,233,255,.1); }
@keyframes marq { to { transform: translateX(-50%); } }
.ve-final__inner { display: grid; justify-items: center; gap: 22px; }
.ve-final__title { font-size: clamp(3.4rem, 8vw, 7rem); }

/* ---------- mobile buy bar ---------- */
.ve-bar { position: fixed; z-index: 45; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; padding-inline-start: 18px; border-radius: 999px; background: rgba(14,11,20,.82); border: 1px solid var(--line-2);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); transform: translateY(140%); transition: transform .5s var(--ease-drawer); }
.ve-bar.show { transform: none; }
.ve-bar p { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; font-size: .9rem; line-height: 1.2; }
.ve-bar b { font-size: 1.15rem; }
.ve-bar span { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ve-cards { grid-template-columns: repeat(2, 1fr); }
  .ve-work__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .ve-work__grid::-webkit-scrollbar { display: none; }
  .ve-work__grid .ve-tile { scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .ve .nav__links { display: none; }
  .ve-studio, .ve-director__grid, .ve-me__grid, .ve-price__grid { grid-template-columns: 1fr; }
  .ve-vs, .ve-ways__grid { grid-template-columns: 1fr; }
  .ve-me__media { max-width: 260px; order: -1; }
  .ve-bar { display: flex; }
  .ve .wa-fab { display: none; }
  .foot { padding-bottom: 90px; }
}
@media (max-width: 640px) {
  .ve-three { grid-template-columns: 1fr; }
  .ve-work__grid { grid-auto-columns: 62%; }
  .ve-split { grid-template-columns: 1fr; }
  .ve-stage { padding: 16px 12px 12px; }
  .ve-scr--v { height: 360px; }
  .ve-vsl__word { inset-inline-start: 5%; }
  .ve-vsl__art { width: 56%; }
  .ve-create__title { font-size: clamp(4rem, 19vw, 6rem); }
  .ve-part summary { grid-template-columns: auto 1fr auto; }
  .ve-part__c { display: none; }
  .ve-part ol { grid-template-columns: 1fr; padding-inline-start: 0; }
  .ve-term__body { min-height: 0; padding: 16px; }
  .ve-term { font-size: .88rem; }
  .ve-vsl__play { width: 70px; height: 70px; font-size: 24px; }
  .ve-vsl__cap { font-size: .82rem; bottom: 12px; inset-inline-start: 14px; }
  .ve-hero__inner { gap: 20px; }
  .ve .nav__brand > span { font-size: 1.45rem; }
  .ve-trust { gap: 14px; flex-wrap: nowrap; }
  .ve-trust b { font-size: 2.1rem; }
  .ve-trust span { font-size: .8rem; text-align: center; }
}

/* ---------- CREATE: anything, today ---------- */
.ve-create { padding-top: clamp(40px, 6vw, 80px); overflow: hidden; }
.ve-create__title { font-size: clamp(4.4rem, 11vw, 10rem); line-height: .88; }
.ve-create .lede { margin-top: 22px; }
.ve-rows { display: grid; gap: 12px; margin-block: clamp(36px, 5vw, 56px); direction: ltr; }
.ve-row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ve-row__track { display: flex; gap: 12px; width: max-content; animation: marq 38s linear infinite; }
.ve-row--rev .ve-row__track { animation-direction: reverse; animation-duration: 44s; }
.ve-row span { direction: rtl; flex: none; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.2rem); white-space: nowrap; }
.ve-row span:nth-child(3n+1) { border-color: rgba(154,130,255,.5); background: rgba(124,92,255,.14); color: var(--accent-text); }
.ve-create__note { margin-top: 18px; color: var(--dim); font-size: .92rem; }
.ve-tile.has-video .ve-tile__media { box-shadow: 0 30px 70px -35px rgba(124,92,255,.8); }

/* ---------- NOFEAR ---------- */
.ve-nofear { text-align: center; background: radial-gradient(50% 60% at 50% 55%, rgba(124,92,255,.16), transparent 70%); }
.ve-nofear .wrap { display: grid; justify-items: center; }
.ve-ifs { display: grid; gap: 6px; margin-top: 10px; }
.ve-ifs li { font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1.3; color: var(--muted); }
.ve-ifs li:nth-child(2) { color: #cfc8e2; } .ve-ifs li:nth-child(3) { color: var(--fg); }
.ve-ifs__answer { margin-top: clamp(18px, 3vw, 30px); font-size: clamp(3.6rem, 9vw, 8rem); }
.ve-ifs__answer em { text-shadow: 0 0 40px rgba(154,130,255,.6); }
.ve-nofear .lede { margin-top: 18px; max-width: 58ch; }

/* ---------- Academy name ---------- */
.ve-brand small { font-family: var(--body); font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text); vertical-align: middle; margin-inline-start: 4px; }
.ve-academy { font-family: var(--body); font-weight: 800; font-size: clamp(.95rem, 2.2vw, 1.5rem); letter-spacing: .55em; text-transform: uppercase; color: var(--accent-text); margin: 6px 0 4px; padding-inline-start: .55em; }
.ve-vsl__word em { font-family: var(--body); font-style: normal; font-weight: 800; font-size: clamp(.7rem, 1.4vw, 1.05rem); letter-spacing: .45em; text-transform: uppercase; color: var(--accent-text); margin-top: -4px; }
.ve-offer__name span { font-family: var(--body); font-size: .9rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-text); }

/* ---------- AHEAD: one real number ---------- */
.ve-ahead__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.ve-ahead__num { padding: clamp(26px, 4vw, 44px); border-radius: var(--r-panel); text-align: center; border: 1px solid rgba(154,130,255,.4);
  background: radial-gradient(80% 80% at 50% 0%, rgba(124,92,255,.3), transparent 70%), var(--bg-2); box-shadow: 0 40px 90px -45px rgba(124,92,255,.8); }
.ve-ahead__num b { display: block; font-family: var(--display); font-size: clamp(6rem, 14vw, 10rem); line-height: .85; background: linear-gradient(180deg, #fff, var(--accent-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .05em; }
.ve-ahead__num p { color: var(--fg); font-weight: 600; font-size: 1.08rem; max-width: 24ch; margin: 8px auto 0; }
.ve-ahead__copy .lede { margin-top: 20px; }
.ve-ahead__src { margin-top: 16px; color: var(--dim); font-size: .82rem; }

/* ---------- registration form (section card + popup) ---------- */
.ve-offer__lead { color: var(--muted); max-width: 34ch; }
.ve-offer__lead b { color: var(--fg); }
.ve-form { width: 100%; display: grid; gap: 12px; margin-top: 8px; text-align: start; }
.ve-hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ve-field { display: grid; gap: 6px; }
.ve-field label { font-size: .88rem; color: var(--muted); font-weight: 500; }
.ve-field input { height: 52px; padding-inline: 16px; border-radius: var(--r-field); border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--fg); font-size: 1rem; transition: border-color .2s ease, background-color .2s ease; }
.ve-field input[dir="ltr"] { text-align: right; }
.ve-field input:focus { outline: none; border-color: var(--accent-hi); background: rgba(124,92,255,.08); }
.ve-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.ve-consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.ve-form__btn { width: 100%; margin-top: 4px; }
.ve-form__legal { font-size: .8rem; color: var(--dim); text-align: center; }
.ve-form__legal a { text-decoration: underline; text-underline-offset: 3px; }
.ve-form__error { color: var(--danger); font-size: .9rem; font-weight: 500; text-align: center; }
.ve-done { width: 100%; padding: 22px; border-radius: 18px; text-align: center; background: rgba(92,255,176,.08); border: 1px solid rgba(92,255,176,.35); }
.ve-done b { display: block; font-size: 1.3rem; margin-bottom: 6px; color: #5cffb0; }
.ve-done p { color: var(--fg); }

.ve-pop { width: min(440px, calc(100vw - 24px)); max-height: calc(100svh - 24px); overflow: auto; padding: clamp(24px, 4vw, 34px); border-radius: var(--r-panel); border: 1px solid rgba(154,130,255,.45); color: var(--fg); text-align: center;
  background: radial-gradient(90% 60% at 50% 0%, rgba(124,92,255,.32), transparent 70%), #120e1b; box-shadow: 0 60px 140px -40px rgba(124,92,255,.8); }
.ve-pop[open] { display: grid; justify-items: center; gap: 10px; animation: pop-in .45s var(--ease-out); }
.ve-pop::backdrop { background: rgba(6,4,10,.72); backdrop-filter: blur(6px); }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.ve-pop__t { font-size: clamp(2.6rem, 8vw, 3.4rem); }
.ve-pop__sub { color: var(--muted); max-width: 32ch; }
.ve-pop__sub b { color: var(--fg); }
/* close stays available (and keyboard reachable) but quiet */
.ve-pop__x { position: absolute; top: 12px; inset-inline-end: 12px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: rgba(237,233,255,.28); font-size: 14px; }
.ve-pop__x:hover, .ve-pop__x:focus-visible { color: var(--muted); background: rgba(255,255,255,.05); }
@media (prefers-reduced-motion: reduce) { .ve-pop[open] { animation: none; } }

@media (max-width: 900px) { .ve-ahead__grid { grid-template-columns: 1fr; } }

/* ---------- examples: 6 tiles, click to watch big with sound ---------- */
.ve-work__grid { grid-template-columns: repeat(6, 1fr); }
.ve-tile { cursor: pointer; }
.ve-tile:focus-visible { outline: none; }
.ve-tile:focus-visible .ve-tile__media { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
.ve-tile__media { transition: transform .4s var(--ease-out), box-shadow .4s ease; }
.ve-tile:hover .ve-tile__media { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(124,92,255,.9); }
.ve-tile__media video { z-index: 0; }
.ve-tile__snd { position: absolute; z-index: 1; bottom: 10px; inset-inline-start: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(11,9,16,.72); backdrop-filter: blur(6px); font-size: .74rem; font-weight: 600; color: #fff; }
.ve-tile__snd::before { content: "🔊 "; }
.ve-lb { width: min(420px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 60px 140px -30px rgba(124,92,255,.7); }
.ve-lb::backdrop { background: rgba(6,4,10,.85); backdrop-filter: blur(8px); }
.ve-lb video { display: block; width: 100%; max-height: calc(100svh - 40px); aspect-ratio: 9 / 16; background: #000; }
.ve-lb__x { position: absolute; z-index: 2; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; }
@media (max-width: 1080px) { .ve-work__grid { grid-template-columns: none; } }

/* ---------- free guides (/guides) ---------- */
.g-main { padding: clamp(120px, 14vw, 160px) 0 clamp(60px, 8vw, 100px); }
.g-art { max-width: 820px; }
.g-crumb { color: var(--dim); font-size: .9rem; margin-bottom: 14px; }
.g-crumb a { color: var(--accent-text); }
.g-title { font-size: clamp(3rem, 7vw, 5.2rem); }
.g-lead { margin-top: 18px; font-size: clamp(1.12rem, 1.6vw, 1.35rem); color: var(--fg); font-weight: 500; max-width: 60ch; }
.g-body { margin-top: 28px; display: grid; gap: 16px; color: var(--muted); font-size: 1.06rem; }
.g-body h2, .g-links-h { margin-top: 18px; font-family: var(--display); font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1; color: var(--fg); }
.g-body b { color: var(--fg); }
.g-body a, .g-links a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.g-body ol, .g-body ul { display: grid; gap: 10px; padding-inline-start: 22px; }
.g-body ol { list-style: decimal; } .g-body ul { list-style: disc; }
.g-body li::marker { color: var(--accent-text); }
.g-body table { width: 100%; border-collapse: collapse; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; font-size: .98rem; }
.g-body th, .g-body td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.g-body th { background: rgba(124,92,255,.14); color: var(--fg); font-weight: 600; }
.g-body td[dir="ltr"] { text-align: right; }
.g-note { color: var(--dim) !important; font-size: .88rem; margin-top: -8px; }
.g-warn { padding: 14px 16px; border-radius: 14px; background: rgba(255,201,77,.08); border: 1px solid rgba(255,201,77,.3); color: var(--fg) !important; }
.g-links { display: grid; gap: 8px; margin-top: 12px; padding-inline-start: 22px; list-style: disc; color: var(--muted); }
.g-disc { margin-top: 18px; color: var(--dim); font-size: .85rem; }
.g-cta { margin-top: clamp(40px, 6vw, 64px); display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(26px, 4vw, 40px); border-color: rgba(154,130,255,.45); }
.g-cta h2 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.g-cta p { color: var(--muted); max-width: 52ch; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 32px; }
.g-card { display: grid; align-content: start; gap: 8px; padding: 22px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s ease, translate .4s var(--ease-out); }
.g-card:hover { border-color: rgba(154,130,255,.45); translate: 0 -3px; }
.g-card__n { font-family: var(--mono); font-size: .8rem; color: var(--accent-text); }
.g-card h2 { font-family: var(--display); font-size: 2rem; line-height: 1; }
.g-card p { color: var(--muted); font-size: .95rem; }
.g-card__go { color: var(--accent-text); font-weight: 600; font-size: .92rem; }
.g-prompt { margin: 0; padding: 14px 16px; border-radius: 14px; background: #0d0a14; border: 1px solid var(--line-2); color: #e9e4ff; font-family: var(--mono); font-size: .86rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; text-align: left; user-select: all; }
.g-cmd { margin-bottom: -8px; font-family: var(--mono); color: var(--accent-text) !important; font-weight: 600; text-align: right; }
.g-dl { margin: 4px 0; }
/* a landscape piece in a portrait tile: shown whole on a dark card; the lightbox turns wide for it */
.ve-tile.is-wide .ve-tile__media { background: radial-gradient(80% 50% at 50% 50%, rgba(124,92,255,.25), transparent 70%), #0d0a14; }
.ve-tile.is-wide .ve-tile__media video { object-fit: contain; }
.ve-lb.is-wide { width: min(960px, calc(100vw - 24px)); }
.ve-lb.is-wide video { aspect-ratio: 16 / 9; max-height: calc(100svh - 40px); }
