/* ==========================================================================
   QM Consulting — home page components
   ========================================================================== */

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding: calc(var(--hdr-h) + 64px) 0 96px;
}
.hero__dots, .shero__dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(14, 15, 18, .2) 1.3px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero__blob, .shero__blob {
  position: absolute; width: min(46vw, 640px); aspect-ratio: 1; right: -6vw; top: 12%;
  background: var(--volt); border: 2px solid var(--ink); pointer-events: none;
  animation: blob-morph 14s ease-in-out infinite;
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero__copy .eyebrow { margin-bottom: 28px; background: var(--paper); }
.hero h1 { font-size: clamp(3rem, 7.2vw, 7.6rem); }
.hero h1 .serif-i { font-size: 1.08em; }
.hero .lead { margin-top: 30px; max-width: 46ch; }
.hero .btn-row { margin-top: 38px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 42px; }
.hero__facts a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--white); font-family: var(--f-mono); font-size: .8rem;
  transition: transform .4s var(--spring), background-color .3s;
}
.hero__facts a:hover { transform: translateY(-4px) rotate(-2deg); background: var(--volt); }
.hero__facts b { font-family: var(--f-display); font-size: 1rem; }
.hero__art { position: relative; z-index: 1; }
.hero__art .ill { filter: drop-shadow(0 30px 40px rgba(14, 15, 18, .12)); }
.hero__badge { position: absolute; left: -4%; bottom: 4%; z-index: 3; color: var(--ink); }
.hero__badge .badge-rot__center { background: var(--ember); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
}
.mouse { width: 24px; height: 38px; border: 2px solid var(--ink); border-radius: 14px; position: relative; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ember); animation: wheel 1.6s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 3; padding-block: 34px; overflow: hidden; }
.marquee__band { border-block: 2px solid var(--ink); padding: 18px 0; transform: rotate(-2deg) scale(1.04); background: var(--volt); }
.marquee__band--rev { transform: rotate(1.6deg) scale(1.04); margin-top: -14px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee__band--rev .marquee__track { animation: marquee-rev 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; transform: skewX(var(--sk, 0deg)); transition: transform .35s var(--ease); }
.marquee__item {
  display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; white-space: nowrap;
  font-size: clamp(1.5rem, 3.4vw, 3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1;
}
.marquee__item em { font-family: var(--f-serif); font-weight: 400; }
.marquee__star { width: .8em; height: .8em; animation: spin 6s linear infinite; flex: none; }
.marquee__star path { fill: var(--ember); stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; }
.marquee__band--rev .marquee__star path { fill: var(--volt); stroke: none; }

/* ---------- section head ---------- */
.shead { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 32px 60px; margin-bottom: clamp(48px, 6vw, 84px); position: relative; }
.shead .eyebrow { margin-bottom: 26px; }
.shead .lead { justify-self: end; }
.shead--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.shead--center .lead { justify-self: center; }

/* ---------- services ---------- */
.services { overflow: hidden; }
.services .sticker--star { width: 90px; right: 6%; top: 70px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-grid--extra { margin-top: 20px; }
.svc-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 470px; padding: clamp(22px, 2.4vw, 32px);
  border: 2px solid var(--ink); border-radius: var(--r-lg); color: var(--ink);
  cursor: pointer;
}
.js .tilt-ready[data-reveal].is-in {
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, opacity .9s var(--ease);
  transition-delay: 0s;
}
.svc-card--volt { background: var(--volt); }
.svc-card--paper { background: var(--sky); }
.svc-card--ember { background: var(--ember); }
.svc-card--dark { background: var(--ink-2); color: var(--paper); border-color: var(--ink-3); min-height: 320px; }
.svc-card--featured:hover { box-shadow: 10px 10px 0 var(--paper); }
.svc-card--dark:hover { border-color: var(--volt); }
.svc-card__glow {
  position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .6), transparent 45%);
}
.svc-card--dark .svc-card__glow { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 255, 63, .16), transparent 45%); }
.svc-card:hover .svc-card__glow { opacity: 1; }
.svc-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-card__num { font-family: var(--f-mono); font-size: .85rem; font-weight: 600; }
.svc-card__icon {
  width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center;
  background: var(--ink); color: var(--volt); transition: transform .7s var(--spring), border-radius .5s;
}
.svc-card__icon .ico { width: 30px; height: 30px; stroke-width: 1.8; }
.svc-card--dark .svc-card__icon { background: var(--volt); color: var(--ink); width: 56px; height: 56px; }
.svc-card:hover .svc-card__icon { transform: rotate(-14deg) scale(1.12); border-radius: 50%; }
.svc-card__title { margin-top: auto; padding-top: 40px; font-size: clamp(1.9rem, 2.7vw, 2.7rem); font-weight: 700; line-height: .98; letter-spacing: -.04em; font-variation-settings: "wdth" 88; }
.svc-card--dark .svc-card__title { font-size: clamp(1.5rem, 2vw, 1.95rem); }
.svc-card__desc { margin-top: 14px; font-size: 1rem; line-height: 1.5; opacity: .82; max-width: 36ch; }
.svc-card__bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 26px; padding-top: 20px; border-top: 1.5px solid rgba(14, 15, 18, .25); }
.svc-card--dark .svc-card__bottom { border-top-color: var(--line-d); }
.svc-card__price { display: grid; font-size: clamp(1.7rem, 2.3vw, 2.2rem); font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.svc-card--dark .svc-card__price { font-size: 1.4rem; }
.svc-card__price small { font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin-bottom: 8px; }
.svc-card__arrow {
  width: 58px; height: 58px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; flex: none;
  transition: transform .6s var(--spring), background-color .3s, color .3s, border-color .3s;
}
.svc-card__arrow .ico { width: 24px; height: 24px; }
.svc-card:hover .svc-card__arrow { transform: rotate(45deg); background: var(--ink); color: var(--volt); border-color: var(--ink); }
.svc-card--dark:hover .svc-card__arrow { background: var(--volt); color: var(--ink); border-color: var(--volt); }

/* mini service cards (service pages) */
.svc-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.svc-mini {
  --rx: 0deg; --ry: 0deg;
  display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r); border: 1.5px solid var(--line-d);
  background: var(--ink-2); color: var(--paper); cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.svc-mini:hover { border-color: var(--volt); }
.svc-mini__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--volt); color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .6s var(--spring); }
.svc-mini:hover .svc-mini__icon { transform: rotate(-12deg) scale(1.08); }
.svc-mini__body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.svc-mini__num { font-family: var(--f-mono); font-size: .7rem; color: var(--muted-d); }
.svc-mini__title { font-weight: 650; line-height: 1.2; }
.svc-mini__price { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-d); }
.svc-mini__price b { color: var(--volt); font-weight: 600; }
.svc-mini__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-d); display: grid; place-items: center; flex: none; transition: transform .5s var(--spring), background-color .3s, color .3s; }
.svc-mini:hover .svc-mini__arrow { transform: rotate(45deg); background: var(--volt); color: var(--ink); }

/* ---------- process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process__line { position: absolute; left: 0; right: 0; top: 10px; width: 100%; height: 70px; overflow: visible; pointer-events: none; }
.process__line path { fill: none; stroke-width: 3; stroke-linecap: round; }
.process__line .bg { stroke: var(--line); }
.process__line .fg { stroke: var(--ink); stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.step { position: relative; padding-top: 118px; }
.step__num {
  position: absolute; top: 0; left: 0; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 2px solid var(--ink); box-shadow: var(--hard);
  font-size: 1.7rem; font-weight: 750; letter-spacing: -.04em;
  transition: background-color .5s, transform .8s var(--spring);
}
.step.is-lit .step__num { background: var(--volt); transform: rotate(-8deg) scale(1.06); }
.step__num::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px dashed var(--ink);
  opacity: 0; transition: opacity .5s; animation: spin 12s linear infinite;
}
.step.is-lit .step__num::after { opacity: .5; }
.step__chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--volt); }
.step__chip .ico { width: 14px; height: 14px; }
.step h3 { margin-top: 18px; }
.step p { margin-top: 10px; color: var(--muted); }
.process-wrap { position: relative; }
.process-wrap .squiggle { width: 180px; right: 2%; top: -110px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(230px, auto); gap: 18px; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: clamp(20px, 2.2vw, 28px); border: 2px solid var(--ink); border-radius: var(--r-lg); background: var(--white);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { transform: translate(-5px, -5px); box-shadow: var(--hard-lg); }
.tile h3 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; }
.tile p { margin-top: 8px; font-size: .96rem; line-height: 1.5; color: var(--muted); }
.tile--dark { background: var(--ink); color: var(--paper); }
.tile--dark p { color: var(--muted-d); }
.tile--volt { background: var(--volt); }
.tile--volt p { color: #3c4020; }
.tile--sky { background: var(--sky); }
.tile--sky p { color: #26304a; }
.tile--ember { background: var(--ember); }
.tile--ember p { color: #3a1608; }
.tile--w2 { grid-column: span 2; }
.tile--h2 { grid-row: span 2; }
.tile__art { position: relative; height: 110px; display: flex; align-items: center; }
.tile--h2 .tile__art { height: auto; flex: 1; justify-content: center; min-height: 220px; }
.tile__big { font-size: clamp(3.4rem, 6vw, 5.6rem); font-weight: 800; letter-spacing: -.03em; line-height: .9; font-variation-settings: "wdth" 80; }
.tile .ill { max-height: 100%; }

/* chat bubbles */
.chat { display: grid; gap: 8px; width: 100%; }
.chat__b { max-width: 80%; padding: 9px 14px; border-radius: 16px 16px 16px 4px; border: 1.5px solid var(--ink); background: var(--paper); font-size: .86rem; line-height: 1.3; animation: float-sm 4s ease-in-out infinite; }
.chat__b--me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--volt); animation-delay: -1.5s; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: wave 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }

/* toggles */
.toggles { display: grid; gap: 10px; width: 100%; }
.tgl { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.tgl__sw { width: 50px; height: 28px; border-radius: 999px; border: 1.5px solid var(--ink); position: relative; animation: toggle-bg 4s var(--ease-io) infinite; }
.tgl__sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--ink); animation: toggle 4s var(--spring) infinite; }
.tgl:nth-child(2) .tgl__sw, .tgl:nth-child(2) .tgl__sw::after { animation-delay: -1.3s; }
.tgl:nth-child(3) .tgl__sw, .tgl:nth-child(3) .tgl__sw::after { animation-delay: -2.6s; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 2.6vw, 34px);
  border: 2px solid var(--ink); border-radius: var(--r-lg); background: var(--white);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.plan:hover { transform: translate(-5px, -5px); box-shadow: var(--hard-lg); }
.plan--volt { background: var(--volt); }
.plan--dark { background: var(--ink); color: var(--paper); }
.plan--dark:hover { box-shadow: 9px 9px 0 var(--ember); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan__name { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.plan__time { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .74rem; padding: 5px 10px; border-radius: 999px; border: 1.5px solid currentColor; }
.plan__time .ico { width: 14px; height: 14px; animation: spin 8s linear infinite; }
.plan__title { font-size: clamp(1.5rem, 2vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.plan__price { display: flex; align-items: baseline; gap: 10px; font-size: clamp(3rem, 4.6vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; line-height: .9; font-variation-settings: "wdth" 80; }
.plan__price small { font-family: var(--f-mono); font-size: .76rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.plan__list { display: grid; gap: 11px; padding-top: 22px; border-top: 1.5px dashed currentColor; flex: 1; }
.plan__list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.4; font-size: .98rem; }
.plan__check { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--ink); color: var(--volt); display: grid; place-items: center; margin-top: 1px; }
.plan--dark .plan__check { background: var(--volt); color: var(--ink); }
.plan__check .ico { width: 13px; height: 13px; stroke-width: 3; }
.plan__check path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + .3s); }
.is-in .plan__check path { stroke-dashoffset: 0; }
.plan__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.plan__more { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.plans-note { margin-top: 28px; text-align: center; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--hdr-h) + 40px); }
.faq__side .lead { margin-top: 22px; }
.faq__side .btn { margin-top: 30px; }
.faq__qmark { font-family: var(--f-serif); font-style: italic; font-size: clamp(8rem, 16vw, 15rem); line-height: .8; color: var(--ember); display: inline-block; margin-top: 30px; animation: bob 5s ease-in-out infinite; -webkit-text-stroke: 2px var(--ink); }
.faq__item { border-top: 1.5px solid var(--ink); }
.faq__item:last-child { border-bottom: 1.5px solid var(--ink); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left;
  padding: 26px 0; font-size: clamp(1.1rem, 1.6vw, 1.42rem); font-weight: 620; letter-spacing: -.02em; line-height: 1.25;
}
.faq__q:hover { color: #3b3b36; }
.faq__icon { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: transform .6s var(--spring), background-color .3s; }
.faq__q:hover .faq__icon { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { transform: rotate(135deg); background: var(--volt); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 60px 28px 0; color: var(--muted); max-width: 64ch; }

/* ---------- talk band ---------- */
.talk { position: relative; overflow: hidden; background: var(--volt); border-block: 2px solid var(--ink); padding-block: clamp(70px, 9vw, 120px); }
.talk__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.talk .lead { color: #3c4020; margin-top: 20px; }
.talk__links { display: grid; gap: 16px; }
.talk__link {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border: 2px solid var(--ink); border-radius: var(--r);
  background: var(--white); box-shadow: var(--hard); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.talk__link:hover { transform: translate(-4px, -4px); box-shadow: var(--hard-lg); }
.talk__ic { width: 54px; height: 54px; border-radius: 16px; background: var(--ink); color: var(--volt); display: grid; place-items: center; flex: none; }
.talk__ic .ico { width: 24px; height: 24px; }
.talk__link:hover .talk__ic { animation: wobble .6s ease-in-out 2; }
.talk__txt { display: grid; min-width: 0; }
.talk__txt small { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.talk__txt b { font-size: clamp(1.05rem, 1.8vw, 1.45rem); letter-spacing: -.02em; overflow-wrap: anywhere; }
.talk .badge-rot { position: absolute; right: 4%; top: 12%; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; margin: 20px auto 0; width: 100%; }
  .hero__blob { width: 80vw; right: -30vw; top: 45%; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid--featured .svc-card:first-child { grid-column: span 2; min-height: 380px; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .process__line { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .faq { grid-template-columns: 1fr; }
  .faq__side { position: relative; top: 0; }
  .faq__qmark { display: none; }
  .talk__grid { grid-template-columns: 1fr; }
  .talk .badge-rot { display: none; }
  .shead { grid-template-columns: 1fr; }
  .shead .lead { justify-self: start; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--hdr-h) + 48px); }
  .hero__scroll { display: none; }
  .hero__badge { left: auto; right: 0; bottom: -4%; }
  .svc-grid, .svc-grid--featured { grid-template-columns: 1fr; }
  .svc-grid--featured .svc-card:first-child { grid-column: auto; }
  .svc-card { min-height: 400px; }
  .process { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile--w2 { grid-column: auto; }
  .tile--h2 { grid-row: auto; }
  .faq__a p { padding-right: 0; }
  .services .sticker--star { width: 60px; top: 30px; }
  .sticker.plus-sign, .sticker.ring-dot { display: none; }
  .svc-card--dark { min-height: 0; }
  .svc-card--dark .svc-card__title { padding-top: 28px; }
}
