/* ==========================================================================
   VELORIQ SOFTWARE LTD - Core design system
   1. Tokens
   2. Reset & base
   3. Typography
   4. Surfaces & layout
   5. Buttons & links
   6. Header / mega-menu / mobile navigation
   7. Footer
   8. Loaders (first entry + page transition)
   9. Motion utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Ink family */
  --ink:            #0E1420;
  --ink-2:          #141C2B;
  --ink-3:          #1D2637;
  --graphite:       #2A3444;
  --slate:          #5A6577;
  --slate-2:        #7A8496;

  /* Paper family */
  --paper:          #FBFAF8;
  --paper-2:        #F4F2EE;
  --paper-3:        #ECEAE4;
  --mist:           #E4E6EA;

  /* Accents */
  /* Accent values are chosen to clear WCAG AA (4.5:1) as body text on every
     light surface used in the design system, including --paper-3. */
  --cobalt:         #2A55DE;
  --cobalt-deep:    #1B41B0;
  --cobalt-soft:    #E8EEFD;
  --cobalt-light:   #6D9BFF;
  --teal:           #0B6C68;
  --teal-deep:      #095C58;
  --teal-soft:      #E3F2F0;
  --teal-light:     #4FC4BC;
  --violet:         #5B4FD6;
  --amber:          #A97722;
  --amber-light:    #D8A94A;

  /* Semantic (overridden per surface) */
  --bg:             var(--paper);
  --fg:             var(--ink);
  --fg-muted:       var(--slate);
  --rule:           rgba(14, 20, 32, 0.12);
  --rule-strong:    rgba(14, 20, 32, 0.24);
  --accent:         var(--cobalt);
  --accent-contrast:#ffffff;
  --panel:          #ffffff;
  --panel-rule:     rgba(14, 20, 32, 0.10);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Charter", "Bitstream Charter", Cambria, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Menlo, monospace;

  --fs-display: clamp(2.55rem, 1.35rem + 3.9vw, 4.45rem);
  --fs-h1:      clamp(2.15rem, 1.35rem + 2.6vw, 3.45rem);
  --fs-h2:      clamp(1.72rem, 1.20rem + 1.7vw, 2.62rem);
  --fs-h3:      clamp(1.28rem, 1.08rem + 0.62vw, 1.62rem);
  --fs-h4:      clamp(1.08rem, 1.00rem + 0.28vw, 1.24rem);
  --fs-lead:    clamp(1.10rem, 1.02rem + 0.38vw, 1.32rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-micro:   0.8125rem;

  /* Space */
  --gutter: clamp(1.25rem, 0.7rem + 2.2vw, 3rem);
  --section-y: clamp(4rem, 2.4rem + 5.4vw, 7.5rem);
  --section-y-lg: clamp(5rem, 2.6rem + 7vw, 9.5rem);

  /* Geometry */
  --radius-s: 4px;
  --radius:   8px;
  --radius-l: 14px;
  --maxw:     1296px;
  --maxw-mid: 1080px;
  --maxw-narrow: 840px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur: .5s;

  --shadow-s: 0 1px 2px rgba(14,20,32,.05), 0 4px 14px rgba(14,20,32,.05);
  --shadow-m: 0 2px 6px rgba(14,20,32,.06), 0 18px 44px rgba(14,20,32,.09);
  --shadow-l: 0 4px 12px rgba(14,20,32,.07), 0 34px 78px rgba(14,20,32,.13);

  --header-h: 78px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

table { border-collapse: collapse; width: 100%; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}
[data-surface="ink"] :focus-visible,
[data-surface="ink-deep"] :focus-visible { outline-color: var(--cobalt-light); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; border-radius: var(--radius-s);
  font-size: var(--fs-small); font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: inherit;
  text-wrap: balance;
}
h3, h4 { line-height: 1.25; letter-spacing: -0.014em; }

.display { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.032em; font-weight: 660; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); font-weight: 620; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.58;
  color: var(--fg-muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--fs-micro);
  font-weight: 660;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.15rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .55; flex: none;
}
.eyebrow--plain::before { display: none; }

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.mono {
  font-family: var(--font-mono); font-size: .82em;
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
}

.prose { max-width: 70ch; }
.prose p + p { margin-top: 1.05em; }
.prose p { color: var(--fg-muted); text-wrap: pretty; }
.prose strong { color: var(--fg); font-weight: 620; }

.text-muted { color: var(--fg-muted); }
.text-fg { color: var(--fg); }

/* Editorial rule used to structure sections without cards */
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   4. SURFACES & LAYOUT
   -------------------------------------------------------------------------- */
[data-surface] { background: var(--bg); color: var(--fg); }

[data-surface="paper"]     { --bg: var(--paper);   --fg: var(--ink); --fg-muted: var(--slate); --rule: rgba(14,20,32,.12); --rule-strong: rgba(14,20,32,.26); --panel: #fff; --panel-rule: rgba(14,20,32,.10); }
[data-surface="paper-alt"] { --bg: var(--paper-2); --fg: var(--ink); --fg-muted: var(--slate); --rule: rgba(14,20,32,.13); --rule-strong: rgba(14,20,32,.26); --panel: #fff; --panel-rule: rgba(14,20,32,.09); }
[data-surface="paper-deep"]{ --bg: var(--paper-3); --fg: var(--ink); --fg-muted: var(--slate); --rule: rgba(14,20,32,.15); --rule-strong: rgba(14,20,32,.28); --panel: #fff; --panel-rule: rgba(14,20,32,.09); }
[data-surface="ink"] {
  --bg: var(--ink); --fg: #F3F4F7; --fg-muted: #9BA5B6;
  --rule: rgba(255,255,255,.13); --rule-strong: rgba(255,255,255,.28);
  --accent: var(--cobalt-light); --panel: rgba(255,255,255,.045); --panel-rule: rgba(255,255,255,.11);
}
[data-surface="ink-deep"] {
  --bg: #0A0F19; --fg: #F3F4F7; --fg-muted: #939DAF;
  --rule: rgba(255,255,255,.11); --rule-strong: rgba(255,255,255,.26);
  --accent: var(--cobalt-light); --panel: rgba(255,255,255,.04); --panel-rule: rgba(255,255,255,.1);
}
[data-surface="teal-soft"] { --bg: var(--teal-soft); --fg: var(--ink); --fg-muted: #4C6462; --rule: rgba(9,92,88,.16); --accent: var(--teal-deep); --panel: #fff; --panel-rule: rgba(9,92,88,.12); }
[data-surface="cobalt-soft"]{ --bg: var(--cobalt-soft); --fg: var(--ink); --fg-muted: #4D5A73; --rule: rgba(27,65,176,.16); --accent: var(--cobalt-deep); --panel: #fff; --panel-rule: rgba(27,65,176,.12); }

/* Category theming */
[data-cat="development"]  { --accent: var(--cobalt); --accent-soft: var(--cobalt-soft); }
[data-cat="consultancy"]  { --accent: var(--teal);   --accent-soft: var(--teal-soft); }
[data-surface="ink"][data-cat="development"] { --accent: var(--cobalt-light); }
[data-surface="ink"][data-cat="consultancy"] { --accent: var(--teal-light); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--mid { max-width: var(--maxw-mid); }
.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--lg { padding-block: var(--section-y-lg); }
.section--tight { padding-block: clamp(2.75rem, 1.8rem + 3vw, 4.25rem); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

.stack > * + * { margin-top: var(--stack-gap, 1.25rem); }
.stack--s { --stack-gap: .75rem; }
.stack--l { --stack-gap: 2rem; }

.grid { display: grid; gap: clamp(1.25rem, .8rem + 1.6vw, 2.25rem); }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; }
.grid--sidebar-rev { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }

.section-head {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.86fr);
  gap: clamp(1.25rem, .6rem + 2.4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem);
}
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--stack { grid-template-columns: 1fr; align-items: start; }
.section-head p { margin-top: .35rem; }

.flow-tight > * + * { margin-top: .5rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .85rem 1rem; align-items: center; }
.cluster--between { justify-content: space-between; }

/* --------------------------------------------------------------------------
   5. BUTTONS & LINKS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-rule: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  padding: .92rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-rule);
  border-radius: var(--radius-s);
  font-size: var(--fs-small); font-weight: 620; letter-spacing: .005em;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .34s var(--ease), border-color .34s var(--ease), background-color .34s var(--ease), transform .2s var(--ease);
  text-align: center;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover-bg, var(--cobalt));
  transform: translateY(101%);
  transition: transform .42s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn:hover { color: var(--btn-hover-fg, #fff); border-color: var(--btn-hover-bg, var(--cobalt)); }
.btn:active { transform: translateY(1px); }
.btn .btn-arrow { transition: transform .34s var(--ease-out); flex: none; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn--primary { --btn-bg: var(--ink); --btn-fg: #fff; --btn-rule: var(--ink); --btn-hover-bg: var(--cobalt); }
.btn--accent  { --btn-bg: var(--cobalt); --btn-fg: #fff; --btn-rule: var(--cobalt); --btn-hover-bg: var(--ink); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--fg); --btn-rule: var(--rule-strong); --btn-hover-bg: var(--fg); --btn-hover-fg: var(--bg); }
.btn--light   { --btn-bg: #fff; --btn-fg: var(--ink); --btn-rule: #fff; --btn-hover-bg: var(--cobalt); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-rule: rgba(255,255,255,.4); --btn-hover-bg: #fff; --btn-hover-fg: var(--ink); }
.btn--sm { padding: .68rem 1.15rem; font-size: var(--fs-micro); }
.btn--lg { padding: 1.08rem 2rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* Text link with animated underline */
.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: var(--fs-small);
  color: var(--fg);
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: color .28s var(--ease), background-size .38s var(--ease-out);
}
.link:hover { color: var(--accent); }
.link--reveal { background-size: 0% 1px; background-position: 100% 100%; }
.link--reveal:hover { background-size: 100% 1px; background-position: 0 100%; }
.link .btn-arrow { transition: transform .3s var(--ease-out); }
.link:hover .btn-arrow { transform: translateX(4px); }

.link-plain { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-plain:hover { text-decoration-thickness: 2px; }

/* Pills / tags */
.tag {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .34rem .7rem;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: .01em;
  color: var(--fg-muted);
  background: transparent;
}
.tag--accent { border-color: color-mix(in srgb, var(--accent) 42%, transparent); color: var(--accent); }
.tag--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag--dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.price-flag {
  display: inline-flex; align-items: baseline; gap: .4rem;
  font-weight: 640;
}
.price-flag .price-from {
  font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .13em;
  color: var(--fg-muted); font-weight: 620;
}
.price-flag .price-value { font-size: 1.12rem; letter-spacing: -0.015em; color: var(--fg); }

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .42s var(--ease), border-color .42s var(--ease), box-shadow .42s var(--ease), height .3s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--ink);
}
.site-header .wrap { display: flex; align-items: center; gap: clamp(1rem, .4rem + 1.6vw, 2.25rem); }

/* Transparent over dark hero */
.site-header[data-mode="over-dark"] { color: #fff; }
.site-header[data-mode="over-light"] { color: var(--ink); }
.site-header.is-stuck {
  background: rgba(251,250,248,.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(14,20,32,.10);
  color: var(--ink);
  height: 68px;
  box-shadow: 0 8px 30px rgba(14,20,32,.05);
}
.site-header.is-menu-open { background: var(--paper); color: var(--ink); border-bottom-color: rgba(14,20,32,.1); }

.brand { display: inline-flex; align-items: center; gap: .72rem; flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-mark .bm-ring, .brand-mark .bm-v { stroke: currentColor; }
.brand-mark .bm-tail { stroke: var(--cobalt); }
.brand-mark .bm-node { fill: var(--cobalt); }
.site-header[data-mode="over-dark"]:not(.is-stuck) .brand-mark .bm-tail { stroke: var(--cobalt-light); }
.site-header[data-mode="over-dark"]:not(.is-stuck) .brand-mark .bm-node { fill: var(--cobalt-light); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-size: 1.075rem; font-weight: 700; letter-spacing: .175em; }
.brand-word span {
  font-size: .5rem; font-weight: 620; letter-spacing: .27em;
  opacity: .62; margin-top: .3rem;
}

.nav-primary { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(.35rem, .1rem + .9vw, 1.35rem); }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .55rem .3rem;
  font-size: .935rem; font-weight: 560; letter-spacing: -0.004em;
  color: currentColor;
  transition: opacity .25s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: .3rem; right: .3rem; bottom: .28rem;
  height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .38s var(--ease-out);
}
.nav-link:hover::after, .nav-item.is-open > .nav-link::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"] { font-weight: 660; }
.nav-link[aria-current="page"]::after { transform: scaleX(1); background: var(--cobalt); }
.site-header[data-mode="over-dark"]:not(.is-stuck) .nav-link[aria-current="page"]::after { background: var(--cobalt-light); }
.nav-caret { width: 9px; height: 9px; transition: transform .3s var(--ease); opacity: .7; }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: .75rem; flex: none; }
.header-phone {
  display: none; align-items: center; gap: .45rem;
  font-size: .875rem; font-weight: 600; letter-spacing: .005em; opacity: .82;
}
.header-phone:hover { opacity: 1; }
@media (min-width: 1180px) { .header-phone { display: inline-flex; } }

.site-header .btn--header {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-rule: var(--ink); --btn-hover-bg: var(--cobalt);
  padding: .72rem 1.2rem; font-size: .875rem;
}
.site-header[data-mode="over-dark"]:not(.is-stuck) .btn--header {
  --btn-bg: #fff; --btn-fg: var(--ink); --btn-rule: #fff; --btn-hover-bg: var(--cobalt); --btn-hover-fg: #fff;
}

/* --- Mega menu --- */
.nav-item { position: relative; }
.mega {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  background: var(--paper);
  border-top: 1px solid rgba(14,20,32,.09);
  border-bottom: 1px solid rgba(14,20,32,.12);
  box-shadow: 0 30px 60px rgba(14,20,32,.10);
  color: var(--ink);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .38s var(--ease-out), visibility .3s;
  z-index: 88;
}
.site-header.is-stuck .mega { top: 68px; }
.nav-item.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }

.mega-inner {
  display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.1fr) minmax(0,1.1fr);
  gap: clamp(1.5rem, .8rem + 2.4vw, 3.25rem);
  padding-block: 2.6rem 2.9rem;
}
.mega-intro { border-right: 1px solid rgba(14,20,32,.1); padding-right: clamp(1rem,2vw,2rem); }
.mega-intro h2 { font-size: 1.32rem; margin-bottom: .6rem; }
.mega-intro p { font-size: var(--fs-small); color: var(--slate); margin-bottom: 1.35rem; }
.mega-col-title {
  display: flex; align-items: center; gap: .6rem;
  font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .15em; font-weight: 660;
  padding-bottom: .8rem; margin-bottom: .35rem;
  border-bottom: 1px solid rgba(14,20,32,.1);
}
.mega-col--dev .mega-col-title { color: var(--cobalt-deep); }
.mega-col--con .mega-col-title { color: var(--teal-deep); }
.mega-link {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem 1rem;
  padding: .62rem .7rem .62rem .75rem;
  margin-inline: -.75rem;
  border-radius: var(--radius-s);
  transition: background-color .25s var(--ease);
}
.mega-link:hover, .mega-link:focus-visible { background: rgba(14,20,32,.045); }
.mega-link strong { display: block; font-size: .945rem; font-weight: 600; letter-spacing: -0.008em; }
.mega-link em {
  display: block; font-style: normal; font-size: .8125rem; color: var(--slate); line-height: 1.45; margin-top: .12rem;
}
.mega-link .mega-price {
  font-size: var(--fs-micro); font-weight: 620; color: var(--slate-2); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mega-link:hover .mega-price { color: var(--ink); }
.mega-col--dev .mega-link:hover strong { color: var(--cobalt-deep); }
.mega-col--con .mega-link:hover strong { color: var(--teal-deep); }
.mega-foot {
  border-top: 1px solid rgba(14,20,32,.1);
  padding-block: 1.05rem 1.15rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  font-size: var(--fs-small); color: var(--slate);
}

/* --- Mobile nav --- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -8px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-s);
  flex: none;
}
.nav-toggle span {
  position: relative; display: block; width: 21px; height: 1.6px;
  background: currentColor; border-radius: 2px;
  transition: transform .38s var(--ease-out), background-color .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 21px; height: 1.6px;
  background: currentColor; border-radius: 2px;
  transition: transform .38s var(--ease-out), top .2s var(--ease);
}
.nav-toggle span::before { top: -6.5px; }
.nav-toggle span::after  { top: 6.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 85;
  background: var(--paper);
  padding-top: var(--header-h);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0;
  transform: translateY(-8px);
  transition: opacity .34s var(--ease), transform .42s var(--ease-out), visibility .34s;
  color: var(--ink);
}
.mobile-nav.is-open { visibility: visible; opacity: 1; transform: none; }
.mobile-nav-inner { padding: 1.5rem var(--gutter) 3rem; flex: 1; }
.mnav-item { border-bottom: 1px solid rgba(14,20,32,.1); }
.mnav-link, .mnav-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.05rem 0;
  font-size: 1.22rem; font-weight: 600; letter-spacing: -0.018em;
  text-align: left;
}
.mnav-trigger svg { transition: transform .34s var(--ease); flex: none; opacity: .6; }
.mnav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.mnav-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease-out); }
.mnav-panel > div { overflow: hidden; }
.mnav-trigger[aria-expanded="true"] + .mnav-panel { grid-template-rows: 1fr; }
.mnav-group-title {
  font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .15em; font-weight: 660;
  color: var(--slate-2); padding: 1rem 0 .5rem;
}
.mnav-sub {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .62rem 0 .62rem .95rem;
  border-left: 1.5px solid rgba(14,20,32,.12);
  font-size: .975rem; font-weight: 540;
}
.mnav-sub span { font-size: var(--fs-micro); color: var(--slate-2); font-weight: 620; white-space: nowrap; }
.mnav-sub:hover { border-left-color: var(--cobalt); color: var(--cobalt-deep); }
.mobile-nav-foot {
  padding: 1.75rem var(--gutter) 2.5rem;
  background: var(--paper-2); border-top: 1px solid rgba(14,20,32,.1);
}
.mobile-nav-foot .btn { margin-bottom: 1.1rem; }
.mnav-contact { display: grid; gap: .35rem; font-size: var(--fs-small); color: var(--slate); }
.mnav-contact a { font-weight: 600; color: var(--ink); }

@media (max-width: 1023px) {
  .nav-primary, .site-header .btn--header { display: none; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
}

/* --------------------------------------------------------------------------
   7. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: #E9EBEF;
  padding-top: clamp(4rem,2.4rem + 5vw,6.5rem);
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-top {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,2fr);
  gap: clamp(2.5rem,1.4rem + 4vw,5.5rem);
  padding-bottom: clamp(3rem,1.8rem + 3.5vw,4.75rem);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .brand { color: #fff; margin-bottom: 1.5rem; }
.footer-brand .brand-mark .bm-tail { stroke: var(--cobalt-light); }
.footer-brand .brand-mark .bm-node { fill: var(--cobalt-light); }
.footer-blurb { font-size: var(--fs-small); color: #A6B0C0; max-width: 40ch; margin-bottom: 2rem; line-height: 1.65; }
.footer-contact { display: grid; gap: 1.05rem; }
.footer-contact a, .footer-contact address {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: var(--fs-small); font-style: normal; color: #C6CCD8; line-height: 1.55;
}
.footer-contact a:hover { color: #fff; }
.footer-contact svg { flex: none; margin-top: 3px; opacity: .55; }

.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2.75rem 1.75rem; }
.footer-nav h3 {
  font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .15em;
  font-weight: 660; color: #fff; margin-bottom: 1.35rem;
  padding-bottom: .8rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-nav li + li { margin-top: .72rem; }
.footer-nav a { font-size: .9rem; color: #A6B0C0; transition: color .22s var(--ease), padding-left .28s var(--ease); }
.footer-nav a:hover { color: #fff; padding-left: 5px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1.1rem 2.5rem; align-items: center; justify-content: space-between;
  padding-block: 2.25rem 2.75rem;
  font-size: var(--fs-micro); color: #8C97A9; line-height: 1.7;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; }
.footer-legal-links a:hover { color: #fff; }
.footer-reg { max-width: 62ch; line-height: 1.6; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2.25rem 1.5rem; }
}
@media (max-width: 460px) { .footer-nav { grid-template-columns: 1fr; } }

/* ==========================================================================
   LOADER A - FIRST ENTRY: "RESOLVE"

   FOCUS -> REVEAL -> IDENTITY -> COMPLETION -> WEBSITE.

   The frame opens on a lit graphite environment (never a black screen). The
   Veloriq mark arrives soft and oversized, then resolves: the blur clears, the
   scale settles and a mask wipes it into existence from the top down. A single
   restrained light sweep passes across the finished symbol. The wordmark then
   contracts from wide tracking into its final lock-up, SOFTWARE LTD follows
   quietly, and a hairline reports real loading progress beneath.

   At the end the environment brightens toward the page, the identity gives up
   its dominance, and the homepage resolves into focus underneath it - the
   intro becoming the website rather than being swapped for it.

   NOTE: nothing in the resting state may mask, clip or zero-out this overlay.
   The previous implementation carried mask-size:0 on the base rule, which
   painted nothing at all and made the entire intro invisible.
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 500;
  display: none;
  align-items: center; justify-content: center;
  overflow: hidden;
  opacity: 1;
  background:
    radial-gradient(ellipse 58% 46% at 50% 40%, #1B2434 0%, #121927 45%, #0C111B 100%),
    #0C111B;
}
html.intro-active .intro { display: flex; }
html.intro-active, html.intro-active body { overflow: hidden; }
/* The page underneath is held back until the hand-off, so the browser can
   never paint homepage -> intro -> homepage. */
html.intro-active #main, html.intro-active .site-footer { visibility: hidden; }

/* Depth: a slow cobalt bloom already present on the first painted frame. */
.intro-bloom {
  position: absolute; left: 50%; top: 42%;
  width: min(150vw, 1100px); height: min(150vw, 1100px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(42,85,222,.30) 0%, rgba(42,85,222,.10) 34%, transparent 66%);
  opacity: .85;
  pointer-events: none;
}
html.intro-run .intro-bloom { animation: rsBloom 3.4s cubic-bezier(.4,0,.3,1) both; }
@keyframes rsBloom {
  0%   { opacity: .5; transform: translate(-50%,-50%) scale(.82); }
  55%  { opacity: 1;  transform: translate(-50%,-50%) scale(1.04); }
  100% { opacity: .8; transform: translate(-50%,-50%) scale(1); }
}
/* A soft floor shadow keeps the composition from feeling like a flat black. */
.intro::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12,17,27,0) 52%, rgba(6,9,15,.75) 100%);
}

.intro-stage {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding-inline: 1.5rem;
  width: 100%;
}

/* ---- FOCUS / REVEAL: the mark resolves ---------------------------------- */
.intro-markwrap {
  position: relative;
  width: clamp(150px, 27vw, 232px);
  height: clamp(150px, 27vw, 232px);
  display: grid; place-items: center;
  overflow: hidden;          /* keeps the highlight sweep on the mark itself */
}
.intro-mark {
  width: 100%; height: 100%;
  overflow: visible;
  opacity: 0;
  transform: scale(1.22);
  filter: blur(16px);
  clip-path: inset(0 0 100% 0);
}
html.intro-run .intro-mark { animation: rsResolve 1.5s cubic-bezier(.2,.72,.24,1) .18s both; }
@keyframes rsResolve {
  0%   { opacity: 0;   transform: scale(1.22); filter: blur(16px); clip-path: inset(0 0 100% 0); }
  22%  { opacity: 1; }
  62%  { clip-path: inset(0 0 0 0); }
  100% { opacity: 1;   transform: scale(1);    filter: blur(0);    clip-path: inset(0 0 0 0); }
}

.intro-mark .rs-ring, .intro-mark .rs-v, .intro-mark .rs-tail {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.intro-mark .rs-ring { stroke: #F7F8FA; stroke-width: 2.2; }
.intro-mark .rs-v    { stroke: #F7F8FA; stroke-width: 3; }
.intro-mark .rs-tail { stroke: var(--cobalt-light); stroke-width: 3; }
.intro-mark .rs-node { fill: var(--cobalt-light); }

/* One restrained highlight travelling across the finished symbol. */
.intro-sheen {
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0;
  background: linear-gradient(108deg, transparent 34%, rgba(255,255,255,.26) 47%, rgba(190,214,255,.3) 53%, transparent 66%);
  transform: translateX(-120%);
}
html.intro-run .intro-sheen { animation: rsSheen 1.15s cubic-bezier(.36,0,.28,1) 1.46s both; }
@keyframes rsSheen {
  0%   { opacity: 0; transform: translateX(-120%); }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}

/* ---- IDENTITY: the wordmark contracts into its lock-up ------------------ */
.intro-word {
  margin-top: clamp(1.35rem, 3vw, 2.1rem);
  font-size: clamp(1.35rem, .95rem + 1.7vw, 2.15rem);
  font-weight: 660; color: #F7F8FA;
  letter-spacing: .9em; padding-left: .9em;
  white-space: nowrap;
  opacity: 0;
}
html.intro-run .intro-word { animation: rsWord 1.15s cubic-bezier(.18,.78,.22,1) 1.52s both; }
@keyframes rsWord {
  0%   { opacity: 0; letter-spacing: .9em;  padding-left: .9em;  transform: translateY(8px); }
  30%  { opacity: 1; }
  100% { opacity: 1; letter-spacing: .34em; padding-left: .34em; transform: translateY(0); }
}

.intro-sub {
  margin-top: clamp(.75rem, 1.8vw, 1.05rem);
  font-size: var(--fs-micro); font-weight: 620;
  letter-spacing: .44em; padding-left: .44em; text-transform: uppercase;
  color: #93A0B4; white-space: nowrap;
  opacity: 0; transform: translateY(7px);
}
html.intro-run .intro-sub { animation: rsSub .8s cubic-bezier(.18,.78,.22,1) 2.42s both; }
@keyframes rsSub { to { opacity: 1; transform: none; } }

/* ---- Loading progression: a hairline beneath the lock-up ---------------- */
.intro-progress {
  position: relative;
  width: clamp(168px, 30vw, 300px); height: 2px;
  margin-top: clamp(1.9rem, 4vw, 2.9rem);
  background: rgba(255,255,255,.11);
  border-radius: 2px; overflow: hidden;
  opacity: 0;
}
html.intro-run .intro-progress { animation: rsFade .7s cubic-bezier(.3,0,.2,1) .55s both; }
@keyframes rsFade { to { opacity: 1; } }
.intro-progress i {
  position: absolute; inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cobalt), var(--cobalt-light));
  transition: transform .42s cubic-bezier(.32,.06,.24,1);
}
.intro-count {
  margin-top: .95rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .3em;
  color: #6E7A8D; font-variant-numeric: tabular-nums;
  opacity: 0;
}
html.intro-run .intro-count { animation: rsFade .7s cubic-bezier(.3,0,.2,1) .62s both; }

/* ---- COMPLETION -> WEBSITE ---------------------------------------------
   The environment brightens toward the page, the identity relinquishes the
   frame, and the homepage resolves into focus underneath it.              */
html.intro-out .intro {
  background: radial-gradient(ellipse 90% 70% at 50% 42%, #F6F5F2 0%, #FBFAF8 60%, #FBFAF8 100%);
  transition: background .62s cubic-bezier(.4,0,.3,1);
}
html.intro-out .intro::after { opacity: 0; transition: opacity .4s ease; }
html.intro-out .intro-bloom {
  opacity: 0; transform: translate(-50%,-50%) scale(1.5);
  transition: opacity .5s ease, transform .8s cubic-bezier(.4,0,.3,1);
  animation: none;
}
html.intro-out .intro-stage {
  opacity: 0; transform: translateY(-22px) scale(.72);
  transition: opacity .52s cubic-bezier(.5,0,.9,1) .1s, transform .8s cubic-bezier(.5,0,.2,1);
}
html.intro-out .intro-mark { animation: none; filter: blur(0); }
html.intro-clear .intro {
  opacity: 0; pointer-events: none;
  transition: opacity .42s cubic-bezier(.4,0,.6,1);
}

/* The page resolving into focus behind the lifting intro. */
html.intro-handoff #main { animation: rsMain .72s cubic-bezier(.22,.72,.24,1) both; }
@keyframes rsMain { from { opacity: 0; } to { opacity: 1; } }
html.intro-handoff .hero-media img { animation: rsHero 1.35s cubic-bezier(.2,.72,.24,1) both; }
@keyframes rsHero {
  from { transform: scale(1.09); filter: blur(14px); }
  to   { transform: scale(1);    filter: blur(0); }
}
html.intro-handoff .site-header { animation: rsHeader .8s cubic-bezier(.18,.78,.22,1) .34s both; }
@keyframes rsHeader { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
/* The hero headline is intentionally left to the site's own reveal system, so
   the two never fight over the same element. */

/* ---- Mobile: the identity keeps the frame, effects are trimmed ---------- */
@media (max-width: 700px) {
  .intro-markwrap { width: min(46vw, 190px); height: min(46vw, 190px); }
  .intro-word { letter-spacing: .62em; padding-left: .62em; font-size: clamp(1.25rem, 5.2vw, 1.6rem); }
  @keyframes rsWord {
    0%   { opacity: 0; letter-spacing: .62em; padding-left: .62em; transform: translateY(8px); }
    30%  { opacity: 1; }
    100% { opacity: 1; letter-spacing: .28em; padding-left: .28em; transform: translateY(0); }
  }
  .intro-sub { letter-spacing: .34em; padding-left: .34em; }
  .intro-sheen { display: none; }               /* blend-mode is costly on mobile */
  .intro-progress { margin-top: 2rem; width: min(62vw, 230px); }
  html.intro-handoff .hero-media img { animation-name: rsHeroMobile; }
  @keyframes rsHeroMobile { from { transform: scale(1.06); } to { transform: scale(1); } }
}
@media (max-height: 460px) and (orientation: landscape) {
  .intro-markwrap { width: 108px; height: 108px; }
  .intro-word { margin-top: .8rem; font-size: 1.15rem; }
  .intro-sub { margin-top: .45rem; }
  .intro-progress { margin-top: 1rem; }
  .intro-count { margin-top: .55rem; }
}
/* ==========================================================================
   LOADER B - INTERNAL NAVIGATION: "Routing / system transfer"
   A light neutral veil with a horizontal instrument panel: full lock-up,
   a three-node routing line carrying a pulse, the destination label and a
   segmented transfer meter. Deliberately light, compact and horizontal so it
   reads as a different system from the dark fullscreen intro.
   ========================================================================== */
.route {
  position: fixed; inset: 0; z-index: 490;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
  background: rgba(248,247,245,.86);
  -webkit-backdrop-filter: blur(7px) saturate(112%);
  backdrop-filter: blur(7px) saturate(112%);
  opacity: 0; visibility: hidden;
  transition: opacity .22s cubic-bezier(.33,0,.2,1), visibility .22s;
}
html.route-active .route { opacity: 1; visibility: visible; }
html.route-active, html.route-active body { overflow: hidden; }

.route-panel {
  position: relative;
  width: min(680px, 100%);
  background: #fff;
  border: 1px solid rgba(14,20,32,.09);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(14,20,32,.05), 0 28px 64px -24px rgba(14,20,32,.28);
  padding: clamp(1.1rem, .8rem + 1.2vw, 1.55rem) clamp(1.15rem, .8rem + 1.4vw, 1.75rem) 0;
  overflow: hidden;
  transform: translateY(14px) scale(.985);
  opacity: 0;
  transition: transform .38s cubic-bezier(.16,1,.3,1), opacity .26s cubic-bezier(.33,0,.2,1);
}
html.route-active .route-panel { transform: none; opacity: 1; }

.route-head { display: flex; align-items: center; gap: .8rem; }
.route-lockup { display: flex; align-items: center; gap: .68rem; flex: none; }
.route-lockup svg { width: 32px; height: 32px; }
.route-lockup .bm-ring, .route-lockup .bm-v { stroke: var(--ink); }
.route-lockup .bm-tail { stroke: var(--cobalt); }
.route-lockup .bm-node { fill: var(--cobalt); }
.route-word { display: flex; flex-direction: column; line-height: 1; }
.route-word b { font-size: .95rem; font-weight: 700; letter-spacing: .17em; color: var(--ink); }
.route-word span { font-size: .46rem; font-weight: 620; letter-spacing: .26em; color: var(--slate-2); margin-top: .3rem; }

/* Routing line: nodes activate as the pulse passes through */
.route-line {
  position: relative; flex: 1 1 auto; height: 22px; min-width: 74px;
  display: flex; align-items: center;
}
.route-line .rl-track {
  position: absolute; left: 5px; right: 5px; top: 50%; height: 1px;
  background: rgba(14,20,32,.14); transform: translateY(-50%);
}
.route-line .rl-fill {
  position: absolute; left: 5px; top: 50%; height: 1px;
  background: var(--cobalt); transform: translateY(-50%);
  width: 0;
  transition: width .34s cubic-bezier(.33,0,.2,1);
}
html.route-active .route-line .rl-fill { width: calc(100% - 10px); }
.route-line .rl-node {
  position: absolute; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; margin-left: -4.5px;
  border-radius: 50%; background: #fff;
  border: 1.5px solid rgba(14,20,32,.2);
  transition: border-color .3s cubic-bezier(.33,0,.2,1), background-color .3s cubic-bezier(.33,0,.2,1), transform .3s cubic-bezier(.2,.7,.3,1);
}
.route-line .rl-node:nth-child(3) { left: 5px; }
.route-line .rl-node:nth-child(4) { left: 50%; }
.route-line .rl-node:nth-child(5) { left: calc(100% - 5px); }
.route-line .rl-node.is-on { border-color: var(--cobalt); background: var(--cobalt); transform: scale(1.18); }
.route-line .rl-pulse {
  position: absolute; top: 50%; left: 5px; width: 6px; height: 6px; margin-top: -3px; margin-left: -3px;
  border-radius: 50%; background: var(--cobalt);
  box-shadow: 0 0 0 4px rgba(42,85,222,.14);
  opacity: 0;
}
html.route-active .route-line .rl-pulse { animation: vqPulse .42s cubic-bezier(.5,0,.2,1) .05s forwards; }
@keyframes vqPulse {
  0%   { opacity: 0; transform: translateX(0); }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(var(--rl-span, 160px)); }
}

.route-dest { flex: none; text-align: right; max-width: 46%; }
.route-dest small {
  display: block; font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--slate-2); margin-bottom: .22rem;
}
.route-dest b {
  display: block; font-size: .8rem; font-weight: 660; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Transfer meter along the foot of the panel */
.route-meter {
  display: flex; gap: 3px; margin: clamp(.9rem, 2vw, 1.15rem) 0 0;
  padding-bottom: 0;
  transform: translateY(1px);
}
.route-meter i {
  flex: 1 1 auto; height: 3px; background: rgba(14,20,32,.09);
  transition: background-color .26s cubic-bezier(.33,0,.2,1);
}
.route-meter i.is-on { background: var(--cobalt); }

html.route-done .route { opacity: 0; visibility: hidden; transition: opacity .3s cubic-bezier(.4,0,1,1), visibility .3s; }
html.route-done .route-panel { transform: translateY(-8px) scale(.99); opacity: 0; transition: transform .3s cubic-bezier(.5,0,1,1), opacity .24s; }

@media (max-width: 620px) {
  .route-panel { padding-inline: 1rem; }
  .route-head { flex-wrap: wrap; gap: .6rem .75rem; }
  .route-line { order: 3; width: 100%; flex-basis: 100%; min-width: 0; }
  .route-dest { max-width: none; margin-left: auto; text-align: right; }
  .route-word b { font-size: .88rem; }
}

/* ==========================================================================
   Reduced motion: both loaders keep their branding and their readiness
   feedback, but movement is reduced to opacity changes only.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  /* The identity is presented complete and sharp from the outset. Only the
     loading hairline moves, so readiness feedback is never lost. */
  .intro-bloom { opacity: .8; transform: translate(-50%,-50%); animation: none; }
  .intro-sheen { display: none; }
  .intro-mark { opacity: 1; transform: none; filter: none; clip-path: none; animation: none; }
  .intro-word { opacity: 1; letter-spacing: .34em; padding-left: .34em; transform: none; animation: none; }
  .intro-sub, .intro-progress, .intro-count { opacity: 1; transform: none; animation: none; }
  .intro-progress i { transition: transform .25s linear; }
  html.intro-out .intro-stage { opacity: 0; transform: none; transition: opacity .25s linear; }
  html.intro-handoff #main, html.intro-handoff .hero-media img, html.intro-handoff .site-header { animation: none; }

  .route-panel { transform: none; }
  html.route-active .route-line .rl-pulse { animation: none; opacity: 0; }
  .route-line .rl-fill { transition: width .2s linear; }
}

/* --------------------------------------------------------------------------
   9. MOTION UTILITIES
   -------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(22px); }
html.has-js [data-reveal] { will-change: opacity, transform; }
[data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
html:not(.has-js) [data-reveal] { opacity: 1; transform: none; }

[data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }
[data-reveal="mask"].is-in {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.05s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="left"] { transform: translateX(-26px); }
[data-reveal="right"] { transform: translateX(26px); }
[data-reveal="scale"] { transform: scale(.97); }

.reveal-lines > * { opacity: 0; transform: translateY(18px); }
.reveal-lines.is-in > * { opacity: 1; transform: none; transition: opacity .75s var(--ease-out), transform .85s var(--ease-out); }
.reveal-lines.is-in > *:nth-child(1) { transition-delay: .02s; }
.reveal-lines.is-in > *:nth-child(2) { transition-delay: .09s; }
.reveal-lines.is-in > *:nth-child(3) { transition-delay: .16s; }
.reveal-lines.is-in > *:nth-child(4) { transition-delay: .23s; }
.reveal-lines.is-in > *:nth-child(5) { transition-delay: .3s; }
.reveal-lines.is-in > *:nth-child(6) { transition-delay: .37s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], .reveal-lines > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  /* Loader end states are declared in the loader section above; nothing here
     may hide the branding or the readiness feedback. */
}

/* Print */
@media print {
  .site-header, .mobile-nav, .intro, .route, .cookie-notice, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
