/* Vidreira Algarvia: glass story site. Colours sampled from the original logo. */
:root {
  --cyan: #00B6E3;
  --blue: #0D7FC4;
  --blue-2: #2362AE;
  --blue-3: #1858A8;
  --navy: #163259;
  --deep: #0B1D38;
  --deep-2: #0F2747;
  --ice: #D9E6F2;
  --page: #F3F7FB;
  --white: #fff;
  --ink: #163259;
  --ink-dim: rgba(22, 50, 89, .72);
  --mist: rgba(255, 255, 255, .74);
  --line: rgba(22, 50, 89, .14);
  --line-l: rgba(255, 255, 255, .16);

  --display: 'Titillium Web', 'Segoe UI', sans-serif;
  --sans: 'Inter', system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --mw: 1320px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p, ul, ol, figure, address { margin: 0; padding: 0; font-style: normal; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
em { font-style: normal; color: var(--blue); font-weight: 700; }
::selection { background: var(--cyan); color: var(--deep); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- shared ---------- */
.va-eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: 10px; }
.va-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--cyan); }
.va-h2 { font: 300 clamp(38px, 5.6vw, 84px)/1 var(--display); letter-spacing: -.015em; margin-top: 18px; text-wrap: balance; }
.va-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink-dim); max-width: 54ch; margin-top: 22px; }
.va-link { text-decoration: none; border-bottom: 1px solid currentColor; transition: color .3s; }
.va-link:hover { color: var(--cyan); }
.va-sec-head { padding: 0 var(--gutter); max-width: calc(var(--mw) + 2 * var(--gutter)); margin: 0 auto; }

.va-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 4px; border: 1px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer;
  font: 600 14px/1 var(--sans); letter-spacing: .04em; text-decoration: none;
  transition: transform .4s var(--ease-out), background .3s, color .3s, border-color .3s, box-shadow .4s;
}
.va-btn:hover { transform: translateY(-2px); }
.va-btn-solid { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 12px 34px -14px rgba(13, 127, 196, .8); }
.va-btn-solid:hover { background: var(--navy); border-color: var(--navy); }
.va-btn-line:hover { background: var(--navy); color: #fff; }

/* image slots: photo when present, a glass-blue placeholder when not */
.va-ph { position: relative; overflow: hidden; background: linear-gradient(135deg, #cfe3f2, #9cc6e3 60%, #6fa9d3); }
.va-ph img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.va-ph img.is-missing { display: none; }
.va-ph video[data-loop] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.va-ph video[data-loop].is-playing { opacity: 1; }

/* ---------- nav ---------- */
.va-nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 26px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .4s, box-shadow .4s, transform .5s var(--ease-out);
}
.va-nav.is-solid { border-color: var(--line); box-shadow: 0 10px 40px -30px rgba(11, 29, 56, .6); }
.va-nav.is-hidden { transform: translateY(-100%); }
.va-logo { display: block; flex: none; }
.va-logo img { height: 34px; width: auto; }
.va-links { display: flex; gap: 24px; margin-left: auto; }
.va-links a { text-decoration: none; font: 500 14px/1 var(--sans); color: var(--ink-dim); transition: color .3s; position: relative; padding: 8px 0; }
.va-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.va-links a:hover { color: var(--navy); }
.va-links a:hover::after { transform: scaleX(1); }
.va-lang { text-decoration: none; font: 600 13px/1 var(--sans); letter-spacing: .08em; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background .3s, color .3s; }
.va-lang:hover { background: var(--navy); color: #fff; }
.va-nav-cta { min-height: 42px; padding: 0 18px; font-size: 13px; }
.va-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 12px; }
.va-burger i { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .4s var(--ease-out); }
.va-burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.va-burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- 1 hero ---------- */
.va-hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: clip; isolation: isolate; background: var(--deep); padding: 110px var(--gutter) 90px; }
.va-hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--deep); }
.va-hero-bg::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(11, 29, 56, .25), rgba(11, 29, 56, .1) 40%, rgba(11, 29, 56, .55)); }
.va-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
/* the copy sits on a pane of frosted glass, so it never fights the photo */
.va-hero-pane {
  width: min(100%, 760px); text-align: center; padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 56px) clamp(30px, 4vw, 48px);
  background: linear-gradient(140deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78)); border: 1px solid rgba(255, 255, 255, .9); border-radius: 6px;
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 50px 120px -50px rgba(4, 14, 30, .9), inset 0 1px 0 #fff;
}
.va-build { position: relative; width: clamp(170px, 20vw, 250px); aspect-ratio: 800 / 567; margin: 0 auto 26px; }
.va-build img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Motion on: the first copy is hidden and four clipped copies (the four panes of the mark) plus the wordmark assemble. */
html[data-motion="on"] .va-build img:nth-child(1) { clip-path: inset(78% 0 0 0); }
html[data-motion="on"] .va-build img:nth-child(2) { clip-path: inset(0 62.5% 22% 0); }
html[data-motion="on"] .va-build img:nth-child(3) { clip-path: inset(0 55.4% 22% 37.5%); }
html[data-motion="on"] .va-build img:nth-child(4) { clip-path: inset(0 48.4% 22% 44.6%); }
html[data-motion="on"] .va-build img:nth-child(5) { clip-path: inset(0 0 22% 51.6%); }
html[data-motion="off"] .va-build img:nth-child(n+2) { display: none; }
.va-hero .va-eyebrow { justify-content: center; }
.va-hero-title { font: 300 clamp(34px, 5vw, 66px)/1.04 var(--display); letter-spacing: -.02em; margin: 16px 0 14px; text-wrap: balance; }
.va-hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-dim); max-width: 46ch; margin: 0 auto; }
.va-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.va-hero-meta { position: absolute; left: var(--gutter); bottom: 30px; display: flex; flex-direction: column; gap: 4px; font: 500 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.va-scrollcue { position: absolute; right: var(--gutter); bottom: 26px; display: flex; align-items: center; gap: 14px; font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.va-scrollcue i { width: 1px; height: 50px; background: linear-gradient(var(--cyan), transparent); animation: cue 2.2s var(--ease-soft) infinite; transform-origin: top; }
@keyframes cue { 0%{transform:scaleY(0)} 50%{transform:scaleY(1)} 100%{transform:scaleY(1);opacity:0} }

/* ---------- 2 statement ---------- */
.va-statement { min-height: 100svh; display: grid; place-content: center; padding: 120px var(--gutter); text-align: center; background: radial-gradient(70% 60% at 50% 100%, rgba(13, 127, 196, .35), transparent 70%), var(--deep); color: #fff; }
.va-statement .va-eyebrow { justify-self: center; color: var(--cyan); }
.va-statement-text { margin: 28px auto 0; max-width: 20ch; font: 300 clamp(36px, 5.6vw, 88px)/1.08 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.va-glow { color: var(--cyan); font-weight: 600; }

/* ---------- 3 road (horizontal) ---------- */
.va-road { background: var(--page); overflow: clip; --stop-img: clamp(200px, calc(100svh - 520px), 420px); }
.va-road-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 100px 0 30px; }
.va-road-head { padding: 0 var(--gutter); }
.va-road .va-h2 { font-size: clamp(34px, 4.2vw, 64px); }
.va-road-track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 34px var(--gutter) 14px; width: max-content; }
.va-stop { width: clamp(300px, 32vw, 520px); flex: none; padding: 0 0 26px; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--line); position: relative; box-shadow: 0 30px 60px -44px rgba(11, 29, 56, .55); }
.va-stop::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue-3), var(--blue), var(--cyan)); z-index: 3; }
.va-stop-img { height: var(--stop-img); }
.va-stop-img::before { content: ''; position: absolute; inset: 40% 0 0; z-index: 2; background: linear-gradient(180deg, transparent, rgba(11, 29, 56, .82)); pointer-events: none; }
.va-stop-year { display: block; font: 200 clamp(44px, 4.4vw, 70px)/.95 var(--display); letter-spacing: -.02em; color: var(--blue); white-space: nowrap; }
.va-stop-img .va-stop-year { position: absolute; left: 24px; bottom: 16px; z-index: 3; color: #fff; }
.va-stop h3 { font: 600 24px/1.15 var(--display); margin: 20px 24px 8px; }
.va-stop p { color: var(--ink-dim); font-size: 15px; line-height: 1.55; margin: 0 24px; }
.va-stop-intro { width: clamp(260px, 24vw, 360px); background: var(--deep); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 0 30px; border-color: transparent; }
.va-stop-intro .va-stop-year { font-size: clamp(72px, 7vw, 112px); color: var(--cyan); margin: 0 24px; }
.va-stop-intro h3 { font-size: 30px; }
.va-stop-intro p { color: var(--mist); font-size: 16px; }
.va-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 50px var(--gutter) 110px; max-width: calc(var(--mw) + 2 * var(--gutter)); margin: 0 auto; }
.va-stats li { border-top: 2px solid var(--navy); padding-top: 16px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; }
.va-stats b { font: 200 clamp(52px, 6.4vw, 104px)/.95 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.va-stats i { font: 300 clamp(32px, 3vw, 52px)/1 var(--display); color: var(--cyan); font-style: normal; }
.va-stats span { grid-column: 1 / -1; color: var(--ink-dim); font-size: 15px; margin-top: 6px; }

/* ---------- 4 themes ---------- */
.va-themes { background: var(--deep); color: #fff; overflow: clip; }
.va-theme { position: relative; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; }
.va-theme-img { position: absolute; inset: 0; }
.va-theme-img::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(200deg, rgba(11, 29, 56, 0) 30%, rgba(11, 29, 56, .86)); }
.va-theme-copy { position: relative; z-index: 3; padding: 0 var(--gutter) clamp(44px, 8vh, 90px); }
.va-theme-n { font: 600 12px/1 var(--sans); letter-spacing: .22em; color: var(--cyan); }
.va-theme h3 { font: 200 clamp(56px, 12vw, 190px)/.9 var(--display); letter-spacing: -.04em; margin: 12px 0 22px -.04em; text-transform: uppercase; }
.va-theme ul { display: flex; flex-wrap: wrap; gap: 8px; }
.va-theme li { padding: 9px 16px; border-radius: 999px; font-size: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .34); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
/* Motion on: the five panels stack in one pinned screen and wipe over each other (chapters.js). */
html[data-motion="on"] .va-themes-pin { position: relative; height: 100svh; }
html[data-motion="on"] .va-theme { position: absolute; inset: 0; min-height: 0; }

/* ---------- 5 products ---------- */
.va-products { background: linear-gradient(180deg, #fff, var(--page)); padding: 130px 0 120px; }
.va-explorer { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: clamp(20px, 3vw, 48px); padding: 56px var(--gutter) 0; max-width: calc(var(--mw) + 2 * var(--gutter)); margin: 0 auto; align-items: start; }
.va-prod-tabs { display: grid; gap: 2px; position: sticky; top: 96px; }
.va-prod-tabs button { all: unset; cursor: pointer; display: flex; align-items: baseline; gap: 14px; padding: 13px 14px; border-left: 2px solid var(--line); font: 400 17px/1.2 var(--display); color: var(--ink-dim); transition: color .3s, border-color .3s, background .3s, padding .4s var(--ease-out); }
.va-prod-tabs button i { font: 600 11px/1 var(--sans); letter-spacing: .14em; font-style: normal; color: var(--blue); opacity: .6; }
.va-prod-tabs button:hover { color: var(--navy); padding-left: 20px; }
.va-prod-tabs button[aria-selected="true"] { color: var(--navy); font-weight: 600; border-color: var(--cyan); background: linear-gradient(90deg, rgba(0, 182, 227, .12), transparent); padding-left: 22px; }
.va-prod-tabs button:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.va-prod { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; padding-bottom: 60px; }
.va-explorer.is-tabbed .va-prod { padding-bottom: 0; }
.va-explorer.is-tabbed .va-prod:not(.is-active) { display: none; }
.va-prod-stage { height: clamp(360px, 62svh, 600px); border-radius: 8px; perspective: 1100px; box-shadow: 0 50px 100px -60px rgba(11, 29, 56, .7); cursor: grab; touch-action: pan-y; }
.va-prod-bg { position: absolute !important; inset: 0; filter: saturate(.9) brightness(.82); }
.va-prod-stage::before { content: ''; position: absolute; inset: 0; z-index: 2; background: radial-gradient(70% 70% at 50% 45%, rgba(11, 29, 56, .12), rgba(11, 29, 56, .62)); }
.va-stack { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; transform-style: preserve-3d; transform: rotateY(var(--ry, -34deg)) rotateX(var(--rx, 9deg)); --gap: 12px; transition: transform .5s var(--ease-out); }
.va-prod.is-open .va-stack, html[data-motion="off"] .va-stack { --gap: clamp(30px, 4.4vw, 58px); }
.va-l { grid-area: 1 / 1; width: min(46%, 270px); aspect-ratio: 3 / 4; border-radius: 3px; transform: translateZ(calc((var(--i) - (var(--n) - 1) / 2) * var(--gap))); transition: transform 1.1s var(--ease-out), background .7s, opacity .7s; }
.va-l-g { background: linear-gradient(135deg, rgba(214, 244, 255, .5), rgba(120, 205, 240, .2) 45%, rgba(214, 244, 255, .38)); border: 1px solid rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 3px rgba(0, 182, 227, .28), inset 0 0 40px rgba(255, 255, 255, .2), 0 30px 50px -30px rgba(4, 14, 30, .8); }
.va-l-a { border: 2px dashed rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 9px rgba(190, 200, 210, .32); }
.va-l-f { background: rgba(13, 127, 196, .42); border: 1px solid rgba(160, 220, 255, .8); }
.va-l-p { background: linear-gradient(90deg, var(--blue-3) 0 25%, var(--blue-2) 25% 50%, var(--blue) 50% 75%, var(--cyan) 75%); opacity: .86; border-radius: 3px; -webkit-mask: radial-gradient(circle at 50% 50%, #000 62%, transparent 63%); mask: radial-gradient(circle at 50% 50%, #000 62%, transparent 63%); }
/* ON / OFF: opal until switched on */
[data-demo="switch"] .va-l-f { background: rgba(255, 255, 255, .97); }
[data-demo="switch"] .va-l-g { background: rgba(240, 248, 252, .7); }
[data-demo="switch"].is-on .va-l-f { background: rgba(255, 255, 255, .05); }
[data-demo="switch"].is-on .va-l-g { background: linear-gradient(135deg, rgba(214, 244, 255, .3), rgba(120, 205, 240, .08)); }
.va-crack { pointer-events: none; }
.va-legend { position: absolute; z-index: 5; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 28px); }
.va-legend li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(11, 29, 56, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.va-legend li::before { content: ''; width: 10px; height: 10px; border-radius: 2px; background: #cfefff; border: 1px solid #fff; }
.va-legend .va-k-a::before { background: transparent; border: 1px dashed #fff; }
.va-legend .va-k-f::before { background: var(--blue); }
.va-legend .va-k-p::before { background: linear-gradient(90deg, var(--blue-3), var(--cyan)); }
.va-demo { position: absolute; z-index: 5; left: 14px; bottom: 14px; min-height: 44px; }
.va-demo-state { position: absolute; z-index: 5; right: 14px; bottom: 14px; max-width: 50%; padding: 10px 14px; border-radius: 4px; font-size: 13px; line-height: 1.3; color: #fff; background: rgba(11, 29, 56, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.va-prod-info h3 { font: 600 clamp(28px, 3vw, 44px)/1.05 var(--display); letter-spacing: -.01em; }
.va-prod-stat { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.va-prod-stat small { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); width: 100%; }
.va-prod-stat b { font: 200 clamp(52px, 6vw, 88px)/.95 var(--display); letter-spacing: -.03em; }
.va-prod-stat span { font: 400 20px/1 var(--display); color: var(--ink-dim); }
.va-specs { margin-top: 18px; display: grid; gap: 9px; }
.va-specs li { position: relative; padding-left: 22px; color: var(--ink-dim); font-size: 15px; line-height: 1.5; }
.va-specs li::before { content: ''; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--cyan); }
.va-prod-info h4 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 24px 0 10px; }
.va-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.va-tags li { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; background: #fff; }
.va-prod-info .va-btn { margin-top: 26px; }

/* ---------- 6 services ---------- */
.va-services { background: var(--deep); color: #fff; padding: 130px 0 120px; overflow: clip; }
.va-services .va-eyebrow { color: var(--cyan); }
.va-services .va-h2 em { color: var(--cyan); }
.va-services .va-lead { color: var(--mist); }
.va-svc-rows { display: grid; gap: 16px; margin-top: 60px; }
.va-svc-row { display: flex; gap: 16px; width: max-content; padding: 0 var(--gutter); will-change: transform; }
.va-svc { width: clamp(240px, 26vw, 400px); aspect-ratio: 4 / 3; border-radius: 6px; flex: none; }
.va-svc::after { content: ''; position: absolute; inset: 45% 0 0; z-index: 2; background: linear-gradient(transparent, rgba(11, 29, 56, .9)); }
.va-svc img { transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .va-svc:hover img { transform: scale(1.06); } }
.va-svc figcaption { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 16px; font: 600 clamp(17px, 1.5vw, 22px)/1.15 var(--display); }

/* ---------- 7 works ---------- */
.va-works { background: var(--page); overflow: clip; }
.va-works-pin { min-height: 100svh; padding: 110px var(--gutter) 60px; display: grid; grid-template-columns: minmax(280px, .8fr) 1.5fr; gap: clamp(28px, 4vw, 56px); align-items: center; perspective: 1400px; }
.va-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; transform-style: preserve-3d; }
.va-feat { aspect-ratio: 4 / 5; border-radius: 6px; transform-style: preserve-3d; will-change: transform; box-shadow: 0 40px 70px -50px rgba(11, 29, 56, .8); }
.va-feat figcaption, .va-work span { position: absolute; inset: auto 0 0; z-index: 2; padding: 46px 14px 14px; background: linear-gradient(transparent, rgba(11, 29, 56, .92)); color: #fff; text-align: left; display: grid; gap: 3px; }
.va-feat b, .va-work b { font: 600 clamp(15px, 1.25vw, 18px)/1.15 var(--display); }
.va-feat span, .va-work i { font-size: 13px; font-style: normal; color: rgba(255, 255, 255, .78); }
.va-works-all { padding: 30px var(--gutter) 120px; max-width: calc(var(--mw) + 2 * var(--gutter)); margin: 0 auto; }
.va-works-bar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 2px solid var(--navy); }
.va-works-bar h3 { font: 600 clamp(24px, 2.4vw, 34px)/1 var(--display); }
.va-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.va-filter button { cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; transition: background .25s, color .25s, border-color .25s; }
.va-filter button i { font-style: normal; font-size: 12px; opacity: .6; margin-left: 4px; }
.va-filter button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.va-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; margin-top: 26px; }
.va-grid li[hidden] { display: none; }
.va-work { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 6px; cursor: zoom-in; }
.va-work img { transition: transform 1.1s var(--ease-out); }
@media (hover: hover) { .va-work:hover img { transform: scale(1.06); } }

/* lightbox */
.va-lightbox { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; color: #fff; }
.va-lightbox::backdrop { background: rgba(6, 16, 32, .92); backdrop-filter: blur(8px); }
.va-lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.va-lightbox figure { grid-column: 2; display: grid; gap: 14px; justify-items: center; max-height: 100dvh; padding: 60px 0 30px; }
.va-lightbox figure img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 4px; }
.va-lightbox figcaption { font: 400 18px/1.3 var(--display); text-align: center; }
.va-lightbox figcaption b { font-weight: 600; }
.va-lightbox button { border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; justify-self: center; transition: background .3s; }
.va-lightbox button:hover { background: var(--blue); }
.va-lb-close { position: absolute; top: 14px; right: 14px; }

/* ---------- 8 factory ---------- */
.va-factory { background: #fff; overflow: clip; }
.va-factory-pin { position: relative; height: 100svh; overflow: clip; background: var(--deep); }
.va-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 10px; padding: 10px; }
.va-mosaic figure { border-radius: 4px; min-height: 0; }
.va-mosaic-logo { background: #fff; display: grid; place-items: center; }
.va-mosaic-logo img { width: min(60%, 220px); }
.va-factory-copy { position: absolute; left: var(--gutter); bottom: 56px; z-index: 3; max-width: 780px; padding: 30px 34px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 6px; box-shadow: 0 40px 90px -50px rgba(4, 14, 30, .9); }
.va-factory-copy .va-h2 { font-size: clamp(32px, 4.2vw, 62px); }
.va-cert { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); padding: 100px var(--gutter) 120px; max-width: calc(var(--mw) + 2 * var(--gutter)); margin: 0 auto; }
.va-cert-text p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; margin-bottom: 20px; }
.va-cert-badge { display: inline-flex; align-items: center; gap: 18px; margin-top: 14px; padding: 14px 20px 14px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color .3s, box-shadow .3s; }
.va-cert-badge:hover { border-color: var(--blue); box-shadow: 0 20px 40px -30px rgba(13, 127, 196, .8); }
.va-cert-badge img { height: 64px; width: auto; }
.va-cert-list li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--line); font: 400 clamp(17px, 1.5vw, 21px)/1.3 var(--display); counter-increment: c; }
.va-cert-list { counter-reset: c; border-bottom: 1px solid var(--line); }
.va-cert-list li::before { content: counter(c, decimal-leading-zero); font: 600 12px/1 var(--sans); letter-spacing: .1em; color: var(--blue); }

/* ---------- 9 close / contact ---------- */
.va-close { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; padding: 130px var(--gutter) 120px; overflow: clip; isolation: isolate; color: #fff; background: radial-gradient(60% 50% at 25% 40%, rgba(13, 127, 196, .3), transparent 70%), var(--deep); }
.va-ring { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.va-close .va-eyebrow { color: var(--cyan); }
.va-close-title { font: 200 clamp(54px, 8vw, 128px)/.95 var(--display); letter-spacing: -.035em; margin-top: 18px; }
.va-close-title em { color: var(--cyan); font-weight: 600; }
.va-close-title > * { padding-top: .14em; margin-top: -.14em; } /* room for accents inside SplitText line masks */
.va-close .va-lead { color: var(--mist); }
.va-places { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.va-place { border-top: 1px solid var(--line-l); padding-top: 18px; font-size: 15px; color: var(--mist); }
.va-place h3 { font: 600 20px/1.2 var(--display); color: #fff; margin-bottom: 10px; }
.va-place p { margin-bottom: 10px; }
.va-place a { color: #fff; text-decoration: none; }
.va-place a:hover { color: var(--cyan); }
.va-form { background: rgba(255, 255, 255, .06); border: 1px solid var(--line-l); border-radius: 8px; padding: clamp(22px, 3vw, 38px); display: grid; gap: 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.va-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.va-form legend, .va-field-l { font: 600 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); margin-bottom: 10px; padding: 0; }
.va-field-l { display: grid; gap: 10px; margin: 0; }
.va-field-l small { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: .7; }
.va-form input:not([type="radio"]):not([type="checkbox"]), .va-form textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: #fff; background: rgba(4, 14, 30, .5); border: 1px solid var(--line-l); border-radius: 4px; padding: 14px; letter-spacing: 0; text-transform: none; color-scheme: dark; transition: border-color .3s;
}
.va-form input:focus, .va-form textarea:focus { outline: none; border-color: var(--cyan); }
.va-form textarea { resize: vertical; }
.va-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.va-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.va-chips label { cursor: pointer; }
.va-chips input { position: absolute; opacity: 0; pointer-events: none; }
.va-chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-l); font-size: 14px; color: rgba(255, 255, 255, .86); transition: background .25s, border-color .25s, color .25s; }
.va-chips input:checked + span { background: var(--cyan); border-color: var(--cyan); color: var(--deep); font-weight: 600; }
.va-chips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.va-form .va-btn-solid { background: var(--cyan); border-color: var(--cyan); color: var(--deep); justify-self: start; }
.va-form .va-btn-solid:hover { background: #fff; border-color: #fff; }
.va-form-note { font-size: 13px; color: var(--mist); }
.va-form-error { color: #FFD27A; font-size: 14px; }

/* ---------- footer ---------- */
.va-footer { background: #fff; padding: 60px var(--gutter) 30px; }
.va-footer-top { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; justify-content: space-between; max-width: var(--mw); margin: 0 auto; }
.va-footer-logo { width: clamp(150px, 16vw, 220px); height: auto; }
.va-footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.va-footer-nav a { text-decoration: none; font-weight: 500; color: var(--ink-dim); }
.va-footer-nav a:hover { color: var(--blue); }
.va-funding { max-width: var(--mw); margin: 44px auto 0; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; align-items: center; }
.va-funding h4 { grid-column: 1 / -1; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.va-funding a { display: grid; gap: 8px; text-decoration: none; font-size: 13px; color: var(--ink-dim); }
.va-funding a:hover { color: var(--blue); }
.va-funding img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.va-footer-legal { max-width: var(--mw); margin: 34px auto 0; font-size: 13px; color: var(--ink-dim); }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .va-links, .va-nav-cta { display: none; }
  .va-lang { margin-left: auto; }
  .va-burger { display: block; }
  .va-nav.is-open { background: #fff; height: 100dvh; flex-wrap: wrap; align-content: flex-start; padding-top: 14px; overflow-y: auto; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .va-nav.is-open .va-links { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 34px 0 0; order: 5; }
  .va-nav.is-open .va-links a { font: 300 clamp(32px, 9vw, 46px)/1.15 var(--display); color: var(--navy); padding: 8px 0; border-bottom: 1px solid var(--line); }
  .va-nav.is-open .va-links a::after { display: none; }
  .va-nav.is-open .va-nav-cta { display: inline-flex; order: 6; margin: 28px 0 30px; min-height: 52px; }
}
@media (max-width: 899px) {
  .va-hero { padding-top: 96px; }
  .va-hero-meta { display: none; }
  .va-scrollcue { right: 50%; transform: translateX(50%); bottom: 18px; }
  .va-scrollcue span { display: none; }
  .va-scrollcue i { height: 34px; }
  .va-statement { padding: 80px var(--gutter); }

  .va-road-pin { padding-top: 84px; padding-bottom: 20px; }
  .va-stop { width: 82vw; }
  .va-stop-intro { width: 70vw; }
  .va-road { --stop-img: clamp(180px, calc(100svh - 520px), 340px); }
  html[data-motion="off"] .va-road-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  html[data-motion="off"] .va-stop { scroll-snap-align: start; }
  .va-stats { grid-template-columns: 1fr 1fr; padding-bottom: 80px; }

  .va-products, .va-services { padding: 90px 0 80px; }
  .va-explorer { grid-template-columns: 1fr; padding-top: 36px; }
  .va-prod-tabs { position: static; display: flex; overflow-x: auto; gap: 8px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .va-prod-tabs::-webkit-scrollbar { display: none; }
  .va-prod-tabs button { flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-size: 15px; background: #fff; white-space: nowrap; }
  .va-prod-tabs button:hover, .va-prod-tabs button[aria-selected="true"] { padding-left: 16px; }
  .va-prod-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
  .va-prod-tabs button[aria-selected="true"] i { color: var(--cyan); opacity: 1; }
  .va-prod { grid-template-columns: 1fr; }
  .va-prod-stage { height: 52svh; min-height: 340px; }

  /* services: a plain two-column grid instead of the drifting rows */
  .va-svc-rows { gap: 10px; margin-top: 40px; }
  .va-svc-row { width: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .va-svc { width: auto; }

  .va-works-pin { grid-template-columns: 1fr; padding-top: 90px; min-height: 0; }
  .va-feats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .va-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .va-work { aspect-ratio: 1; }
  .va-works-all { padding-bottom: 80px; }
  .va-lightbox[open] { grid-template-columns: 1fr; padding: 0 12px; }
  .va-lightbox figure { grid-column: 1; }
  .va-lb-nav { position: absolute; bottom: 14px; }
  .va-lb-prev { left: calc(50% - 60px); } .va-lb-next { left: calc(50% + 12px); }
  .va-lightbox figure { padding-bottom: 84px; }

  .va-mosaic { gap: 6px; padding: 6px; }
  .va-factory-copy { left: 16px; right: 16px; bottom: 24px; padding: 20px; }
  .va-cert { grid-template-columns: 1fr; padding: 70px var(--gutter) 80px; }
  .va-close { grid-template-columns: 1fr; padding: 90px var(--gutter) 80px; }
  .va-places, .va-row, .va-funding { grid-template-columns: 1fr; }
}

/* reduced motion: finished, still page */
@media (prefers-reduced-motion: reduce) {
  .va-scrollcue i { animation: none; }
  * { scroll-behavior: auto !important; transition-duration: .01s !important; }
}

.va-works-head .va-h2 { font-size: clamp(34px, 3.7vw, 58px); }

.va-footer .va-cert-badge { margin-top: 0; font-weight: 500; color: var(--ink-dim); }
.va-footer .va-cert-badge img { height: 54px; }
@media (max-width: 899px) { .va-hero .va-eyebrow::before { display: none; } .va-hero .va-eyebrow { letter-spacing: .14em; } }

/* Reduced motion, any width: nothing is pinned or drifting, so the timeline swipes and the services wrap. */
html[data-motion="off"] .va-road-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; }
html[data-motion="off"] .va-stop { scroll-snap-align: start; }
html[data-motion="off"] .va-svc-row { width: auto; flex-wrap: wrap; }

/* ---------- products on touch screens: stepper, drag to rotate ---------- */
.va-only-touch, .va-prod-step, .va-drag-hint { display: none; }
.va-prod-stage.is-dragging .va-stack { transition: none; }
@media (hover: none) {
  .va-only-mouse { display: none; }
  .va-only-touch { display: inline; }
  .va-drag-hint { display: inline-flex; align-items: center; gap: 8px; position: absolute; z-index: 5; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 9px 14px; border-radius: 999px; white-space: nowrap; font-size: 13px; color: #fff; background: rgba(11, 29, 56, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; transition: opacity .5s; }
  .va-drag-hint i { font-style: normal; font-size: 16px; animation: nudge 1.6s ease-in-out infinite; }
  [data-demo] .va-drag-hint { bottom: 72px; }
  .has-dragged .va-drag-hint { opacity: 0; }
}
@keyframes nudge { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
@media (max-width: 899px) {
  /* the pill row fades at the right edge, so it reads as a list that continues */
  .va-prod-tabs { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); padding-right: 15vw; }
  .va-prod-step { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 10px; margin-top: 4px; }
  .va-prod-step button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--navy); background: #fff; font-size: 28px; line-height: 1; padding: 0 0 4px; cursor: pointer; }
  .va-prod-step button:active { background: var(--navy); color: #fff; }
  .va-prod-step p { text-align: center; display: grid; gap: 2px; }
  .va-prod-step small { font: 600 12px/1 var(--sans); letter-spacing: .14em; color: var(--blue); }
  .va-prod-step span { font: 600 19px/1.15 var(--display); }
  .va-prod-info h3 { display: none; } /* the stepper already carries the name */
}
@media (prefers-reduced-motion: reduce) { .va-drag-hint i { animation: none; } }
