/* Vircom base: reset, type, buttons, links, nav, menus, cursor, footer, reveal. Primero's system with Vircom colours */

/* ---------- Reset and document ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { font-size: clamp(16px, 6.4px + .6667vw, 18px); -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--cloud); color: var(--ink); padding: 12px 18px; border-radius: var(--r-control); font-weight: 500; }
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.title { font-size: var(--t-title); line-height: 1.04; letter-spacing: var(--track-title); }

/* ---------- Arrow swap: one arrow leaves, a copy arrives ---------- */
.swap { position: relative; display: inline-block; width: 12px; height: 12px; overflow: hidden; flex: none; }
.swap svg { position: absolute; inset: 0; width: 12px; height: 12px; transition: translate var(--slow) var(--ease); }
.swap svg + svg { translate: -110% 0; }
a:hover .swap svg:first-child, button:hover .swap svg:first-child { translate: 110% 0; }
a:hover .swap svg + svg, button:hover .swap svg + svg { translate: 0 0; }
.swap--down svg + svg { translate: 0 -110%; }
a:hover .swap--down svg:first-child { translate: 0 110%; }
.swap--ne svg + svg, .btn-chip .swap svg + svg { translate: -110% 110%; }
a:hover .swap--ne svg:first-child, a:hover .btn-chip .swap svg:first-child { translate: 110% -110%; }

/* ---------- Buttons: ink floods in from where the pointer entered ---------- */
.btn {
  --x: 50%; --y: 50%;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 14px;
  height: 48px; padding: 0 7px 0 22px;
  border-radius: var(--r-control);
  background: var(--cloud); color: var(--ink);
  font-size: var(--t-small); font-weight: 600; line-height: 1; white-space: nowrap;
  overflow: hidden;
  transition: color var(--base) var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  clip-path: circle(0 at var(--x) var(--y));
  transition: clip-path var(--slow) var(--ease);
}
.btn:hover { color: var(--cloud); }
.btn:hover::before { clip-path: circle(150% at var(--x) var(--y)); }
.btn-chip {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--ink); color: var(--cloud);
  transition: background var(--base) var(--ease), color var(--base) var(--ease);
}
.btn:hover .btn-chip { background: var(--cloud); color: var(--ink); }
.btn-chip .swap { transition: rotate var(--base) var(--ease-swap); }
.btn--line { height: 40px; padding: 0 16px; gap: 10px; background: transparent; box-shadow: inset 0 0 0 1px rgb(11 18 32 / .35); font-weight: 500; }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
@supports (corner-shape: superellipse(1.8)) {
  .btn { border-radius: calc(var(--r-control) * 1.8); corner-shape: superellipse(1.8); }
  .btn-chip { border-radius: 20px; corner-shape: superellipse(1.8); }
}

/* ---------- Text links: the underline wipes in from the left and leaves to the right ---------- */
.link { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); font-weight: 500; line-height: 1.2; padding-block: 4px; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--slow) var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link--sm { font-size: var(--t-cap); }
.link--bob .swap svg:first-child { animation: bob 2.8s var(--ease-swap) infinite; }
.link--bob:hover .swap svg:first-child { animation: none; }
@keyframes bob { 0%, 100% { translate: 0 -1.5px; } 50% { translate: 0 1.5px; } }

/* ---------- Chevron: two strokes that fold up when open ---------- */
.chev { position: relative; display: inline-block; width: 8px; height: 8px; margin-left: 5px; vertical-align: middle; transition: translate var(--quick) var(--ease); }
.chev i { position: absolute; top: 4px; width: 5px; height: 1.3px; background: currentColor; border-radius: 1px; transition: rotate var(--quick) var(--ease); }
.chev i:first-child { left: 0; rotate: 40deg; }
.chev i:last-child { right: 0; rotate: -40deg; }
[aria-expanded="true"] > .chev i:first-child { rotate: -40deg; }
[aria-expanded="true"] > .chev i:last-child { rotate: 40deg; }
button:hover > .chev { translate: 0 1px; }

/* ---------- Nav ---------- */
.nav {
  --on: var(--cloud); --on-2: var(--cloud-dim); --bar: var(--sky);
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--on);
  transition: color var(--base) var(--ease), translate .7s var(--ease);
}
.nav[data-on="paper"] { --on: var(--ink); --on-2: var(--ink-2); --bar: var(--paper); }
.nav.is-open { --on: var(--cloud); --on-2: var(--cloud-dim); }
.nav.is-hidden { translate: 0 -84px; transition: color var(--base) var(--ease), translate .3s var(--ease-ui); }
.nav-bar {
  position: relative; z-index: 3; height: 62px; display: flex; align-items: center; gap: 48px;
  padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto;
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 62px; z-index: 2;
  background: color-mix(in srgb, var(--bar) 84%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transition: opacity var(--base) var(--ease);
}
.nav[data-on="paper"]:not(.is-open)::before { opacity: 1; }
.nav-logo { display: block; width: 104px; margin-right: auto; }
.nav-logo svg { width: 100%; height: auto; fill: currentColor; overflow: hidden; }
.nav-logo .l { transition: translate .5s var(--ease-swap); transition-delay: calc(var(--i) * 28ms); }
.nav-logo .l .dup { translate: 0 150px; }
.nav-logo:hover .l { translate: 0 -150px; }
.nav-links, .nav-end { display: flex; align-items: center; gap: 48px; }
.nav-end { gap: 40px; margin-left: 40px; }
.nav-trigger, .nav-contact {
  position: relative; font-size: var(--t-nav); font-weight: 500; line-height: 1; padding-block: 8px; white-space: nowrap;
}
.nav-trigger::after, .nav-contact::after {
  content: ""; position: absolute; left: 0; right: 14px; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--slow) var(--ease);
}
.nav-contact::after { right: 0; }
.nav-trigger[aria-expanded="true"]::after, .nav-contact:hover::after { transform: scaleX(1); transform-origin: left; }
.nav.is-open .nav-trigger:not([aria-expanded="true"]) { color: var(--on-2); }
.nav :focus-visible { outline-offset: 6px; }
.nav-toggle { display: none; }

/* Dropdown: a full-viewport panel unrolls from the top, the rows rise under their trigger */
.nav-panel {
  position: fixed; inset: 0; z-index: 1; background: var(--sky);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path var(--slow) var(--ease), visibility 0s var(--slow);
}
.nav.is-open .nav-panel { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--slow) var(--ease), visibility 0s; }
.nav-scene { position: absolute; inset: 0; background: var(--sky-deep); }
.nav-scene::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--sky-deep) 72%, var(--ink)); opacity: .62; }
.nav-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.04; transition: opacity var(--slow) var(--ease), scale 1.2s var(--ease); }
.nav-scene img.is-active { opacity: 1; scale: 1; }
.nav-menu {
  position: fixed; z-index: 3; top: 78px; left: var(--x, 50%); width: min(510px, calc(100vw - var(--x, 0px) - var(--gutter)));
  visibility: hidden; pointer-events: none;
}
.nav-menu.is-open { visibility: visible; pointer-events: auto; }
.nav-menu li { opacity: 0; translate: 0 60%; transition: opacity .35s var(--ease-ui), translate var(--slow) var(--ease); }
.nav-menu.is-open li { opacity: 1; translate: 0 0; }
.nav-menu.is-open li:nth-child(2) { transition-delay: 50ms; }
.nav-menu.is-open li:nth-child(3) { transition-delay: 100ms; }
.nav-menu.is-open li:nth-child(4) { transition-delay: 150ms; }
.nav-menu a {
  position: relative; display: block; padding: 16px 0; font-size: var(--t-nav); font-weight: 500; color: var(--cloud);
  transition: opacity var(--base) var(--ease), translate var(--base) var(--ease);
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--cloud);
  transform: scaleX(0); transform-origin: left; transition: transform var(--slow) var(--ease);
}
.nav-menu:hover a { opacity: .62; }
.nav-menu a:hover, .nav-menu a:focus-visible { opacity: 1; translate: 6px 0; }
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-menu--lang { width: 160px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 2; background: var(--sky); color: var(--cloud);
  padding: 96px calc(var(--gutter) + 6px) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path var(--slow) var(--ease), visibility 0s var(--slow);
}
.mobile-menu::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 30% at 30% 20%, rgb(255 255 255 / .05), transparent 70%), radial-gradient(50% 30% at 70% 75%, rgb(0 0 0 / .06), transparent 70%); pointer-events: none; }
.nav.is-menu .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--slow) var(--ease), visibility 0s; }
.mm-level { position: absolute; inset: 96px calc(var(--gutter) + 6px) auto; display: flex; flex-direction: column; align-items: flex-start; transition: opacity var(--base) var(--ease), translate var(--slow) var(--ease); }
.mm-level > button, .mm-level > a:not(.mm-contact) { font-size: 1.1875rem; font-weight: 500; padding: 17px 0; text-align: left; }
.mm-sub { opacity: 0; translate: 24px 0; pointer-events: none; }
.mobile-menu[data-sub] .mm-root { opacity: 0; translate: -24px 0; pointer-events: none; }
.mobile-menu[data-sub="services"] .mm-sub[data-sub="services"],
.mobile-menu[data-sub="email"] .mm-sub[data-sub="email"],
.mobile-menu[data-sub="company"] .mm-sub[data-sub="company"] { opacity: 1; translate: 0 0; pointer-events: auto; }
.mm-sub > a { font-size: 1.0625rem !important; color: var(--cloud); }
.mm-back { display: inline-flex; align-items: center; gap: 10px; color: var(--cloud-dim); font-size: var(--t-cap) !important; }
.mm-back svg { width: 12px; height: 12px; }
.mm-lang { align-self: stretch; display: flex; gap: 40px; margin-top: 22px; padding-top: 24px; border-top: 1px solid rgb(243 246 251 / .3); }
.mm-lang a { font-size: 1.1875rem; color: var(--cloud-faint); }
.mm-lang a[aria-current] { color: var(--cloud); }
.mm-contact { align-self: stretch; margin-top: 32px; height: 54px; display: grid; place-items: center; border-radius: var(--r-control); box-shadow: inset 0 0 0 1px rgb(243 246 251 / .4); font-size: 1.1875rem; font-weight: 500; }

@media (max-width: 1023px) {
  .nav-links, .nav-end { display: none; }
  .nav-logo { width: 116px; }
  .nav-toggle { display: block; position: relative; z-index: 3; height: 32px; overflow: hidden; font-size: 1.125rem; font-weight: 500; }
  .nav-toggle-words { display: grid; transition: translate var(--slow) var(--ease); }
  .nav-toggle-words span { height: 32px; line-height: 32px; text-align: right; }
  .nav.is-menu .nav-toggle-words { translate: 0 -32px; }
  .nav.is-menu { color: var(--cloud); }
  .nav.is-menu::before { opacity: 0 !important; }
  .nav-panel, .nav-menu { display: none; }
}

/* ---------- Cursor: a dot trails the pointer, a ring wraps what it hovers. Fine pointers only, native cursor stays ---------- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.js .cursor, html.js .cursor-dot { display: block; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease); }
  html.js .cursor.is-on, html.js .cursor-dot.is-on { opacity: 1; }
  .cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--cloud); mix-blend-mode: difference; }
  .cursor { width: 0; height: 0; }
  .cursor-ring {
    position: absolute; left: calc(var(--w, 44px) / -2); top: calc(var(--h, 44px) / -2); width: var(--w, 44px); height: var(--h, 44px);
    border: 1px solid var(--c, var(--cloud)); border-radius: var(--r, 999px); opacity: .9;
    transition: width .5s var(--ease), height .5s var(--ease), left .5s var(--ease), top .5s var(--ease), border-radius .5s var(--ease), border-color var(--base) var(--ease), scale .35s var(--ease), opacity .3s var(--ease);
  }
  .cursor.is-wrap .cursor-ring { opacity: .6; }
  .cursor.is-press .cursor-ring { scale: .82; }
  .cursor.on-paper { --c: var(--ink); }
}

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 0; margin-top: -48px; min-height: 100svh; background: var(--sky); color: var(--cloud); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.footer-sky { position: absolute; inset: 0 0 auto; height: max(31vw, 360px); pointer-events: none; }
.footer-sky canvas { width: 100%; height: 100%; mix-blend-mode: screen; opacity: .95; }
.footer-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 35%, var(--sky)); }
.footer-body { position: relative; padding-top: calc(clamp(180px, 27vw, 420px) + 48px); padding-bottom: 28px; }
.footer-main { display: grid; grid-template-columns: .9fr 2.1fr; gap: var(--gap); }
.footer-close h2 { font-size: var(--t-title); line-height: 1.04; letter-spacing: var(--track-title); max-width: 16ch; margin-bottom: 32px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 64px var(--gap); padding-top: 8px; }
.footer-cols h3 { font-size: var(--t-cap); font-weight: 500; color: var(--cloud-faint); margin-bottom: 14px; }
.footer-cols li a { display: inline-block; padding: 4px 0; font-size: var(--t-body); position: relative; }
.footer-cols li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--slow) var(--ease); }
.footer-cols li a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-legal {
  display: flex; align-items: center; gap: 20px; margin-top: 72px; padding-top: 20px; border-top: 1px solid rgb(243 246 251 / .25);
  font-size: var(--t-legal); text-transform: uppercase; letter-spacing: .06em; color: var(--cloud-dim);
}
.footer-legal svg { width: 74px; fill: var(--cloud); }
.fl-end { margin-left: auto; display: flex; gap: 20px; }
.fl-end a:hover { color: var(--cloud); }
@media (max-width: 899px) {
  .footer-main { grid-template-columns: 1fr; gap: 64px; }
  .footer-cols { gap: 28px 20px; }
  .footer-legal { flex-wrap: wrap; row-gap: 10px; }
  .fl-end { margin-left: 0; width: 100%; }
}

/* ---------- Scroll reveal ---------- */
html.js [data-reveal]:not(.is-in), html.js .step:not(.is-in) { opacity: 0; translate: 0 28px; }
[data-reveal], .step {
  transition: opacity var(--slow) var(--ease-ui), translate var(--reveal) var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ---------- Reduced motion: a clean static page ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  html.js [data-reveal]:not(.is-in), html.js .step:not(.is-in) { opacity: 1; translate: none; }
  .cursor, .cursor-dot { display: none !important; }
}
