/* ==========================================================================
   QM Consulting — base: tokens, reset, type, buttons, header, footer
   NOTE: animations are intentionally NOT disabled for prefers-reduced-motion
   (client requirement: motion must always be visible).
   ========================================================================== */

:root {
  --ink: #0e0f12;
  --ink-2: #17191f;
  --ink-3: #262932;
  --paper: #f4f0e6;
  --paper-2: #e9e3d4;
  --white: #fffdf8;
  --volt: #d4ff3f;
  --volt-2: #bdf01c;
  --ember: #ff5c28;
  --sky: #8fb3ff;
  --muted: #595851;
  --muted-d: #a9a79f;
  --line: rgba(14, 15, 18, .14);
  --line-d: rgba(244, 240, 230, .14);

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --r-sm: 12px;
  --r: 22px;
  --r-lg: 34px;
  --hard: 5px 5px 0 var(--ink);
  --hard-lg: 9px 9px 0 var(--ink);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --hdr-h: 76px;

  --z-sticker: 1;
  --z-hdr: 50;
  --z-mnav: 45;
  --z-cookie: 60;
  --z-cursor: 90;
  --z-curtain: 100;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--volt); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--volt); padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; position: relative; }
.section { position: relative; padding-block: clamp(84px, 11vw, 168px); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--tight { padding-block: clamp(56px, 7vw, 100px); }
.section--flush-top { padding-top: 0; }

[id] { scroll-margin-top: calc(var(--hdr-h) + 36px); }

/* ---------- typography ---------- */
.h-display {
  font-size: clamp(2.9rem, 8.4vw, 8.4rem);
  line-height: .92;
  letter-spacing: -.032em;
  font-weight: 700;
  font-variation-settings: "wdth" 84;
}
.h-xl {
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.03em;
  font-weight: 700;
  font-variation-settings: "wdth" 86;
}
.h-lg {
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 650;
  font-variation-settings: "wdth" 88;
}
.h-md { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.lead { font-size: clamp(1.08rem, 1.45vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.section--dark .lead { color: var(--muted-d); }
.serif-i { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-variation-settings: normal; }
.mono { font-family: var(--f-mono); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  padding: .45em .9em; border: 1.5px solid currentColor; border-radius: 999px;
}
.eyebrow--dark { color: var(--paper); }
.eyebrow--plain { border: 0; padding: 0; }

/* volt highlighter behind words */
.mark { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.mark::before {
  content: ""; position: absolute; z-index: -1; left: -.02em; right: -.02em; bottom: .08em; height: .4em;
  background: var(--volt); border-radius: .12em; transform: scaleX(0) rotate(-1.2deg); transform-origin: left;
  transition: transform 1s var(--ease) .6s;
}
.is-in .mark::before, .mark.is-in::before { transform: scaleX(1) rotate(-1.2deg); }
.mark--ember::before { background: var(--ember); }

/* ---------- buttons ---------- */
.btn {
  --tx: 0px; --ty: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .95em 1.55em;
  border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 650; font-size: 1rem; line-height: 1; letter-spacing: -.01em; white-space: nowrap;
  cursor: pointer;
  transform: translate(var(--tx), var(--ty));
  transition: transform .45s var(--ease), box-shadow .3s var(--ease), color .35s var(--ease), background-color .35s;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 140%; aspect-ratio: 1;
  border-radius: 50%; background: var(--ink);
  transform: translate(-50%, -50%) scale(0); transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.btn .ico { transition: transform .45s var(--spring); }
.btn:hover .ico { transform: rotate(45deg); }
.btn--sm { min-height: 44px; padding: .7em 1.15em; font-size: .92rem; }
.btn--volt { background: var(--volt); color: var(--ink); box-shadow: var(--hard); }
.btn--volt:hover { color: var(--volt); box-shadow: 2px 2px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::before { background: var(--volt); }
.btn--ink:hover { color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.section--dark .btn--ghost, .btn--ghost-light { color: var(--paper); border-color: var(--paper); }
.section--dark .btn--ghost::before, .btn--ghost-light::before { background: var(--paper); }
.section--dark .btn--ghost:hover, .btn--ghost-light:hover { color: var(--ink); }
.btn--ember { background: var(--ember); color: var(--ink); box-shadow: var(--hard); }
.btn--ember:hover { color: var(--ember); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* rolling link text — JS copies text into data-text */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; }
.roll > .roll__in { display: inline-block; transition: transform .5s var(--ease); }
.roll > .roll__in::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%; white-space: nowrap;
}
.roll:hover > .roll__in, .roll:focus-visible > .roll__in { transform: translateY(-100%); }

/* status pulse dot */
.pulse {
  position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #37d67a; flex: none;
}
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #37d67a;
  animation: pulse-ring 1.8s var(--ease) infinite;
}

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__mark svg { width: 100%; height: 100%; overflow: visible; }
.logo__bg { fill: var(--ink); }
.logo__q { stroke: var(--volt); stroke-width: 4; stroke-linecap: round; fill: none; }
.logo__orbit { fill: var(--ember); transform-origin: 20px 20px; animation: spin 4.5s linear infinite; }
.logo__word { font-size: 1.28rem; line-height: 1; display: inline-flex; align-items: baseline; gap: 3px; }
.logo__word em { font-family: var(--f-serif); font-weight: 400; font-size: 1.12em; letter-spacing: -.01em; }
.logo:hover .logo__orbit { animation-duration: 1s; }
.logo--light .logo__bg { fill: var(--volt); }
.logo--light .logo__q { stroke: var(--ink); }
.logo--light { color: var(--paper); }

/* ---------- header ---------- */
.hdr {
  position: fixed; z-index: var(--z-hdr); top: 12px; left: 0; right: 0;
  transition: transform .6s var(--ease);
}
.hdr.is-hidden { transform: translateY(calc(-100% - 20px)); }
.hdr__bar {
  width: min(100% - 2 * var(--gutter) + 16px, var(--container) + 24px); margin-inline: auto;
  height: var(--hdr-h); padding: 0 12px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(244, 240, 230, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border: 1.5px solid transparent; border-radius: 999px;
  transition: border-color .4s, box-shadow .4s var(--ease), background-color .4s;
}
.hdr.is-scrolled .hdr__bar { border-color: var(--ink); box-shadow: var(--hard); background: rgba(244, 240, 230, .9); }
.hdr__nav { display: flex; align-items: center; gap: 4px; }
.hdr__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; font-weight: 550; font-size: .98rem;
  transition: background-color .25s;
}
.hdr__link:hover { background: rgba(14, 15, 18, .06); }
.hdr__link[aria-current="page"] { background: var(--ink); color: var(--paper); }
.hdr__right { display: flex; align-items: center; gap: 10px; }

/* dropdown */
.drop { position: relative; }
.drop__chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.drop__panel {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(640px, 90vw);
  padding: 12px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--white);
  box-shadow: var(--hard-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.97); transform-origin: top center;
  transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.drop__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.drop:hover .drop__panel, .drop.is-open .drop__panel, .drop:focus-within .drop__panel {
  opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s;
}
.drop:hover .drop__chev, .drop.is-open .drop__chev { transform: rotate(180deg); }
.drop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.drop__item {
  display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px;
  transition: background-color .25s, transform .35s var(--ease);
}
.drop__item:hover { background: var(--paper); transform: translateX(4px); }
.drop__item[aria-current="page"] { background: var(--paper); }
.drop__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1.5px solid var(--ink); flex: none; transition: transform .45s var(--spring); }
.drop__item:hover .drop__icon { transform: rotate(-10deg) scale(1.08); }
.drop__icon--volt { background: var(--volt); }
.drop__icon--paper { background: var(--sky); }
.drop__icon--ember { background: var(--ember); }
.drop__icon--dark { background: var(--ink); color: var(--volt); }
.drop__text { display: grid; line-height: 1.25; }
.drop__text b { font-weight: 650; font-size: .96rem; }
.drop__text small { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.drop__foot {
  margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .88rem;
}
.drop__foot span { display: inline-flex; align-items: center; gap: 10px; }
.drop__foot a { color: var(--volt); font-weight: 650; }

/* burger */
.burger {
  display: none; width: 52px; height: 52px; border-radius: 50%; background: var(--ink);
  position: relative; flex: none;
}
.burger span {
  position: absolute; left: 15px; right: 15px; height: 2.5px; border-radius: 2px; background: var(--volt);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:first-child { top: 20px; }
.burger span:last-child { top: 29px; }
.burger[aria-expanded="true"] span:first-child { top: 24.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 24.5px; transform: rotate(-45deg); }

/* mobile nav */
.mnav {
  position: fixed; inset: 0; z-index: var(--z-mnav); background: var(--ink); color: var(--paper);
  padding: calc(var(--hdr-h) + 48px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 50px) 50px);
  transition: clip-path .8s var(--ease-io), visibility 0s .8s; visibility: hidden;
}
.mnav.is-open { clip-path: circle(150% at calc(100% - 50px) 50px); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu-open .hdr__bar { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .hdr .logo { color: var(--paper); }
.menu-open .hdr .logo__bg { fill: var(--volt); }
.menu-open .hdr .logo__q { stroke: var(--ink); }
.mnav__blob {
  position: absolute; width: 60vw; height: 60vw; right: -20vw; bottom: -10vw; background: var(--volt);
  opacity: .12; filter: blur(40px); animation: blob-morph 9s ease-in-out infinite; pointer-events: none;
}
.mnav__inner { display: grid; gap: 6px; position: relative; }
.mnav__link {
  display: flex; align-items: baseline; gap: 14px; font-size: clamp(2.2rem, 10vw, 3.6rem); font-weight: 700;
  letter-spacing: -.04em; line-height: 1.05;
  opacity: 0; transform: translateY(40px); transition: opacity .5s, transform .7s var(--ease);
}
.mnav__link span { font-family: var(--f-mono); font-size: .8rem; color: var(--volt); letter-spacing: 0; }
.mnav__subs { display: grid; gap: 2px; padding: 4px 0 10px 34px; opacity: 0; transition: opacity .6s .3s; }
.mnav__sub { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; color: var(--muted-d); font-size: 1.05rem; }
.mnav__sub span { font-family: var(--f-mono); font-size: .72rem; color: var(--ember); }
.mnav__sub:hover, .mnav__sub[aria-current="page"] { color: var(--volt); }
.mnav.is-open .mnav__link { opacity: 1; transform: none; }
.mnav.is-open .mnav__subs { opacity: 1; }
.mnav.is-open .mnav__link:nth-child(1) { transition-delay: .2s; }
.mnav.is-open .mnav__link:nth-child(2) { transition-delay: .27s; }
.mnav.is-open .mnav__link:nth-child(4) { transition-delay: .34s; }
.mnav.is-open .mnav__link:nth-child(5) { transition-delay: .41s; }
.mnav__foot { display: grid; gap: 8px; margin-top: 32px; font-family: var(--f-mono); font-size: .9rem; color: var(--volt); position: relative; }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; padding-top: clamp(80px, 10vw, 140px); }
.ftr__cta { padding-bottom: clamp(60px, 8vw, 110px); border-bottom: 1px solid var(--line-d); }
.ftr__big {
  display: block; margin-top: 26px; font-size: clamp(3rem, 9.5vw, 9.6rem); font-weight: 700; line-height: .9;
  letter-spacing: -.035em; font-variation-settings: "wdth" 84;
}
.ftr__big-line { display: flex; align-items: center; flex-wrap: wrap; gap: .12em; }
.ftr__big .serif-i { color: var(--volt); }
.ftr__arrow {
  display: inline-grid; place-items: center; width: .85em; height: .85em; margin-left: .15em; border-radius: 50%;
  background: var(--volt); color: var(--ink); transition: transform .6s var(--spring), background-color .3s;
}
.ftr__arrow .ico { width: 50%; height: 50%; stroke-width: 2.4; }
.ftr__big:hover .ftr__arrow { transform: rotate(45deg) scale(1.08); background: var(--ember); }
.ftr__star { position: absolute; right: var(--gutter); top: 0; width: clamp(70px, 10vw, 140px); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-block: 64px; }
.ftr__about p { color: var(--muted-d); margin-top: 18px; max-width: 34ch; }
.ftr__clock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--f-mono); font-size: .82rem; }
.ftr__city { white-space: nowrap; }
.ftr__clock b { color: var(--volt); font-weight: 600; }
.ftr__clock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); animation: blink 1s steps(2) infinite; }
.ftr__h { font-family: var(--f-mono); font-size: .76rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-d); margin-bottom: 18px; }
.ftr__col ul { display: grid; gap: 10px; }
.ftr__col a { transition: color .25s; }
.ftr__col a:hover { color: var(--volt); }
.ftr__contact a, .ftr__addr { display: flex; gap: 12px; align-items: flex-start; }
.ftr__contact .ico { margin-top: .25em; color: var(--volt); }
.ftr__contact span { overflow-wrap: anywhere; }
.ftr__word {
  font-size: clamp(3.2rem, 14vw, 15rem); font-weight: 800; line-height: .86; letter-spacing: -.01em; white-space: nowrap;
  text-align: center; color: transparent; -webkit-text-stroke: 1.5px rgba(244, 240, 230, .28);
  font-variation-settings: "wdth" 75; padding-inline: 8px; user-select: none; overflow: hidden;
}
.ftr__word span { display: inline-block; transition: transform .6s var(--spring), color .3s, -webkit-text-stroke-color .3s; }
.ftr__word span:hover { transform: translateY(-14%) rotate(-4deg); color: var(--volt); -webkit-text-stroke-color: var(--volt); }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 28px 36px; font-size: .84rem; color: var(--muted-d); border-top: 1px solid var(--line-d); }
.ftr__legal p { max-width: 70ch; }
.ftr__legal nav { display: flex; flex-wrap: wrap; gap: 20px; }
.ftr__legal a:hover, .ftr__legal a[aria-current="page"] { color: var(--volt); }

/* ---------- responsive: header/footer ---------- */
@media (max-width: 1080px) {
  .hdr__nav { display: none; }
  .burger { display: block; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --hdr-h: 64px; }
  .hdr { top: 8px; }
  .hdr__cta { display: none; }
  .burger { width: 46px; height: 46px; }
  .burger span { left: 13px; right: 13px; }
  .burger span:first-child { top: 17px; }
  .burger span:last-child { top: 26px; }
  .burger[aria-expanded="true"] span:first-child, .burger[aria-expanded="true"] span:last-child { top: 21.5px; }
  .logo__word { font-size: 1.12rem; }
  .ftr__grid { grid-template-columns: 1fr; gap: 32px; }
  .ftr__legal { flex-direction: column; }
}
