/* ==========================================================================
   Quinxta — Version 2 design system ("Prism")
   Used only by Views/Version2/*. The original site's Content/dewi/main.css is
   not loaded on v2 pages, and nothing here affects v1 pages.

   Direction: bright and colourful. Warm cream base, deep indigo for contrast,
   and a six-colour "prism" palette (violet, coral, sun, aqua, sky, pink).
   Every page gets its own tone via <body data-tone="1..6">, which recolours
   its hero, buttons and accents. Scroll effects live in Content/v2/v2.js.
   ========================================================================== */

:root {
  /* prism palette */
  --violet: #7b5cff;
  --coral: #ff6b57;
  --sun: #ffc53d;
  --aqua: #16c2ad;
  --sky: #3e8bff;
  --pink: #ff5fa8;

  --violet-soft: #efeaff;
  --coral-soft: #ffece8;
  --sun-soft: #fff4d6;
  --aqua-soft: #dcf8f3;
  --sky-soft: #e4efff;
  --pink-soft: #ffe6f2;

  /* neutrals */
  --ink: #1a1240;
  --ink-2: #241a57;
  --ink-3: #31256f;
  --ink-line: rgba(244, 241, 255, 0.14);
  --ink-text: #f6f3ff;
  --ink-muted: #bfb6ea;

  --paper: #fffaf3;
  --paper-2: #f6f0ff;
  --card: #ffffff;
  --line: rgba(26, 18, 64, 0.1);
  --line-strong: rgba(26, 18, 64, 0.2);
  --text: #1a1240;
  --muted: #5f5a7d;

  /* page tone (overridden by body[data-tone]) */
  --tone: var(--violet);
  --tone-2: #4d2fe0;
  --tone-soft: var(--violet-soft);
  --on-tone: #ffffff;
  --on-tone-muted: rgba(255, 255, 255, 0.82);
  --accent: var(--sun);
  --on-accent: var(--ink);

  --rainbow: linear-gradient(100deg, var(--violet), var(--pink) 30%, var(--coral) 55%, var(--sun) 80%, var(--aqua));
  --danger: #c62f3d;

  /* button gradients. Each is drawn at 200% width: the resting button shows the first half and
     hover slides to the second half, so the colour flows rather than snapping. The stops are
     deepened from the raw palette so white (brand) and ink (warm) labels stay readable. */
  --grad-brand: linear-gradient(120deg, #5b3df5 0%, #8a3fec 28%, #c03ab8 52%, #e0368f 76%, #f2584a 100%);
  --grad-warm: linear-gradient(120deg, #ffd65c 0%, #ffaa3c 24%, #ff8248 50%, #ff6b6b 75%, #ff6aa8 100%);
  --grad-ink: linear-gradient(120deg, #1a1240 0%, #2b1f66 40%, #3e2c94 70%, #5b3df5 100%);

  /* Quinxta's official wordmark face (as on the original site). Arial Rounded MT Bold ships
     with Windows/Office and macOS; Nunito is the closest rounded web font for everyone else. */
  --font-brand: "Arial Rounded MT Bold", "Nunito", "Arial", sans-serif;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 22px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body[data-tone="1"] { --tone: var(--violet); --tone-2: #4d2fe0; --tone-soft: var(--violet-soft); --accent: var(--sun); }
body[data-tone="2"] { --tone: var(--coral); --tone-2: #e2385f; --tone-soft: var(--coral-soft); --accent: var(--sun); }
body[data-tone="3"] { --tone: var(--sun); --tone-2: #ff9a1f; --tone-soft: var(--sun-soft); --on-tone: var(--ink); --on-tone-muted: rgba(26, 18, 64, 0.78); --accent: var(--violet); --on-accent: #fff; }
body[data-tone="4"] { --tone: var(--aqua); --tone-2: #0b8f9c; --tone-soft: var(--aqua-soft); --accent: var(--sun); }
body[data-tone="5"] { --tone: var(--sky); --tone-2: #5a3dff; --tone-soft: var(--sky-soft); --accent: var(--sun); }
body[data-tone="6"] { --tone: var(--pink); --tone-2: #a63cff; --tone-soft: var(--pink-soft); --accent: var(--sun); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* No overflow-x here: sideways overflow is clipped on <html> (see "device tuning"). Setting
     it on body as well would turn body into the scroll container, so window.scrollY would
     stay 0 and every scroll effect in v2.js would stop working. */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 650; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.5em; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tone); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--ink); }

.q-skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.q-skip:focus { left: 12px; }
.q-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.q-wrap--narrow { max-width: 880px; }

/* scroll progress bar (injected by v2.js) */
.q-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 150; background: var(--rainbow); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ---------- type ---------- */
.q-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 14px 7px 10px; border-radius: 999px; margin-bottom: 20px;
  background: var(--tone-soft); color: var(--tone-2);
}
.q-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.q-page-hero .q-eyebrow { background: rgba(255, 255, 255, 0.18); color: var(--on-tone); }
body[data-tone="3"] .q-page-hero .q-eyebrow { background: rgba(26, 18, 64, 0.1); }
.q-ink .q-eyebrow { background: rgba(255, 255, 255, 0.1); color: var(--sun); }

.q-display { font-size: clamp(52px, 9.4vw, 132px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.92; }
.q-h1 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -0.04em; line-height: 1; }
.q-h2 { font-size: clamp(32px, 4.6vw, 58px); letter-spacing: -0.035em; line-height: 1.02; }
.q-h3 { font-size: clamp(21px, 2.1vw, 26px); }
.q-lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.q-page-hero .q-lede { color: var(--on-tone-muted); }
.q-ink .q-lede { color: var(--ink-muted); }
.q-mono { font-family: var(--font-mono); }
.q-accent { color: var(--tone); }
.q-ink .q-accent { color: var(--sun); }
.q-muted { color: var(--muted); }
.q-gradient-text { background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: q-shine 8s linear infinite; }
@keyframes q-shine { to { background-position: -200% 0; } }

/* word-by-word heading reveal (spans injected by v2.js) */
.q-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.q-w > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.is-words-in .q-w > span { transform: none; }

/* ---------- buttons ---------- */
/* Pill buttons with a flowing gradient, a soft coloured glow instead of a hard drop shadow,
   a thin top highlight and a light sheen that sweeps across on hover. */
.q-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-weight: 650; font-size: 15px; letter-spacing: 0.005em; border: 2px solid transparent; cursor: pointer;
  background-color: transparent; background-size: 200% 100%; background-position: 0% 50%; background-origin: border-box;
  transition: transform 0.35s var(--spring), background-position 0.6s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
  white-space: nowrap; position: relative; isolation: isolate; overflow: hidden;
}
.q-btn::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.42) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform 0.85s var(--ease);
}
.q-btn:hover::after { transform: translateX(110%); }
.q-btn i { font-size: 16px; transition: transform 0.3s var(--ease); }
.q-btn:hover { transform: translateY(-2px); background-position: 100% 50%; }
.q-btn:active { transform: translateY(0) scale(0.98); }
.q-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.q-btn:hover i.bi-arrow-right, .q-btn:hover i.bi-arrow-up-right { transform: translateX(4px); }

.q-btn--primary, .q-btn--brand {
  background-image: var(--grad-brand); color: #fff; text-shadow: 0 1px 1px rgba(40, 10, 80, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 26px -12px rgba(91, 61, 245, 0.75);
}
.q-btn--primary:hover, .q-btn--brand:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 18px 34px -12px rgba(224, 54, 143, 0.7); }
.q-btn--mint {
  background-image: var(--grad-warm); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 26px -12px rgba(255, 128, 72, 0.8);
}
.q-btn--mint:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 18px 34px -12px rgba(255, 107, 87, 0.75); }
.q-btn--dark {
  background-image: var(--grad-ink); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 26px -12px rgba(26, 18, 64, 0.7);
}
.q-btn--dark:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 34px -12px rgba(91, 61, 245, 0.6); }
.q-btn--ghost { border-color: var(--ink); color: var(--ink); }
.q-btn--ghost:hover { background-image: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: 0 14px 30px -14px rgba(91, 61, 245, 0.7); }
.q-btn--ghost-light { border-color: currentColor; color: inherit; background-color: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.q-btn--ghost-light:hover { background-color: rgba(255, 255, 255, 0.2); }
.q-btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.q-btn:disabled::after { display: none; }
.q-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.q-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--tone-2); background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.35s var(--ease); }
.q-link:hover { background-size: 100% 2px; }

/* ---------- nav ---------- */
.q-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; color: var(--on-tone);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, height 0.3s;
}
body.q-light-top .q-nav { color: var(--ink); }
.q-nav.is-solid {
  background: rgba(255, 250, 243, 0.82); color: var(--ink);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(26, 18, 64, 0.25);
}
.q-nav .q-wrap { display: flex; align-items: center; gap: 28px; }
/* Official wordmark styling: title-case "Quinxta", rounded bold face, 1px tracking. */
.q-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-brand); font-weight: 800; font-size: 24px; letter-spacing: 1px; line-height: 1; }
.q-brand img { width: 36px; height: 36px; transition: transform 0.6s var(--spring); }
.q-brand:hover img { transform: rotate(-14deg) scale(1.08); }
.q-menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.q-menu > li > a, .q-menu > li > button {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px;
  font-size: 15px; font-weight: 550; background: none; border: 0; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.q-menu > li > a:hover, .q-menu > li > button:hover, .q-menu > li > a.is-active { background: rgba(127, 110, 200, 0.16); }
.q-menu .q-has-mega > button i { font-size: 11px; transition: transform 0.25s; }
.q-menu .q-has-mega.is-open > button i { transform: rotate(180deg); }
.q-nav-cta { margin-left: 10px; }
.q-menu > li.q-nav-cta > a.q-btn { height: 44px; min-height: 44px; padding: 0 20px; background: var(--grad-brand) 0% 50% / 200% 100% border-box; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 22px -12px rgba(91, 61, 245, 0.8); }
.q-menu > li.q-nav-cta > a.q-btn:hover { background: var(--grad-brand) 100% 50% / 200% 100% border-box; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 28px -12px rgba(224, 54, 143, 0.75); }
.q-nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 999px; border: 2px solid currentColor; background: none; cursor: pointer; align-items: center; justify-content: center; font-size: 20px; }

.q-mega {
  position: absolute; left: 0; right: 0; top: var(--nav-h);
  background: var(--paper); color: var(--text);
  box-shadow: 0 30px 60px -30px rgba(26, 18, 64, 0.35); border-top: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
}
.q-has-mega.is-open .q-mega { opacity: 1; visibility: visible; transform: none; }
.q-mega-inner { display: grid; grid-template-columns: 1fr 1fr 0.95fr; gap: 40px; padding-top: 30px; padding-bottom: 34px; }
.q-mega h6, .q-mega .q-label-h { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.q-mega a.q-mega-link { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 14px; font-size: 15px; font-weight: 550; transition: background-color 0.2s, transform 0.3s var(--ease); }
.q-mega a.q-mega-link:hover { background: var(--paper-2); transform: translateX(4px); }
.q-mega a.q-mega-link i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; font-size: 16px; color: #fff; background: var(--c, var(--violet)); }
.q-mega a.q-mega-link:nth-of-type(6n+1) i { --c: var(--violet); }
.q-mega a.q-mega-link:nth-of-type(6n+2) i { --c: var(--coral); }
.q-mega a.q-mega-link:nth-of-type(6n+3) i { --c: var(--sun); color: var(--ink); }
.q-mega a.q-mega-link:nth-of-type(6n+4) i { --c: var(--aqua); }
.q-mega a.q-mega-link:nth-of-type(6n+5) i { --c: var(--sky); }
.q-mega a.q-mega-link:nth-of-type(6n+6) i { --c: var(--pink); }
.q-mega-feature { background: var(--ink); color: var(--ink-text); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; isolation: isolate; }
.q-mega-feature::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, var(--pink), transparent 65%); opacity: 0.6; z-index: -1; }
.q-mega-feature p { color: var(--ink-muted); font-size: 14px; margin: 0; }
.q-mega-feature .q-mega-title { font-family: var(--font-display); font-weight: 650; font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink-text); }
.q-mega-feature .q-btn { align-self: flex-start; margin-top: auto; }

/* ---------- colour blobs ---------- */
.q-blobs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.q-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.75; will-change: transform; }
.q-blob--1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; background: var(--violet); top: -14%; right: -6%; animation: q-float 18s ease-in-out infinite; }
.q-blob--2 { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; background: var(--pink); top: 30%; right: 22%; animation: q-float 22s ease-in-out -6s infinite reverse; }
.q-blob--3 { width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; background: var(--sun); bottom: -18%; right: 2%; animation: q-float 20s ease-in-out -3s infinite; }
.q-blob--4 { width: 26vw; height: 26vw; max-width: 360px; max-height: 360px; background: var(--aqua); bottom: -10%; left: -6%; animation: q-float 24s ease-in-out -10s infinite reverse; opacity: 0.55; }
/* blobs drift with transform; scroll parallax (v2.js) uses the separate `translate` property */
@keyframes q-float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(4%, -6%) scale(1.08); } 66% { transform: translate(-5%, 4%) scale(0.94); } }
[data-parallax] { will-change: translate; }

/* ---------- hero (home, urban) ---------- */
/* Dark city hero: skyscraper photo under an ink overlay, Prism glows, a faint street-grid
   texture, and light text. The nav starts light-on-dark here (Index doesn't set q-light-top). */
.q-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--ink-text); background: var(--ink);
  padding: calc(var(--nav-h) + clamp(40px, 6vw, 84px)) 0 clamp(36px, 5vw, 56px);
}
.q-hero-photo { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.q-hero-photo img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 60% 40%; filter: grayscale(0.35) contrast(1.08) brightness(0.9); }
.q-hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(26, 18, 64, 0.97) 0%, rgba(26, 18, 64, 0.9) 38%, rgba(26, 18, 64, 0.62) 72%, rgba(26, 18, 64, 0.5) 100%),
    linear-gradient(180deg, rgba(26, 18, 64, 0) 60%, rgba(26, 18, 64, 0.95) 100%);
}
/* street grid: thin lines, fading out towards the photo side */
.q-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(246, 243, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(246, 243, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 20% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 20% 40%, #000 30%, transparent 75%);
}
.q-hero .q-blobs { z-index: -2; }
.q-hero .q-blob { opacity: 0.38; mix-blend-mode: screen; }
.q-hero .q-blob--1 { top: -24%; right: -8%; }
.q-hero .q-blob--2 { top: 40%; right: 30%; opacity: 0.26; }
.q-hero .q-blob--3 { bottom: -30%; right: -4%; opacity: 0.3; }

.q-hero-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: clamp(22px, 3vw, 34px); }
.q-hero .q-eyebrow { background: rgba(246, 243, 255, 0.1); color: var(--sun); border: 1px solid rgba(246, 243, 255, 0.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.q-geo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.q-geo i { color: var(--coral); }

.q-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.q-hero h1 { margin-bottom: 26px; color: #fff; }
.q-hero h1 span { display: block; }
.q-hero .q-lede { margin-bottom: 34px; color: rgba(246, 243, 255, 0.8); }
.q-hero-note { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 14px; color: var(--ink-muted); }
.q-hero-note i { color: #5fe6d3; }

/* hero buttons: bigger pills; the primary carries its arrow in a round ink chip, the secondary
   is frosted glass that turns white on hover */
.q-btn--lg { min-height: 58px; padding: 0 10px 0 28px; font-size: 16px; }
.q-btn--lg.q-btn--glass { padding: 0 28px; }
.q-btn-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform 0.4s var(--spring); }
.q-btn-ico i { font-size: 15px; }
.q-btn:hover .q-btn-ico { transform: rotate(45deg); }
.q-btn--glass { color: #fff; border-color: rgba(246, 243, 255, 0.28); background-color: rgba(246, 243, 255, 0.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.q-btn--glass:hover { background-color: #fff; border-color: #fff; color: var(--ink); }
.q-btn--glass::after { display: none; }

/* release checklist: dark glass card, each row with a coloured icon tile */
.q-console {
  background: rgba(36, 26, 87, 0.55); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(246, 243, 255, 0.14); border-radius: var(--radius); color: var(--ink-text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08); font-size: 14px; overflow: hidden;
  transform: rotate(1.5deg);
}
.q-console-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid rgba(246, 243, 255, 0.1); font-family: var(--font-mono); color: var(--ink-muted); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.q-console-head b { color: #5fe6a8; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.q-console-head b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #19c37d; animation: q-pulse 2.2s infinite; }
.q-console ol { margin: 0; padding: 10px; list-style: none; display: grid; gap: 6px; }
.q-console li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(246, 243, 255, 0.05); border: 1px solid rgba(246, 243, 255, 0.06); font-weight: 550; opacity: 0; transform: translateX(16px); animation: q-line-in 0.6s var(--ease) forwards; transition: background-color 0.25s; }
.q-console li:hover { background: rgba(246, 243, 255, 0.1); }
.q-console li > i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--c, var(--violet)); color: var(--c-ink, #fff); font-size: 17px; box-shadow: 0 8px 18px -8px var(--c, var(--violet)); }
.q-console li span:last-child { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(95, 230, 168, 0.16); color: #5fe6a8; font-size: 12px; font-weight: 700; }
.q-console li:nth-child(1) { --c: var(--violet); animation-delay: 0.3s; }
.q-console li:nth-child(2) { --c: var(--coral); animation-delay: 0.45s; }
.q-console li:nth-child(3) { --c: var(--sun); --c-ink: var(--ink); animation-delay: 0.6s; }
.q-console li:nth-child(4) { --c: var(--aqua); --c-ink: var(--ink); animation-delay: 0.75s; }
.q-console li:nth-child(5) { --c: var(--sky); animation-delay: 0.9s; }
.q-console li:nth-child(6) { --c: var(--pink); animation-delay: 1.05s; }
.q-console-foot { padding: 12px 18px; border-top: 1px solid rgba(246, 243, 255, 0.1); color: var(--ink-muted); font-size: 12.5px; font-family: var(--font-mono); }
@keyframes q-line-in { to { opacity: 1; transform: none; } }
@keyframes q-pulse { 0% { box-shadow: 0 0 0 0 rgba(25, 195, 125, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(25, 195, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 195, 125, 0); } }

/* key figures along the bottom of the hero */
.q-hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(44px, 6vw, 76px); border-top: 1px solid rgba(246, 243, 255, 0.14); }
.q-hero-stats > div { position: relative; padding: 22px 20px 4px 0; display: grid; gap: 6px; }
.q-hero-stats > div + div { padding-left: 22px; border-left: 1px solid rgba(246, 243, 255, 0.1); }
.q-hero-stats > div::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--c); }
.q-hero-stats > div + div::before { left: 22px; }
.q-hero-stats > div:nth-child(1) { --c: var(--violet); }
.q-hero-stats > div:nth-child(2) { --c: var(--pink); }
.q-hero-stats > div:nth-child(3) { --c: var(--sun); }
.q-hero-stats > div:nth-child(4) { --c: var(--aqua); }
.q-hero-stats b { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 3.6vw, 50px); letter-spacing: -0.04em; line-height: 1; color: #fff; }
.q-hero-stats b sup { font-size: 0.5em; color: var(--c); margin-left: 2px; vertical-align: super; }
.q-hero-stats span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 640px) {
  .q-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-hero-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .q-hero-stats > div:nth-child(3)::before { left: 0; }
  .q-hero-stats > div:nth-child(n+3) { border-top: 1px solid rgba(246, 243, 255, 0.1); }
  .q-btn--lg { min-height: 54px; }
}

/* ---------- marquee ---------- */
.q-marquee { background: var(--ink); color: #fff; overflow: hidden; transform: rotate(-1.6deg) scale(1.03); margin: 10px 0; position: relative; z-index: 2; box-shadow: 0 16px 40px -20px rgba(26, 18, 64, 0.6); }
.q-marquee-track { display: flex; width: max-content; will-change: transform; }
.q-marquee ul { display: flex; flex: none; }
.q-marquee li { display: inline-flex; align-items: center; gap: 24px; padding: 18px 24px 18px 0; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; }
.q-marquee li::after { content: "\2738"; font-size: 20px; }
.q-marquee li:nth-child(6n+1)::after { color: var(--sun); }
.q-marquee li:nth-child(6n+2)::after { color: var(--pink); }
.q-marquee li:nth-child(6n+3)::after { color: var(--aqua); }
.q-marquee li:nth-child(6n+4)::after { color: var(--coral); }
.q-marquee li:nth-child(6n+5)::after { color: var(--sky); }
.q-marquee li:nth-child(6n+6)::after { color: var(--violet); }
/* CSS fallback if JS is off; v2.js takes over and drives it from scroll velocity */
.q-marquee-track { animation: q-marquee 40s linear infinite; }
.q-js .q-marquee-track { animation: none; }
@keyframes q-marquee { to { transform: translateX(-50%); } }

/* ---------- page hero (inner pages, toned) ---------- */
.q-page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--on-tone);
  background: linear-gradient(135deg, var(--tone) 0%, var(--tone-2) 100%);
  padding: calc(var(--nav-h) + clamp(40px, 7vw, 92px)) 0 clamp(56px, 7vw, 96px);
}
.q-page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1.5px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 85% 20%, #000, transparent 70%);
}
.q-page-hero::after {
  content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -160px; bottom: -280px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 65%); opacity: 0.55;
}
.q-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-tone-muted); margin-bottom: 26px; }
.q-crumbs a:hover { color: var(--on-tone); text-decoration: underline; text-underline-offset: 3px; }
.q-crumbs span[aria-hidden] { opacity: 0.6; }
.q-page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.q-page-hero h1 { margin-bottom: 22px; max-width: 17ch; }
.q-page-hero .q-lede { margin-bottom: 30px; }
.q-page-hero .q-btn--ghost-light { color: var(--on-tone); }
.q-hero-figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 16px 16px 0 0 var(--accent); transform: rotate(-1.5deg); }
.q-hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.q-hero-figure figcaption { position: absolute; left: 14px; bottom: 14px; z-index: 1; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: #fff; padding: 6px 10px; border-radius: 999px; }

/* ---------- sections ---------- */
.q-section { padding: clamp(80px, 11vw, 144px) 0; position: relative; }
.q-section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.q-section--paper2 { background: var(--paper-2); }
.q-section--sun { background: var(--sun-soft); }
.q-section--aqua { background: var(--aqua-soft); }
.q-section--coral { background: var(--coral-soft); }
.q-ink { background: var(--ink); color: var(--ink-text); position: relative; isolation: isolate; overflow: hidden; }
.q-ink::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; left: -240px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(123, 92, 255, 0.55), transparent 65%); }
.q-ink::after { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -200px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 95, 168, 0.4), transparent 65%); }
.q-section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.q-section-head .q-h2 { margin: 0; }
.q-section-head p { margin: 0; color: var(--muted); font-size: 17px; max-width: 50ch; }
.q-ink .q-section-head p { color: var(--ink-muted); }
.q-section-head--stack { grid-template-columns: 1fr; }
.q-index { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.q-page-hero .q-index { color: var(--on-tone-muted); }
.q-ink .q-index { color: var(--ink-muted); }

/* ---------- split ---------- */
.q-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.q-split--top { align-items: start; }
.q-figure { border-radius: var(--radius); overflow: hidden; position: relative; }
.q-figure img { width: 100%; height: 100%; object-fit: cover; }
.q-figure--tall { aspect-ratio: 4 / 5; }
.q-figure--wide { aspect-ratio: 16 / 10; }
.q-figure--pop { box-shadow: -16px 16px 0 0 var(--tone); }
.q-figure--pop2 { box-shadow: 16px 16px 0 0 var(--sun); }

.q-checks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 0; border-top: 1px dashed var(--line-strong); align-items: start; }
.q-checks li:last-child { border-bottom: 1px dashed var(--line-strong); }
.q-checks i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; color: #fff; background: var(--c, var(--tone)); }
.q-checks li:nth-child(5n+1) i { --c: var(--violet); }
.q-checks li:nth-child(5n+2) i { --c: var(--coral); }
.q-checks li:nth-child(5n+3) i { --c: var(--aqua); }
.q-checks li:nth-child(5n+4) i { --c: var(--sky); }
.q-checks li:nth-child(5n+5) i { --c: var(--pink); }
.q-ink .q-checks li { border-color: var(--ink-line); }

.q-pullquote { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.22; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 28px; }
.q-pullquote::before { content: "\201C"; display: block; font-size: 80px; line-height: 0.6; margin-bottom: 8px; color: var(--tone); }

/* ---------- stats ---------- */
.q-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.q-stat { padding: 26px 24px; border-radius: var(--radius); background: var(--c-soft, var(--violet-soft)); position: relative; overflow: hidden; }
.q-stat:nth-child(1) { --c: var(--violet); --c-soft: var(--violet-soft); }
.q-stat:nth-child(2) { --c: var(--coral); --c-soft: var(--coral-soft); }
.q-stat:nth-child(3) { --c: #e0a100; --c-soft: var(--sun-soft); }
.q-stat:nth-child(4) { --c: #0b9d8c; --c-soft: var(--aqua-soft); }
.q-stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5.6vw, 76px); letter-spacing: -0.05em; line-height: 1; color: var(--c); }
.q-stat b sup { font-size: 0.45em; vertical-align: top; margin-left: 2px; }
.q-stat span { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); opacity: 0.75; }
.q-stats--compact .q-stat b { font-size: clamp(26px, 3.2vw, 40px); }
.q-page-hero .q-stat, .q-ink .q-stat { background: rgba(255, 255, 255, 0.12); }
.q-page-hero .q-stat b, .q-ink .q-stat b { color: var(--on-tone); }
.q-ink .q-stat b { color: #fff; }
.q-page-hero .q-stat span, .q-ink .q-stat span { color: inherit; opacity: 0.85; }
.q-ink .q-stat:nth-child(1) b { color: #b8a6ff; } .q-ink .q-stat:nth-child(2) b { color: #ff9d8f; }
.q-ink .q-stat:nth-child(3) b { color: var(--sun); } .q-ink .q-stat:nth-child(4) b { color: #5fe6d3; }

/* ---------- service cards (each a different colour) ---------- */
.q-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.q-card {
  --c: var(--violet); --c-soft: var(--violet-soft); --on-c: #fff;
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 290px; padding: 26px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--spring), box-shadow 0.4s, color 0.35s, border-color 0.3s;
}
.q-card:nth-child(6n+1) { --c: var(--violet); --c-soft: var(--violet-soft); }
.q-card:nth-child(6n+2) { --c: var(--coral); --c-soft: var(--coral-soft); }
.q-card:nth-child(6n+3) { --c: var(--sun); --c-soft: var(--sun-soft); --on-c: var(--ink); }
.q-card:nth-child(6n+4) { --c: var(--aqua); --c-soft: var(--aqua-soft); }
.q-card:nth-child(6n+5) { --c: var(--sky); --c-soft: var(--sky-soft); }
.q-card:nth-child(6n+6) { --c: var(--pink); --c-soft: var(--pink-soft); }
.q-card::before { content: ""; position: absolute; z-index: -1; width: 180%; aspect-ratio: 1; left: 50%; top: 100%; border-radius: 50%; background: var(--c); transform: translate(-50%, 0) scale(0.2); transition: transform 0.7s var(--ease); }
.q-card-top { display: flex; align-items: center; justify-content: space-between; }
.q-card-top i { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; font-size: 24px; background: var(--c-soft); color: var(--c); transition: transform 0.6s var(--spring), background-color 0.3s, color 0.3s; }
.q-card:nth-child(6n+3) .q-card-top i { color: #b47f00; }
.q-card h3 { font-size: 24px; margin: auto 0 0; max-width: 15ch; }
.q-card p { margin: 0; color: var(--muted); font-size: 15px; transition: color 0.35s; }
.q-card .q-card-go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; transition: gap 0.3s var(--ease); }
.q-card:hover { transform: translateY(-8px) rotate(-0.6deg); box-shadow: 0 30px 50px -28px var(--c); color: var(--on-c); border-color: transparent; }
.q-card:hover::before { transform: translate(-50%, -62%) scale(1); }
.q-card:hover p, .q-card:hover .q-index { color: var(--on-c); opacity: 0.9; }
.q-card:hover .q-card-top i { background: rgba(255, 255, 255, 0.95); color: var(--ink); transform: rotate(-10deg) scale(1.08); }
.q-card:hover .q-card-go { gap: 14px; }
.q-card a.q-stretch::after { content: ""; position: absolute; inset: 0; }

/* ---------- capability stack (sticky, stacks on scroll) ---------- */
.q-caps { display: grid; gap: 28px; }
.q-cap {
  --c: var(--violet); --c-2: #4d2fe0; --on-c: #fff;
  position: sticky; top: calc(var(--nav-h) + 24px + var(--i, 0) * 18px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(26px, 4vw, 52px); border-radius: calc(var(--radius) + 8px); color: var(--on-c);
  background: linear-gradient(135deg, var(--c), var(--c-2));
  box-shadow: 0 -10px 40px -20px rgba(26, 18, 64, 0.45);
  transform-origin: 50% 0; will-change: transform;
}
.q-cap:nth-child(1) { --c: var(--violet); --c-2: #4d2fe0; }
.q-cap:nth-child(2) { --c: var(--pink); --c-2: #e23d6f; }
.q-cap:nth-child(3) { --c: var(--aqua); --c-2: #0b7f99; }
.q-cap:nth-child(4) { --c: var(--sun); --c-2: #ff9a1f; --on-c: var(--ink); }
.q-cap .q-index { color: inherit; opacity: 0.8; display: block; margin-bottom: 12px; }
.q-cap h3 { font-size: clamp(26px, 3.2vw, 40px); }
.q-cap p { opacity: 0.88; }
.q-cap .q-checks li { border-color: rgba(255, 255, 255, 0.3); }
.q-cap:nth-child(4) .q-checks li { border-color: rgba(26, 18, 64, 0.2); }
.q-cap .q-checks i { background: rgba(255, 255, 255, 0.95) !important; color: var(--ink); }
.q-cap:nth-child(4) .q-checks i { background: var(--ink) !important; color: var(--sun); }
.q-cap .q-figure { aspect-ratio: 4 / 3.4; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.45); }

/* ---------- work ---------- */
.q-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.q-work-card { --c: var(--violet); display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform 0.5s var(--spring), box-shadow 0.4s; }
.q-work-card:nth-child(2) { --c: var(--coral); } .q-work-card:nth-child(3) { --c: var(--aqua); }
.q-work-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -28px var(--c); }
.q-work-card .q-figure { border-radius: 0; aspect-ratio: 16 / 11; border-bottom: 6px solid var(--c); }
.q-work-card .q-figure img { transition: transform 0.9s var(--ease); }
.q-work-card:hover .q-figure img { transform: scale(1.07); }
.q-work-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.q-work-body h3 { font-size: 30px; margin: 0; }
.q-work-body p { color: var(--muted); font-size: 15px; margin: 0; }
.q-work-kicker { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.q-work-kicker b { color: var(--c); font-weight: 600; }
.q-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.q-tag { font-family: var(--font-mono); font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.q-tag--hi { background: var(--ink); color: var(--sun); }
.q-work-body .q-link { margin-top: auto; padding-top: 8px; color: var(--ink); }

/* ---------- testimonials ---------- */
.q-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.q-quote { --c: var(--sun); margin: 0; padding: 30px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--ink-line); display: flex; flex-direction: column; gap: 22px; transition: transform 0.5s var(--spring), background-color 0.3s; }
.q-quote:nth-child(2) { --c: var(--pink); } .q-quote:nth-child(3) { --c: #5fe6d3; }
.q-quote:hover { transform: translateY(-6px) rotate(0.5deg); background: rgba(255, 255, 255, 0.1); }
.q-quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.4; font-weight: 450; letter-spacing: -0.01em; }
.q-quote blockquote::before { content: "\201C"; display: block; font-size: 72px; line-height: 0.6; color: var(--c); margin-bottom: 14px; }
.q-quote figcaption { margin-top: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c); }

/* ---------- team ---------- */
.q-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.q-person { --c: var(--violet); --c-soft: var(--violet-soft); border-radius: var(--radius); padding: 26px; background: var(--c-soft); display: flex; flex-direction: column; gap: 14px; transition: transform 0.5s var(--spring); }
.q-person:nth-child(2) { --c: var(--coral); --c-soft: var(--coral-soft); }
.q-person:nth-child(3) { --c: var(--aqua); --c-soft: var(--aqua-soft); }
.q-person:hover { transform: translateY(-6px) rotate(-1deg); }
.q-avatar { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; background: var(--c); transform: rotate(-6deg); }
.q-person h3 { font-size: 22px; margin: 0; }
.q-person .q-role { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); opacity: 0.7; }
.q-person p { margin: 0; color: #4c4670; font-size: 14.5px; }
.q-person--team { background: var(--ink); color: var(--ink-text); }
.q-person--team p { color: var(--ink-muted); }
.q-person--team .q-role { color: var(--sun); opacity: 1; }
.q-person--team .q-avatar { background: var(--rainbow); }

/* ---------- clients ---------- */
.q-clients { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; }
.q-clients img { max-height: 44px; width: auto; filter: grayscale(1); opacity: 0.7; transition: filter 0.3s, opacity 0.3s, transform 0.4s var(--spring); }
.q-clients img:hover { filter: none; opacity: 1; transform: scale(1.08); }

/* ---------- forms ---------- */
.q-form { display: grid; gap: 18px; }
.q-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.q-field { display: grid; gap: 8px; }
.q-field label, .q-field .q-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.q-input { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--paper); color: var(--text); font: inherit; font-size: 15.5px; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.q-input::placeholder { color: #9993b8; }
.q-input:focus { outline: none; border-color: var(--tone); background: #fff; box-shadow: 0 0 0 5px var(--tone-soft); }
textarea.q-input { min-height: 132px; resize: vertical; line-height: 1.55; }
.q-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.q-seg button { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.25s var(--ease); }
.q-seg button:hover { border-color: var(--ink); }
.q-seg button[aria-pressed="true"] { background: var(--tone); border-color: var(--tone); color: var(--on-tone); transform: scale(1.04); }
.q-drop { display: flex; align-items: center; gap: 12px; padding: 16px; border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; color: var(--muted); font-size: 14px; transition: border-color 0.2s, background-color 0.2s; position: relative; }
.q-drop:hover, .q-drop.is-dragover { border-color: var(--tone); background: var(--tone-soft); }
.q-drop i { font-size: 20px; color: var(--tone); }
.q-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.q-form-status { display: none; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 550; }
.q-form-status.is-visible { display: block; animation: q-pop 0.5s var(--spring); }
.q-form-status--ok { background: var(--aqua-soft); color: #08695e; }
.q-form-status--err { background: var(--coral-soft); color: var(--danger); }
@keyframes q-pop { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.q-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.q-form-foot small { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }

.q-quote-panel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); background: #fff; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(77, 47, 224, 0.4); }
.q-quote-form { padding: clamp(24px, 4vw, 44px); }
.q-quote-side { background: linear-gradient(160deg, var(--violet), var(--pink) 70%, var(--coral)); color: #fff; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.q-quote-side h3 { font-size: 28px; margin: 0; }
.q-quote-side p { color: rgba(255, 255, 255, 0.88); margin: 0; font-size: 15px; }
.q-quote-side .q-accent { color: var(--sun); font-weight: 650; }
.q-steps { counter-reset: step; display: grid; gap: 10px; }
.q-steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.16); font-size: 14.5px; }
.q-steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.q-steps b { display: block; font-weight: 650; }
.q-steps span { color: rgba(255, 255, 255, 0.85); font-size: 13.5px; }

/* ---------- contact ---------- */
.q-contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.q-contact-list { display: grid; gap: 12px; }
.q-contact-list li { --c: var(--violet); --c-soft: var(--violet-soft); display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--c-soft); transition: transform 0.4s var(--spring); }
.q-contact-list li:nth-child(2) { --c: var(--coral); --c-soft: var(--coral-soft); }
.q-contact-list li:nth-child(3) { --c: var(--aqua); --c-soft: var(--aqua-soft); }
.q-contact-list li:nth-child(4) { --c: var(--sky); --c-soft: var(--sky-soft); }
.q-contact-list li:hover { transform: translateX(6px); }
.q-contact-list i { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--c); color: #fff; font-size: 20px; }
.q-contact-list b { display: block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.q-contact-list a { font-weight: 600; }
.q-card-panel { background: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 80px -40px rgba(26, 18, 64, 0.35); }

/* ---------- service page ---------- */
.q-svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.q-aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 16px; }
.q-aside-box { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 22px; }
.q-aside-box h4 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.q-aside-box ul li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 9px 0; border-top: 1px dashed var(--line-strong); font-size: 14.5px; font-weight: 500; }
.q-aside-box ul li:first-child { border-top: 0; }
.q-aside-box ul li i { color: var(--tone); font-size: 16px; }
.q-aside-box--ink { background: linear-gradient(150deg, var(--tone), var(--tone-2)); color: var(--on-tone); border: 0; }
.q-aside-box--ink p { color: var(--on-tone-muted); font-size: 14.5px; }
.q-aside-box--ink h4 { color: var(--on-tone); opacity: 0.85; }
.q-aside-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; font-size: 14.5px; color: var(--muted); transition: background-color 0.2s, color 0.2s; }
.q-aside-nav a:hover { background: var(--paper-2); color: var(--text); }
.q-aside-nav a.is-active { background: var(--tone-soft); color: var(--tone-2); font-weight: 650; }

.q-numbered { counter-reset: sec; display: grid; gap: 14px; }
.q-numbered > div { counter-increment: sec; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 18px; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform 0.4s var(--spring), box-shadow 0.4s; }
.q-numbered > div:hover { transform: translateX(6px); box-shadow: -6px 0 0 0 var(--tone); }
.q-numbered > div::before { content: counter(sec, decimal-leading-zero); width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone-2); font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.q-numbered h3 { font-size: clamp(20px, 2vw, 25px); margin-bottom: 10px; }
.q-numbered p { color: var(--muted); margin: 0; }

.q-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.q-highlight { --c: var(--violet); --c-soft: var(--violet-soft); border-radius: var(--radius); padding: 26px; background: var(--c-soft); display: flex; flex-direction: column; gap: 12px; transition: transform 0.5s var(--spring); }
.q-highlight:nth-child(2n) { --c: var(--coral); --c-soft: var(--coral-soft); }
.q-highlight:nth-child(3) { --c: var(--aqua); --c-soft: var(--aqua-soft); }
.q-highlight:nth-child(4) { --c: var(--sky); --c-soft: var(--sky-soft); }
.q-highlight:hover { transform: translateY(-6px) rotate(-0.8deg); }
.q-highlight > i { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; font-size: 22px; background: var(--c); color: #fff; }
.q-highlight h3, .q-highlight h5, .q-highlight h6 { font-size: 20px; margin: 0; }
.q-highlight p { margin: 0; color: #4c4670; font-size: 15px; }

.q-stack { display: grid; gap: 12px; }
.q-stack-row { --c: var(--sun); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.6fr) minmax(0, 1.3fr); gap: 16px 28px; padding: 22px 24px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--ink-line); align-items: center; transition: background-color 0.3s, transform 0.4s var(--spring); }
.q-stack-row:nth-child(2) { --c: var(--pink); } .q-stack-row:nth-child(3) { --c: #5fe6d3; } .q-stack-row:nth-child(4) { --c: #9d87ff; }
.q-stack-row:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(8px); }
.q-stack-row h4 { margin: 0; font-size: 19px; }
.q-stack-row .q-tag { justify-self: start; background: var(--c); color: var(--ink); font-weight: 600; }
.q-stack-row p { margin: 0; color: var(--ink-muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.q-cta {
  border-radius: calc(var(--radius) + 10px); padding: clamp(32px, 6vw, 76px); color: #fff;
  background: linear-gradient(120deg, var(--violet), var(--pink), var(--coral), var(--violet)); background-size: 300% 300%;
  animation: q-cta-shift 14s ease infinite;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px 48px; align-items: end; position: relative; overflow: hidden; isolation: isolate;
}
.q-cta::after { content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--sun), transparent 65%); opacity: 0.7; z-index: -1; }
.q-cta h2 { font-size: clamp(30px, 4.2vw, 56px); margin-bottom: 14px; max-width: 17ch; }
.q-cta p { margin: 0; color: rgba(255, 255, 255, 0.9); max-width: 54ch; }
.q-cta .q-btn--mint { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 16px 32px -14px rgba(40, 10, 80, 0.55); }
@keyframes q-cta-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- prose / legal / blog ---------- */
.q-prose { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.q-prose h2 { font-size: clamp(26px, 2.8vw, 34px); margin: 1.6em 0 0.5em; }
.q-prose h3 { font-size: clamp(20px, 2vw, 24px); margin: 1.6em 0 0.5em; }
.q-prose h4, .q-prose h5, .q-prose h6 { font-size: 17px; margin: 1.4em 0 0.4em; }
.q-prose p, .q-prose li { color: #37315a; }
.q-prose ul, .q-prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.q-prose ul { list-style: disc; } .q-prose ol { list-style: decimal; }
.q-prose li { margin: 0.35em 0; }
.q-prose li::marker { color: var(--tone); }
.q-prose a { color: var(--tone-2); text-decoration: underline; text-underline-offset: 3px; }
.q-prose code { font-family: var(--font-mono); font-size: 0.88em; padding: 2px 7px; border-radius: 6px; background: var(--tone-soft); color: var(--tone-2); }
.q-prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-radius: 14px; background: var(--tone-soft); font-style: italic; }
.q-prose img { border-radius: var(--radius); margin: 1.4em 0; }
.q-prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; }
.q-prose th, .q-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.q-prose > :first-child { margin-top: 0; }

.q-legal { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.q-legal-index { position: sticky; top: calc(var(--nav-h) + 24px); background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.q-legal-index h4 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.q-legal-index a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.q-legal-index a:hover { background: var(--paper-2); color: var(--text); }
.q-legal-index a.is-active { background: var(--tone-soft); color: var(--tone-2); font-weight: 650; }
.q-legal .q-prose { font-size: 15px; }
.q-legal-sec { padding: 28px; margin-bottom: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.q-legal-sec h3 { margin-top: 0; }
.q-note { margin: 1.2em 0; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--tone-soft); font-size: 14.5px; }
.q-note p:last-child { margin: 0; }
.q-fineprint { font-size: 13px; color: var(--muted); }

.q-blog-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #fff; border-radius: calc(var(--radius) + 6px); overflow: hidden; margin-bottom: 56px; box-shadow: 0 40px 80px -44px rgba(255, 95, 168, 0.55); }
.q-blog-feature .q-figure { border-radius: 0; min-height: 320px; }
.q-blog-feature-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.q-blog-feature-body h2 { font-size: clamp(26px, 3vw, 40px); margin: 0; }
.q-blog-feature-body p { color: var(--muted); margin: 0; }
.q-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.q-post { --c: var(--violet); display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid var(--line); transition: transform 0.5s var(--spring), box-shadow 0.4s; }
.q-post:nth-child(3n+2) { --c: var(--coral); } .q-post:nth-child(3n+3) { --c: var(--aqua); }
.q-post:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -28px var(--c); }
.q-post .q-figure { border-radius: 0; aspect-ratio: 16 / 10; border-bottom: 5px solid var(--c); }
.q-post-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.q-post-body h3 { font-size: 21px; margin: 0; }
.q-post-body p { color: var(--muted); margin: 0; font-size: 14.5px; }
.q-post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.q-page-hero .q-post-meta { color: var(--on-tone-muted); }
.q-post-meta .q-tag { text-transform: none; letter-spacing: 0; }
.q-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 14px; font-weight: 550; }
.q-author .q-avatar { width: 40px; height: 40px; font-size: 15px; border-radius: 12px; }
.q-author small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.q-page-hero .q-author { border-color: rgba(255, 255, 255, 0.3); }
.q-page-hero .q-author small { color: var(--on-tone-muted); }
.q-page-hero .q-author .q-avatar { background: #fff; color: var(--tone-2); }

.q-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.q-filters button { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.25s var(--ease); }
.q-filters button:hover { border-color: var(--ink); }
.q-filters button[aria-pressed="true"] { background: var(--tone); color: var(--on-tone); border-color: var(--tone); }

.q-faq { display: grid; gap: 12px; }
.q-faq details { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 0 24px; transition: box-shadow 0.3s, border-color 0.3s; }
.q-faq details[open] { border-color: transparent; box-shadow: 0 0 0 2px var(--tone), 0 24px 40px -28px var(--tone); }
.q-faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 16px; align-items: center; padding: 22px 0; font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; letter-spacing: -0.01em; }
.q-faq summary::-webkit-details-marker { display: none; }
.q-faq summary small { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tone-2); background: var(--tone-soft); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.q-faq summary small + * { display: block; }
.q-faq summary::after { content: "+"; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); font-family: var(--font-body); font-size: 20px; font-weight: 500; transition: transform 0.4s var(--spring), background-color 0.2s, color 0.2s; }
.q-faq details[open] summary::after { transform: rotate(135deg); background: var(--tone); color: var(--on-tone); }
.q-faq .q-faq-body { padding: 0 52px 24px 0; color: var(--muted); }
.q-faq details[hidden] { display: none; }

/* ---------- footer ---------- */
.q-footer { background: var(--ink); color: var(--ink-text); padding: clamp(64px, 8vw, 104px) 0 32px; position: relative; overflow: hidden; isolation: isolate; }
.q-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--rainbow); }
.q-footer::after { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; right: -200px; bottom: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(123, 92, 255, 0.5), transparent 65%); }
.q-footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr)); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--ink-line); }
.q-footer h6, .q-footer .q-label-h { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun); margin: 0 0 16px; }
.q-footer ul li { margin-bottom: 10px; }
.q-footer ul a { color: var(--ink-text); opacity: 0.82; font-size: 15px; transition: opacity 0.2s, color 0.2s, padding 0.3s var(--ease); }
.q-footer ul a:hover { opacity: 1; color: var(--sun); padding-left: 6px; }
.q-footer address { font-style: normal; color: var(--ink-muted); font-size: 15px; line-height: 1.7; margin: 16px 0 20px; }
.q-footer address a { color: var(--ink-text); }
.q-footer address a:hover { color: var(--sun); }
.q-newsletter { display: flex; gap: 8px; margin-top: 8px; max-width: 440px; }
.q-newsletter input { flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink-line); background: var(--ink-2); color: var(--ink-text); font: inherit; font-size: 14.5px; }
.q-newsletter input::placeholder { color: var(--ink-muted); }
.q-newsletter input:focus { outline: none; border-color: var(--sun); }
.q-newsletter .q-btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.q-newsletter-msg { font-size: 13.5px; margin-top: 10px; min-height: 20px; color: var(--ink-muted); }
.q-newsletter-msg.is-ok { color: #5fe6d3; }
.q-newsletter-msg.is-err { color: #ff9d8f; }
/* Footer signature: the official wordmark, large and quiet. A soft white fade with a hairline
   outline, no animation, so it reads as a sign-off rather than competing with the links. */
.q-wordmark {
  font-family: var(--font-brand); font-weight: 800; letter-spacing: 0.02em; line-height: 0.95;
  font-size: clamp(60px, 15vw, 210px); margin: 56px 0 0; text-align: center; user-select: none; white-space: nowrap;
  color: transparent; background: linear-gradient(180deg, rgba(246, 243, 255, 0.2) 0%, rgba(246, 243, 255, 0.04) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px rgba(246, 243, 255, 0.14);
}
.q-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13.5px; color: var(--ink-muted); }
.q-footer-bottom a:hover { color: var(--sun); }

/* ---------- cookie banner ---------- */
.q-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 540px; margin-left: auto; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; box-shadow: 0 30px 70px -20px rgba(26, 18, 64, 0.45); border: 2px solid var(--ink); transform: translateY(20px); opacity: 0; transition: opacity 0.4s, transform 0.5s var(--spring); }
.q-cookie.is-visible { opacity: 1; transform: none; }
.q-cookie[hidden] { display: none; }
.q-cookie p { margin: 0; font-size: 14px; color: var(--muted); }
.q-cookie p b { color: var(--ink); }
.q-cookie .q-btn { min-height: 42px; font-size: 14px; }
.q-cookie .q-btn--ghost-light { border-color: var(--ink); color: var(--ink); }
.q-cookie .q-btn--ghost-light:hover { background: var(--ink); color: #fff; }
.q-cookie .q-btn--mint { background-image: var(--grad-brand); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28); }

/* ---------- page loader (markup + timing script at the top of Views/Version2/_Layout) ---------- */
html.q-loading { overflow: hidden; }
html.q-loading main * { animation-play-state: paused !important; }
.q-loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  background: var(--paper); transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1); will-change: transform;
}
.q-loader::before, .q-loader::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: 0.22; }
.q-loader::before { left: -28vmax; top: -34vmax; background: radial-gradient(circle, var(--violet), transparent 62%); animation: q-loader-drift 5s ease-in-out infinite alternate; }
.q-loader::after { right: -30vmax; bottom: -38vmax; background: radial-gradient(circle, var(--sun), var(--coral) 30%, transparent 62%); animation: q-loader-drift 6s ease-in-out infinite alternate-reverse; }
.q-loader.is-done { transform: translateY(-100%); }
/* One indicator only: a thin arc that fades in from nothing to violet-pink, circling a faint
   track around the logo. No bar, no second ring. */
.q-loader-stage { position: relative; z-index: 1; display: grid; justify-items: center; gap: 26px; }
.q-loader-orb { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.q-loader-orb::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; box-shadow: 0 14px 34px -20px rgba(26, 18, 64, 0.35); }
.q-loader-orb img { position: relative; z-index: 1; width: 60px; height: 60px; animation: q-loader-pop 0.8s var(--ease) both; }
.q-loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(123, 92, 255, 0.35) 72%, var(--violet) 88%, var(--pink) 100%), rgba(26, 18, 64, 0.07);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: q-loader-spin 1.1s linear infinite;
}
.q-loader-word { display: flex; font-family: var(--font-brand); font-weight: 800; font-size: 28px; letter-spacing: 1px; line-height: 1; color: var(--ink); }
.q-loader-word span { display: inline-block; opacity: 0; transform: translateY(10px); animation: q-loader-letter 0.6s var(--ease) forwards; animation-delay: calc(0.25s + var(--i, 0) * 60ms); }
@keyframes q-loader-spin { to { transform: rotate(1turn); } }
@keyframes q-loader-pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes q-loader-letter { to { opacity: 1; transform: none; } }
@keyframes q-loader-drift { to { transform: translate(5vmax, 4vmax) scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .q-loader::before, .q-loader::after, .q-loader-ring, .q-loader-orb img { animation: none; }
  .q-loader-word span { animation: none; opacity: 1; transform: none; }
  .q-loader { transition-duration: 0.3s; }
}

/* ---------- scroll reveal variants (classes added by v2.js) ---------- */
.q-js .q-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.q-js .q-reveal[data-reveal="left"] { transform: translateX(-60px); }
.q-js .q-reveal[data-reveal="right"] { transform: translateX(60px); }
.q-js .q-reveal[data-reveal="zoom"] { transform: scale(0.88); }
.q-js .q-reveal[data-reveal="tilt"] { transform: translateY(60px) rotate(4deg); }
.q-js .q-reveal.is-in { opacity: 1; transform: none; }
.q-js .q-reveal[data-delay="1"] { transition-delay: 0.08s; }
.q-js .q-reveal[data-delay="2"] { transition-delay: 0.16s; }
.q-js .q-reveal[data-delay="3"] { transition-delay: 0.24s; }
/* image wipe: figures uncover from bottom as they enter */
.q-js .q-reveal .q-figure, .q-js .q-figure.q-reveal { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.2s var(--ease); }
.q-js .q-reveal.is-in .q-figure, .q-js .q-figure.q-reveal.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.q-js .q-work-card .q-figure, .q-js .q-post .q-figure, .q-js .q-blog-feature .q-figure, .q-js .q-cap .q-figure { clip-path: none; }
[data-scroll-zoom] { overflow: hidden; }
[data-scroll-zoom] img { will-change: transform; transform: scale(var(--zoom, 1.15)); }

/* ---------- utilities ---------- */
.q-mt-0 { margin-top: 0; } .q-mb-0 { margin-bottom: 0; }
.q-mt-2 { margin-top: 16px; } .q-mt-3 { margin-top: 24px; } .q-mt-4 { margin-top: 40px; } .q-mt-5 { margin-top: 64px; }
.q-mb-3 { margin-bottom: 24px; } .q-mb-4 { margin-bottom: 40px; }
.q-center { text-align: center; }
.q-empty { padding: 56px 0; text-align: center; color: var(--muted); }
.q-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .q-mega-inner { grid-template-columns: 1fr 1fr; }
  .q-mega-feature { display: none; }
  .q-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-footer-top { grid-template-columns: 1fr 1fr; }
  .q-footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
  :root { --nav-h: 66px; }
  .q-nav-toggle { display: inline-flex; }
  .q-menu {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; margin: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); color: var(--ink); padding: 12px var(--gutter) 32px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .q-nav.is-menu-open .q-menu { opacity: 1; visibility: visible; transform: none; }
  .q-nav.is-menu-open { background: var(--paper); color: var(--ink); }
  .q-menu > li { border-bottom: 1px solid var(--line); }
  .q-menu > li > a, .q-menu > li > button { width: 100%; height: 58px; padding: 0 2px; border-radius: 0; font-size: 20px; font-family: var(--font-display); font-weight: 600; justify-content: space-between; }
  .q-menu > li > a:hover, .q-menu > li > button:hover, .q-menu > li > a.is-active { background: none; color: var(--violet); }
  .q-mega { position: static; box-shadow: none; border: 0; display: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .q-has-mega.is-open .q-mega { display: block; }
  .q-mega-inner { grid-template-columns: 1fr; gap: 16px; padding: 0 0 16px; }
  .q-mega .q-wrap { padding: 0; }
  .q-menu > li.q-nav-cta { border: 0; padding-top: 20px; margin: 0; }
  .q-menu > li.q-nav-cta > a.q-btn { width: 100%; height: 54px; justify-content: center; font-size: 16px; font-family: var(--font-body); }
  body.q-menu-lock { overflow: hidden; }

  .q-hero-grid, .q-page-hero-grid, .q-split, .q-contact-grid, .q-svc-layout, .q-legal, .q-blog-feature, .q-quote-panel, .q-cta, .q-section-head, .q-cap { grid-template-columns: 1fr; }
  .q-aside, .q-legal-index { position: static; }
  .q-legal-index { display: none; }
  .q-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-work, .q-posts, .q-quotes { grid-template-columns: 1fr 1fr; }
  .q-stats { grid-template-columns: 1fr 1fr; }
  .q-stack-row { grid-template-columns: 1fr auto; }
  .q-stack-row p { grid-column: 1 / -1; }
  .q-blog-feature .q-figure { min-height: 220px; aspect-ratio: 16 / 9; }
  .q-console { transform: none; }
  .q-cap { top: calc(var(--nav-h) + 12px + var(--i, 0) * 12px); }
  .q-cap .q-figure { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .q-cards, .q-work, .q-posts, .q-team, .q-highlights, .q-form-row, .q-quotes { grid-template-columns: 1fr; }
  .q-stats { gap: 10px; }
  .q-stat { padding: 18px; }
  .q-card { min-height: 0; }
  .q-card h3 { margin-top: 18px; }
  .q-numbered > div { grid-template-columns: 1fr; padding: 22px; }
  .q-footer-top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .q-newsletter { flex-direction: column; }
  .q-btn-row .q-btn { flex: 1 1 auto; }
  .q-console li { padding: 8px 10px; grid-template-columns: 30px 1fr auto; }
  .q-console li > i { width: 30px; height: 30px; font-size: 15px; }
  .q-faq details { padding: 0 18px; }
  .q-faq .q-faq-body { padding-right: 0; }
  .q-hero-figure { box-shadow: 10px 10px 0 0 var(--accent); }
  .q-figure--pop, .q-figure--pop2 { box-shadow: none; }
  .q-legal-sec { padding: 20px; }
  .q-cookie { left: 12px; right: 12px; bottom: 12px; }
}

/* ---------- device tuning ---------- */
/* Slide-in reveals, tilted cards and the angled marquee briefly extend past the viewport
   edge; clip (unlike hidden) stops that from causing sideways scroll without breaking the
   sticky capability cards or the sticky sidebars. */
html, main { overflow-x: clip; }

/* Touch screens: no sticky hover states after a tap. Hover-only motion is limited to devices
   that can actually hover. */
@media (hover: none) {
  .q-card:hover, .q-work-card:hover, .q-post:hover, .q-person:hover, .q-highlight:hover, .q-quote:hover,
  .q-numbered > div:hover, .q-stack-row:hover, .q-contact-list li:hover, .q-btn:hover { transform: none; }
  .q-card:hover { color: inherit; box-shadow: none; border-color: var(--line); }
  .q-card:hover::before { transform: translate(-50%, 0) scale(0.2); }
  .q-card:hover p, .q-card:hover .q-index { color: var(--muted); opacity: 1; }
  .q-card:hover .q-card-top i { background: var(--c-soft); color: var(--c); transform: none; }
  .q-card:active { transform: scale(0.98); }
}

/* Short screens (phones in landscape, small laptops): stacked capability cards would be
   taller than the viewport, so they scroll normally instead of sticking. */
@media (max-height: 680px) {
  .q-cap { position: relative; top: auto; }
}

/* Tablet portrait / landscape between phone and full desktop */
@media (min-width: 641px) and (max-width: 991px) {
  .q-hero-grid { gap: 40px; }
  .q-console { max-width: 520px; }
  .q-page-hero-grid .q-hero-figure { max-width: 560px; }
  .q-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-quotes { grid-template-columns: 1fr; }
  .q-svc-layout .q-aside { grid-template-columns: 1fr 1fr; }
  .q-svc-layout .q-aside .q-aside-nav { grid-column: 1 / -1; }
}

/* Small desktop: keep the full nav from crowding */
@media (min-width: 992px) and (max-width: 1140px) {
  .q-nav .q-wrap { gap: 16px; }
  .q-menu > li > a, .q-menu > li > button { padding: 0 10px; font-size: 14px; }
  .q-menu > li.q-nav-cta > a.q-btn { padding: 0 14px; }
}

/* Large desktop: use more of the screen */
@media (min-width: 1600px) {
  :root { --wrap: 1360px; }
  body { font-size: 17px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .q-display { font-size: 46px; }
  .q-h1 { font-size: 34px; }
  .q-h2 { font-size: 29px; }
  .q-btn { padding: 0 18px; }
  .q-stats { grid-template-columns: 1fr 1fr; }
  .q-stat b { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .q-js .q-reveal { opacity: 1; transform: none; }
  .q-js .q-reveal .q-figure, .q-js .q-figure.q-reveal { clip-path: none; }
  .q-w > span { transform: none; }
  .q-blob { animation: none; }
  [data-scroll-zoom] img { transform: none; }
}

/* ---------- case studies (Views/CaseStudies, Boards #4570) ---------- */
.q-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.q-facts > div { padding: 16px 18px; border-radius: 16px; background: var(--tone-soft); border: 1px solid var(--line); }
.q-facts dt { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.q-facts dd { margin: 0; font-family: var(--font-display); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.q-case-shot { aspect-ratio: 16 / 10; box-shadow: 0 24px 50px -24px rgba(26, 18, 64, 0.45); }
.q-case-shot img { width: 100%; height: 100%; object-fit: cover; }
.q-work-card > a.q-figure { display: block; }
@media (max-width: 640px) { .q-facts { grid-template-columns: 1fr; } }
