/* ==========================================================================
   VALTERIA — site styles
   Implements the approved "Valteria Site" design canvas 1:1.
   Sections: nav, hero, work, services, platform, products, about, contact.
   ========================================================================== */

html { scroll-behavior: smooth; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--copper-300); text-decoration: none; }
a:hover { color: var(--ink-bright); }
button { font-family: inherit; }
body.menu-open { overflow: hidden; }

.container { max-width: var(--container-xl); margin: 0 auto; padding: 0 var(--gutter); }

/* Skip link */
.vt-skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  transform: translateY(-200%);
  background: var(--aubergine-800); color: var(--ink-bright);
  padding: 10px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: transform 0.2s;
}
.vt-skip:focus { transform: translateY(0); color: var(--ink-bright); }

/* ── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes vt-hero-in {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes vt-fadeup  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes vt-drift-a { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(90px, 50px) scale(1.15); } }
@keyframes vt-drift-b { 0% { transform: translate(0, 0) scale(1.1); } 100% { transform: translate(-70px, -40px) scale(0.95); } }
@keyframes vt-shimmer { to { background-position: -200% center; } }
@keyframes vt-marquee { to { transform: translateX(-50%); } }
@keyframes vt-pulse   { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes vt-dash    { to { stroke-dashoffset: -22; } }
@keyframes vt-flash {
  0%, 100% { stroke: rgba(255, 255, 255, 0.10); }
  2%  { stroke: rgba(224, 139, 92, 0.95); }
  6%  { stroke: rgba(167, 139, 250, 0.7); }
  14% { stroke: rgba(255, 255, 255, 0.10); }
}
@keyframes vt-livep { 0%, 69% { fill: #55506B; } 72%, 93% { fill: #34A853; } 100% { fill: #55506B; } }
@keyframes vt-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Scroll reveals (JS-gated so no-JS users always see content) ────────── */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].in-view {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
[data-drawline] {
  height: 2px; margin-top: 88px;
  background: linear-gradient(90deg, var(--copper-400), var(--violet-400), transparent);
  transform-origin: 0 50%; transform: scaleX(0);
  transition: transform 1.1s var(--ease-out);
}
[data-drawline].in-view { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  [data-drawline] { transform: scaleX(1); }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 6px 8px 6px 24px;
  border-radius: var(--radius-full);
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: transform 0.7s var(--ease-out), background 0.7s var(--ease-out), border-color 0.7s var(--ease-out);
}
.btn .mono { font-family: var(--font-mono); }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: rgba(15, 8, 32, 0.10);
  transition: transform 0.7s var(--ease-out), background 0.7s var(--ease-out);
}
.btn:hover .btn-icon { transform: translate(3px, -1px) scale(1.04); background: rgba(15, 8, 32, 0.16); }
.btn-copper {
  background: var(--copper-400); color: var(--aubergine-900);
  box-shadow: var(--shadow-copper);
}
.btn-copper:hover { filter: brightness(0.94); color: var(--aubergine-900); }
.btn-copper:active { filter: brightness(0.88); transform: scale(0.98); }
.btn-ghost-dark {
  padding: 0 24px;
  color: var(--ink-bright); border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink-bright); }
[data-magnetic] { transition: transform 0.3s var(--ease-out); will-change: transform; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 100;
  width: min(calc(100% - 32px), 1216px); transform: translateX(-50%);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  background: color-mix(in oklab, #100A1B 78%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 22px 70px rgba(3,2,7,0.28);
  overflow: hidden;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--container-xl); margin: 0 auto; padding: 10px 14px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--ink-bright); }
.nav-brand:hover { color: var(--ink-bright); }
.nav-brand span { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark { flex: 0 0 auto; filter: drop-shadow(0 4px 12px rgba(224, 139, 92, 0.12)); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--ink-secondary); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink-bright); }
.nav-cta {
  display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
  border-radius: var(--radius-full);
  background: var(--copper-400); color: var(--aubergine-900);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.nav-cta:hover { filter: brightness(0.94); color: var(--aubergine-900); }
.nav-cta:active { filter: brightness(0.88); transform: scale(0.98); }
.nav-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--copper-400), var(--violet-400));
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .nav-progress { animation: vt-progress linear both; animation-timeline: scroll(root); }
}

/* Mobile menu */
.nav-burger {
  display: none; width: 40px; height: 38px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full); color: var(--ink-bright); cursor: pointer;
}
.burger-lines { position: relative; display: block; width: 17px; height: 12px; }
.burger-lines span {
  position: absolute; left: 0; width: 17px; height: 1.5px; border-radius: 2px;
  background: currentColor; transform-origin: center;
  transition: transform 0.7s var(--ease-out), top 0.7s var(--ease-out);
}
.burger-lines span:first-child { top: 2px; }
.burger-lines span:last-child { top: 9px; }
.nav.menu-open .burger-lines span:first-child { top: 5.5px; transform: rotate(45deg); }
.nav.menu-open .burger-lines span:last-child { top: 5.5px; transform: rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px var(--gutter) 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu a {
  padding: 12px 4px; font-size: 16px; font-weight: 500; color: var(--ink-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--ink-bright); }
.nav.menu-open .mobile-menu { display: flex; animation: vt-fadeup 0.25s var(--ease-out); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--aubergine-950);
  min-height: 100dvh;
  padding: clamp(116px, 14vh, 150px) 0 72px;
  display: flex; align-items: center;
}
.hero-glow-a, .hero-glow-b { position: absolute; border-radius: var(--radius-full); pointer-events: none; }
.hero-glow-a {
  top: -180px; left: -140px; width: 720px; height: 720px;
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.20) 0%, transparent 60%);
  filter: blur(60px);
  animation: vt-drift-a 19s ease-in-out infinite alternate;
}
.hero-glow-b {
  bottom: -220px; right: -160px; width: 820px; height: 820px;
  background: radial-gradient(circle at center, rgba(224, 139, 92, 0.12) 0%, transparent 60%);
  filter: blur(70px);
  animation: vt-drift-b 24s ease-in-out infinite alternate;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 62% at 42% 38%, black 25%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 42% 38%, black 25%, transparent 74%);
}
.hero-layout { display: grid; grid-template-columns: 1.04fr 1fr; gap: 56px; align-items: center; position: relative; }
@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-diag { justify-self: start; max-width: 560px; }
}

[data-hero-seq] { animation: vt-hero-in 0.9s var(--ease-out) both; animation-delay: var(--d, 0.12s); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-300);
}
.pulse-dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--violet-400); animation: vt-pulse 2.8s ease-in-out infinite; }
.pulse-dot.green { background: #34A853; }

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 700;
  color: var(--ink-bright);
}
.hero h1 .word-build { color: var(--copper-300); }
.hero h1 .word-lead { color: var(--violet-300); }
.hero-sub { margin: 26px 0 36px; max-width: 500px; font-size: 19px; line-height: 1.6; color: var(--ink-secondary); }
.hero-ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.hero-diag { position: relative; width: 100%; max-width: 640px; justify-self: end; }
#vt-pipe { display: block; width: 100%; height: auto; }
#vt-pipe .vt-flow { stroke-dasharray: 3 8; animation: vt-dash 1.3s linear infinite; }
#vt-pipe .n-build  { animation: vt-flash 7s linear infinite 1.05s; }
#vt-pipe .n-test   { animation: vt-flash 7s linear infinite 2.25s; }
#vt-pipe .n-deploy { animation: vt-flash 7s linear infinite 3.45s; }
#vt-pipe .vt-live  { animation: vt-livep 7s linear infinite; }
.deploy-line {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-tertiary);
}

.marquee-block { margin-top: 88px; padding-bottom: 40px; }
.marquee-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(139, 134, 163, 0.8); text-align: center; margin-bottom: 26px;
}
.marquee-mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 14%, black 86%, transparent);
}
.marquee {
  display: flex; align-items: center; gap: 72px;
  width: max-content; padding-right: 72px;
  animation: vt-marquee 34s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee span {
  font-size: 21px; font-weight: 700; letter-spacing: -0.02em;
  color: rgba(242, 239, 250, 0.55); white-space: nowrap;
}
.proof { padding: 34px 0 42px; background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.proof-inner { display: grid; grid-template-columns: minmax(190px, 0.55fr) 1.45fr; align-items: center; gap: 40px; }
.proof p { margin: 0; color: var(--text-tertiary); font-size: 13px; line-height: 1.4; max-width: 180px; }
.client-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 32px; }
.client-rail span { color: var(--text-secondary); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* ── Section scaffolding ────────────────────────────────────────────────── */
section { scroll-margin-top: 60px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2, .h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.06;
}
.h2 .dim { color: var(--text-tertiary); }
.section-head p { margin: 18px 0 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); }

/* ── Work / engagements ─────────────────────────────────────────────────── */
.work { padding: 112px 0 128px; background: var(--bg); border-bottom: 1px solid var(--border); }
.card {
  position: relative;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, rgba(224,139,92,0.22), rgba(167,139,250,0.12), rgba(255,255,255,0.05)) border-box;
  border: 1px solid transparent;
  border-radius: 26px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), var(--shadow-xs);
  padding: 32px;
}
.card::after {
  content: ""; position: absolute; inset: 6px; border-radius: 19px;
  border: 1px solid rgba(255,255,255,0.035); pointer-events: none;
}
.card-lg { padding: 40px; margin-bottom: 20px; }
.card-title-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.card h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.card-lg h3 { font-size: 26px; }
.live-note { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-tertiary); font-family: var(--font-mono); }
.role-line { font-size: 13.5px; font-weight: 600; color: var(--copper-300); margin-bottom: 12px; }
.card-lg .role-line { font-size: 14px; margin-bottom: 14px; }
.card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
.card-lg > p { max-width: 760px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.card-lg .chips { margin-top: 22px; }
.chip {
  display: inline-flex; padding: 6px 12px; border-radius: var(--radius-full);
  background: rgba(167,139,250,0.08); color: var(--violet-200);
  font-size: 12.5px; font-weight: 600; font-family: var(--font-mono);
}
.stack-toggle {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-full);
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text-secondary); font-size: 12.5px; font-weight: 500;
  font-family: var(--font-mono); cursor: pointer;
  transition: border-color 0.16s, color 0.16s;
}
.stack-toggle:hover { border-color: var(--violet-400); color: var(--ink-bright); }
.stack-panel { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); animation: vt-fadeup 0.4s var(--ease-out); }
.stack-panel[hidden] { display: none; }
.stack-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-tertiary); margin-bottom: 12px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; padding: 5px 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-secondary); font-size: 12.5px; font-family: var(--font-mono);
}
.work-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: start; }

/* ── Services ───────────────────────────────────────────────────────────── */
.services { padding: 128px 0; background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: stretch; }
.services-grid > :nth-child(1) { grid-column: span 7; }
.services-grid > :nth-child(2) { grid-column: span 5; }
.services-grid > :nth-child(3) { grid-column: 4 / span 7; }
.svc-card { display: flex; flex-direction: column; gap: 14px; }
.svc-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(167,139,250,0.10);
  display: flex; align-items: center; justify-content: center;
}
.svc-flag {
  align-self: flex-start; display: inline-flex; padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.svc-flag.copper { background: rgba(224,139,92,0.14); color: var(--copper-300); }
.svc-flag.solid-copper { background: var(--copper-400); color: var(--aubergine-900); }
.svc-flag.neutral { background: rgba(255,255,255,0.06); color: var(--text-secondary); }
.svc-card h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.svc-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
.svc-featured {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 1px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(224, 139, 92, 0.25) 60%, rgba(167, 139, 250, 0.15));
}
.svc-featured-inner {
  position: relative; height: 100%;
  background: var(--aubergine-800); border-radius: 19px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.svc-featured-glow {
  position: absolute; top: -80px; right: -60px; width: 300px; height: 300px; pointer-events: none;
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.18) 0%, transparent 65%);
}
.svc-featured-inner .svc-icon { background: rgba(167, 139, 250, 0.15); }
.svc-featured-inner h3 { color: var(--ink-bright); }
.svc-featured-inner p { color: var(--ink-secondary); }
.services-note { margin: 24px 0 0; max-width: 680px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 40px; }
.step-num {
  font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(187, 163, 247, 0.20);
  margin-bottom: 14px;
}
.step-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.steps-grid p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-secondary); }

/* ── Platform (dark) ────────────────────────────────────────────────────── */
.platform { position: relative; overflow: hidden; background: var(--aubergine-900); padding: 128px 0; border-bottom: 1px solid var(--border); }
.platform-glow {
  position: absolute; top: -240px; right: -180px; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.14) 0%, transparent 60%);
}
.platform .container { position: relative; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-300); margin-bottom: 16px;
}
.platform .section-head { max-width: 720px; margin-bottom: 56px; }
.platform h2 { color: var(--ink-bright); }
.platform h2 .dim { color: rgba(242, 239, 250, 0.42); }
.platform .section-head p { max-width: 620px; font-size: 17px; line-height: 1.65; color: var(--ink-secondary); }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.col-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(139, 134, 163, 0.9); margin-bottom: 6px;
}
.install-row { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.install-row:last-child { border-bottom: 0; }
.install-row h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 600; color: var(--ink-bright); }
.install-row p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-secondary); }
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md); overflow: hidden;
  margin-top: 26px;
}
.stat { background: var(--aubergine-800); padding: 30px 26px; }
.stat-num { font-family: var(--font-mono); font-size: clamp(24px, 7vw, 32px); font-weight: 500; color: var(--ink-bright); white-space: nowrap; }
.stat-label { font-size: 13.5px; color: var(--ink-secondary); margin-top: 8px; }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

/* ── Products ───────────────────────────────────────────────────────────── */
.products { padding: 128px 0; background: var(--bg); border-bottom: 1px solid var(--border); }
.products .section-head { margin-bottom: 40px; }
.prod-rows { border-top: 1px solid var(--border); }
.vt-prow {
  display: grid; grid-template-columns: minmax(150px, 230px) 1fr auto;
  gap: 20px 28px; align-items: center;
  padding: 26px 12px; border-bottom: 1px solid var(--border);
  color: inherit;
  transition: background 0.16s, transform 0.16s;
}
.vt-prow:hover { background: rgba(255,255,255,0.025); transform: translateX(6px); color: inherit; }
.prow-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.prow-num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-right: 14px; }
.prow-ext { font-family: var(--font-mono); font-size: 14px; color: var(--text-secondary); }
.prow-desc { font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.prow-badge {
  display: inline-flex; padding: 4px 10px; border-radius: var(--radius-full); white-space: nowrap;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.prow-badge.violet { background: rgba(167,139,250,0.12); color: var(--violet-200); }
.prow-badge.copper { background: rgba(224,139,92,0.14); color: var(--copper-300); }
@media (max-width: 720px) {
  .vt-prow { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── About ──────────────────────────────────────────────────────────────── */
.about { padding: 128px 0; background: var(--bg-subtle); }
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 64px; align-items: start;
}
.about-left { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.about-image {
  position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); background: var(--aubergine-950);
  box-shadow: 0 24px 64px rgba(26, 15, 46, 0.18);
}
.about-image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.about-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-statement { font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.14; }
.about-statement .grad {
  font-style: italic; font-weight: 400;
  background: linear-gradient(90deg, #7C3AED, #C2622F);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
.about-clients {
  border-top: 1px solid var(--border); padding-top: 20px;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: var(--text-tertiary);
}
.about-right .eyebrow { color: var(--copper-300); }
.about-right h2 { margin: 0 0 20px; font-size: clamp(32px, 4vw, 46px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.about-right h2 em { font-style: italic; font-weight: 400; }
.about-right > p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.65; color: var(--text-secondary); }
.about-right > p:last-of-type { margin-bottom: 32px; }
.kv-list { display: flex; flex-direction: column; }
.kv {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-top: 1px solid var(--border);
  font-size: 14.5px;
}
.kv:last-child { border-bottom: 1px solid var(--border); }
.kv dt { color: var(--text-tertiary); margin: 0; }
.kv dd { font-weight: 500; text-align: right; margin: 0; }
.kv dd a { font-family: var(--font-mono); font-size: 13px; }
.prior { margin-top: 40px; }
.prior-list { display: flex; flex-direction: column; gap: 14px; }
.prior-row { display: flex; gap: 14px; font-size: 14.5px; line-height: 1.55; }
.prior-row .org {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--text-secondary); padding-top: 2px; flex: 0 0 118px;
}
.prior-row .what { color: var(--text-secondary); }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact { padding: 0 0 128px; background: var(--bg-subtle); }
.contact-card {
  position: relative; overflow: hidden;
  background: linear-gradient(var(--aubergine-950), var(--aubergine-950)) padding-box,
              linear-gradient(120deg, rgba(224,139,92,0.34), rgba(167,139,250,0.22), rgba(255,255,255,0.05)) border-box;
  border: 1px solid transparent; border-radius: var(--radius-2xl);
  padding: clamp(48px, 9vw, 88px) clamp(24px, 6vw, 64px);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 28px 90px rgba(4,2,8,0.28);
}
.contact-glow-a, .contact-glow-b { position: absolute; width: 640px; height: 640px; pointer-events: none; }
.contact-glow-a {
  top: -200px; right: -140px;
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.2) 0%, transparent 60%);
  filter: blur(40px);
}
.contact-glow-b {
  bottom: -240px; left: -160px;
  background: radial-gradient(ellipse at center, rgba(224, 139, 92, 0.12) 0%, transparent 60%);
  filter: blur(50px);
}
.contact-inner { position: relative; }
.contact-inner h2 {
  margin: 0 auto 18px; max-width: 640px;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.06;
  color: var(--ink-bright);
}
.contact-inner p { margin: 0 auto 36px; max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--ink-secondary); }
.contact-ctas { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; }
.avail-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 7px 14px; border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-secondary);
}
.email-alt {
  position: relative;
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin: 28px 0 0; font-size: 14.5px; color: var(--ink-tertiary);
}
.email-alt a {
  color: var(--ink-secondary); font-size: 14.5px;
  text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 4px;
}
.email-alt a:hover { color: var(--ink-bright); text-decoration-color: var(--copper-400); }
.copy-hint {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; text-align: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--copper-300);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 32px 0; background: var(--bg); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand span { font-size: 13.5px; color: var(--text-secondary); }
.footer-links { display: flex; align-items: center; gap: 24px; font-size: 13.5px; }
.footer-links a, .footer-links span { color: var(--text-secondary); }
.footer-links a:hover { color: var(--ink-bright); }

/* Responsive composition */
@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-diag { display: none; }
  .hero { min-height: 100dvh; }
  .hero-layout > div:first-child { max-width: 700px; }
  .proof-inner { grid-template-columns: 1fr; gap: 22px; }
  .proof p { max-width: none; }
  .client-rail { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid > :nth-child(1),
  .services-grid > :nth-child(2),
  .services-grid > :nth-child(3) { grid-column: auto; }
  .services-grid > :nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .nav { top: 10px; width: calc(100% - 20px); border-radius: 16px; }
  .nav-inner { gap: 10px; padding: 8px 10px; }
  .nav-brand span { font-size: 16px; }
  .nav-cta { height: 40px; padding: 0 15px; font-size: 13px; }
  .mobile-menu { padding: 8px 18px 18px; }
  .mobile-menu a { padding: 14px 4px; }
  .hero { padding: 118px 0 56px; align-items: flex-start; }
  .hero-badge { margin-bottom: 22px; line-height: 1.5; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); line-height: 1.02; }
  .hero-sub { margin: 24px 0 30px; max-width: 34ch; font-size: 18px; line-height: 1.55; }
  .hero-ctas { align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: space-between; }
  .hero-ctas .btn-ghost-dark { justify-content: center; }
  .proof { padding: 30px 0 36px; }
  .client-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
  .client-rail span { font-size: 14px; }
  .work, .services, .platform, .products, .about { padding: 88px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head h2, .h2 { font-size: clamp(34px, 10vw, 44px); }
  .card, .card-lg, .svc-featured-inner { padding: 26px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid > :nth-child(3) { grid-column: auto; }
  .steps-grid { grid-template-columns: 1fr; gap: 34px; }
  [data-drawline] { margin-top: 64px; }
  .about-grid { grid-template-columns: 1fr; gap: 52px; }
  .contact { padding: 0 0 88px; }
  .contact-card { border-radius: 28px; }
  .footer-inner { align-items: flex-start; }
}

@media (max-width: 360px) {
  .nav-cta { display: none; }
}

@media (max-width: 480px) {
  .nav-brand span { display: none; }
}

/* Conversion-focused art direction */
main { width: 100%; max-width: 100%; overflow-x: clip; }

.hero { min-height: 100dvh; padding: clamp(144px, 18vh, 188px) 0 112px; text-align: center; }
.hero .container { width: 100%; }
.hero-layout { display: block; position: relative; min-height: 0; }
.hero-layout > div:first-child { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }
.hero h1 {
  max-width: 1180px; width: 100%;
  font-size: clamp(62px, 6.4vw, 96px); line-height: 0.92;
  letter-spacing: -0.052em; font-weight: 700;
}
.hero h1 .word-build { display: inline-block; white-space: nowrap; color: var(--copper-300); }
.hero-title-mobile { display: none; }
.hero-sub { max-width: 760px; margin: 36px auto 40px; font-size: 20px; line-height: 1.55; }
.hero-ctas { justify-content: center; }
.hero-diag {
  display: none; position: absolute; z-index: 1;
  left: calc((100vw - 100%) / -2); right: auto; bottom: -38px;
  width: 100vw; max-width: none; pointer-events: none;
}
#vt-pipe, .hero-diag > .deploy-line { display: none; }
.hero-system-art {
  position: relative; margin: 0; width: 100%;
  aspect-ratio: 16 / 9;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.85) 14%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.85) 14%, #000 88%, transparent 100%);
}
.hero-system-art img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.92) contrast(1.04);
}

.proof {
  padding: 156px 0 164px; background: #F0EDF4; color: #171020;
  border-bottom: 0;
}
.proof-heading { max-width: 1060px; margin-bottom: 72px; }
.proof-heading h2 {
  margin: 0; max-width: 980px; font-size: clamp(54px, 6.2vw, 88px);
  line-height: 0.96; letter-spacing: -0.052em; font-weight: 700;
}
.proof-heading p { margin: 28px 0 0; max-width: 610px; color: #5F5668; font-size: 19px; line-height: 1.55; }
.proof-bento {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(220px, 1fr)); grid-auto-flow: dense;
  gap: 12px; min-height: 520px;
}
.proof-story { grid-column: span 7; grid-row: span 2; min-width: 0; }
.proof-stat { grid-column: span 5; min-width: 0; }
.proof-story, .proof-stat { border-radius: 32px; overflow: hidden; }
.proof-story {
  color: #F3EFF8; background:
    radial-gradient(circle at 82% 12%, rgba(167,139,250,0.22), transparent 34%),
    linear-gradient(145deg, #171020, #0D0914);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.result-carousel { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(36px, 5vw, 64px); }
.result-slides { min-height: 260px; display: flex; align-items: center; }
.result-slide { margin: 0; }
.result-slide blockquote { margin: 0; max-width: 12ch; font-size: clamp(38px, 4.3vw, 62px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.result-slide figcaption { margin-top: 30px; color: #B8AEC8; font-size: 14px; }
.result-controls { display: flex; justify-content: space-between; align-items: center; }
.result-count { color: #91879F; font-family: var(--font-mono); font-size: 12px; }
.result-controls button {
  width: 46px; height: 46px; margin-left: 6px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06);
  color: #F3EFF8; cursor: pointer;
  transition: transform 0.7s var(--ease-out), background 0.7s var(--ease-out);
}
.result-controls button:hover { transform: translateY(-2px); background: rgba(255,255,255,0.12); }
.proof-stat { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(34px, 4vw, 52px); }
.proof-stat strong { font-size: clamp(58px, 7vw, 96px); line-height: 0.82; letter-spacing: -0.055em; }
.proof-stat span { max-width: 270px; margin-top: 24px; font-size: 17px; line-height: 1.35; }
.proof-stat-restaurants { color: #171020; background: #D99364; }
.proof-stat-support { color: #F3EFF8; background: #43305E; }
.client-marquee {
  margin-top: 48px; padding-top: 30px; overflow: hidden;
  border-top: 1px solid rgba(23,16,32,0.14);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.client-track { display: flex; width: max-content; animation: client-marquee 32s linear infinite; }
.client-set { display: flex; align-items: center; flex-shrink: 0; }
.client-set span {
  padding: 0 34px; color: #51485A; font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em; white-space: nowrap;
}
.client-set span::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 68px; border-radius: 50%; background: #D99364; vertical-align: middle; }
.client-marquee:hover .client-track { animation-play-state: paused; }
@keyframes client-marquee { to { transform: translateX(-50%); } }

.work { padding: 176px 0 188px; background: #0D0914; color: #F3EFF8; border-bottom: 0; }
.work-stage { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr); gap: clamp(60px, 8vw, 116px); align-items: start; }
.work-intro { padding-top: 12px; }
.work-intro h2 { margin: 0; max-width: 480px; font-size: clamp(48px, 5vw, 72px); line-height: 0.98; letter-spacing: -0.048em; }
.scrub-copy { margin: 34px 0 0; max-width: 460px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.22; letter-spacing: -0.025em; color: #F3EFF8; }
.scrub-word { display: inline-block; margin-right: .22em; will-change: opacity; }
.text-link { display: inline-flex; gap: 12px; margin-top: 36px; color: var(--copper-300); font-weight: 600; }
.text-link:hover { color: #F3EFF8; }
.engagement-accordion { display: flex; min-width: 0; height: 650px; overflow: hidden; border-radius: 34px; }
.engagement-panel {
  position: relative; flex: 0.72 1 0; min-width: 0; padding: 34px 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #F3EFF8; outline: none; overflow: hidden; cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.11);
  transition: flex 0.52s var(--ease-out), filter 0.52s var(--ease-out);
}
.engagement-panel:last-child { border-right: 0; }
.engagement-panel:nth-child(1) { background: linear-gradient(160deg, #43305E, #1A102A 70%); }
.engagement-panel:nth-child(2) { background: linear-gradient(160deg, #27202F, #121019 70%); }
.engagement-panel:nth-child(3) { background: linear-gradient(160deg, #6C3E2B, #211218 70%); }
.engagement-panel::before {
  content: ""; position: absolute; inset: 0; opacity: 0.3;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 52px 52px; pointer-events: none;
}
.engagement-panel:hover, .engagement-panel:focus-visible, .engagement-panel.is-active { flex: 3.1 1 0; filter: saturate(1.08); }
.engagement-index { position: relative; z-index: 1; font-size: 15px; font-weight: 700; white-space: nowrap; }
.engagement-content {
  position: relative; z-index: 1;
  width: 370px; min-width: 370px; max-width: 370px;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.42s var(--ease-out);
}
.engagement-panel:hover .engagement-content,
.engagement-panel:focus-visible .engagement-content,
.engagement-panel.is-active .engagement-content {
  opacity: 1; transform: translateY(0);
  transition-delay: 0.18s;
}
.engagement-content h3 { margin: 0 0 18px; font-size: clamp(32px, 3.2vw, 48px); line-height: 1; letter-spacing: -0.04em; }
.engagement-content p { margin: 0 0 38px; color: #C6BDD2; font-size: 16px; line-height: 1.55; }
.engagement-content strong { display: block; font-size: clamp(40px, 5vw, 68px); line-height: 0.9; letter-spacing: -0.045em; }
.engagement-content > span { display: block; margin-top: 12px; color: #C6BDD2; font-size: 13px; }

.services { background: #F8F6FA; color: #171020; }
.services .services-grid {
  display: block; position: relative;
}
.services .services-grid > * {
  position: sticky; min-height: 340px; margin-bottom: 96px; padding: clamp(34px, 5vw, 64px);
  border-radius: 32px; transform-origin: center top;
}
.services .services-grid > :nth-child(1) { top: 112px; z-index: 1; }
.services .services-grid > :nth-child(2) { top: 132px; z-index: 2; }
.services .services-grid > :nth-child(3) { top: 152px; z-index: 3; margin-bottom: 0; }
.services .svc-featured { padding: 1px; }
.services .svc-card, .services .svc-featured-inner { justify-content: center; }
.services .svc-featured-inner { padding: clamp(34px, 5vw, 64px); }
.services .svc-card h3, .services .svc-featured h3 {
  font-size: clamp(36px, 4vw, 56px); line-height: 0.98; letter-spacing: -0.045em;
}
.services .svc-card p, .services .svc-featured p { max-width: 820px; font-size: 18px; line-height: 1.55; }
.services .svc-icon { margin-bottom: 14px; }
.services .svc-flag { padding: 0; border-radius: 0; background: transparent !important; }
.services .svc-flag.copper, .services .svc-flag.solid-copper, .services .svc-flag.neutral { color: #8A5B43; }
.services .svc-featured .svc-flag { color: #D99364; }
.services .section-head .dim { color: #746B7B; }
.services .card { background: #EEEAF1; color: #171020; box-shadow: inset 0 1px 0 rgba(255,255,255,0.8); }
.services .svc-card p, .services .services-note, .services .steps-grid p { color: #625969; }
.services .svc-card h3, .services .step-title { color: #171020; }
.services .step-num { display: none; }
.services .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; }
.services .steps-grid > * { padding-top: 30px; border-top: 1px solid rgba(23,16,32,.15); }
.services .step-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.products { background: #F0EDF4; color: #171020; }
.products .section-head .dim, .products .section-head p, .products .prow-desc, .products .prow-num { color: #625969; }
.products .vt-prow { border-color: rgba(23,16,32,0.12); }
.products .vt-prow:hover { background: rgba(255,255,255,0.56); }
.products .prow-badge.violet,
.products .prow-badge.copper {
  background: #F6E1D1;
  color: #7A3617;
  border: 1px solid rgba(122,54,23,0.16);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
}
.about { background: #F8F6FA; color: #171020; }
.about .about-right > p, .about .kv dt, .about .prior-row .org, .about .prior-row .what, .about .about-clients { color: #625969; }
.about .kv, .about .kv:last-child, .about .about-clients { border-color: rgba(23,16,32,0.12); }
.about-proof {
  overflow: hidden; border-radius: 34px; color: #F3EFF8;
  background: radial-gradient(circle at 85% 5%, rgba(167,139,250,0.22), transparent 34%), #171020;
  box-shadow: 0 30px 80px rgba(23,16,32,0.14);
}
.about-image img { transition: transform .9s var(--ease-out), filter .9s var(--ease-out); filter: saturate(.72) contrast(1.08); }
.about-image:hover img { transform: scale(1.035); filter: saturate(.9) contrast(1.05); }
.about-proof > div { padding: 36px 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.about-proof > div:last-child { border-bottom: 0; }
.about-proof strong { display: block; font-size: clamp(44px, 5vw, 70px); line-height: 0.92; letter-spacing: -0.05em; }
.about-proof span { display: block; max-width: 300px; margin-top: 12px; color: #BDB4C9; font-size: 15px; line-height: 1.45; }
.about-right h2 em { color: #8A5B43; }

@media (max-width: 980px) {
  .hero-layout { min-height: 0; }
  .hero-diag { display: none; }
  .hero h1 { max-width: 820px; font-size: clamp(54px, 8vw, 76px); }
  .proof-bento { grid-template-rows: repeat(2, minmax(200px, 1fr)); }
  .work-stage { grid-template-columns: 1fr; }
  .work-intro { max-width: 720px; }
  .services .services-grid > * { position: relative; top: auto !important; min-height: 0; margin-bottom: 12px; }
  .services .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero { padding: 130px 0 76px; }
  .hero-layout { min-height: 0; }
  .hero h1 { font-size: clamp(38px, 11.2vw, 54px); line-height: 0.96; }
  .hero-title-desktop { display: none; }
  .hero-title-mobile { display: inline; }
  .hero h1 .hero-title-mobile .word-build { display: inline; white-space: normal; }
  .hero-sub { max-width: 34ch; font-size: 18px; }
  .hero-diag { display: none; }
  .proof { padding: 104px 0 112px; }
  .proof-heading { margin-bottom: 48px; }
  .proof-heading h2 { font-size: clamp(48px, 14vw, 66px); }
  .proof-bento { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .proof-story, .proof-stat { grid-column: 1; grid-row: auto; min-height: 280px; }
  .proof-story { min-height: 500px; }
  .result-slide blockquote { font-size: 42px; }
  .client-marquee { margin-top: 36px; }
  .client-set span { padding: 0 22px; }
  .client-set span::after { margin-left: 44px; }
  .work { padding: 112px 0 120px; }
  .work-intro h2 { font-size: 50px; }
  .scrub-copy { font-size: 26px; }
  .engagement-accordion { display: grid; height: auto; overflow: visible; gap: 12px; border-radius: 0; }
  .engagement-panel, .engagement-panel:hover, .engagement-panel:focus-visible, .engagement-panel.is-active {
    min-height: 430px; padding: 28px; border: 0; border-radius: 28px; flex: none;
  }
  .engagement-content {
    width: 100%; min-width: 0; max-width: none;
    opacity: 1; transform: none; pointer-events: auto; transition: none;
  }
  .services { padding-top: 112px; }
  .services .services-grid > * { padding: 30px; }
  .services .svc-featured { padding: 1px; }
  .services .svc-featured-inner { padding: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .client-track { animation: none; }
}
