/*
  VigaTech design system — base styles.
  Covers: reset, CSS custom properties (color/type/spacing scale), typography,
  layout primitives (container/section/grid), and every reusable component
  (nav, buttons, cards, marquee, stats, process, footer, chat widget, forms).
  Motion (keyframes, reveal states, transitions) lives in animations.css.
*/

/* ---------- Design tokens ---------- */
:root {
  /* Color system — strictly monochrome. --accent-maple is reserved
     exclusively for the maple leaf glyph and must not be used elsewhere. */
  --black: #0a0a0a;
  --black-2: #111111;
  --black-3: #181818;
  --white: #ffffff;
  --grey-1: #999999;
  --grey-2: #666666;
  --grey-3: #2a2a2a;
  --accent-maple: #d9762e;

  --glow-soft: rgba(255, 255, 255, 0.08);
  --glow-strong: rgba(255, 255, 255, 0.18);

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --container-w: 1220px;
  --gutter: 5%;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.1; }

::selection { background: var(--white); color: var(--black); }

/* ---------- Focus / accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 1000;
  background: var(--white);
  color: var(--black);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { position: relative; z-index: 1; padding: 120px 0; }
.section--tight { padding: 80px 0; }
.section-inner { max-width: var(--container-w); margin: 0 auto; padding: 0 var(--gutter); }

.section-head { max-width: 620px; margin-bottom: 64px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--grey-1);
  margin-bottom: 18px;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 300;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 20px;
}
.section-h2 em { font-style: italic; color: var(--grey-1); }

.section-lead {
  font-size: 16px;
  font-weight: 300;
  color: var(--grey-1);
  max-width: 520px;
  line-height: 1.8;
}

.divider { border: none; border-top: 1px solid var(--grey-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  will-change: transform;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px var(--glow-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--grey-3);
}
.btn-ghost:hover {
  border-color: var(--grey-1);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.06);
}

.btn-sm { padding: 11px 22px; font-size: 13px; }

/* underline-animated inline link */
.link-underline {
  position: relative;
  display: inline-block;
  color: var(--white);
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--grey-1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Tag pill (hero) ---------- */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey-1);
  border: 1px solid var(--grey-3);
  padding: 8px 20px 8px 14px;
  border-radius: var(--radius-pill);
}

/* ---------- Maple leaf (the one colored element) ---------- */
/* Rendered as the literal emoji glyph rather than a custom SVG, so its
   color/shading follows the platform's native emoji set, not --accent-maple. */
.maple-leaf {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

/* ---------- Logo ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--white);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-word {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--white);
}
.brand-word span { color: var(--grey-1); font-family: var(--font-body); font-weight: 600; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--grey-3);
}
.nav-inner {
  position: relative;
  max-width: var(--container-w);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Taken out of flex flow and centered independently — with no CTA button
   balancing the brand's width on the other side, space-between alone would
   push these off-center. */
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 13px;
  color: var(--grey-1);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 20px; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  z-index: 210;
}
.nav-burger span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Full-screen mobile overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.nav-mobile.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--white);
}
.nav-mobile a:hover { color: var(--grey-1); }
.nav-mobile a.btn, .nav-mobile a.btn:hover { color: var(--black); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 64px) var(--gutter) 100px;
  text-align: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero-tag { margin-bottom: 36px; }
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 22px;
}
.hero-h1 strong { font-weight: 600; }
.hero-h1 em { font-style: italic; color: var(--grey-1); }
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 300;
  color: var(--grey-1);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.75;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--grey-3), transparent);
}
.hero-scroll-text {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey-2);
}

/* ---------- Trust marquee ---------- */
.marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--grey-3);
  border-bottom: 1px solid var(--grey-3);
  padding: 20px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 12px;
  color: var(--grey-2);
  letter-spacing: 0.5px;
}
.marquee-item .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--grey-1);
}

/* ---------- Card grid (services / AI / compliance) ---------- */
.grid-gap {
  display: grid;
  gap: 24px;
}
.grid-gap--3 { grid-template-columns: repeat(3, 1fr); }
.grid-gap--4 { grid-template-columns: repeat(4, 1fr); }

.card-standalone {
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.card-standalone:hover {
  border-color: var(--grey-1);
  background: var(--black-3);
  transform: translateY(-6px);
}

.card-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--grey-2);
  margin-bottom: 22px;
}
.card-icon {
  display: inline-block;
  width: 60px; height: 60px;
  color: var(--white);
  margin-bottom: 20px;
  transition: transform 0.3s var(--ease);
}
.card-icon svg { width: 100%; height: 100%; }
.card-standalone:hover .card-icon { transform: scale(1.12) rotate(-3deg); }
.card-title {
  font-size: 19px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}
.card-text {
  font-size: 14px;
  color: var(--grey-1);
  line-height: 1.7;
  margin-bottom: 22px;
}
.card-link {
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.card-link:hover svg { transform: translateX(3px); }

/* Tech / chip pills */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 11px;
  color: var(--grey-1);
  border: 1px solid var(--grey-3);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.4px;
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--grey-3);
  border: 1px solid var(--grey-3);
}
.stat-item {
  background: var(--black);
  padding: 46px 28px;
  text-align: center;
  transition: background 0.3s var(--ease);
}
.stat-item:hover { background: var(--black-3); }
.stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 46px;
  font-weight: 300;
  margin-bottom: 10px;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--grey-1);
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-item { position: relative; }
.process-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 58px;
  font-weight: 300;
  color: var(--grey-3);
  line-height: 1;
  margin-bottom: 18px;
  transition: color 0.3s var(--ease);
}
.process-item:hover .process-num { color: var(--grey-1); }
.process-title { font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.process-text { font-size: 13px; color: var(--grey-1); line-height: 1.7; }
.process-line {
  position: absolute;
  top: 30px; right: -16px;
  width: 32px; height: 1px;
  background: var(--grey-3);
}

/* ---------- Why-us / compliance split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.canada-bottom { margin-top: 56px; }
.split + .card-standalone,
.grid-gap + .card-standalone { margin-top: 48px; }
.split-list { display: flex; flex-direction: column; gap: 30px; }
.split-item {
  border-left: 1px solid var(--grey-3);
  padding-left: 22px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.split-item:hover { border-color: var(--grey-1); transform: translateX(6px); }
.split-item-title { font-size: 15px; font-weight: 500; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.split-item-text { font-size: 13px; color: var(--grey-1); line-height: 1.7; }
.split-item-title svg { width: 16px; height: 16px; color: var(--grey-1); flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; background: var(--black-2); border-top: 1px solid var(--grey-3); }
.cta-band .section-h2 { font-size: clamp(34px, 5vw, 60px); }
.cta-band .section-lead { margin: 0 auto 44px; max-width: 480px; }
.cta-band .section-inner { position: relative; z-index: 1; }
.cta-band .hero-glow { top: 50%; }
.cta-email-note { text-align: center; margin-top: 20px; font-size: 13px; color: var(--grey-1); }

/* ---------- Section background variant ---------- */
.section--alt { background: var(--black-2); border-top: 1px solid var(--grey-3); border-bottom: 1px solid var(--grey-3); }

/* ---------- Small utility helpers (kept minimal, structural only) ---------- */
.icon-inline { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.section-more { margin-top: 40px; }
.btn-mt { margin-top: 8px; }

/* ---------- Forms ---------- */
.field-row {
  display: flex;
  max-width: 420px;
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.field-row:focus-within { border-color: var(--grey-1); }
.field-input {
  flex: 1;
  background: var(--black-2);
  border: none;
  outline: none;
  padding: 15px 18px;
  font-size: 13px;
  color: var(--white);
}
.field-input::placeholder { color: var(--grey-2); }
.field-submit {
  background: var(--white);
  color: var(--black);
  padding: 15px 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s var(--ease);
}
.field-submit:hover { background: var(--grey-1); }
.form-msg {
  display: none;
  font-size: 11px;
  color: var(--grey-1);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 14px;
  text-align: center;
}
.form-msg.is-visible { display: block; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

textarea.field-input { resize: vertical; min-height: 120px; padding: 14px 18px; }
.field-stack { display: flex; flex-direction: column; gap: 14px; max-width: 480px; margin: 0 auto; }
.field-stack .field-row { max-width: none; }
.field-stack .field-submit { flex: none; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--grey-3);
  padding: 76px 0 40px;
  background: var(--black);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer-desc {
  font-size: 13px;
  color: var(--grey-1);
  line-height: 1.8;
  max-width: 260px;
  margin: 18px 0 20px;
}
.footer-loc { font-size: 12px; color: var(--grey-2); display: flex; align-items: center; gap: 6px; }
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 13px; color: var(--grey-1); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--grey-3);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--grey-2); }
.footer-made { font-size: 12px; color: var(--grey-2); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Chat widget ---------- */
.chat-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 300;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 8px 34px rgba(255, 255, 255, 0.15); }
.chat-fab svg { width: 22px; height: 22px; }
.chat-fab .pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.chat-box {
  position: fixed;
  bottom: 98px; right: 28px;
  z-index: 300;
  width: 368px;
  max-height: 540px;
  background: var(--black-2);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.chat-box.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chat-head {
  background: var(--black-3);
  border-bottom: 1px solid var(--grey-3);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-head-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--grey-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-head-avatar .maple-leaf { font-size: 22px; }
.chat-head-name { font-size: 14px; font-weight: 500; }
.chat-head-status {
  font-size: 11px;
  color: var(--grey-1);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-head-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grey-1);
  flex-shrink: 0;
}
.chat-close {
  margin-left: auto;
  color: var(--grey-1);
  font-size: 15px;
  padding: 4px;
  transition: color 0.2s var(--ease);
}
.chat-close:hover { color: var(--white); }
.chat-close svg { width: 16px; height: 16px; }

.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}
.msg {
  max-width: 88%;
  font-size: 13px;
  line-height: 1.55;
  padding: 11px 14px;
  border-radius: 12px;
}
.msg.bot { background: var(--black-3); border-radius: 12px 12px 12px 4px; align-self: flex-start; }
.msg.user { background: var(--white); color: var(--black); border-radius: 12px 12px 4px 12px; align-self: flex-end; }
.msg.typing { background: var(--black-3); align-self: flex-start; padding: 14px 18px; }
.typing-dots { display: flex; gap: 5px; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--grey-1); }

.chat-footer { border-top: 1px solid var(--grey-3); padding: 12px; }
.chat-row { display: flex; gap: 8px; align-items: center; }
.chat-in {
  flex: 1;
  background: var(--black-3);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--white);
  transition: border-color 0.2s var(--ease);
}
.chat-in:focus { border-color: var(--grey-1); outline: none; }
.chat-in::placeholder { color: var(--grey-2); }
.chat-send {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s var(--ease);
}
.chat-send:hover { background: var(--grey-1); }
.chat-send svg { width: 16px; height: 16px; }

/* ---------- Page transition veil ---------- */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  pointer-events: none;
  opacity: 0;
}

/* ---------- Preloader (once per session — see js/preloader.js) ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}
html.no-preloader .preloader { display: none; }

.preloader-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

/* Vision / Value text and the mark occupy the same centered spot so the
   fade-out-to-draw-in reads as one becoming the other. */
.preloader-overlap {
  position: relative;
  width: clamp(120px, 14vw, 200px);
  height: clamp(120px, 14vw, 200px);
}
.preloader-mark {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-mark { color: var(--white); }
.preloader-mark svg { width: 100%; height: 100%; }
.preloader-stroke { opacity: 0; }

/* Sized to its own text (not the overlap box) so the left-to-right
   write-on clip-path reveals the whole word rather than cutting it off. */
.preloader-word {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: 'Dancing Script', var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 8vw, 100px);
  color: var(--white);
  letter-spacing: 0.5px;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
}

.preloader-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* Matches .brand-word / .brand-word span (the real nav/footer logo lockup),
   just scaled up for this hero moment. */
.preloader-brand-text {
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 0.3px;
}
.preloader-brand-text .pl-viga {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--white);
}
.preloader-brand-text .pl-tech {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--grey-1);
}
.preloader-brand-text .pl-viga span,
.preloader-brand-text .pl-tech span {
  display: inline-block;
  opacity: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-gap--4 { grid-template-columns: repeat(2, 1fr); }
  .grid-gap--3 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { display: none; }
  .split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 88px 0; }
  .grid-gap--3, .grid-gap--4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .chat-box { width: calc(100vw - 32px); right: 16px; }
  .field-row { flex-direction: column; }
  .field-submit { width: 100%; }
}
