/* Vellum Homepage Stylesheet — Editorial Forensics, Kinetic Scroll Stage & Auto-Cycling Inspector */
:root {
  --bg: #0B0D0C;
  --panel: #131614;
  --panel-2: #1A1E1B;
  --surface: #0E100F;
  --ink: #F1F2EC;
  --muted: #9BA297;
  --faint: #6D746A;
  --line: #252B25;
  --line-strong: #363E35;
  --yellow: #FACC15;
  --amber: #EAB308;
  --pink: #F472B6;
  --red: #FB7185;
  --mint: #4ADE80;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(250, 204, 21, 0.065), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 100%, 34px 34px, 34px 34px;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.54;
  overflow-x: clip;
}
.display { font-family: 'Space Grotesk', sans-serif; }
.serif-em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }

/* Top Ink-Trace Scroll Progress Ribbon */
.vl-progress-track {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80;
  background: rgba(255, 255, 255, 0.04); pointer-events: none;
}
.vl-progress-fill {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--red));
  transform-origin: left center; transform: scaleX(0); will-change: transform;
}

/* Sticky Morphing Navbar */
.vl-nav {
  position: sticky; top: 0; z-index: 60;
  width: 100%; margin: 0 auto; border-radius: 0;
  background: rgba(11, 13, 12, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 0 solid transparent;
  border-bottom: 1px solid var(--line);
  transition: width 0.42s var(--ease), top 0.42s var(--ease), border-radius 0.42s var(--ease), box-shadow 0.42s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.vl-nav.is-scrolled {
  top: 12px;
  width: min(calc(100% - 24px), 1040px);
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.38);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.04);
  background: rgba(16, 19, 17, 0.96);
}
@media (max-width: 640px) {
  .vl-nav.is-scrolled {
    top: 8px;
    width: calc(100% - 16px);
    border-radius: 20px;
  }
}
.vl-nav-in { height: 68px; display: flex; align-items: center; gap: 18px; transition: height 0.42s var(--ease), padding 0.42s var(--ease); }
.vl-nav.is-scrolled .vl-nav-in { height: 58px; padding: 0 18px; }
.vl-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.vl-nib-mark { transition: transform 0.36s var(--ease); transform-origin: 26% 65%; }
.vl-brand:hover .vl-nib-mark { transform: rotate(-6deg) translate(-1px, -1px); }

.vl-links { display: flex; gap: 2px; flex-wrap: nowrap; }
.vl-links a {
  padding: 7px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  white-space: nowrap; transition: color 0.15s, background 0.15s;
}
.vl-links a:hover { color: var(--ink); background: var(--panel-2); }
@media (max-width: 1060px) { .vl-links a.vl-link-hide-md { display: none; } }
@media (max-width: 860px) { .vl-links { display: none; } }

.vl-nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.vl-cta-rest {
  display: flex; align-items: center; gap: 10px; max-width: 340px; opacity: 1; overflow: hidden;
  transition: max-width 0.42s var(--ease), opacity 0.25s ease, transform 0.36s var(--ease);
}
.vl-nav.is-scrolled .vl-cta-rest { max-width: 0; opacity: 0; transform: translateX(-16px); pointer-events: none; gap: 0; }
.vl-back-zev {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color 0.15s, border-color 0.15s;
}
.vl-back-zev:hover { color: var(--yellow); border-color: var(--yellow); }

.vl-scroll-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; max-width: 0; padding: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  border-radius: 999px; background: var(--yellow); color: #0B0D0C;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13.5px;
  transform: translateX(18px) scale(0.92); pointer-events: none;
  transition: max-width 0.44s var(--ease), padding 0.44s var(--ease), opacity 0.32s ease, transform 0.44s var(--ease);
}
.vl-nav.is-scrolled .vl-scroll-pill {
  max-width: 260px; padding: 0 18px; opacity: 1; transform: translateX(0) scale(1); pointer-events: auto;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.25);
}

/* Buttons, Cards & Tags */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--line-strong);
  background: var(--panel-2); color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer;
  transition: transform 0.16s var(--ease), border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover { border-color: var(--yellow); transform: translateY(-1px); }
.btn-gold { background: var(--yellow); color: #0B0D0C; border-color: var(--yellow); font-weight: 700; }
.btn-gold:hover { background: #FDE047; box-shadow: 0 10px 26px rgba(250, 204, 21, 0.24); }
.btn-pink-outline { border-color: rgba(244, 114, 182, 0.45); color: var(--pink); }
.btn-pink-outline:hover { border-color: var(--pink); background: rgba(244, 114, 182, 0.08); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 20px 50px rgba(0, 0, 0, 0.38);
}
.vl-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(250, 204, 21, 0.12); border: 1px solid rgba(250, 204, 21, 0.32);
  color: var(--yellow); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vl-chip {
  padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--panel-2); color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11.5px; font-weight: 600; text-align: center;
}

/* Band 1: Responsive Viewport-Balanced Editorial Hero */
.vl-hero {
  position: relative;
  min-height: clamp(560px, calc(100svh - 68px), 840px);
  padding: clamp(32px, 5vh, 64px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.vl-hero-aura {
  position: absolute; inset: -20% -10% auto -10%; height: 480px;
  background:
    radial-gradient(45% 65% at 50% 25%, rgba(250, 204, 21, 0.08), transparent 72%),
    radial-gradient(40% 60% at 80% 55%, rgba(244, 114, 182, 0.065), transparent 70%);
  pointer-events: none; z-index: 0;
}
.vl-brand-motif-right {
  position: absolute; right: 2%; top: 10%;
  width: clamp(160px, 20vw, 250px); opacity: 0.14; pointer-events: none; z-index: 0;
}
.vl-brand-motif-left {
  position: absolute; left: 2.5%; bottom: 10%;
  width: clamp(120px, 14vw, 175px); opacity: 0.12; pointer-events: none; z-index: 0;
  animation: floatSlow 5.2s var(--ease) infinite;
}
.vl-nib-glide { animation: nibWrite 6.4s var(--ease) infinite; transform-origin: 18% 68%; }
.vl-ink-stroke { stroke-dasharray: 220; stroke-dashoffset: 220; animation: inkDraw 6.4s var(--ease) infinite; }
@keyframes nibWrite { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 45% { transform: translate(16px, 3px) rotate(-3deg); } 75% { transform: translate(6px, -2px) rotate(1.5deg); } }
@keyframes inkDraw { 0% { stroke-dashoffset: 220; opacity: 0.25; } 45% { stroke-dashoffset: 0; opacity: 0.9; } 85% { stroke-dashoffset: 0; opacity: 0.45; } 100% { stroke-dashoffset: -220; opacity: 0.2; } }

.vl-hero-center {
  position: relative; z-index: 1; max-width: 920px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.vl-h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em; margin: 20px 0 22px; }
.vl-hero-stats { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4.5vh, 46px); text-align: left; }
@media (max-width: 820px) { .vl-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .vl-hero-stats { grid-template-columns: 1fr; } }
.vl-stat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 13px 14px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.vl-stat-tile:hover { border-color: var(--yellow); transform: translateY(-3px); }
.vl-stat-tile strong { display: block; font-size: 18.5px; color: var(--yellow); line-height: 1.15; }
.vl-stat-tile span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Band 2: Page-Scroll Driven Horizontal Showcase (No Revolving Logo) */
.vl-scroll-stage {
  position: relative; height: 245vh; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(58% 48% at 50% 50%, rgba(250, 204, 21, 0.045), transparent 72%),
    linear-gradient(180deg, rgba(16, 20, 17, 0.55) 0%, rgba(11, 13, 12, 0.94) 100%);
}
.vl-scroll-sticky {
  position: sticky; top: 68px; height: calc(100vh - 68px); min-height: 550px; max-height: 820px;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 20px 0;
}
.vl-stage-header { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.vl-track-window { width: 100%; overflow: visible; padding-left: max(clamp(16px, 3vw, 28px), calc((100vw - 1240px) / 2 + clamp(16px, 3vw, 28px))); }
.vl-scroll-track { display: flex; gap: 22px; will-change: transform; padding-right: 64px; }
.vl-motion-card {
  flex: 0 0 clamp(310px, 31vw, 390px);
  background: linear-gradient(160deg, #151916 0%, #101311 100%);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  opacity: 0.78;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s var(--ease);
  will-change: transform;
}
.vl-motion-card.is-focal { opacity: 1; border-color: var(--yellow); box-shadow: 0 22px 54px rgba(0, 0, 0, 0.56), 0 0 28px rgba(250, 204, 21, 0.1); }
.vl-motion-card:hover { opacity: 1; border-color: var(--yellow); }
.vl-card-art { background: #0A0C0B; border: 1px solid var(--line); border-radius: 12px; padding: 8px; height: 158px; display: grid; place-items: center; overflow: hidden; }

.vl-stage-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.vl-stage-dots { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vl-stage-dot {
  height: 26px; min-width: 28px; padding: 0 7px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; cursor: pointer; transition: all 0.16s var(--ease);
}
.vl-stage-dot:hover { border-color: var(--yellow); color: var(--ink); }
.vl-stage-dot.active { background: var(--yellow); color: #0B0D0C; border-color: var(--yellow); }
.vl-stage-bar { flex: 1; min-width: 110px; height: 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.vl-stage-bar-fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--yellow), var(--pink)); transform-origin: left center; transform: scaleX(0); }
.vl-stage-arrows { display: inline-flex; gap: 6px; align-items: center; }
.vl-step-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700;
  cursor: pointer; display: grid; place-items: center; transition: 0.14s;
}
.vl-step-btn:hover { background: var(--yellow); color: #0B0D0C; border-color: var(--yellow); }

@media (max-width: 900px) {
  .vl-scroll-stage { height: auto; padding: 34px 0; }
  .vl-scroll-sticky { position: static; height: auto; min-height: 0; max-height: none; overflow: visible; }
  .vl-track-window { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 12px; }
  .vl-track-window::-webkit-scrollbar { display: none; }
  .vl-motion-card { scroll-snap-align: start; flex: 0 0 84vw; opacity: 1; }
  .vl-stage-footer { gap: 10px; }
  .vl-stage-arrows { display: inline-flex; margin-left: auto; }
  .vl-step-btn { width: 38px; height: 38px; }
}

/* Section Utility */
.sec { padding: clamp(34px, 4.8vw, 54px) 0; position: relative; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* Band 3: Strictly Aligned Linear-Size Auto-Cycling 6-Feature Inspector */
.vl-bento-stage { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; align-items: stretch; }
@media (max-width: 960px) { .vl-bento-stage { grid-template-columns: 1fr; } }

.vl-engine-list { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; height: 100%; }
.vl-engine-btn {
  position: relative; flex: 1 1 0; width: 100%; text-align: left;
  padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: transform 0.16s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.vl-engine-btn:hover { border-color: rgba(250, 204, 21, 0.55); }
.vl-engine-btn.active {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.16), rgba(244, 114, 182, 0.1));
  border-color: var(--yellow); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.vl-eng-sub { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; line-height: 1.35; }
.vl-eng-code {
  padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 700; flex-shrink: 0;
}
.vl-engine-btn.active .vl-eng-code { background: var(--yellow); color: #0B0D0C; border-color: var(--yellow); }
.vl-eng-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(250, 204, 21, 0.85); transform-origin: left center; transform: scaleX(0); pointer-events: none;
}
.vl-engine-btn.active .vl-eng-progress { animation: vlEngineCycle 5s linear infinite; }
.vl-bento-stage:hover .vl-engine-btn.active .vl-eng-progress { animation-play-state: paused; }
@keyframes vlEngineCycle { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.vl-inspector-panel {
  height: 100%; min-height: 492px;
  background: linear-gradient(160deg, #151916 0%, #101311 100%);
  border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between;
}
.vl-inspector-copy { height: 104px; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; }
.vl-inspector-svg-box { background: #0A0C0B; border: 1px solid var(--line); border-radius: 12px; padding: 12px; height: 196px; display: grid; place-items: center; overflow: hidden; }
.vl-spec-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) {
  .vl-inspector-panel { min-height: 0; }
  .vl-inspector-copy { height: auto; }
  .vl-spec-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vl-fade-in { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; animation: fadeSlideIn 0.32s var(--ease) both; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Band 4: Direct Module Matrix */
.vl-matrix-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .vl-matrix-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vl-matrix-grid { grid-template-columns: 1fr; } }
.vl-mod-link { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; transition: transform 0.16s var(--ease), border-color 0.16s; }
.vl-mod-link:hover { transform: translateY(-2px); border-color: var(--yellow); }

/* SVG Animations */
.vl-scanbeam { animation: scanDown 2.5s ease-in-out infinite; }
@keyframes scanDown { 0%, 100% { transform: translateY(0); opacity: 0.9; } 50% { transform: translateY(42px); opacity: 0.35; } }
.vl-bar-grow { animation: barSweep 3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: left center; }
@keyframes barSweep { from { transform: scaleX(0.75); } to { transform: scaleX(1); } }
.vl-ring-spin { animation: spinSlow 14s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.vl-blink { animation: blinkDot 1.2s steps(2, start) infinite; }
@keyframes blinkDot { to { opacity: 0.2; } }
.vl-float { animation: floatSlow 3.8s ease-in-out infinite; transform-box: fill-box; }
@keyframes floatSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.vl-beam-dash { animation: dashFlow 1.8s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -16; } }

/* Scroll Reveals */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.62s var(--ease), transform 0.62s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-parallax-y] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .vl-nib-glide, .vl-ink-stroke, .vl-scanbeam, .vl-bar-grow, .vl-ring-spin,
  .vl-blink, .vl-float, .vl-beam-dash, .vl-brand-motif-left, .vl-engine-btn.active .vl-eng-progress {
    animation: none !important;
  }
}
