/**
 * Viex — Base & layout
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  overflow-x: clip;
}

@media (hover: hover) and (pointer: fine) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--viex-ink);
  color: var(--viex-white);
  font-family: var(--viex-font-body);
  font-size: var(--viex-fs-base);
  line-height: var(--viex-lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 80% -10%, rgba(124, 58, 237, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 8% 100%, rgba(91, 33, 182, 0.1), transparent 52%),
    radial-gradient(ellipse 50% 30% at 50% 40%, rgba(236, 234, 245, 0.03), transparent 70%),
    linear-gradient(180deg, var(--viex-black) 0%, var(--viex-ink) 45%, #101018 100%);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--viex-dur-fast) var(--viex-ease), opacity var(--viex-dur-fast) var(--viex-ease);
}

a:hover {
  color: var(--viex-violet-300);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--viex-focus);
}

:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--viex-font-display);
  font-weight: 700;
  line-height: var(--viex-lh-tight);
  letter-spacing: var(--viex-tracking-tight);
  margin: 0 0 var(--viex-space-4);
}

h1 { font-size: var(--viex-fs-hero); }
h2 { font-size: var(--viex-fs-3xl); }
h3 { font-size: var(--viex-fs-xl); }
h4 { font-size: var(--viex-fs-lg); }

p { margin: 0 0 var(--viex-space-4); color: var(--viex-muted); }
p:last-child { margin-bottom: 0; }

.screen-reader-text,
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--viex-gutter);
  z-index: 10000;
  background: var(--viex-violet-600);
  color: var(--viex-white);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--viex-space-4);
}

.viex-container {
  width: min(100% - (var(--viex-gutter) * 2), var(--viex-container));
  margin-inline: auto;
}

.viex-section {
  padding-block: var(--viex-space-9);
  position: relative;
  isolation: isolate;
}

.viex-section--tight {
  padding-block: var(--viex-space-8);
}

/* Alternating bands — clearer section rhythm without going full-white */
main > .viex-section:nth-of-type(even) {
  background:
    var(--viex-sheen),
    linear-gradient(180deg, rgba(236, 234, 245, 0.02), transparent 28%),
    var(--viex-band);
  box-shadow:
    inset 0 1px 0 var(--viex-border),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

main > .viex-section:nth-of-type(odd) {
  background: transparent;
}

.viex-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--viex-font-mono);
  font-size: var(--viex-fs-xs);
  letter-spacing: var(--viex-tracking-wide);
  text-transform: uppercase;
  color: var(--viex-violet-300);
  margin-bottom: var(--viex-space-4);
}

.viex-eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--viex-grad);
}

.viex-lead {
  font-size: var(--viex-fs-lg);
  max-width: 40rem;
  color: var(--viex-muted);
  text-wrap: pretty;
}

.viex-grad-text {
  background: var(--viex-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.viex-btn {
  --btn-bg: var(--viex-white);
  --btn-fg: var(--viex-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--viex-radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--viex-font-body);
  font-size: var(--viex-fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--viex-dur-fast) var(--viex-ease),
    background var(--viex-dur) var(--viex-ease),
    border-color var(--viex-dur) var(--viex-ease),
    color var(--viex-dur) var(--viex-ease),
    box-shadow var(--viex-dur) var(--viex-ease);
}

.viex-btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
}

.viex-btn--primary {
  --btn-bg: transparent;
  --btn-fg: var(--viex-white);
  border: 0;
  background-image: var(--viex-grad);
  box-shadow: var(--viex-glow);
}

.viex-btn--primary:hover {
  filter: brightness(1.08);
}

.viex-btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--viex-white);
  border-color: var(--viex-border-strong);
}

.viex-btn--ghost:hover {
  border-color: var(--viex-violet-400);
  background: rgba(124, 58, 237, 0.12);
}

.viex-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: var(--viex-space-6);
}

/* Header */
.viex-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 18, 26, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color var(--viex-dur) var(--viex-ease), background var(--viex-dur) var(--viex-ease);
}

.viex-header.is-scrolled {
  border-bottom-color: var(--viex-border);
  background: rgba(18, 18, 26, 0.97);
}

.viex-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.75rem;
  padding-block: 0.5rem;
}

.viex-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.viex-logo img,
.viex-logo svg,
.custom-logo-link img,
.custom-logo {
  height: auto;
  width: auto;
  max-width: min(16rem, 58vw);
  object-fit: contain;
}

/* Nav brand — larger on mobile and desktop */
.viex-header .viex-logo img,
.viex-header .viex-logo svg,
.viex-header .custom-logo-link img,
.viex-header .custom-logo {
  height: clamp(3.85rem, 8.5vw, 5.35rem);
  width: auto;
  max-width: min(20rem, 72vw);
}

.viex-footer .viex-logo img,
.viex-footer .viex-logo svg,
.viex-footer .custom-logo-link img {
  height: clamp(2.75rem, 4vw, 3.5rem);
  max-width: min(14rem, 60vw);
}

.viex-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.viex-nav .viex-menu,
.viex-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  align-items: center;
}

.viex-nav > .viex-menu > li,
.viex-nav > ul > li {
  position: relative;
}

.viex-nav a {
  text-decoration: none;
  font-size: var(--viex-fs-sm);
  font-weight: 500;
  color: var(--viex-muted);
  padding: 0.35rem 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.viex-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--viex-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--viex-dur) var(--viex-ease);
}

.viex-nav a:hover,
.viex-nav .current-menu-item > a,
.viex-nav .current_page_item > a,
.viex-nav .current-menu-ancestor > a,
.viex-nav .current-menu-parent > a {
  color: var(--viex-white);
}

.viex-nav > .viex-menu > li > a:hover::after,
.viex-nav > ul > li > a:hover::after,
.viex-nav .current-menu-item > a::after,
.viex-nav .current_page_item > a::after,
.viex-nav .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.viex-nav .menu-item-has-children > a::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  order: 2;
  opacity: 0.7;
}

.viex-nav .sub-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  min-width: 16.5rem;
  padding: 0.55rem;
  display: grid;
  gap: 0.15rem;
  background: rgba(26, 26, 36, 0.98);
  border: 1px solid var(--viex-border-strong);
  border-radius: var(--viex-radius-lg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38), var(--viex-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.4rem);
  transition: opacity var(--viex-dur-fast) var(--viex-ease), transform var(--viex-dur) var(--viex-ease), visibility var(--viex-dur);
  z-index: 50;
}

.viex-nav .sub-menu a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--viex-radius);
  color: var(--viex-muted);
}

.viex-nav .sub-menu a::after {
  display: none;
}

.viex-nav .sub-menu a:hover,
.viex-nav .sub-menu .current-menu-item > a {
  color: var(--viex-white);
  background: rgba(124, 58, 237, 0.16);
}

.viex-nav .menu-item-has-children:hover > .sub-menu,
.viex-nav .menu-item-has-children:focus-within > .sub-menu,
.viex-nav .menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Breadcrumbs */
.viex-breadcrumbs {
  margin-bottom: var(--viex-space-4);
}

.viex-breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  font-family: var(--viex-font-mono);
  font-size: var(--viex-fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--viex-faint);
}

.viex-breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.55rem;
  color: var(--viex-border-strong);
}

.viex-breadcrumbs a {
  color: var(--viex-muted);
  text-decoration: none;
}

.viex-breadcrumbs a:hover {
  color: var(--viex-violet-300);
}

.viex-breadcrumbs [aria-current="page"] {
  color: var(--viex-violet-300);
}

.viex-nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--viex-border);
  background: transparent;
  color: var(--viex-white);
  border-radius: var(--viex-radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.viex-nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: currentColor;
  transition: transform var(--viex-dur) var(--viex-ease), opacity var(--viex-dur-fast) linear;
}

.viex-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.viex-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.viex-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.viex-hero {
  position: relative;
  min-height: min(100dvh, 100vh);
  display: grid;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: var(--viex-space-6);
  overflow: hidden;
  --hx: 0;
  --hy: 0;
}

.viex-hero__content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  padding-block: var(--viex-space-4);
}

.viex-hero__brand {
  margin: 0 0 var(--viex-space-3);
  max-width: min(28rem, 72vw);
  transform-origin: left center;
}

.viex-hero__brand img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.viex-hero .viex-eyebrow {
  margin-bottom: var(--viex-space-3);
}

.viex-hero h1 {
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 3rem);
  max-width: 18ch;
  margin-bottom: var(--viex-space-3);
}

.viex-hero .viex-lead {
  max-width: 36rem;
  margin-bottom: 0;
}

.viex-hero .viex-btn-group {
  margin-top: var(--viex-space-5);
}

.viex-hero .viex-tagline {
  margin-top: var(--viex-space-4);
}

.viex-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 30%, rgba(124, 58, 237, 0.2), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(91, 33, 182, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(236, 234, 245, 0.04), transparent 65%),
    linear-gradient(180deg, #101018 0%, var(--viex-black) 100%);
}

.viex-hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}

.viex-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 18, 0.2) 0%, rgba(12, 12, 18, 0.62) 55%, var(--viex-black) 100%);
}

.viex-hero__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.viex-hero__grid-lines {
  position: absolute;
  inset: -8%;
  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: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 65% at 55% 40%, #000 15%, transparent 78%);
  transform: translate3d(calc(var(--hx) * var(--p, 0.04) * 1px), calc(var(--hy) * var(--p, 0.04) * 1px), 0);
}

.viex-hero__orbs {
  position: absolute;
  inset: 0;
}

.viex-orb {
  --ox: 50%;
  --oy: 50%;
  --os: 0;
  --mx: 0;
  --my: 0;
  position: absolute;
  left: var(--ox);
  top: var(--oy);
  width: var(--orb-size, 12rem);
  height: var(--orb-size, 12rem);
  border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle at 32% 30%,
    rgba(237, 233, 254, 0.5) 0%,
    rgba(167, 139, 250, 0.32) 28%,
    rgba(124, 58, 237, 0.14) 52%,
    transparent 72%);
  /* Soft edge via gradient only — no live CSS blur (GPU killer) */
  opacity: 0.7;
  transform: translate3d(calc(var(--mx) * 1px), calc(var(--my) * 1px), 0);
}

.viex-orb--xl { --orb-size: min(42vw, 26rem); }
.viex-orb--lg { --orb-size: min(26vw, 16rem); }
.viex-orb--md { --orb-size: min(16vw, 10rem); }
.viex-orb--sm { --orb-size: min(12vw, 7rem); }
.viex-orb--xs { --orb-size: min(8vw, 4.5rem); }

.viex-hero__sparks {
  display: none;
}

.viex-spark {
  display: none;
}

.viex-hero__glow {
  position: absolute;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  left: 50%;
  top: 42%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 68%);
  opacity: 0.55;
  transform: translate3d(calc(var(--hx) * 0.08px), calc(var(--hy) * 0.08px), 0);
  pointer-events: none;
}

/* Feature lists / services */
.viex-grid {
  display: grid;
  gap: var(--viex-space-5);
}

.viex-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.viex-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.viex-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.viex-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--viex-space-6);
  border: 1px solid var(--viex-border);
  border-radius: var(--viex-radius-lg);
  background: var(--viex-sheen), var(--viex-surface);
  box-shadow: 0 1px 0 rgba(236, 234, 245, 0.04) inset;
  contain: content;
  transition: border-color var(--viex-dur) var(--viex-ease), transform var(--viex-dur) var(--viex-ease), box-shadow var(--viex-dur) var(--viex-ease), background var(--viex-dur) var(--viex-ease);
}

.viex-panel > .viex-btn-group {
  margin-top: auto;
  padding-top: var(--viex-space-5);
}

.viex-panel:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background: var(--viex-sheen), var(--viex-surface-2);
  box-shadow: var(--viex-glow), 0 1px 0 rgba(236, 234, 245, 0.06) inset;
  transform: translateY(-2px);
}

.viex-panel__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--viex-space-4);
  color: var(--viex-violet-300);
}

.viex-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--viex-space-4);
  color: var(--viex-violet-300);
}

.viex-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.viex-panel--icon:hover .viex-icon {
  color: var(--viex-violet-400);
}

.viex-panel h3 {
  margin-bottom: var(--viex-space-3);
}

.viex-list {
  list-style: none;
  margin: var(--viex-space-4) 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.viex-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--viex-muted);
  font-size: var(--viex-fs-sm);
}

.viex-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 1px;
  background: var(--viex-violet-400);
}

/* Methodology steps */
.viex-steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.viex-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--viex-space-5);
  padding-block: var(--viex-space-5);
  border-top: 1px solid var(--viex-border);
  counter-increment: step;
}

.viex-step:last-child {
  border-bottom: 1px solid var(--viex-border);
}

.viex-step__index {
  font-family: var(--viex-font-mono);
  font-size: var(--viex-fs-sm);
  color: var(--viex-violet-300);
  min-width: 3rem;
}

.viex-step__index::before {
  content: "0" counter(step);
}

.viex-step h3 {
  margin-bottom: var(--viex-space-2);
}

/* Value props */
.viex-values {
  display: grid;
  gap: var(--viex-space-6);
}

.viex-value {
  padding-block: var(--viex-space-5);
  border-top: 1px solid var(--viex-border);
}

.viex-value h3 {
  font-size: var(--viex-fs-xl);
}

/* Blog — home teaser + magazine archive */
.viex-posts {
  display: grid;
  gap: var(--viex-space-6);
}

.viex-post-card {
  display: grid;
  gap: var(--viex-space-4);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--viex-border);
  padding-bottom: var(--viex-space-6);
  transition: opacity var(--viex-dur) var(--viex-ease);
}

.viex-post-card:hover {
  color: inherit;
  opacity: 0.92;
}

.viex-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-family: var(--viex-font-mono);
  font-size: var(--viex-fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--viex-faint);
}

.viex-post-card h2,
.viex-post-card h3 {
  margin: 0;
  transition: color var(--viex-dur-fast) var(--viex-ease);
}

.viex-post-card:hover h2,
.viex-post-card:hover h3 {
  color: var(--viex-violet-300);
}

.viex-post-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--viex-border);
  background: var(--viex-surface);
}

.viex-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--viex-dur-slow) var(--viex-ease-out);
}

.viex-post-card:hover .viex-post-card__thumb img {
  transform: scale(1.04);
}

.viex-post-card__body {
  display: grid;
  gap: var(--viex-space-3);
  align-content: start;
}

.viex-post-card__body p {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.viex-post-card__more {
  font-family: var(--viex-font-mono);
  font-size: var(--viex-fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--viex-violet-300);
  margin-top: var(--viex-space-1);
}

.viex-post-card:hover .viex-post-card__more {
  color: var(--viex-violet-400);
}

/* Blog magazine layout */
.viex-page-hero--blog {
  padding-bottom: var(--viex-space-6);
}

.viex-page-hero--blog h1 {
  max-width: 12ch;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.viex-page-hero__blog {
  display: grid;
  gap: var(--viex-space-6);
}

.viex-page-hero__blog-copy {
  min-width: 0;
}

.viex-page-hero__blog-copy .viex-lead {
  max-width: 36rem;
  margin-bottom: 0;
}

.viex-blog-tools {
  display: grid;
  gap: var(--viex-space-4);
  padding-top: var(--viex-space-2);
  border-top: 1px solid var(--viex-border);
}

.viex-blog-tools__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: stretch;
}

.viex-blog-tools__input,
.viex-blog-tools__select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--viex-border-strong);
  border-radius: var(--viex-radius);
  background: var(--viex-surface-2);
  color: var(--viex-white);
  font-family: var(--viex-font-body);
  font-size: var(--viex-fs-sm);
  transition: border-color var(--viex-dur-fast) var(--viex-ease);
}

.viex-blog-tools__input::placeholder {
  color: var(--viex-faint);
}

.viex-blog-tools__input:hover,
.viex-blog-tools__select:hover,
.viex-blog-tools__input:focus,
.viex-blog-tools__select:focus {
  border-color: var(--viex-violet-400);
  outline: none;
}

.viex-blog-tools__submit {
  min-height: 2.75rem;
  white-space: nowrap;
}

.viex-blog-tools__filter {
  display: grid;
  gap: 0.4rem;
}

.viex-blog-tools__label {
  font-family: var(--viex-font-mono);
  font-size: var(--viex-fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--viex-faint);
}

.viex-blog-tools__select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--viex-violet-300) 50%),
    linear-gradient(135deg, var(--viex-violet-300) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) calc(50% - 0.15rem),
    calc(100% - 0.85rem) calc(50% - 0.15rem);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
  cursor: pointer;
}

.viex-blog-tools__reset {
  justify-self: start;
  font-family: var(--viex-font-mono);
  font-size: var(--viex-fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--viex-violet-300);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
  transition:
    color var(--viex-dur-fast) var(--viex-ease),
    border-color var(--viex-dur-fast) var(--viex-ease);
}

.viex-blog-tools__reset:hover {
  color: var(--viex-white);
  border-bottom-color: var(--viex-violet-400);
}

.viex-blog-empty {
  display: grid;
  gap: var(--viex-space-5);
  max-width: 36rem;
}

.viex-blog-featured {
  display: grid;
  gap: var(--viex-space-5);
  margin-bottom: var(--viex-space-8);
  padding-bottom: var(--viex-space-8);
  border-bottom: 1px solid var(--viex-border);
  text-decoration: none;
  color: inherit;
}

.viex-blog-featured:hover {
  color: inherit;
}

.viex-blog-featured__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--viex-border);
  background: var(--viex-surface);
}

.viex-blog-featured__media img,
.viex-blog-featured__media .viex-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viex-blog-featured__media .viex-media {
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.viex-blog-featured__media img {
  transition: transform var(--viex-dur-slow) var(--viex-ease-out);
}

.viex-blog-featured:hover .viex-blog-featured__media img {
  transform: scale(1.03);
}

.viex-blog-featured__content {
  display: grid;
  gap: var(--viex-space-4);
  align-content: end;
}

.viex-blog-featured__content .viex-eyebrow {
  margin-bottom: 0;
}

.viex-blog-featured__content h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(1.85rem, 1.3rem + 2vw, 3rem);
  transition: color var(--viex-dur-fast) var(--viex-ease);
}

.viex-blog-featured:hover h2 {
  color: var(--viex-violet-300);
}

.viex-blog-featured__content .viex-lead {
  margin: 0;
  max-width: 34rem;
}

.viex-blog-featured__content .viex-btn {
  justify-self: start;
  pointer-events: none;
}

.viex-blog-rail {
  margin-bottom: var(--viex-space-5);
}

.viex-blog-rail .viex-eyebrow {
  margin-bottom: 0;
}

.viex-blog-grid {
  display: grid;
  gap: var(--viex-space-6) var(--viex-space-5);
}

.viex-blog-grid .viex-post-card {
  border-bottom: 0;
  padding-bottom: 0;
  height: 100%;
  opacity: 1;
  transition:
    transform var(--viex-dur) var(--viex-ease),
    opacity var(--viex-dur) var(--viex-ease);
}

.viex-blog-grid .viex-post-card:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.viex-blog-grid .viex-post-card__thumb,
.viex-blog-grid .viex-post-card > .viex-media {
  margin: 0;
}

/* Page hero (inner) */
.viex-page-hero {
  padding-top: 7rem;
  padding-bottom: var(--viex-space-7);
  border-bottom: 1px solid var(--viex-border);
  background:
    linear-gradient(180deg, rgba(236, 234, 245, 0.04), transparent 70%),
    var(--viex-black);
}

.viex-page-hero h1 {
  max-width: 16ch;
}

.viex-content {
  padding-block: var(--viex-space-8);
}

.viex-content .entry-content > *:first-child { margin-top: 0; }
.viex-content .entry-content h2,
.viex-content .entry-content h3 {
  margin-top: var(--viex-space-7);
}
.viex-content .entry-content a {
  color: var(--viex-violet-300);
}
.viex-content .entry-content ul,
.viex-content .entry-content ol {
  color: var(--viex-muted);
}

/* Contact form */
.viex-form {
  display: grid;
  gap: var(--viex-space-4);
  max-width: 36rem;
}

.viex-field label {
  display: block;
  font-size: var(--viex-fs-sm);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.viex-field input,
.viex-field textarea,
.viex-field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--viex-border-strong);
  border-radius: var(--viex-radius);
  background: var(--viex-surface-2);
  color: var(--viex-white);
  font: inherit;
  transition: border-color var(--viex-dur-fast) var(--viex-ease);
}

.viex-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.viex-field input:hover,
.viex-field textarea:hover,
.viex-field select:hover {
  border-color: rgba(167, 139, 250, 0.5);
}

.viex-form__status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--viex-border);
  border-radius: var(--viex-radius);
  font-size: var(--viex-fs-sm);
}

.viex-form__status--ok {
  border-color: rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
}

.viex-form__status--err {
  border-color: rgba(248, 113, 113, 0.5);
  color: #fca5a5;
}

/* CTA band */
.viex-cta {
  position: relative;
  padding-block: var(--viex-space-9);
  border-block: 1px solid var(--viex-border);
  background:
    var(--viex-sheen),
    var(--viex-grad-soft),
    var(--viex-surface);
  overflow: hidden;
}

.viex-cta::before {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -8rem;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 65%);
  pointer-events: none;
}

.viex-cta__inner {
  position: relative;
  display: grid;
  gap: var(--viex-space-5);
  max-width: 40rem;
}

/* Footer */
.viex-footer {
  padding-block: var(--viex-space-8) var(--viex-space-6);
  border-top: 1px solid var(--viex-border);
  background:
    linear-gradient(180deg, rgba(236, 234, 245, 0.03), transparent 40%),
    var(--viex-black);
}

.viex-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr 0.85fr;
  gap: var(--viex-space-7);
  margin-bottom: var(--viex-space-7);
}

.viex-footer h2 {
  font-size: var(--viex-fs-sm);
  letter-spacing: var(--viex-tracking-wide);
  text-transform: uppercase;
  color: var(--viex-faint);
  font-family: var(--viex-font-mono);
  font-weight: 500;
  margin-bottom: var(--viex-space-4);
}

.viex-footer a {
  text-decoration: none;
  color: var(--viex-muted);
}

.viex-footer a:hover {
  color: var(--viex-white);
}

.viex-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.viex-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--viex-space-5);
  padding-top: var(--viex-space-5);
  border-top: 1px solid var(--viex-border);
  font-size: var(--viex-fs-sm);
  color: var(--viex-faint);
}

.viex-footer__legal {
  display: grid;
  gap: 0.65rem;
  max-width: 48rem;
}

.viex-footer__legal p {
  margin: 0;
  color: var(--viex-faint);
}

.viex-footer__copyright {
  line-height: 1.55;
  max-width: 42rem;
  text-wrap: pretty;
}

.viex-footer__legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.viex-footer__legal-nav a {
  color: var(--viex-muted);
  text-decoration: none;
  font-size: var(--viex-fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--viex-font-mono);
}

.viex-footer__legal-nav a:hover {
  color: var(--viex-violet-300);
}

.viex-footer__tagline {
  margin: 0;
  flex: 0 0 auto;
}

/* Cookie notice */
.viex-cookie {
  position: fixed;
  left: var(--viex-gutter);
  right: var(--viex-gutter);
  bottom: var(--viex-gutter);
  z-index: 1200;
  max-width: 42rem;
  margin-inline: auto;
  padding: var(--viex-space-5);
  border: 1px solid var(--viex-border-strong);
  border-radius: var(--viex-radius-lg);
  background:
    linear-gradient(180deg, rgba(236, 234, 245, 0.04), transparent 55%),
    rgba(18, 18, 26, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.viex-cookie[hidden] {
  display: none !important;
}

.viex-cookie__inner {
  display: grid;
  gap: var(--viex-space-4);
}

.viex-cookie__title {
  margin: 0 0 0.35rem;
  font-family: var(--viex-font-display);
  font-size: var(--viex-fs-lg);
  color: var(--viex-white);
}

.viex-cookie__copy p {
  margin: 0;
  font-size: var(--viex-fs-sm);
  color: var(--viex-muted);
}

.viex-cookie__copy a {
  color: var(--viex-violet-300);
}

.viex-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .viex-cookie__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: var(--viex-space-5);
  }

  .viex-cookie__actions {
    flex-direction: column;
    min-width: 10.5rem;
  }

  .viex-cookie__actions .viex-btn {
    width: 100%;
    justify-content: center;
  }
}

.viex-legal .entry-content h2 {
  margin-top: var(--viex-space-7);
  font-size: var(--viex-fs-xl);
}

.viex-legal .entry-content h2:first-of-type {
  margin-top: var(--viex-space-4);
}

.viex-legal .entry-content ul {
  margin: 0 0 var(--viex-space-4);
  padding-left: 1.15rem;
}

.viex-legal .entry-content li {
  margin-bottom: 0.45rem;
}

.viex-legal .entry-content code {
  font-family: var(--viex-font-mono);
  font-size: 0.9em;
  color: var(--viex-violet-300);
}

/* Pagination */
.viex-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--viex-space-7);
}

.viex-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--viex-border);
  text-decoration: none;
  font-size: var(--viex-fs-sm);
}

.viex-pagination .current,
.viex-pagination a:hover {
  border-color: var(--viex-violet-400);
  background: rgba(124, 58, 237, 0.15);
}

/* Split layouts */
.viex-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--viex-space-7);
  align-items: start;
}

.viex-section-head {
  margin-bottom: var(--viex-space-6);
}

.viex-section-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--viex-space-4) var(--viex-space-5);
}

.viex-section-head__row h2 {
  margin-bottom: 0;
  flex: 1 1 16rem;
  max-width: 18ch;
}

.viex-section-head__action {
  flex: 0 0 auto;
  align-self: flex-end;
  margin-bottom: 0.15em;
}

.viex-split--media {
  align-items: center;
}

.viex-split--media-reverse > :first-child {
  order: 2;
}

/* Media slots — filled or labeled placeholders */
.viex-media {
  --viex-media-ratio: 16/9;
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: var(--viex-media-ratio);
  overflow: hidden;
  border: 1px solid var(--viex-border);
  border-radius: var(--viex-radius-lg);
  background: var(--viex-surface-2);
}

/* Hide real slots until the image has painted — no empty frame flash */
.viex-media:not(.is-placeholder) {
  opacity: 0;
  border-color: transparent;
  background: transparent;
  transition: opacity 0.35s var(--viex-ease-out), border-color 0.35s var(--viex-ease-out);
}

.viex-media:not(.is-placeholder).is-ready {
  opacity: 1;
  border-color: var(--viex-border);
  background: var(--viex-surface-2);
}

/* Never leave images invisible forever if load events are missed */
@keyframes viex-media-failsafe {
  to {
    opacity: 1;
    border-color: var(--viex-border);
    background: var(--viex-surface-2);
  }
}

.viex-media:not(.is-placeholder):not(.is-ready) {
  animation: viex-media-failsafe 0.01s linear 2.8s forwards;
}

.viex-media.is-placeholder {
  background:
    linear-gradient(145deg, rgba(124, 58, 237, 0.12), transparent 55%),
    var(--viex-surface);
}

.viex-media img,
.viex-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viex-media__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  background: var(--viex-surface-2);
  pointer-events: none;
}

.viex-media--video {
  opacity: 1;
  border-color: transparent;
  background: var(--viex-surface-2);
}

.viex-media--video.is-ready {
  opacity: 1;
  border-color: transparent;
  background: transparent;
}

/* Hide native media UI / play overlays where browsers invent them */
.viex-media__video::-webkit-media-controls,
.viex-media__video::-webkit-media-controls-start-playback-button,
.viex-media__video::-webkit-media-controls-enclosure {
  display: none !important;
  -webkit-appearance: none;
}

.viex-media--bleed {
  border: 0;
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
}

@media (min-width: 961px) {
  .viex-media--bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
  }
}

.viex-media--bleed:not(.is-placeholder).is-ready {
  border-color: transparent;
  background: transparent;
}

.viex-media--cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  z-index: 0;
}

.viex-media--cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,12,18,0.28) 0%, rgba(12,12,18,0.7) 55%, var(--viex-black) 100%);
  pointer-events: none;
}

.viex-media--cover img,
.viex-media--cover .viex-media__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viex-media--panel {
  border: 0;
  border-bottom: 1px solid var(--viex-border);
  border-radius: var(--viex-radius-lg) var(--viex-radius-lg) 0 0;
  margin: calc(var(--viex-space-6) * -1) calc(var(--viex-space-6) * -1) var(--viex-space-5);
  width: calc(100% + (var(--viex-space-6) * 2));
}

.viex-media--square {
  --viex-media-ratio: 1/1;
}

.viex-media__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1rem 1.15rem;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.viex-media__tag {
  font-family: var(--viex-font-mono);
  font-size: var(--viex-fs-xs);
  letter-spacing: var(--viex-tracking-wide);
  text-transform: uppercase;
  color: var(--viex-violet-300);
}

.viex-media__label {
  font-family: var(--viex-font-display);
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.25rem);
  font-weight: 700;
  color: var(--viex-white);
  max-width: 22ch;
  margin-inline: auto;
  line-height: var(--viex-lh-snug);
}

.viex-media__sizes {
  list-style: none;
  margin: 0.35rem auto 0;
  padding: 0.55rem 0.75rem;
  display: grid;
  gap: 0.2rem;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--viex-border);
  border-radius: var(--viex-radius);
  background: rgba(12, 12, 18, 0.5);
  font-family: var(--viex-font-mono);
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--viex-muted);
  text-align: left;
}

.viex-media__sizes strong {
  color: var(--viex-white);
  font-weight: 600;
  margin-right: 0.35rem;
}

.viex-media__note {
  display: block;
  max-width: 28ch;
  margin-inline: auto;
  font-size: 0.75rem;
  color: var(--viex-faint);
  line-height: 1.4;
}

.viex-media__hint {
  font-family: var(--viex-font-mono);
  font-size: 0.68rem;
  color: var(--viex-violet-300);
  letter-spacing: 0.04em;
}

.viex-media--panel .viex-media__label {
  font-size: 0.95rem;
}

.viex-media--panel .viex-media__sizes {
  font-size: 0.65rem;
  padding: 0.4rem 0.55rem;
}

.viex-media--cover .viex-media__placeholder {
  background-color: rgba(12, 12, 18, 0.32);
}

.viex-page-hero--with-media {
  padding-bottom: 0;
  border-bottom: 0;
}

.viex-page-hero--with-media .viex-container {
  padding-bottom: var(--viex-space-6);
}

.viex-page-hero__media {
  margin-top: var(--viex-space-6);
}

.viex-media-band {
  margin-block: var(--viex-space-6);
}

.viex-panel {
  overflow: hidden;
}

.viex-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: var(--viex-space-5);
  font-family: var(--viex-font-mono);
  font-size: var(--viex-fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--viex-faint);
}

.viex-tagline span {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.viex-tagline span:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 0.85em;
  background: var(--viex-border-strong);
}

/* Responsive */
@media (max-width: 960px) {
  .viex-grid--3,
  .viex-grid--6,
  .viex-split,
  .viex-footer__grid {
    grid-template-columns: 1fr;
  }

  .viex-cookie {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .viex-split--media-reverse > :first-child {
    order: 0;
  }

  .viex-grid--2 {
    grid-template-columns: 1fr;
  }

  .viex-nav-toggle {
    display: inline-flex;
  }

  .viex-nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    background: rgba(18, 18, 26, 0.97);
    border-bottom: 1px solid var(--viex-border);
    padding: var(--viex-space-5) var(--viex-gutter) var(--viex-space-6);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--viex-dur) var(--viex-ease), opacity var(--viex-dur) var(--viex-ease), visibility var(--viex-dur);
  }

  .viex-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .viex-nav ul {
    flex-direction: column;
    gap: 0.35rem;
    align-items: stretch;
    width: 100%;
  }

  .viex-nav a {
    display: flex;
    padding: 0.75rem 0;
    font-size: var(--viex-fs-lg);
  }

  .viex-nav .sub-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin: 0.25rem 0 0.5rem;
    padding: 0.35rem 0.5rem 0.35rem 0.85rem;
    border: 0;
    border-left: 1px solid var(--viex-border);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    gap: 0;
  }

  .viex-nav .menu-item-has-children.is-open > .sub-menu {
    display: grid;
  }

  .viex-nav .sub-menu a {
    font-size: var(--viex-fs-base);
    padding: 0.55rem 0.65rem;
  }

  .viex-header__cta {
    display: none;
  }

  /*
   * Mobile scroll performance — no fixed full-page layers / motion.
   * Keep hero atmosphere (grid + orbs) as a static visual only.
   */
  body::before {
    content: none !important;
    display: none !important;
  }

  html,
  body {
    overflow-x: visible;
    overscroll-behavior: auto;
  }

  .viex-hero__sparks,
  .viex-spark {
    display: none !important;
  }

  .viex-hero__stage {
    display: block !important;
    overflow: hidden;
    pointer-events: none;
  }

  .viex-hero__grid-lines {
    display: block !important;
    inset: 0;
    transform: none !important;
    will-change: auto !important;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
    opacity: 0.9;
  }

  .viex-hero__orbs,
  .viex-orb {
    display: block !important;
  }

  .viex-orb {
    animation: none !important;
    transform: none !important;
    opacity: 0.55 !important;
    will-change: auto !important;
    filter: none !important;
  }

  .viex-hero__glow {
    display: block !important;
    transform: none !important;
    will-change: auto !important;
    filter: none !important;
    opacity: 0.4;
  }

  .viex-hero__bg {
    background:
      radial-gradient(ellipse 70% 55% at 72% 28%, rgba(124, 58, 237, 0.18), transparent 58%),
      radial-gradient(ellipse 50% 40% at 18% 78%, rgba(91, 33, 182, 0.1), transparent 55%),
      linear-gradient(180deg, #101018 0%, var(--viex-black) 100%) !important;
  }

  .viex-hero__photo {
    opacity: 0.2;
  }

  /* Kill all motion/composite work while scrolling */
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .viex-reveal,
  html.viex-js .viex-reveal,
  html.viex-js .viex-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  .viex-media:not(.is-placeholder),
  .viex-media:not(.is-placeholder).is-ready,
  .viex-media:not(.is-placeholder):not(.is-ready) {
    opacity: 1 !important;
    border-color: var(--viex-border) !important;
    background: var(--viex-surface-2) !important;
    animation: none !important;
    transition: none !important;
  }

  .viex-media--bleed:not(.is-placeholder),
  .viex-media--bleed:not(.is-placeholder).is-ready {
    border-color: transparent !important;
    background: transparent !important;
  }

  .viex-panel,
  .viex-panel:hover {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
  }

  main > .viex-section:nth-of-type(even) {
    box-shadow: none;
    background: var(--viex-band);
  }

  .viex-btn,
  .viex-btn:hover {
    transform: none !important;
    transition: none !important;
  }

  /* Hero — denser mobile layout */
  .viex-hero {
    min-height: 0;
    height: auto;
    align-items: start;
    padding-top: 4.75rem;
    padding-bottom: var(--viex-space-6);
    overflow: visible;
  }

  .viex-hero__content {
    padding-top: 0.5rem;
  }

  .viex-hero__brand {
    margin: 0 0 var(--viex-space-3);
    max-width: min(78vw, 17rem);
  }

  .viex-hero__brand img {
    width: 100%;
    height: auto;
  }

  .viex-hero h1 {
    max-width: 14ch;
    margin-bottom: var(--viex-space-3);
  }

  .viex-hero .viex-btn-group {
    margin-top: var(--viex-space-4);
  }

  .viex-header {
    position: sticky;
    top: 0;
    transform: none;
    will-change: auto;
  }
}

@media (min-width: 720px) {
  .viex-posts--featured {
    grid-template-columns: 1.2fr 1fr;
  }

  .viex-posts--featured .viex-post-card:first-child {
    grid-row: span 2;
  }

  .viex-page-hero__blog {
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.9fr);
    align-items: end;
    gap: var(--viex-space-7);
  }

  .viex-blog-tools {
    border-top: 0;
    border-left: 1px solid var(--viex-border);
    padding-top: 0;
    padding-left: var(--viex-space-5);
  }

  .viex-blog-tools__search {
    grid-template-columns: minmax(0, 1fr);
  }

  .viex-blog-tools__submit {
    width: 100%;
  }

  .viex-blog-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .viex-blog-grid .viex-post-card:nth-child(6n + 1) {
    grid-column: span 7;
  }

  .viex-blog-grid .viex-post-card:nth-child(6n + 2) {
    grid-column: span 5;
  }

  .viex-blog-grid .viex-post-card:nth-child(6n + 3) {
    grid-column: span 5;
  }

  .viex-blog-grid .viex-post-card:nth-child(6n + 4) {
    grid-column: span 7;
  }

  .viex-blog-grid .viex-post-card:nth-child(6n + 5) {
    grid-column: span 4;
  }

  .viex-blog-grid .viex-post-card:nth-child(6n + 6) {
    grid-column: span 8;
  }

  .viex-blog-grid .viex-post-card:nth-child(6n + 1) .viex-post-card__thumb,
  .viex-blog-grid .viex-post-card:nth-child(6n + 1) > .viex-media {
    aspect-ratio: 16 / 10;
  }

  .viex-blog-grid .viex-post-card:nth-child(6n + 2) .viex-post-card__thumb,
  .viex-blog-grid .viex-post-card:nth-child(6n + 2) > .viex-media,
  .viex-blog-grid .viex-post-card:nth-child(6n + 3) .viex-post-card__thumb,
  .viex-blog-grid .viex-post-card:nth-child(6n + 3) > .viex-media {
    aspect-ratio: 4 / 3;
  }

  .viex-blog-grid .viex-post-card:nth-child(6n + 5) .viex-post-card__thumb,
  .viex-blog-grid .viex-post-card:nth-child(6n + 5) > .viex-media {
    aspect-ratio: 3 / 4;
  }

  .viex-blog-grid .viex-post-card:nth-child(6n + 6) .viex-post-card__thumb,
  .viex-blog-grid .viex-post-card:nth-child(6n + 6) > .viex-media {
    aspect-ratio: 21 / 9;
  }
}

@media (min-width: 960px) {
  .viex-blog-featured {
    grid-template-columns: 1.35fr 1fr;
    gap: var(--viex-space-7);
    align-items: stretch;
  }

  .viex-blog-featured__media {
    aspect-ratio: auto;
    min-height: 22rem;
  }

  .viex-blog-featured__content {
    padding-block: var(--viex-space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viex-panel:hover,
  .viex-btn:hover,
  .viex-post-card__thumb img,
  .viex-blog-featured__media img,
  .viex-blog-grid .viex-post-card:hover {
    transform: none;
  }
}

/* Avoid duplicate CTA band on contact */
.page-template-page-contacto-php .viex-cta,
.page-contacto .viex-cta {
  display: none;
}
