/* Violet Recording — homepage "signal" experience (v1.10.0). Front page only. */
.home {
  --vr-ink: var(--wp--preset--color--ink, #0E0E12);
  --vr-ink-2: #17151F;
  --vr-ink-3: #24202F;
  --vr-brand: var(--wp--preset--color--brand, #7E6BA6);
  --vr-brand-strong: var(--wp--preset--color--brand-strong, #5E4F86);
  --vr-lilac: var(--wp--preset--color--brand-onblack, #B9A8DB);
  --vr-signal: var(--wp--preset--color--accent-warm, #D8A657);
  --vr-on-dark: #ECE8F4;
  --vr-muted-dark: #A9A2BA;
  --vr-head-h: 72px;
}
.admin-bar.home { --vr-head-h: 104px; }

/* shared buttons */
.vr-btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--wp--preset--font-family--sans); font-weight: 600; font-size: .95rem; text-decoration: none; padding: .85em 1.4em; border-radius: 999px; border: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.vr-btn--primary { background: var(--vr-brand); color: #fff; }
.vr-btn--primary:hover { background: var(--vr-brand-strong); color: #fff; }
.vr-btn--ghost { border-color: rgba(236, 232, 244, .35); color: var(--vr-on-dark); }
.vr-btn--ghost:hover { border-color: var(--vr-lilac); color: #fff; }
.home :focus-visible { outline: 2px solid var(--vr-signal); outline-offset: 3px; }

/* ---------- hero ---------- */
.vr-hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(88vh, 840px); display: flex; flex-direction: column; justify-content: center; padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40) !important; }
.vr-hero > * { width: 100%; }
.vr-hero .vr-hero__fallback,
.vr-hero .vr-hero__canvas { position: absolute; inset: 0; max-width: none !important; margin: 0 !important; width: 100%; height: 100%; }
.vr-hero__fallback { z-index: -3; background: radial-gradient(60% 55% at 72% 62%, rgba(126, 107, 166, .32), transparent 70%), radial-gradient(40% 40% at 20% 90%, rgba(216, 166, 87, .10), transparent 70%), var(--vr-ink); }
.vr-hero__fallback svg { position: absolute; right: -4%; bottom: 6%; width: min(70%, 820px); opacity: .55; transition: opacity 1.2s; }
.vr-hero.is-3d .vr-hero__fallback svg { opacity: 0; }
.vr-hero__canvas { z-index: -2; opacity: 0; transition: opacity 1.4s ease; }
.vr-hero__canvas.is-on { opacity: .9; }
.vr-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(14, 14, 18, .96) 0%, rgba(14, 14, 18, .78) 38%, rgba(14, 14, 18, 0) 72%); }
.vr-hero__copy { max-width: 640px; margin-left: max(0px, calc((100% - 1100px) / 2)) !important; margin-right: auto !important; }
.vr-hero__copy > * + * { margin-block-start: 0; }
.vr-hero__title { font-family: var(--wp--preset--font-family--sans); font-size: clamp(3rem, 8vw, 6rem) !important; font-weight: 800; letter-spacing: -.035em; line-height: .95 !important; margin: 0 !important; }
.vr-hero__lede { margin-top: 1.4rem !important; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #D6CFE6; max-width: 34em; }
.vr-chooser { margin-top: 2.2rem; }
.vr-chooser__label { display: block; margin-bottom: .7rem; font-family: var(--wp--preset--font-family--sans); font-size: .92rem; font-weight: 600; color: var(--vr-muted-dark); }
.vr-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.vr-chip { font-family: var(--wp--preset--font-family--sans); font-size: .92rem; font-weight: 550; color: var(--vr-on-dark); background: rgba(255, 255, 255, .04); border: 1px solid rgba(236, 232, 244, .22); border-radius: 999px; padding: .55em 1.05em; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.vr-chip:hover { border-color: var(--vr-lilac); }
.vr-chip[aria-pressed="true"] { background: var(--vr-lilac); border-color: var(--vr-lilac); color: var(--vr-ink); }
.vr-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.vr-hero .vr-hero__meter { position: absolute; right: var(--wp--preset--spacing--40); bottom: 28px; width: auto; display: flex; align-items: center; gap: .55rem; font-family: var(--wp--preset--font-family--sans); font-size: .8rem; color: var(--vr-muted-dark); margin: 0 !important; }
.vr-hero__meter i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--vr-signal); box-shadow: 0 0 12px var(--vr-signal); animation: vr-rec 1.6s ease-in-out infinite; }
@keyframes vr-rec { 50% { opacity: .25; } }
.vr-hero__copy > * { animation: vr-rise .9s cubic-bezier(.2, .7, .1, 1) both; }
.vr-hero__copy > :nth-child(2) { animation-delay: .08s; }
.vr-hero__copy > :nth-child(3) { animation-delay: .16s; }
.vr-hero__copy > :nth-child(4) { animation-delay: .24s; }
.vr-hero__copy > .vr-hero__title { animation: none; } /* LCP element paints immediately */
@keyframes vr-rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- trust bar continues the ink band on the homepage ---------- */
.home .vr-trust-bar { background: var(--vr-ink); box-shadow: 0 0 0 100vmax var(--vr-ink); clip-path: inset(0 -100vmax); border-bottom: 0; margin-block-start: 0 !important; }
.home .vr-trust-bar .vr-stat__num { color: #fff; font-variant-numeric: tabular-nums; }
.home .vr-trust-bar .vr-stat__label { color: var(--vr-muted-dark); }
.home .vr-trust-bar .vr-stat a:hover .vr-stat__num { color: var(--vr-lilac); }
.home .vr-trust-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .07); }
.home .vr-trust-bar { position: relative; }

/* ---------- scroll story ---------- */
.vr-story { padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40) 0 !important; margin-block-start: 0 !important; }
.vr-story > * { max-width: 1100px !important; }
.vr-story__intro { max-width: 620px !important; margin-left: max(0px, calc((100% - 1100px) / 2)) !important; }
.vr-story__intro h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -.02em; margin: 0; }
.vr-story__intro p { margin-top: 1rem; color: #CEC6E0; font-size: 1.12rem; }
.vr-story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4.5rem); margin-top: 3rem; }
.vr-steps { list-style: none; margin: 0; padding: 0 0 12vh; }
.vr-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; opacity: .32; transition: opacity .45s; }
.vr-step.is-active { opacity: 1; }
.vr-step__n { font-family: var(--wp--preset--font-family--sans); font-weight: 600; font-size: .9rem; color: var(--vr-signal); font-variant-numeric: tabular-nums; }
.vr-step h3 { font-family: var(--wp--preset--font-family--sans); font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; margin: .35rem 0 .8rem; color: #fff; }
.vr-step p { color: #D2CAE3; max-width: 30em; margin: 0; }
.vr-step a { display: inline-block; margin-top: 1rem; font-family: var(--wp--preset--font-family--sans); font-size: .92rem; font-weight: 600; color: var(--vr-lilac); text-underline-offset: 4px; }
.vr-stage { position: sticky; top: max(calc(var(--vr-head-h) + 24px), calc((100vh - min(68vh, 580px)) / 2 + var(--vr-head-h) / 2)); height: min(68vh, 580px); border-radius: 26px; overflow: hidden; background: radial-gradient(80% 70% at 50% 55%, var(--vr-ink-3), var(--vr-ink-2) 70%); border: 1px solid rgba(255, 255, 255, .07); }
.vr-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vr-stage__static { position: absolute; inset: 0; display: grid; place-items: center; }
.vr-stage__static svg { width: 80%; }
.vr-stage__track { position: absolute; top: 22px; left: 24px; right: 24px; display: flex; gap: 6px; }
.vr-stage__track span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.vr-stage__track span::after { content: ""; display: block; height: 100%; width: 0; background: var(--vr-lilac); transition: width .5s; }
.vr-stage__track span.is-done::after { width: 100%; }
.vr-stage__card { position: absolute; left: 24px; bottom: 24px; display: flex; gap: .7rem; align-items: center; padding: .75rem 1rem; border-radius: 14px; background: rgba(14, 14, 18, .82); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--wp--preset--font-family--sans); font-size: .9rem; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.vr-stage__card.is-in { opacity: 1; transform: none; }
.vr-stage__card i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--vr-signal); }
.vr-stage__card small { display: block; color: var(--vr-muted-dark); font-size: .78rem; }
@media (max-width: 860px) {
  .vr-story__grid { grid-template-columns: 1fr; }
  .vr-stage { order: -1; z-index: 2; top: calc(var(--vr-head-h) + 8px); height: 34vh; box-shadow: 0 18px 30px 6px var(--vr-ink); }
  .vr-steps { padding-bottom: 20vh; }
  .vr-step { min-height: 55vh; justify-content: flex-end; padding: 0 0 6vh; }
}

/* ---------- latest guides: image wipe on scroll ---------- */
.vr-js .vr-latest .wp-block-post-featured-image { clip-path: inset(0 0 100% 0 round 10px); transition: clip-path 1s cubic-bezier(.2, .7, .1, 1); }
.vr-js .vr-latest .is-in .wp-block-post-featured-image { clip-path: inset(0 0 0 0 round 10px); }
.vr-latest .wp-block-post-featured-image { overflow: hidden; }
.vr-latest .wp-block-post-featured-image img { transition: transform .6s ease; }
.vr-latest .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.04); }

/* ---------- tools: tap tempo panel + cards ---------- */
.vr-tools-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: var(--wp--preset--spacing--40); align-items: start; }
.vr-tools-layout > * { margin-block-start: 0 !important; }
.vr-tap { position: sticky; top: calc(var(--vr-head-h) + 24px); display: flex; flex-direction: column; gap: 1.1rem; padding: 1.9rem; border-radius: 22px; background: var(--vr-ink); color: var(--vr-on-dark); }
.vr-tap h3 { margin: 0; color: #fff; font-family: var(--wp--preset--font-family--sans); font-size: 1.4rem; }
.vr-tap p { margin: 0; color: #CEC6E0; font-size: 1rem; }
.vr-tap__btn { appearance: none; border: 0; cursor: pointer; width: 100%; aspect-ratio: 2 / 1; border-radius: 18px; background: var(--vr-ink-3); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; position: relative; overflow: hidden; font-family: var(--wp--preset--font-family--sans); touch-action: manipulation; }
.vr-tap__btn::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(126, 107, 166, .6), transparent 60%); opacity: 0; transition: opacity .5s; }
.vr-tap__btn.is-hit::before { opacity: 1; transition: none; }
.vr-tap__bpm { position: relative; font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.vr-tap__hint { position: relative; font-size: .9rem; color: var(--vr-muted-dark); }
.vr-tap__foot { display: flex; align-items: center; gap: .8rem; font-family: var(--wp--preset--font-family--sans); font-size: .9rem; }
.vr-tap__foot a { color: var(--vr-lilac); font-weight: 600; text-underline-offset: 4px; }
.vr-tap__pulse { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--vr-signal); opacity: .25; }
@media (max-width: 860px) {
  .vr-tools-layout { grid-template-columns: 1fr; }
  .vr-tap { position: static; }
}

/* ---------- CTA band: slow rings ---------- */
.vr-cta-band { position: relative; overflow: hidden; isolation: isolate; }
.vr-cta-band .vr-cta-band__rings { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; max-width: none !important; margin: 0 !important; }
.vr-cta-band__rings span { position: absolute; width: 180px; height: 180px; border-radius: 50%; border: 1px solid rgba(185, 168, 219, .35); opacity: 0; animation: vr-ring 6s linear infinite; }
.vr-cta-band__rings span:nth-child(2) { animation-delay: 2s; }
.vr-cta-band__rings span:nth-child(3) { animation-delay: 4s; }
@keyframes vr-ring { 0% { transform: scale(.6); opacity: 0; } 15% { opacity: .8; } 100% { transform: scale(6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  .vr-js .vr-latest .wp-block-post-featured-image { clip-path: none; }
}
@media (max-width: 781px) {
  .vr-hero { min-height: 82vh; }
  .vr-hero::after { background: linear-gradient(180deg, rgba(14, 14, 18, .55) 0%, rgba(14, 14, 18, .85) 60%, rgba(14, 14, 18, .95) 100%); }
}
