/* ============================================================================
   QET — main.css · "Bento Studio" design system
   Ported from the approved demo (demo-3-bento-studio) and extended for the
   trilingual (en/fr/ar) WordPress theme. Fully RTL-safe: CSS logical
   properties everywhere, fonts switch via html[dir=rtl] custom properties.

   DEMO CLASS VOCABULARY (kept as-is, templates reuse it verbatim):
   .container .grad-text .btn .btn-ink .btn-violet .btn-light .btn-sm .btn-lg
   .site-header .header-inner .logo .logo-dot .site-nav .nav-link .lang-pills
   .lang .nav-toggle .bar .menu-open .bg-decor .bento .tile .grid-6 .span-2
   .span-3 .span-4 .fill-lav .fill-peach .fill-rose .fill-ice .hero
   .hero-bento .tile-main .label-pill .hero-title .hero-sub .hero-actions
   .chip-text .chip-icon .chip-indigo .chip-pink .chip-amber
   .chip-cyan .tile-lav .tile-peach .tile-pink .tile-cyan .kpi-row .kpi-num
   .kpi-delta .kpi-label .sparkline .dots-map .glyphs .glyph-ink .glyph-amber
   .site-dots .sd .sd-1..5 .sd-more .tile-grad .mini-label .grad-teaser
   .stats .stats-tile .stat .stat-num .stat-label .section .section-head
   .label-pill .mini-pills .link-chip .is-static .careers-tile .role-chips
   .tile-remote .spark-big .remote-big .remote-sub .tz-pills .cta-tile
   .site-footer .footer-grid .footer-brand .footer-col .socials .footer-bottom
   [data-reveal] [data-reveal-group] .revealed

   NEW PATTERN INVENTORY (expected markup shapes for the template agent)
   ---------------------------------------------------------------------------
   .q-skip-link      first child of <body>:
                     <a class="q-skip-link" href="#main">Skip to content</a>

   .q-grad           alias of .grad-text — output of qet_grad():
                     <span class="q-grad">word</span>

   .q-hero-media     home hero video stage (sits in .hero-bento beside
                     .tile-main; spans cols 3/-1 rows 1/3, stacks on mobile):
                     <figure class="tile q-hero-media" data-reveal>
                       <img class="q-hero-poster" src="hero-home-poster.webp"
                            width="1920" height="1072" alt=""
                            loading="eager" fetchpriority="high">
                       <video class="q-hero-video" data-src="hero-home.mp4"
                              muted loop playsinline preload="none"
                              aria-hidden="true" tabindex="-1"></video>
                     </figure>
                     JS boots the video (adds .is-playing); no JS = poster only.

   .q-page-hero      inner-page hero bento pair (text tile + image tile):
                     <section class="q-page-hero container">
                       <div class="bento q-page-hero-grid" data-reveal-group>
                         <div class="tile q-page-hero-text" data-reveal>
                           <span class="label-pill">…</span>
                           <h1>… <span class="q-grad">…</span></h1>
                           <p class="q-page-hero-sub">…</p>
                           <div class="hero-actions">…(optional)…</div>
                         </div>
                         <figure class="tile q-page-hero-media" data-reveal>
                           <img src="hero-careers.webp" width="1600"
                                height="1073" alt="…" loading="eager"
                                fetchpriority="high">
                         </figure>
                       </div>
                     </section>

   .q-avatar-float   mascot cutout accent (bob animation, gated):
                     <img class="q-avatar-float q-avatar-md"
                          src="avatar-wave.webp" width="774" height="900"
                          alt="" loading="lazy">
                     sizes: .q-avatar-sm 120px · .q-avatar-md 200px ·
                            .q-avatar-lg 300px (width; height stays auto)

   .q-form           forms (contact / apply):
                     <form class="q-form" method="post" action="…">
                       <div class="q-form-row">          (optional 2-up row)
                         <div class="q-field">
                           <label class="q-label" for="f-name">…</label>
                           <input class="q-input" id="f-name" …>
                           <p class="q-error">…</p>      (shown via .has-error)
                         </div>
                         <div class="q-field">…</div>
                       </div>
                       <div class="q-field">
                         <label class="q-label" for="f-role">…</label>
                         <select class="q-select" id="f-role">…</select>
                       </div>
                       <div class="q-field">
                         <label class="q-label" for="f-msg">…</label>
                         <textarea class="q-textarea" id="f-msg"></textarea>
                       </div>
                       <label class="q-check"><input type="checkbox" …>
                         <span>consent text</span></label>
                       <p class="q-hp" aria-hidden="true">…honeypot input…</p>
                       <button class="btn btn-violet" type="submit">…</button>
                       <p class="q-form-note">…</p>
                     </form>
                     error state:   add .has-error to the .q-field
                     success tile:  <div class="tile q-form-success">
                                      <img class="q-avatar-float q-avatar-sm"
                                           src="avatar-celebrate.webp"
                                           width="816" height="900" alt="">
                                      <h3>…</h3><p>…</p></div>

   .q-roles          careers roles list:
                     <ul class="q-roles" data-reveal-group>
                       <li class="q-role" data-reveal>
                         <a class="q-role-link" href="…">
                           <span class="q-role-title">Content Writer</span>
                           <span class="q-role-chip">Remote · Full-time</span>
                           <span class="q-role-arrow" aria-hidden="true">→</span>
                         </a>
                       </li>…
                     </ul>
                     empty state: <p class="q-roles-empty">…</p>

   .q-topics         contact topics grid with response-time chips:
                     <div class="bento q-topics" data-reveal-group>
                       <article class="tile q-topic fill-lav" data-reveal>
                         <h3 class="q-topic-title">…</h3>
                         <span class="q-topic-chip">…reply time…</span>
                       </article>…
                     </div>

   .q-legal          legal page typography:
                     <article class="q-legal container">
                       <header class="q-legal-head">
                         <h1>…</h1>
                         <p class="q-legal-updated">Last updated…</p>
                         <p class="q-legal-intro">…</p>
                       </header>
                       <section class="q-legal-section"><h2>…</h2><p>…</p>
                       </section>…
                     </article>

   .q-langs          language switcher (3 pills; also used inside .site-nav —
                     .lang-pills/.lang from the demo still work identically):
                     <nav class="q-langs" aria-label="Change language">
                       <a class="q-lang is-active" href="…"
                          aria-current="true" lang="en">EN</a>
                       <a class="q-lang" href="…" lang="fr">FR</a>
                       <a class="q-lang" href="…" lang="ar">AR</a>
                     </nav>

   .q-404            404 page:
                     <section class="q-404 container">
                       <div class="tile q-404-tile" data-reveal>
                         <img class="q-404-art" src="art-404.webp"
                              width="1200" height="805" alt="" loading="eager">
                         <h1>…</h1><p>…</p>
                         <a class="btn btn-ink" href="…">…</a>
                       </div>
                     </section>

   .q-decor/.q-blob  decorative blobs — ALWAYS inside the overflow:hidden
                     wrapper (RTL scrollWidth rule):
                     <div class="q-decor" aria-hidden="true">
                       <span class="q-blob q-blob-indigo"></span>…
                     </div>
                     (.q-decor is absolutely positioned inset:0 inside any
                      position:relative parent, e.g. a .tile)
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1) TOKENS
   --------------------------------------------------------------------------*/
:root {
  --bg: #F7F8FB;
  --surface: #fff;
  --ink: #111827;
  --muted: #6B7280;
  --line: #E9EAF2;

  --indigo: #6366F1;
  --pink: #EC4899;
  --amber: #F59E0B;
  --cyan: #06B6D4;

  --lav: #EEF2FF;
  --peach: #FFF7ED;
  --rose: #FDF2F8;
  --ice: #ECFEFF;

  --grad: linear-gradient(90deg, var(--indigo), var(--pink), var(--amber));

  --radius: 22px;
  --gap: 24px;
  --shadow-soft: 0 20px 60px rgba(17, 24, 39, .08);
  --shadow-lift: 0 28px 72px rgba(17, 24, 39, .13);

  --sp-1: 8px;
  --sp-2: 12px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 40px;
  --sp-6: 64px;
  --sp-7: 104px;

  /* Language-aware font pair — flipped by html[dir=rtl] below. */
  --q-font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --q-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Demo aliases so ported rules keep working. */
  --font-display: var(--q-font-display);
  --font-body: var(--q-font-body);

  /* Negative tracking looks broken in Arabic — zeroed under [dir=rtl]. */
  --q-track-tight: -0.03em;
  --q-track-wide: .14em;
}

html[dir="rtl"] {
  --q-font-display: "Alexandria", "Readex Pro", system-ui, sans-serif;
  --q-font-body: "Readex Pro", system-ui, sans-serif;
  --q-track-tight: 0em;
  --q-track-wide: 0em;
}

/* ----------------------------------------------------------------------------
   2) BASE
   --------------------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--q-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Defensive belt for RTL: `clip` (not `hidden`) so position:sticky keeps
     working. Primary protection is still the .q-decor overflow wrappers. */
  overflow-x: clip;
}

/* Arabic script needs more vertical air. */
html[dir="rtl"] body { line-height: 1.8; }

h1, h2, h3, h4 {
  font-family: var(--q-font-display);
  line-height: 1.12;
  letter-spacing: var(--q-track-tight);
  margin: 0;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 { line-height: 1.35; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

section[id] { scroll-margin-block-start: 96px; }

:focus-visible {
  outline: 3px solid rgba(99, 102, 241, .55);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection { background: rgba(99, 102, 241, .18); }

/* Skip link — visually offscreen until keyboard-focused. */
.q-skip-link {
  position: absolute;
  inset-block-start: -80px;
  inset-inline-start: 14px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: .7rem 1.2rem;
  border-radius: 12px;
  transition: inset-block-start .2s ease;
}
.q-skip-link:focus-visible { inset-block-start: 14px; }

/* ----------------------------------------------------------------------------
   3) GRADIENT TEXT  (.grad-text = demo, .q-grad = qet_grad() output)
   --------------------------------------------------------------------------*/
.grad-text,
.q-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ----------------------------------------------------------------------------
   4) BUTTONS
   --------------------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.65rem;
  border-radius: 999px;
  font-family: var(--q-font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease;
}
.btn-ink { background: var(--ink); color: #fff; }
.btn-violet { background: var(--indigo); color: #fff; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 6px 22px rgba(17, 24, 39, .10); }
.btn-sm { padding: .68rem 1.25rem; font-size: .88rem; }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(17, 24, 39, .18); }
  .btn-violet:hover { background: #575af0; }
}

/* Directional glyphs (→ / ↗) inside buttons, chips, role rows mirror in RTL. */
html[dir="rtl"] .btn [aria-hidden="true"],
html[dir="rtl"] .link-chip [aria-hidden="true"],
html[dir="rtl"] .q-role-arrow {
  display: inline-block;
  transform: scaleX(-1);
}

/* ----------------------------------------------------------------------------
   5) HEADER + NAV + LANGUAGE PILLS
   --------------------------------------------------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 251, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 34px rgba(17, 24, 39, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: 72px;
}

.logo {
  font-family: var(--q-font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: var(--q-track-tight);
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
}
.logo-mark {
  align-self: center;
  inline-size: 28px;
  block-size: 28px;
  margin-inline-end: 8px;
}
.logo-dot {
  width: 9px;
  height: 9px;
  margin-inline-start: 4px;
  border-radius: 50%;
  background: var(--grad);
  transform: translateY(-1px);
}

.site-nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-link {
  font-size: .93rem;
  font-weight: 500;
  color: var(--muted);
  padding: .35rem .15rem;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Language switcher — .q-langs/.q-lang (new) and .lang-pills/.lang (demo)
   share one style. Latin-only pills keep Inter even on Arabic pages. */
.lang-pills,
.q-langs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.lang,
.q-lang,
.q-langs a {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .3rem .6rem;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.lang:hover, .q-lang:hover, .q-langs a:hover { color: var(--ink); }
.lang.is-active, .q-lang.is-active, .q-langs a.is-active { background: var(--ink); color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-inline-start: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.menu-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------------------
   6) BACKGROUND + TILE DECOR (all overflow-safe for RTL)
   --------------------------------------------------------------------------*/
main { position: relative; }

/* Page-top radial washes — inset:0 so nothing extends scrollWidth. */
.bg-decor {
  position: absolute;
  inset: 0 0 auto 0;
  height: 860px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(440px 340px at 6% 2%, rgba(99, 102, 241, .10), transparent 70%),
    radial-gradient(440px 340px at 94% 8%, rgba(236, 72, 153, .09), transparent 70%),
    radial-gradient(380px 320px at 68% 42%, rgba(245, 158, 11, .07), transparent 70%);
}
.bg-decor::after {
  content: "";
  position: absolute;
  inset-block-start: 96px;
  inset-inline-end: 4%;
  width: 250px;
  height: 170px;
  opacity: .5;
  background-image: radial-gradient(rgba(17, 24, 39, .12) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}
/* Inner pages: let whitespace and type carry the section — decor stays
   home-only at full strength, elsewhere it fades to a whisper. */
body:not(.home) .bg-decor { opacity: .45; height: 520px; }
body:not(.home) .bg-decor::after { display: none; }

/* Blob nest — REQUIRED wrapper for any decorative shape with negative
   offsets (Chromium extends scrollWidth on the inline-end side in RTL). */
.q-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.q-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
}
.q-blob-indigo { background: rgba(99, 102, 241, .35); inset-block-start: -120px; inset-inline-end: -100px; }
.q-blob-pink   { background: rgba(236, 72, 153, .30); inset-block-end: -140px; inset-inline-start: -110px; }
.q-blob-amber  { background: rgba(245, 158, 11, .28); inset-block-end: -120px; inset-inline-end: -90px; }
.q-blob-cyan   { background: rgba(6, 182, 212, .28); inset-block-start: -110px; inset-inline-start: -90px; }

.hero, .stats, .section { position: relative; z-index: 1; }

/* ----------------------------------------------------------------------------
   7) BENTO BASE
   --------------------------------------------------------------------------*/
.bento { display: grid; gap: var(--gap); }

.tile {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform .32s ease, box-shadow .32s ease;
}

/* Spotlight overlay — --mx / --my driven by main.js (pointer-fine only). */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(99, 102, 241, .12), transparent 65%);
}
.tile-grad::after,
.tile-remote::after,
.cta-tile::after {
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 65%);
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover::after { opacity: 1; }
  .bento .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
}

/* Pastel fills */
.fill-lav { background: var(--lav); border-color: #E2E8FA; }
.fill-peach { background: var(--peach); border-color: #F8ECDB; }
.fill-rose { background: var(--rose); border-color: #F9E3EF; }
.fill-ice { background: var(--ice); border-color: #D9F3F7; }

/* Column spans (6-col sections) */
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

/* ----------------------------------------------------------------------------
   8) HOME HERO BENTO  (+ .q-hero-media video stage)
   --------------------------------------------------------------------------*/
.hero { padding-block-start: var(--sp-5); }

.hero-bento {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(178px, auto);
}

.tile-main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-3);
}

.hero-title {
  font-size: clamp(2.15rem, 1.05rem + 2.45vw, 2.95rem);
  font-weight: 800;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-block-start: var(--sp-1);
}

.chip-text { display: flex; flex-direction: column; line-height: 1.3; }
.chip-text strong { font-size: .84rem; font-weight: 700; }
.chip-text small { font-size: .76rem; color: var(--muted); }

.chip-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.chip-icon svg { width: 20px; height: 20px; }
.chip-indigo { background: var(--lav); color: var(--indigo); }
.chip-pink { background: var(--rose); color: var(--pink); }
.chip-amber { background: var(--peach); color: var(--amber); }
.chip-cyan { background: var(--ice); color: var(--cyan); }

/* --- Hero video stage --------------------------------------------------- */
/* Rounded tile; poster <img> renders always (and is all non-JS/saveData/
   reduced-motion users get); <video> fades in over it once playing. */
.q-hero-media {
  padding: 0;
  margin: 0; /* <figure> reset */
  aspect-ratio: 16 / 10;
  min-height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--lav);
}
.hero-bento .q-hero-media {
  grid-column: 3 / -1;
  grid-row: 1 / 3;
  aspect-ratio: auto;
}
.q-hero-media .q-hero-poster,
.q-hero-media .q-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.q-hero-media .q-hero-video {
  opacity: 0;
  transition: opacity .6s ease;
}
.q-hero-media .q-hero-video.is-playing { opacity: 1; }

/* Satellite tiles */
.tile-lav { background: var(--lav); border-color: #E2E8FA; grid-column: 3 / 4; grid-row: 1 / 2; }
.tile-peach { background: var(--peach); border-color: #F8ECDB; grid-column: 4 / 5; grid-row: 1 / 2; }
.tile-pink { background: var(--rose); border-color: #F9E3EF; grid-column: 3 / 4; grid-row: 2 / 3; }
.tile-cyan { background: var(--ice); border-color: #D9F3F7; grid-column: 4 / 5; grid-row: 2 / 3; }

.tile-lav, .tile-peach, .tile-pink, .tile-cyan {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}

.kpi-row { display: flex; align-items: baseline; gap: .6rem; }

.kpi-num {
  font-family: var(--q-font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 1.2rem + 1.4vw, 2.5rem);
  letter-spacing: var(--q-track-tight);
  line-height: 1;
}

.kpi-delta {
  font-size: .74rem;
  font-weight: 700;
  color: var(--indigo);
  background: #fff;
  border: 1px solid #E2E8FA;
  border-radius: 999px;
  padding: .22rem .55rem;
}

.kpi-label { font-size: .86rem; color: var(--muted); }

.sparkline { width: 100%; height: 74px; margin-block-start: var(--sp-2); border-radius: 10px; }
.dots-map { width: 100%; height: 84px; margin-block-start: var(--sp-2); }

.glyphs {
  display: flex;
  align-items: baseline;
  gap: .35em;
  font-family: var(--q-font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 1.8rem + 2vw, 3.6rem);
  line-height: 1;
  margin-block-end: auto;
}
.glyph-ink { color: var(--ink); }
.glyph-amber { color: var(--amber); }

.site-dots { display: flex; align-items: center; gap: 7px; margin-block-start: var(--sp-2); }
.sd { width: 22px; height: 22px; border-radius: 7px; }
.sd-1 { background: var(--indigo); }
.sd-2 { background: var(--pink); }
.sd-3 { background: var(--amber); }
.sd-4 { background: var(--cyan); }
.sd-5 { background: var(--ink); }
.sd-more { font-size: .74rem; font-weight: 700; color: var(--muted); }

/* Gradient teaser tile */
.tile-grad {
  grid-column: 1 / -1;
  grid-row: 3;
  border: 0;
  background: linear-gradient(94deg, var(--indigo), var(--pink));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: 30px 36px;
}
.mini-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: var(--q-track-wide);
  text-transform: uppercase;
  opacity: .8;
  margin-block-end: .35rem;
}
.grad-teaser { font-size: 1.12rem; font-weight: 500; }
.grad-teaser strong { font-family: var(--q-font-display); font-weight: 700; }

/* ----------------------------------------------------------------------------
   9) STATS BAND
   --------------------------------------------------------------------------*/
.stats { margin-block-start: var(--sp-4); }

.stats-tile {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 40px 28px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding-inline: var(--sp-3);
}
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat-num {
  font-family: var(--q-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.7rem);
  letter-spacing: var(--q-track-tight);
  line-height: 1;
}
.stat-label { font-size: .86rem; color: var(--muted); }

/* ----------------------------------------------------------------------------
   10) SECTIONS
   --------------------------------------------------------------------------*/
.section { padding-block-start: var(--sp-7); }

/* Below-fold render skip — cheap win on long pages. */
.section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

.section-head { max-width: 720px; margin-block-end: var(--sp-5); }

/* Typographic eyebrow (was a bordered pill — de-slopped): small caps,
   letter-spaced, with a short gradient rule as the only ornament. */
.label-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-block-end: var(--sp-3);
}
.label-pill::before {
  content: "";
  inline-size: 22px;
  block-size: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section-head h2, .careers-tile h2, .cta-tile h2 {
  font-size: clamp(1.75rem, 1rem + 2vw, 2.6rem);
  font-weight: 800;
}

/* What we do / Brands tiles */
.grid-6 .tile h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-block-start: var(--sp-3);
}
.grid-6 .tile p { color: var(--muted); margin-block-start: .5rem; max-width: 52ch; }

.mini-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: var(--sp-3); }
.mini-pills span {
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 999px;
  padding: .3rem .75rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-block-start: var(--sp-3);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: 999px;
  padding: .38rem .85rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.link-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(17, 24, 39, .12); }
.link-chip.is-static { color: var(--muted); font-weight: 600; }
.link-chip.is-static:hover { transform: none; box-shadow: none; }

/* ----------------------------------------------------------------------------
   11) CAREERS  (+ .q-roles list)
   --------------------------------------------------------------------------*/
.careers-tile { padding: 40px; }
.careers-tile h2 { margin-block-start: var(--sp-2); }
.careers-tile > p { color: var(--muted); margin-block-start: var(--sp-2); max-width: 52ch; }
.careers-tile .btn { margin-block-start: var(--sp-4); }

.role-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: var(--sp-4); }
.role-chips span {
  font-size: .84rem;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .48rem 1rem;
}
.role-chips .more { background: var(--lav); border-color: #E2E8FA; color: var(--indigo); }

.tile-remote {
  border: 0;
  background: linear-gradient(160deg, var(--indigo), #8B5CF6 55%, var(--pink));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .4rem;
  padding: 32px;
}
.spark-big { font-size: 2rem; line-height: 1; opacity: .85; margin-block-end: auto; }
.grid-6 .tile-remote p { color: #fff; margin-block-start: 0; }
.remote-big { font-family: var(--q-font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: var(--q-track-tight); }
.remote-sub { font-size: .9rem; opacity: .85; }
.tz-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: var(--sp-2); }
.tz-pills span {
  font-size: .74rem;
  font-weight: 700;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: .28rem .7rem;
}

/* --- Open roles list ------------------------------------------------------ */
.q-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.q-role-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.05rem 1.4rem;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.q-role-link:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, .45);
  box-shadow: 0 14px 34px rgba(17, 24, 39, .10);
}
.q-role-title {
  font-family: var(--q-font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: var(--q-track-tight);
}
.q-role-chip {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--lav);
  border: 1px solid #E2E8FA;
  border-radius: 999px;
  padding: .3rem .7rem;
  white-space: nowrap;
}
html[dir="rtl"] .q-role-chip { letter-spacing: 0; }
.q-role-arrow {
  margin-inline-start: auto;
  font-size: 1.1rem;
  color: var(--indigo);
  transition: transform .25s ease;
}
.q-role-link:hover .q-role-arrow { transform: translateX(4px); }
html[dir="rtl"] .q-role-link:hover .q-role-arrow { transform: scaleX(-1) translateX(4px); }

.q-roles-empty {
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
}

/* ----------------------------------------------------------------------------
   12) CTA BAND
   --------------------------------------------------------------------------*/
.cta-tile {
  border: 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}
.cta-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(420px 260px at 12% 0%, rgba(99, 102, 241, .35), transparent 70%),
    radial-gradient(420px 260px at 88% 100%, rgba(236, 72, 153, .28), transparent 70%);
}
.cta-tile > * { position: relative; }
.cta-tile h2 { max-width: 18ch; }

/* ----------------------------------------------------------------------------
   13) INNER-PAGE HERO  (.q-page-hero)
   --------------------------------------------------------------------------*/
.q-page-hero {
  position: relative;
  z-index: 1;
  padding-block-start: var(--sp-5);
}
.q-page-hero-grid { grid-template-columns: 1.15fr .85fr; }

.q-page-hero-text {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--sp-3);
}
.q-page-hero-text h1 {
  font-size: clamp(2rem, 1rem + 2.3vw, 2.8rem);
  font-weight: 800;
}
.q-page-hero-sub {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 52ch;
}

.q-page-hero-media {
  padding: 0;
  margin: 0; /* <figure> reset */
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--lav);
}
.q-page-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------------------------------------------------------
   14) AVATAR ACCENTS  (.q-avatar-float)
   --------------------------------------------------------------------------*/
.q-avatar-float {
  width: 200px; /* md default */
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(17, 24, 39, .18));
}
.q-avatar-sm { width: 120px; }
.q-avatar-md { width: 200px; }
.q-avatar-lg { width: 300px; }

@media (prefers-reduced-motion: no-preference) {
  .q-avatar-float { animation: q-bob 6s ease-in-out infinite; }
}
@keyframes q-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ----------------------------------------------------------------------------
   15) FORMS  (.q-form)
   --------------------------------------------------------------------------*/
.q-form { display: grid; gap: var(--sp-4); }

.q-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.q-field { display: flex; flex-direction: column; gap: .45rem; }

.q-label {
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
}
.q-label .q-req { color: var(--pink); }

.q-hint { font-size: .8rem; color: var(--muted); }

.q-input,
.q-select,
.q-textarea {
  appearance: none;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .85rem 1rem;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.q-input::placeholder,
.q-textarea::placeholder { color: #9CA3AF; }

.q-input:focus-visible,
.q-select:focus-visible,
.q-textarea:focus-visible {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .18);
}

.q-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-inline-end: 2.6rem;
  cursor: pointer;
}
html[dir="rtl"] .q-select { background-position: left 1rem center; }

.q-textarea { min-height: 150px; resize: vertical; }

/* Error state — add .has-error to the .q-field */
.q-error {
  display: none;
  font-size: .82rem;
  font-weight: 600;
  color: var(--pink);
}
.q-field.has-error .q-error { display: block; }
.q-field.has-error .q-input,
.q-field.has-error .q-select,
.q-field.has-error .q-textarea {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, .14);
}

/* Consent checkbox row */
.q-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .86rem;
  color: var(--muted);
  cursor: pointer;
}
.q-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: .15em 0 0;
  accent-color: var(--indigo);
}
.q-check a { color: var(--indigo); font-weight: 600; }
.q-check a:hover { text-decoration: underline; }

.q-form .btn { justify-self: start; }
.q-form-note { font-size: .84rem; color: var(--muted); }

/* Honeypot — offscreen on the inline-start side (never inline-end: RTL). */
.q-hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

/* Success tile — pairs with avatar-celebrate */
.q-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-2);
  padding: clamp(36px, 6vw, 56px) 28px;
  background: var(--lav);
  border-color: #E2E8FA;
}
.q-form-success h3 { font-size: 1.35rem; font-weight: 700; }
.q-form-success p { color: var(--muted); max-width: 46ch; }
.q-form-success .q-avatar-float { margin-block-end: var(--sp-1); }

/* ----------------------------------------------------------------------------
   16) CONTACT TOPICS  (.q-topics)
   --------------------------------------------------------------------------*/
.q-topics { grid-template-columns: repeat(2, 1fr); }

.q-topic {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 150px;
}
.q-topic-title { font-size: 1.1rem; font-weight: 700; }
.q-topic-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .76rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(17, 24, 39, .08);
  border-radius: 999px;
  padding: .34rem .8rem;
  white-space: nowrap;
}
.q-topic-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--indigo);
}

/* ----------------------------------------------------------------------------
   17) LEGAL PAGES  (.q-legal)
   --------------------------------------------------------------------------*/
.q-legal {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-block: var(--sp-5) var(--sp-6);
}
.q-legal-head h1 {
  font-size: clamp(1.9rem, 1rem + 2.2vw, 2.6rem);
  font-weight: 800;
}
.q-legal-updated {
  display: inline-block;
  margin-block-start: var(--sp-3);
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .85rem;
}
.q-legal-intro {
  margin-block-start: var(--sp-4);
  font-size: 1.05rem;
  color: #374151;
  max-width: 68ch;
}
.q-legal-section { margin-block-start: var(--sp-5); }
.q-legal-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  padding-block-start: var(--sp-3);
  border-block-start: 1px solid var(--line);
}
.q-legal-section p {
  margin-block-start: var(--sp-2);
  color: #374151;
  max-width: 68ch;
}

/* ----------------------------------------------------------------------------
   18) 404  (.q-404)
   --------------------------------------------------------------------------*/
.q-404 {
  position: relative;
  z-index: 1;
  padding-block: var(--sp-5) var(--sp-6);
}
.q-404-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding: clamp(40px, 7vw, 72px) 28px;
}
.q-404-art { width: min(440px, 82%); height: auto; }
.q-404-tile h1 {
  font-size: clamp(1.9rem, 1rem + 2.4vw, 2.7rem);
  font-weight: 800;
}
.q-404-tile p { color: var(--muted); max-width: 46ch; }
.q-404-tile .btn { margin-block-start: var(--sp-2); }

/* ----------------------------------------------------------------------------
   19) FOOTER
   --------------------------------------------------------------------------*/
.site-footer {
  margin-block-start: var(--sp-7);
  background: #fff;
  border-block-start: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr .8fr 1.2fr;
  gap: var(--sp-5);
  padding-block: var(--sp-6) var(--sp-5);
}
.footer-brand p {
  color: var(--muted);
  font-size: .92rem;
  max-width: 34ch;
  margin-block-start: var(--sp-3);
}
.footer-col { display: flex; flex-direction: column; gap: .65rem; }
.footer-col h4 {
  font-family: var(--q-font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: var(--q-track-wide);
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 .35rem;
}
.footer-col a { font-size: .92rem; color: var(--muted); transition: color .2s ease; width: fit-content; }
.footer-col a:hover { color: var(--ink); }

.socials { display: flex; gap: 10px; margin-block-start: .5rem; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease, transform .25s ease;
}
.socials a:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

.footer-bottom {
  border-block-start: 1px solid var(--line);
  padding-block: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
}
.footer-bottom p { font-size: .84rem; color: var(--muted); }

/* ----------------------------------------------------------------------------
   20) SCROLL REVEAL
   Hidden state applies ONLY under html.js (added by main.js) so content is
   fully visible when JS is absent/blocked. Reduced motion never hides.
   --------------------------------------------------------------------------*/
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal],
  html.js .q-reveal { opacity: 0; }

  html.js [data-reveal].revealed,
  html.js .q-reveal.revealed {
    opacity: 1;
    animation: q-rise .65s cubic-bezier(.22, .61, .36, 1);
  }
  @keyframes q-rise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
  }
}

/* ----------------------------------------------------------------------------
   21) RESPONSIVE
   --------------------------------------------------------------------------*/
@media (max-width: 1200px) {
  .hero-bento { grid-auto-rows: minmax(160px, auto); }
  .tile-main { padding: 34px; }
}

@media (max-width: 900px) {
  .header-inner { height: 66px; }
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    inset-block-start: calc(100% + 8px);
    inset-inline: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lift);
    padding: 14px;
    display: none;
  }
  .menu-open .site-nav { display: flex; }
  .nav-link { padding: .7rem .9rem; border-radius: 12px; font-size: 1rem; color: var(--ink); }
  .nav-link:hover { background: var(--bg); }
  .site-nav .lang-pills,
  .site-nav .q-langs {
    align-self: flex-start;
    margin-block: 6px;
    margin-inline-start: 8px;
  }
  .site-nav .btn { justify-content: center; }

  .hero-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .tile-main,
  .tile-lav, .tile-peach, .tile-pink, .tile-cyan,
  .tile-grad { grid-column: auto; grid-row: auto; }
  .tile-main { grid-column: 1 / -1; }
  .tile-grad { grid-column: 1 / -1; }
  .hero-bento .q-hero-media { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .tile-lav, .tile-peach, .tile-pink, .tile-cyan { min-height: 185px; }

  .grid-6 { grid-template-columns: 1fr 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4 { grid-column: 1 / -1; }

  .stats-tile { grid-template-columns: 1fr 1fr; gap: var(--sp-4); padding: 32px 24px; }
  .stat + .stat { border-inline-start: 0; }
  .stat:nth-child(even) { border-inline-start: 1px solid var(--line); }

  .section { padding-block-start: var(--sp-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .q-page-hero-grid { grid-template-columns: 1fr; }
  .q-page-hero-text { padding: 32px 28px; }
  .q-page-hero-media { min-height: 0; aspect-ratio: 16 / 10; }

  .q-avatar-lg { width: 220px; }
}

@media (max-width: 600px) {
  .container { padding-inline: 16px; }

  .hero { padding-block-start: var(--sp-4); }
  .hero-bento, .grid-6 { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: 1 / -1; }
  .tile-lav, .tile-peach, .tile-pink, .tile-cyan { min-height: 0; }

  .tile { padding: 24px; }
  .tile-main, .careers-tile { padding: 28px 24px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .tile-grad { padding: 26px 24px; }
  .tile-grad .btn { width: 100%; justify-content: center; }

  .stats-tile { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .stat { padding-inline: 6px; }

  .bg-decor::after { display: none; }

  .q-form-row { grid-template-columns: 1fr; }
  .q-form .btn { justify-self: stretch; justify-content: center; }
  .q-topics { grid-template-columns: 1fr; }
  .q-role-link { padding: 1rem 1.1rem; }
  .q-avatar-md { width: 150px; }
  .q-avatar-lg { width: 180px; }
}

/* ----------------------------------------------------------------------------
   22) REDUCED MOTION — kill all animation, keep everything visible
   --------------------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal], .q-reveal { opacity: 1 !important; }
  .q-hero-media .q-hero-video { display: none; } /* poster only */
}

/* ----------------------------------------------------------------------------
   22b) TEMPLATE COMPOSITES — tiny additions from the template pass for
   patterns the inventory didn't cover. Composable utilities only.
   --------------------------------------------------------------------------*/
/* Center-stage tile content (avatar accent tiles, etc.). */
.q-tile-center {
  margin: 0; /* templates use it on <figure> */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-3);
}

/* Small illustration inside a bento tile (pillar / brand art). */
.q-tile-art {
  width: min(150px, 42%);
  height: auto;
  border-radius: 18px;
}

/* Form error banner (?err=code) — standalone, unlike .q-error (per-field). */
.q-form-alert {
  background: var(--rose);
  border: 1px solid #F9E3EF;
  color: #BE185D;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 14px;
  padding: .85rem 1.1rem;
}

/* Role-row CTA label ("Start the quiz") sits before the arrow glyph.
   Kept out of .q-role-arrow so the RTL scaleX(-1) never mirrors text. */
.q-role-cta {
  margin-inline-start: auto;
  font-size: .84rem;
  font-weight: 700;
  color: var(--indigo);
  white-space: nowrap;
}
.q-role-cta + .q-role-arrow { margin-inline-start: 0; }

/* ----------------------------------------------------------------------------
   23) PRINT
   --------------------------------------------------------------------------*/
@media print {
  .site-header, .nav-toggle, .q-skip-link,
  .lang-pills, .q-langs, .bg-decor, .q-decor,
  .q-hero-video, .socials, .cta-tile, .site-footer .footer-grid {
    display: none !important;
  }
  body { background: #fff; color: #000; overflow-x: visible; }
  .tile, .q-role-link {
    box-shadow: none !important;
    border-color: #ddd !important;
    break-inside: avoid;
  }
  .section, .site-footer { content-visibility: visible; }
  .grad-text, .q-grad {
    background: none;
    color: #000;
    -webkit-text-fill-color: currentColor;
  }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
