/* =====================================================================
   VEO PANEL — main.css (v2)
   A quiet, monochrome digital gallery. Signature motif: the
   "focus line" — a thin rule that draws itself like a lens
   confirming focus, echoed in the header nav and card hover state.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:root{
  --bg: #0a0a09;
  --bg-raised: #121211;
  --ink: #f3f2ee;
  --ink-dim: #9c9a94;
  --ink-faint: #6a6863;
  --hair: rgba(243,242,238,.14);
  --hair-soft: rgba(243,242,238,.07);
  --overlay: rgba(6,6,5,.42);
  --overlay-strong: rgba(5,5,4,.74);

  --dur-fast: .22s;
  --dur: .5s;
  --dur-slow: 1.1s;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --container: 1560px;
  --edge: clamp(20px, 4vw, 56px);
  --header-h: 82px;

  --f-display: -apple-system, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --f-body: -apple-system, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

html { background: var(--bg); overflow-x: hidden; }
body{
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-weight: 300; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; overflow-x: hidden;
}
body.menu-open{ overflow: hidden; }
::selection{ background: var(--ink); color: var(--bg); }
:focus-visible{ outline: 1px solid var(--ink); outline-offset: 3px; }

.skip-link{
  position: fixed; left: var(--edge); top: -80px;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; z-index: 999; font-size: 13px;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus{ top: var(--edge); }

.eyebrow{
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-dim); font-weight: 400; display: inline-block;
}

.shell{ max-width: var(--container); margin: 0 auto; padding-left: var(--edge); padding-right: var(--edge); }

/* ---------- Header ---------- */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.site-header.is-scrolled{
  background: rgba(10,10,9,.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hair-soft);
}
.site-header__inner{ width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand{ display: flex; flex-direction: column; line-height: 1; }
.brand__name{ font-size: 15px; letter-spacing: .18em; font-weight: 500; text-transform: uppercase; color: var(--ink); }
.brand__tagline{ margin-top: 6px; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); }

.nav-desktop{ display: flex; align-items: center; gap: 40px; }
.nav-desktop__links{ display: flex; align-items: center; gap: 34px; }
.nav-link{
  position: relative; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 6px;
}
.nav-link::after{
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--ink);
  transition: left var(--dur) var(--ease-out), right var(--dur) var(--ease-out);
}
.nav-link:hover::after, .nav-link:focus-visible::after{ left: 0; right: 0; }

.menu-toggle{ display: none; flex-direction: column; gap: 5px; width: 26px; padding: 6px 0; }
.menu-toggle span{ display: block; height: 1px; width: 100%; background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ---------- Language switcher ---------- */
.lang-switch{ position: relative; }
.lang-trigger{
  display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .1em;
  border: 1px solid var(--hair); padding: 7px 11px; border-radius: 999px;
  transition: border-color var(--dur-fast) var(--ease);
}
.lang-trigger:hover{ border-color: var(--ink); }
.lang-flag{ font-size: 13px; line-height: 1; }
.lang-list{
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 168px;
  background: rgba(10,10,9,.96); border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
.is-rtl .lang-list{ right: auto; left: 0; }
.lang-switch.is-open .lang-list{ opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option{ display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; font-size: 12px; text-align: left; }
.is-rtl .lang-option{ text-align: right; }
.lang-option:hover{ background: rgba(255,255,255,.06); }
.lang-option .lang-name{ color: var(--ink-dim); margin-left: auto; font-size: 11px; }
.is-rtl .lang-option .lang-name{ margin-left: 0; margin-right: auto; }

.mobile-menu{
  position: fixed; inset: 0; z-index: 99;
  background: rgba(9,9,8,.98); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: center; padding: var(--edge);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.mobile-menu.is-open{ opacity: 1; visibility: visible; }
.mobile-menu__links{ display: flex; flex-direction: column; gap: 26px; }
.mobile-menu__links a{ font-size: 30px; font-weight: 300; letter-spacing: .04em; text-transform: uppercase; }
.mobile-menu__lang{ margin-top: 44px; }
.mobile-menu__lang [data-lang-switch] .lang-list{
  position: static; opacity: 1; visibility: visible; transform: none;
  background: none; border: 0; margin-top: 14px; padding: 0;
}
.mobile-menu__lang [data-lang-switch] .lang-option{ padding: 8px 0; font-size: 14px; }
.mobile-menu__lang [data-lang-switch] .lang-trigger{ display: none; }

/* ---------- Buttons ---------- */
.btn{
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--ink); color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  overflow: hidden;
}
.btn::before{
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: translateX(-101%); transition: transform var(--dur) var(--ease-out); z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before{ transform: translateX(0); }
.btn:hover, .btn:focus-visible{ color: var(--bg); }
.btn-block{ width: 100%; }
.btn-ghost{ border-color: var(--hair); }
.btn-arrow::after{ content: "→"; transition: transform var(--dur-fast) var(--ease); }
.btn-arrow:hover::after{ transform: translateX(4px); }
.is-rtl .btn-arrow::after{ content: "←"; }
.is-rtl .btn-arrow:hover::after{ transform: translateX(-4px); }

/* ---------- Hero ---------- */
.hero{
  padding-top: calc(var(--header-h) + 90px);
  padding-bottom: 64px;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero .eyebrow{ margin-bottom: 20px; }
.hero h1{
  font-size: clamp(28px, 4.4vw, 54px);
  font-weight: 700;
  letter-spacing: .005em;
  line-height: 1.18;
  margin-bottom: 28px;
}
.hero p{
  font-size: 15.5px; line-height: 1.85; color: var(--ink-dim);
  max-width: 620px; margin: 0 auto;
  font-weight: 300;
}

/* ---------- Home / portfolio grid ---------- */
.portfolio-section{ padding-bottom: 20px; }
.portfolio-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--hair-soft); }

.card{
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-raised);
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.card.is-visible{ opacity: 1; transform: translateY(0); }

.card-media{ position: absolute; inset: 0; }
.card-media__img, .card-media__video{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001); transition: transform 1.4s var(--ease-out);
}
.card:hover .card-media__img, .card:hover .card-media__video{ transform: scale(1.045); }

.card-badge{
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  background: rgba(6,6,5,.55); border: 1px solid var(--hair); padding: 6px 10px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.card-overlay{ position: absolute; inset: 0; background: var(--overlay); opacity: 0; transition: opacity var(--dur) var(--ease); }
.card:hover .card-overlay{ opacity: 1; }

.card-focusline{
  position: absolute; left: 50%; top: 50%; width: 34px; height: 1px; background: var(--ink);
  transform: translate(-50%, calc(-50% - 16px)) scaleX(0); transform-origin: center;
  transition: transform var(--dur) var(--ease-out); opacity: .9;
}
.card:hover .card-focusline{ transform: translate(-50%, calc(-50% - 16px)) scaleX(1); }

.card-title{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: clamp(15px, 1.4vw, 19px); letter-spacing: .1em; text-transform: uppercase;
  text-align: center; color: var(--ink); opacity: 0; white-space: nowrap;
  transition: opacity var(--dur) var(--ease), letter-spacing var(--dur) var(--ease);
}
.card:hover .card-title{ opacity: 1; letter-spacing: .14em; }

.grid-empty{ grid-column: 1 / -1; padding: 80px var(--edge); text-align: center; color: var(--ink-dim); background: var(--bg); }

/* ---------- Footer ---------- */
.site-footer{ border-top: 1px solid var(--hair-soft); padding: 56px var(--edge) 40px; }
.site-footer__top{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 40px; }
.site-footer__brand .brand__name{ font-size: 16px; }
.site-footer__nav{ display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer__nav a{ font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.site-footer__nav a:hover{ color: var(--ink); }
.site-footer__bottom{
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--hair-soft);
  font-size: 11px; color: var(--ink-faint); letter-spacing: .04em;
}

/* ---------- Custom video player ---------- */
.vplayer{ position: relative; background: var(--bg-raised); overflow: hidden; }
.vplayer-video{ width: 100%; height: auto; display: block; }
.vplayer-controls{
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease);
}
.vplayer:hover .vplayer-controls, .vplayer:focus-within .vplayer-controls{ opacity: 1; }
.vplayer--small .vplayer-controls{ padding: 10px 12px; gap: 10px; }
.vplayer-btn{ display: flex; flex-shrink: 0; opacity: .92; }
.vplayer-btn:hover{ opacity: .6; }
.vplayer-timeline{ flex: 1; height: 14px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.vplayer-timeline::before{
  content: ""; display: block; width: 100%; height: 2px; background: rgba(255,255,255,.22); position: relative;
}
.vplayer-timeline__fill{
  position: absolute; height: 2px; width: 0%; background: var(--ink);
  pointer-events: none;
}
.vplayer-timeline{ position: relative; }

/* ---------- Project detail page ---------- */
.project-main{ padding-top: calc(var(--header-h) + 40px); padding-bottom: 90px; }
.project-head{ max-width: 880px; margin: 0 auto 40px; text-align: center; opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.project-head.is-visible{ opacity: 1; transform: translateY(0); }
.back-link{ display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 26px; }
.is-rtl .back-link svg{ transform: rotate(180deg); }
.back-link:hover{ color: var(--ink); }
.project-category{ display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 14px; }
.project-head h1{ font-size: clamp(28px, 4.4vw, 52px); font-weight: 300; letter-spacing: .01em; }

.project-media{ max-width: 980px; margin: 0 auto; opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out) .05s, transform .7s var(--ease-out) .05s; }
.project-media.is-visible{ opacity: 1; transform: translateY(0); }
.project-media img{ width: 100%; height: auto; }

.project-info{ max-width: 680px; margin: 34px auto 0; text-align: center; }
.project-description{ font-size: 15px; line-height: 1.8; color: var(--ink-dim); font-weight: 300; }

.project-gallery{ max-width: var(--container); margin: 70px auto 0; padding: 0 var(--edge); }
.project-gallery .eyebrow{ display: block; text-align: center; margin-bottom: 22px; }
.project-gallery__grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.project-gallery__grid img{ width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.gallery-video-tile{ aspect-ratio: 4/5; }
.gallery-video-tile .vplayer{ height: 100%; }
.gallery-video-tile .vplayer-video{ height: 100%; object-fit: cover; }

.project-cta{ max-width: 480px; margin: 80px auto 0; text-align: center; }
.project-cta__text{ font-size: 13px; letter-spacing: .04em; color: var(--ink-dim); margin-bottom: 22px; }
.cta-buttons{ display: flex; flex-direction: column; gap: 10px; }

.not-found{ text-align: center; padding: 160px var(--edge) 120px; }
.not-found h1{ font-size: 15px; letter-spacing: .2em; color: var(--ink-dim); margin-bottom: 16px; }
.not-found p{ margin-bottom: 28px; color: var(--ink-dim); }

/* ---------- About page ---------- */
.page-main{ padding-top: calc(var(--header-h) + 56px); }
.page-hero{ max-width: 760px; margin: 0 auto 100px; padding: 0 var(--edge); text-align: center; }
.page-hero .eyebrow{ margin-bottom: 18px; }
.page-hero h1{ font-size: clamp(30px, 5vw, 56px); font-weight: 300; letter-spacing: .01em; margin-bottom: 26px; }
.page-hero p{ font-size: 16px; line-height: 1.9; color: var(--ink-dim); }

.about-cta{ max-width: 480px; margin: 0 auto 130px; padding: 0 var(--edge); text-align: center; }
.about-cta h2{ font-size: 20px; font-weight: 300; letter-spacing: .02em; margin-bottom: 10px; }
.about-cta p{ font-size: 13px; color: var(--ink-dim); margin-bottom: 26px; }

/* ---------- Contact page ---------- */
.contact-grid{ max-width: 560px; margin: 0 auto 140px; padding: 0 var(--edge); display: flex; flex-direction: column; gap: 12px; }
.contact-card{
  display: flex; align-items: center; justify-content: space-between; padding: 22px 26px;
  border: 1px solid var(--hair); transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.contact-card:hover{ border-color: var(--ink); background: rgba(255,255,255,.03); }
.contact-card__label{ font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.contact-card__icon{ opacity: .7; transition: transform var(--dur-fast) var(--ease); }
.contact-card:hover .contact-card__icon{ transform: translateX(4px); }
.is-rtl .contact-card:hover .contact-card__icon{ transform: translateX(-4px); }

/* ---------- 404 ---------- */
.error-page{ min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--edge); }
.error-page h1{ font-size: clamp(56px, 12vw, 130px); font-weight: 200; letter-spacing: .02em; }
.error-page p{ color: var(--ink-dim); margin: 14px 0 30px; }

/* ---------- Reveal utility ---------- */
[data-reveal]{ opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }
.no-motion [data-reveal]{ opacity: 1 !important; transform: none !important; transition: none !important; }
.no-motion .card{ opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =====================================================================
   Featured website demos — seamless right-to-left marquee
   Same monochrome vocabulary as the portfolio grid: hairline frames,
   a focus rule, a quiet veil and a thin centred title. Motion is
   transform-only so it stays on the compositor.
   ===================================================================== */
.website-demos{
  --wdemo-card: clamp(280px, 34vw, 520px);
  --wdemo-gap: 26px;
  --wdemo-dur: 52s;
  padding: 8px 0 62px;
}

.wdemo-head{ text-align: center; padding: 0 var(--edge); margin-bottom: 30px; }
.wdemo-head h2{
  font-size: clamp(13px, 1.35vw, 16px);
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.wdemo-head h2::after{
  content: ""; display: block; width: 34px; height: 1px; margin: 16px auto 0;
  background: var(--hair);
}

.wdemo-viewport{
  position: relative;
  overflow: hidden;
  direction: ltr; /* the marquee reads right-to-left in every language */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

/* The gutter lives on the cards — not as flex `gap` — and the track
   carries no horizontal padding, so the track is exactly two identical
   groups wide and the -50% shift lands on a perfect seam. */
.wdemo-track{
  display: flex;
  width: max-content;
  padding: 34px 0;
  will-change: transform;
  animation: wdemo-marquee var(--wdemo-dur) linear infinite;
}
.wdemo-group{ display: flex; }

@keyframes wdemo-marquee{
  from{ transform: translate3d(0, 0, 0); }
  to  { transform: translate3d(-50%, 0, 0); }
}

/* Pause on hover (desktop only) and whenever a card takes keyboard
   focus; resumes from the same position the moment it ends. */
@media (hover: hover) and (pointer: fine){
  .wdemo-viewport:hover .wdemo-track{ animation-play-state: paused; }
}
.wdemo-viewport:focus-within .wdemo-track{ animation-play-state: paused; }
.wdemo-track.is-offscreen{ animation-play-state: paused; }

/* ---------- Card ---------- */
.wdemo-card{
  flex: 0 0 auto;
  width: var(--wdemo-card);
  margin-right: var(--wdemo-gap);
  display: block;
  perspective: 1100px;
}

.wdemo-card__frame{
  display: block;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid var(--hair);
  background: linear-gradient(150deg, rgba(243,242,238,.075), rgba(243,242,238,.022));
  -webkit-backdrop-filter: blur(10px) saturate(120%);
          backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 22px 54px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.06);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wdemo-card.is-tilting .wdemo-card__frame{ transition-duration: .14s, var(--dur), var(--dur); }
.wdemo-card:hover .wdemo-card__frame,
.wdemo-card:focus-visible .wdemo-card__frame{
  border-color: rgba(243,242,238,.3);
  box-shadow: 0 30px 70px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.09);
}

.wdemo-card__shot{
  position: relative; display: block; overflow: hidden;
  border-radius: 12px; aspect-ratio: 16 / 10;
  background: var(--bg-raised);
}
.wdemo-card__img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.4s var(--ease-out);
}
.wdemo-card:hover .wdemo-card__img,
.wdemo-card:focus-visible .wdemo-card__img{ transform: scale(1.055); }

.wdemo-card__veil{
  position: absolute; inset: 0; background: var(--overlay-strong);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.wdemo-card:hover .wdemo-card__veil,
.wdemo-card:focus-visible .wdemo-card__veil{ opacity: 1; }

.wdemo-card__rule{
  position: absolute; left: 50%; top: 50%; width: 34px; height: 1px; background: var(--ink);
  transform: translate(-50%, calc(-50% - 17px)) scaleX(0); transform-origin: center;
  transition: transform var(--dur) var(--ease-out); opacity: .9;
}
.wdemo-card:hover .wdemo-card__rule,
.wdemo-card:focus-visible .wdemo-card__rule{ transform: translate(-50%, calc(-50% - 17px)) scaleX(1); }

.wdemo-card__title{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: clamp(13px, 1.1vw, 16px); font-weight: 300;
  letter-spacing: .1em; text-transform: uppercase; text-align: center;
  color: #fff; white-space: nowrap; opacity: 0;
  transition: opacity var(--dur) var(--ease), letter-spacing var(--dur) var(--ease);
}
.wdemo-card:hover .wdemo-card__title,
.wdemo-card:focus-visible .wdemo-card__title{ opacity: 1; letter-spacing: .15em; }

/* Touch devices never hover — keep the title legible there. */
@media (hover: none){
  .wdemo-card__veil{ opacity: .5; }
  .wdemo-card__title{ opacity: 1; }
  .wdemo-card__rule{ transform: translate(-50%, calc(-50% - 17px)) scaleX(1); }
}

/* Fallback for when the drag engine never starts (JavaScript disabled):
   a static, manually scrollable strip. Once the engine is live it adds
   .is-live and takes over, so this must not apply on top of it — it
   would hide the duplicated group and break the infinite loop. */
@media (prefers-reduced-motion: reduce){
  .website-demos:not(.is-live) .wdemo-viewport{ overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .website-demos:not(.is-live) .wdemo-track{ animation: none; width: auto; padding-left: var(--edge); }
  .website-demos:not(.is-live) .wdemo-group[aria-hidden="true"]{ display: none; }
  .website-demos:not(.is-live) .wdemo-card{ scroll-snap-align: center; }
}
.no-motion .wdemo-track{ animation: none; }

/* ---------- Website demos: drag / swipe ----------
   The scrollbar is hidden in every mode, vertical page scrolling is
   left to the browser (touch-action: pan-y) while horizontal gestures
   belong to the carousel, and the JS engine takes over the transform
   once it is running. */
.wdemo-viewport{
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.wdemo-viewport::-webkit-scrollbar{ width: 0; height: 0; display: none; }

.wdemo-track.is-interactive{ animation: none !important; }
.wdemo-track.is-interactive .wdemo-card{ cursor: grab; }
.wdemo-track.is-grabbing,
.wdemo-track.is-grabbing .wdemo-card{ cursor: grabbing; user-select: none; }
.wdemo-track.is-interactive .wdemo-card__img{
  -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none;
}
/* While a real drag is in progress the hover polish stays out of the way. */
.wdemo-track.is-dragging .wdemo-card__frame{ transition-duration: 0s; }

/* =====================================================================
   Homepage heading — blur-to-clear reveal
   The title and subtitle resolve out of a soft blur while lifting a
   few pixels, once, on load. Only opacity, filter and transform are
   touched: text, font, size and spacing are untouched.

   The durations are marked !important on purpose. main.css already
   flattens every animation to 0.001ms under prefers-reduced-motion,
   and this reveal is the page's opening statement — it is meant to
   play on every desktop, including machines with Windows animation
   effects switched off.
   ===================================================================== */
@keyframes veo-hero-reveal{
  from{ opacity: 0; filter: blur(12px); transform: translateY(16px); }
  to  { opacity: 1; filter: blur(0);    transform: translateY(0); }
}

.hero h1,
.hero p{
  animation-name: veo-hero-reveal !important;
  animation-duration: 1.25s !important;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1) !important;
  animation-fill-mode: both !important;
  animation-iteration-count: 1 !important;
}
.hero h1{ animation-delay: .15s !important; }
.hero p { animation-delay: .38s !important; }
