/* Layout: one fixed particle canvas behind a dark editorial page; sections hand the particles a new shape as you scroll.
   Shared by index.html (consulting) and studio.html (PRODVIA Studio). */
:root {
  --bg: #05050a;
  --surface: #0b0a14;
  --surface-2: #12101f;
  --line: rgba(196, 186, 255, 0.10);
  --line-strong: rgba(196, 186, 255, 0.20);
  --fg: #f3f1ff;
  --muted: #a29ebd;
  --dim: #6c6888;
  --violet: #7b5cff;
  --violet-2: #a690ff;
  --violet-deep: #3b2a9e;
  --blue: #5b8fff;
  --display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--display); font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; }
em.s { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.grad { background: linear-gradient(100deg, var(--violet-2) 10%, var(--blue) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }

#field { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; display: block; }
.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(91,143,255,.10), transparent 60%),
              radial-gradient(900px 700px at 100% 0%, rgba(123,92,255,.10), transparent 60%); }
main, header, footer { position: relative; z-index: 1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Labels & buttons ---------- */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease; white-space: nowrap; cursor: pointer; border: 0; font-family: inherit; }
.btn svg { width: 16px; height: 16px; transition: transform .3s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: linear-gradient(120deg, var(--violet) 0%, #5a46ff 60%, var(--blue) 130%); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 40px -10px rgba(123,92,255,.8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 16px 50px -10px rgba(123,92,255,1); }
.btn-ghost { color: var(--fg); background: rgba(255,255,255,.02); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(166,144,255,.5); background: rgba(123,92,255,.08); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .4s ease, border-color .4s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(5,5,10,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo svg { width: 26px; height: 26px; }
.logo b { font-weight: 600; letter-spacing: .16em; font-size: 15px; }
.logo span { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a[aria-current="page"] { position: relative; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 4px; height: 4px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 10px var(--violet); transform: translateX(-50%); }
.nav-end { display: flex; align-items: center; gap: 14px; }
.nav .btn { height: 42px; padding: 0 20px; font-size: 14px; }

/* Language switcher */
.lang { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.02); }
.lang button { height: 30px; min-width: 36px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font: 500 11px/1 var(--mono); letter-spacing: .1em; cursor: pointer; transition: background .25s, color .25s; }
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { background: rgba(123,92,255,.28); color: var(--fg); }
.mobile-menu .lang { margin-top: 18px; align-self: flex-start; }
.mobile-menu .lang button { height: 40px; min-width: 52px; font-size: 13px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 4px auto; transition: transform .3s; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; gap: 40px; }
.hero h1 { font-size: clamp(52px, 6.6vw, 104px); font-weight: 500; letter-spacing: -0.055em; line-height: .94; margin-top: 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em.s { font-size: 1.08em; letter-spacing: -0.02em; }
.hero-sub { margin-top: 30px; max-width: 540px; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); line-height: 1.6; }
.hero-sub strong { color: var(--fg); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-hud { align-self: stretch; position: relative; min-height: 300px; }
.hud-tag { position: absolute; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.hud-tag i { display: inline-block; width: 28px; height: 1px; background: var(--line-strong); }
.hud-tag.t1 { top: 6%; right: 2%; }
.hud-tag.t2 { bottom: 34%; left: -4%; }
.hud-tag.t3 { bottom: 4%; right: 6%; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) minmax(0, 1.2fr); gap: 0; margin-top: clamp(48px, 7vh, 90px); border-top: 1px solid var(--line); }
.fact { padding: 22px 24px 0 0; display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.fact b { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fact span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.fact.scroll { justify-content: flex-end; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); gap: 12px; }
.scroll-dot { width: 22px; height: 34px; border: 1px solid var(--line-strong); border-radius: 12px; position: relative; flex: none; }
.scroll-dot::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--violet-2); transform: translateX(-50%); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, -2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: 22px; overflow: hidden; background: rgba(5,5,10,.55); backdrop-filter: blur(6px); }
.marquee-row { display: flex; align-items: center; gap: 28px; }
.marquee-label { flex: none; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-left: var(--gutter); max-width: 220px; line-height: 1.5; }
.marquee-mask { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 64px; animation: marq 36s linear infinite; }
.marquee-track span { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.03em; color: #cfcae8; white-space: nowrap; display: inline-flex; align-items: center; gap: 64px; }
.marquee-track span::after { content: "✦"; font-size: 12px; color: var(--violet); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding-block: clamp(96px, 14vh, 170px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 7vh, 84px); }
.sec-head h2 { font-size: clamp(40px, 5.4vw, 80px); margin-top: 22px; }
.sec-head p { color: var(--muted); font-size: 18px; max-width: 480px; justify-self: end; }

/* What we solve */
.problems { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.problem { grid-column: span 2; background: rgba(8,7,15,.82); backdrop-filter: blur(10px); padding: 34px 30px 32px; min-height: 260px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; min-width: 0; }
.problem:nth-child(4), .problem:nth-child(5) { grid-column: span 3; }
.problem::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 120%), rgba(123,92,255,.18), transparent 60%); opacity: 0; transition: opacity .4s; }
.problem:hover::before { opacity: 1; }
.problem .k { font-family: var(--mono); font-size: 12px; color: var(--violet-2); letter-spacing: .1em; }
.problem h3 { font-size: clamp(24px, 2.2vw, 30px); margin-top: auto; letter-spacing: -0.03em; }
.problem p { color: var(--muted); font-size: 15px; max-width: 42ch; position: relative; }
.solve-line { margin-top: clamp(56px, 8vh, 96px); font-size: clamp(28px, 3.4vw, 50px); letter-spacing: -0.04em; line-height: 1.12; max-width: 22ch; }
.solve-line .dimmed { color: var(--dim); }

/* Services (sticky) */
.svc-track { position: relative; height: 460vh; }
.svc-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 64px; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; width: 100%; align-items: center; }
.svc-stage { position: relative; height: min(64vh, 560px); }
.svc-stage-label { position: absolute; left: 0; bottom: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: flex; gap: 14px; align-items: center; }
.svc-stage-label b { color: var(--violet-2); font-weight: 500; }
.svc-right { min-width: 0; }
.svc-right h2 { font-size: clamp(36px, 4.4vw, 64px); margin: 18px 0 14px; }
.svc-right .lead { color: var(--muted); font-size: 17px; max-width: 520px; }
.svc-viewport { margin-top: 36px; overflow: hidden; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
.svc-cards { display: flex; gap: 16px; transition: transform .9s cubic-bezier(.7,0,.2,1); will-change: transform; }
.svc-card { flex: 0 0 min(420px, 78%); border-radius: 22px; padding: 28px; min-height: 340px; display: flex; flex-direction: column; border: 1px solid var(--line); background: rgba(12,11,22,.78); backdrop-filter: blur(10px); transition: background .7s ease, border-color .7s ease, opacity .7s ease, transform .7s ease; opacity: .45; transform: scale(.96); transform-origin: left center; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.svc-card.on { opacity: 1; transform: none; border-color: rgba(166,144,255,.45); background: linear-gradient(160deg, rgba(123,92,255,.95) 0%, rgba(80,58,210,.92) 45%, rgba(40,30,120,.95) 100%); box-shadow: 0 30px 80px -30px rgba(123,92,255,.8), inset 0 1px 0 rgba(255,255,255,.18); }
.svc-card .top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }
.svc-card .top span:last-child { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.svc-card h3 { font-size: clamp(26px, 2.4vw, 32px); margin-top: 26px; letter-spacing: -0.035em; }
.svc-card p { margin-top: 12px; font-size: 15px; color: rgba(243,241,255,.78); }
.svc-card ul { list-style: none; padding: 0; margin: auto 0 0; padding-top: 24px; display: grid; gap: 8px; }
.svc-card li { font-size: 14px; display: flex; gap: 10px; align-items: baseline; color: rgba(243,241,255,.9); }
.svc-card li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; transform: translateY(-2px); }
.svc-card:not(.on) p, .svc-card:not(.on) ul { opacity: .55; }
.svc-nav { display: flex; align-items: center; gap: 14px; margin-top: 28px; max-width: 620px; }
.svc-progress { display: flex; gap: 8px; flex: 1; min-width: 0; }
.svc-arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.02); color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s, opacity .2s; }
.svc-arrow svg { width: 15px; height: 15px; }
.svc-arrow:hover:not(:disabled) { border-color: rgba(166,144,255,.5); background: rgba(123,92,255,.12); }
.svc-arrow:disabled { opacity: .3; cursor: default; }
.svc-progress button { flex: 1; height: 34px; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: 9px; text-align: left; color: var(--dim); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.svc-progress button i { display: block; height: 2px; width: 100%; background: var(--line-strong); border-radius: 2px; position: relative; overflow: hidden; }
.svc-progress button i::after { content: ""; position: absolute; inset: 0; width: calc(var(--f, 0) * 100%); background: linear-gradient(90deg, var(--violet), var(--blue)); }
.svc-progress button.on { color: var(--fg); }

/* Approach */
.approach h2.flow { font-size: clamp(34px, 4.6vw, 76px); letter-spacing: -0.05em; display: flex; flex-wrap: wrap; align-items: center; column-gap: .28em; row-gap: .1em; margin-top: 22px; }
.flow .arr { color: var(--violet); font-weight: 300; font-size: .7em; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; margin-top: clamp(56px, 8vh, 96px); padding-top: 40px; }
.steps-line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.steps-line::after { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--violet), var(--blue)); box-shadow: 0 0 18px var(--violet); border-radius: 3px; }
.step { position: relative; min-width: 0; }
.step::before { content: ""; position: absolute; top: -45px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--violet-2); }
.step.lit::before { background: var(--violet-2); box-shadow: 0 0 16px var(--violet); }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--violet-2); letter-spacing: .1em; }
.step h3 { font-size: clamp(26px, 2.4vw, 34px); margin-top: 12px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 14px; }
.step .out { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-size: 13px; color: #cfcae8; }
.step .out b { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }

/* Why */
.why-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.pillars { display: grid; gap: 20px; }
.pillar { border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: rgba(10,9,18,.78); backdrop-filter: blur(10px); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; }
.pillar .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(123,92,255,.12); border: 1px solid rgba(166,144,255,.25); }
.pillar .ico svg { width: 26px; height: 26px; stroke: var(--violet-2); fill: none; stroke-width: 1.5; }
.pillar h3 { font-size: 26px; letter-spacing: -0.03em; }
.pillar p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.founder { position: relative; border-radius: 22px; padding: clamp(28px, 3vw, 44px); overflow: hidden; border: 1px solid rgba(166,144,255,.25); background: radial-gradient(600px 400px at 100% 0%, rgba(123,92,255,.35), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(91,143,255,.18), transparent 60%), rgba(12,10,26,.85); display: flex; flex-direction: column; min-height: 100%; }
.founder .big { font-size: clamp(110px, 13vw, 190px); font-weight: 500; letter-spacing: -0.07em; line-height: .85; margin-top: 24px; }
.founder .big sup { font-size: .4em; vertical-align: top; position: relative; top: .1em; color: var(--violet-2); }
.founder h3 { font-size: clamp(22px, 2vw, 28px); margin-top: 16px; letter-spacing: -0.03em; max-width: 20ch; }
.founder p { color: rgba(243,241,255,.75); margin-top: 14px; font-size: 15px; max-width: 46ch; }
.co-list { margin-top: auto; padding-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.co-list span { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); font-size: 14px; background: rgba(255,255,255,.03); }

/* Team */
.roles { border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr) 40px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .4s ease, background .4s ease; position: relative; }
.role::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(123,92,255,.10), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.role:hover::before { opacity: 1; }
.role:hover { padding-left: 14px; }
.role .k { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .1em; }
.role h3 { font-size: clamp(26px, 3vw, 42px); letter-spacing: -0.04em; font-weight: 500; }
.role p { color: var(--muted); font-size: 15px; }
.role .dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--violet-2); justify-self: end; transition: background .3s, box-shadow .3s; }
.role:hover .dot { background: var(--violet-2); box-shadow: 0 0 14px var(--violet); }
.team-note { margin-top: 36px; color: var(--muted); font-size: 17px; max-width: 640px; }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.ind { position: relative; border-radius: 22px; border: 1px solid var(--line); background: rgba(10,9,18,.75); backdrop-filter: blur(8px); padding: 28px; min-height: 230px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .4s, transform .4s; min-width: 0; }
.ind::after { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(123,92,255,.22), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.ind:hover { border-color: rgba(166,144,255,.4); transform: translateY(-4px); }
.ind:hover::after { opacity: 1; }
.ind .k { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; }
.ind svg { width: 40px; height: 40px; stroke: var(--violet-2); fill: none; stroke-width: 1.3; margin-top: 26px; }
.ind h3 { font-size: clamp(26px, 2.4vw, 32px); margin-top: auto; padding-top: 30px; letter-spacing: -0.035em; }
.ind p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Experience */
.cases { display: grid; gap: 16px; }
.case { border: 1px solid var(--line); border-radius: 22px; background: rgba(10,9,18,.8); backdrop-filter: blur(10px); padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 32px; transition: border-color .4s; }
.case:hover { border-color: rgba(166,144,255,.4); }
.case .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case .tags span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.case .tags span.hl { border-color: rgba(166,144,255,.45); color: var(--violet-2); }
.case h3 { font-size: clamp(24px, 2.2vw, 30px); margin-top: 18px; letter-spacing: -0.035em; }
.case .col b { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.case .col p { font-size: 15px; color: #cdc8e6; }
.case-note { margin-top: 22px; font-size: 13px; color: var(--dim); font-family: var(--mono); letter-spacing: .04em; }

/* CTA + contact */
.cta { padding-block: clamp(120px, 20vh, 220px) clamp(80px, 10vh, 120px); text-align: center; }
.cta h2 { font-size: clamp(44px, 7.4vw, 116px); letter-spacing: -0.055em; line-height: .96; margin-top: 26px; }
.cta .sub { color: var(--muted); font-size: 18px; max-width: 560px; margin: 28px auto 0; }
.cta .hero-cta { justify-content: center; }
.contact { margin: clamp(80px, 12vh, 140px) auto 0; max-width: 980px; text-align: left; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0; border: 1px solid var(--line-strong); border-radius: 26px; overflow: hidden; background: rgba(9,8,18,.86); backdrop-filter: blur(14px); }
.contact-side { padding: 36px; border-right: 1px solid var(--line); background: radial-gradient(400px 300px at 0% 0%, rgba(123,92,255,.25), transparent 70%); display: flex; flex-direction: column; gap: 18px; }
.contact-side h3 { font-size: 30px; letter-spacing: -0.035em; }
.contact-side p { color: var(--muted); font-size: 15px; }
.contact-side ol { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: c; }
.contact-side li { counter-increment: c; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: 14px; color: #cdc8e6; }
.contact-side li::before { content: counter(c, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--violet-2); padding-top: 3px; }
form.cf { padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; background: rgba(255,255,255,.03); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; color: var(--fg); font: inherit; font-size: 15px; transition: border-color .2s, background .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--surface-2); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet-2); background: rgba(123,92,255,.06); }
.cf .actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.cf .status { font-size: 14px; color: var(--violet-2); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 48px 40px; background: rgba(5,5,10,.8); }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--fg); }
.foot-bottom { margin-top: 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.wordmark { font-size: clamp(64px, 16vw, 250px); font-weight: 600; letter-spacing: -0.06em; line-height: .8; margin-top: 56px; background: linear-gradient(180deg, rgba(166,144,255,.35), rgba(166,144,255,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; overflow: hidden; }

/* Reveal (only hides when JS is running) */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform 1.2s cubic-bezier(.2,.8,.1,1); transition-delay: var(--d, 0s); }
.js .hero.ready h1 .line > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .mobile-menu { position: fixed; inset: 0; z-index: 49; background: rgba(5,5,10,.96); backdrop-filter: blur(20px); display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 0 28px; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .mobile-menu a { font-size: clamp(28px, 7vw, 36px); letter-spacing: -0.04em; }
  .mobile-menu a[aria-current="page"] { color: var(--violet-2); }
  .mobile-menu .btn { margin-top: 20px; align-self: flex-start; font-size: 15px; }
  .menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
  .menu-open .menu-btn span:first-child { transform: translateY(2.75px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
}
@media (max-width: 1080px) {
  .problems { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .problem, .problem:nth-child(4), .problem:nth-child(5) { grid-column: span 1; }
  .problem:nth-child(5) { grid-column: 1 / -1; }
  .case { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case .head { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 56px; }
}
@media (max-width: 760px) {
  .nav .btn, .nav .lang { display: none; }
  .hero { justify-content: flex-end; padding-top: 40vh; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-hud { display: none; }
  .hero h1 { font-size: clamp(42px, 12.4vw, 72px); }
  .hero h1 .line { white-space: normal; }
  .hero-sub { font-size: 16px; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .fact { flex-direction: column; gap: 4px; padding-right: 10px; }
  .fact span { font-size: 12px; }
  .fact.scroll { display: none; }
  .marquee-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .marquee-label { max-width: none; padding-right: var(--gutter); }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sec-head p { justify-self: start; font-size: 16px; }
  .problems { grid-template-columns: minmax(0, 1fr); }
  .problem, .problem:nth-child(5) { grid-column: auto; min-height: 0; }
  .problem h3 { margin-top: 18px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .svc-sticky { align-items: flex-start; padding-top: 74px; }
  .svc-stage { height: 30svh; }
  .svc-stage-label { display: none; }
  .svc-right h2 { font-size: 30px; margin: 10px 0 8px; }
  .svc-right .lead { display: none; }
  .svc-viewport { margin-top: 16px; }
  .svc-card { flex-basis: 86%; min-height: 0; padding: 22px; }
  .svc-card h3 { margin-top: 16px; font-size: 24px; }
  .svc-card p { font-size: 14px; }
  .svc-card ul { padding-top: 16px; gap: 6px; }
  .svc-card li { font-size: 13px; }
  /* arrows + progress sit above the cards on phones so they never fall below the fold */
  .svc-right { display: flex; flex-direction: column; }
  .svc-nav { order: 1; margin-top: 6px; gap: 10px; }
  .svc-viewport { order: 2; }
  .svc-arrow { width: 36px; height: 36px; }
  .svc-stage { height: 23svh; }
  .steps { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 34px; row-gap: 44px; }
  .steps-line { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .steps-line::after { width: 3px; left: -1px; top: 0; height: calc(var(--p, 0) * 100%); }
  .step::before { top: 4px; left: -34px; }
  .role { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; padding: 22px 0; }
  .role p { grid-column: 2; }
  .role .dot { display: none; }
  .ind-grid { grid-template-columns: minmax(0, 1fr); }
  .ind { min-height: 0; }
  .case { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 24px; }
  form.cf { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
  .cta .hero-cta .btn { width: 100%; justify-content: center; }
}
/* Short phones: smaller particle stage and no card intro line, so the whole card fits */
@media (max-width: 760px) and (max-height: 760px) {
  .svc-stage { height: 12svh; }
  .svc-right h2 { font-size: 26px; }
  .svc-card p { display: none; }
  .svc-card h3 { margin-top: 12px; font-size: 22px; }
}
/* Short desktop windows: compact the sticky services panel so the arrows and progress always fit */
@media (min-width: 761px) and (max-height: 920px) {
  .svc-right h2 { font-size: clamp(32px, 3.6vw, 52px); margin: 12px 0 10px; }
  .svc-right .lead { font-size: 15px; }
  .svc-viewport { margin-top: 22px; }
  .svc-card { min-height: 0; padding: 24px; }
  .svc-card h3 { margin-top: 16px; font-size: clamp(22px, 2vw, 28px); }
  .svc-card ul { padding-top: 18px; }
  .svc-nav { margin-top: 18px; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .svc-right .lead { display: none; }
  .svc-card p { font-size: 14px; }
  .svc-card li { font-size: 13px; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .ind-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .svc-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js .rv, .js .hero h1 .line > span { transition: none; opacity: 1; transform: none; }
  .svc-cards, .svc-card { transition-duration: .01s; }
}

/* Longer RO/IT headlines: a touch smaller so the two hero lines never clip */
html:not([lang="en"]) .hero h1 { font-size: clamp(48px, 6.1vw, 96px); }

/* =====================================================================
   PRODVIA Studio (studio.html)
   ===================================================================== */
.studio-top { padding-top: clamp(130px, 20vh, 200px); padding-bottom: clamp(40px, 6vh, 64px); }
.back { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 30px; transition: color .2s; }
.back:hover { color: var(--fg); }
.studio-top .sec-head { margin-bottom: 0; }
.studio-top h1 { font-size: clamp(48px, 6.6vw, 104px); letter-spacing: -0.055em; line-height: .94; margin-top: 22px; }
.studio-offers { padding-top: clamp(40px, 6vh, 64px); }

.tab-row { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.tab-row .hint { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.tabs { display: inline-flex; padding: 5px; gap: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.02); backdrop-filter: blur(8px); }
.tabs button { height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: background .3s, color .3s; }
.tabs button small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--dim); }
.tabs button[aria-selected="true"] { background: linear-gradient(120deg, rgba(123,92,255,.9), rgba(80,58,210,.9)); color: #fff; box-shadow: 0 8px 30px -12px rgba(123,92,255,.9); }
.tabs button[aria-selected="true"] small { color: rgba(255,255,255,.7); }

.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pkg { position: relative; border-radius: 22px; border: 1px solid var(--line); background: rgba(12,11,22,.82); backdrop-filter: blur(10px); padding: 28px; display: flex; flex-direction: column; min-width: 0; transition: border-color .4s, transform .4s; }
.pkg:hover { border-color: rgba(166,144,255,.4); transform: translateY(-4px); }
.pkg.feat { border-color: rgba(166,144,255,.45); background: linear-gradient(160deg, rgba(123,92,255,.95) 0%, rgba(80,58,210,.92) 45%, rgba(40,30,120,.95) 100%); box-shadow: 0 30px 80px -30px rgba(123,92,255,.8), inset 0 1px 0 rgba(255,255,255,.18); }
.pkg .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-2); }
.pkg.feat .top { color: rgba(255,255,255,.85); }
.pkg .top em { font-style: normal; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); font-size: 10px; color: #fff; white-space: nowrap; }
.pkg h3 { font-size: clamp(24px, 2.2vw, 30px); margin-top: 22px; }
.pkg .for { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.pkg.feat .for { color: rgba(243,241,255,.8); }
.price { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line-strong); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pkg.feat .price { border-color: rgba(255,255,255,.25); }
.price small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pkg.feat .price small { color: rgba(255,255,255,.65); }
.price b { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price span { font-size: 13.5px; color: var(--muted); }
.pkg.feat .price span { color: rgba(243,241,255,.75); }
.pkg ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.pkg li { font-size: 14px; display: flex; gap: 10px; align-items: baseline; color: #d9d4f2; }
.pkg.feat li { color: rgba(243,241,255,.92); }
.pkg li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--violet-2); transform: translateY(-2px); }
.pkg.feat li::before { background: #fff; opacity: .8; }
.pkg .meta { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.pkg .meta .t { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.pkg.feat .meta .t { color: rgba(255,255,255,.65); }
.pkg .btn { width: 100%; justify-content: center; height: 48px; padding: 0 18px; white-space: normal; text-align: center; line-height: 1.2; }
.pkg.feat .btn-ghost { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }

.bundle { margin-top: 16px; border-radius: 22px; border: 1px solid rgba(166,144,255,.25); padding: 28px 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; backdrop-filter: blur(10px);
  background: radial-gradient(500px 300px at 100% 0%, rgba(123,92,255,.3), transparent 65%), radial-gradient(400px 300px at 0% 100%, rgba(91,143,255,.14), transparent 60%), rgba(12,10,26,.88); }
.bundle .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-2); }
.bundle h3 { font-size: clamp(22px, 2.2vw, 30px); margin-top: 8px; }
.bundle p { color: rgba(243,241,255,.75); font-size: 15px; margin-top: 8px; max-width: 60ch; }
.bridge { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.bridge div { min-width: 0; }
.bridge b { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-2); margin-bottom: 8px; }
.bridge p { font-size: 15px; color: #cdc8e6; }

.cm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cm { border: 1px solid var(--line); border-radius: 22px; background: rgba(10,9,18,.8); backdrop-filter: blur(10px); padding: 26px; min-width: 0; display: flex; flex-direction: column; gap: 12px; transition: border-color .4s; }
.cm:hover { border-color: rgba(166,144,255,.4); }
.cm .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cm .tags span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.cm .tags span.hl { border-color: rgba(166,144,255,.45); color: var(--violet-2); }
.cm h3 { font-size: clamp(24px, 2.2vw, 28px); margin-top: 6px; letter-spacing: -0.03em; }
.cm p { color: var(--muted); font-size: 14.5px; }

.field select optgroup { background: var(--surface-2); color: var(--fg); }
form[name="studio"] .field select { transition: border-color .4s, background-color .4s, box-shadow .4s; }
form[name="studio"] .field select.flash { border-color: var(--violet-2); background-color: rgba(123,92,255,.12); box-shadow: 0 0 0 4px rgba(123,92,255,.15); }

@media (max-width: 1000px) {
  .pkgs, .cm-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tabs { width: 100%; }
  .tabs button { flex: 1; justify-content: center; padding: 0 10px; font-size: 14px; }
  .tabs button small { display: none; }
  .bundle { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .bundle .btn { width: 100%; justify-content: center; }
  .bridge { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pkg, .tabs button, form[name="studio"] .field select { transition: none; }
  .pkg:hover { transform: none; }
}
