/* ==========================================================
   common.css — shared across every page
   Design tokens, reset, base, container, section rhythm,
   buttons, cards/grids, modals & lead forms.
   Load order: common.css → header.css → footer.css → <page>.css
   ========================================================== */

:root {
  --bg: #ffffff;
  --bg-1: #f6f7f9;
  --bg-2: #eef1f5;
  --accent: #e8862e;
  --accent-2: #f2a93e;
  --gold: #1f8f3d;
  --gold-bright: #2fae4e;
  --paper: #0f1420;
  --mut: rgba(15, 20, 32, 1);
  --dim: rgba(15, 20, 32, .86);
  --line: rgba(15, 20, 32, .10);
  --line2: rgba(15, 20, 32, .16);
  --display: 'Inter Tight', sans-serif;
  --serif: 'Instrument Serif', serif;
  --body: 'Hanken Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --maxw: 100%;
  --section-space: 48px;   /* vertical padding of every .section */
}

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

/* NOTE: overflow is set on <html> only. If <body> also gets overflow
   (hidden/auto), body turns into a scroll container and the sticky
   header (position: sticky) stops sticking / disappears. */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;   /* no sideways scroll on mobile */
}

/* Locks page scroll while the mobile menu is open (set by js/header.js) */
html.no-scroll {
  overflow: hidden;
}

body {
  background: transparent;
  color: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

video {
  max-width: 100%;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 42px;
}

/* Full-page looping paper texture behind everything */
.bg-paper-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Section rhythm: every section = 3rem top/bottom ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-space) 0;
  background: transparent;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 90vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line2), transparent);
  opacity: .5;
}

.section--alt::before {
  display: none;
}

@media (max-width: 700px) {
  .container {
    padding: 0 18px;
  }

  .section h2 {
  }
}

/* ---------- Shared components ---------- */
.crumb {
  font-family: var(--mono);
  font-size: calc(clamp(0.7188rem, calc(0.6875rem + 0.139vw), 0.8125rem) + var(--fs-boost, 0px));
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 22px;
  display: flex;
  gap: 9px;
  align-items: center;
}

.crumb a:hover {
  color: var(--gold);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: calc(clamp(0.9062rem, calc(0.7917rem + 0.509vw), 1.25rem) + var(--fs-boost, 0px));
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.eyebrow span {
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: .5;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: calc(clamp(0.7812rem, calc(0.7188rem + 0.278vw), 0.9688rem) + var(--fs-boost, 0px));
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 12px;
  transition: transform .18s,box-shadow .18s,background .2s;
}

.btn span {
  font-family: var(--mono);
}

.btn--primary {
  background: linear-gradient(160deg,#ffb673,var(--accent) 55%,#c96a1c);
  color: #fff;
  box-shadow: 0 10px 26px rgba(232,134,46,.42),inset 0 1px 0 rgba(255,255,255,.55),inset 0 -2px 5px rgba(0,0,0,.16);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(232,134,46,.5),inset 0 1px 0 rgba(255,255,255,.6),inset 0 -2px 5px rgba(0,0,0,.16);
}

.btn--ghost {
  background: rgba(255,255,255,.5);
  color: var(--paper);
  border: 1px solid var(--line2);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(47,174,78,.08);
}

.section--alt::before {
  display: none;
}

.sec-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sec-head--left {
  margin: 0 0 48px;
  text-align: left;
  align-items: flex-start;
}

.sec-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: calc(clamp(1.5rem, 3.056vw, 2.75rem) + var(--fs-boost, 0px));
  line-height: 1.1;
  letter-spacing: -.025em;
}

.sec-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.sec-head p {
  color: var(--mut);
  font-size: calc(clamp(1rem, calc(0.9271rem + 0.324vw), 1.219rem) + var(--fs-boost, 0px));
  line-height: 1.6;
  max-width: 60ch;
}

.section--alt .grid-3 {
  counter-reset: uc;
}

.section--alt .grid-3 .card {
  counter-increment: uc;
  padding-top: 48px;
}

.section--alt .grid-3 .card::before {
  content: counter(uc,decimal-leading-zero);
  position: absolute;
  top: 22px;
  left: 24px;
  font-family: var(--mono);
  font-size: calc(clamp(0.7188rem, calc(0.6875rem + 0.139vw), 0.8125rem) + var(--fs-boost, 0px));
  letter-spacing: .14em;
  color: var(--c,var(--accent));
}

.section--alt .grid-3 .card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--c,var(--accent));
  opacity: .55;
  transition: width .3s;
}

.section--alt .grid-3 .card:hover::after {
  width: 54px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3,1fr);
}

.grid-2 {
  grid-template-columns: repeat(2,1fr);
}

.grid-4 {
  grid-template-columns: repeat(4,1fr);
}

.card {
  position: relative;
  background: linear-gradient(165deg,rgba(255,255,255,.9),rgba(255,255,255,.55));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset,0 10px 28px rgba(15,20,32,.05);
  transition: border-color .25s,transform .25s,box-shadow .25s;
}

.card:hover {
  border-color: color-mix(in srgb,var(--c,var(--accent)) 50%,transparent);
  transform: translateY(-5px);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset,0 20px 40px rgba(15,20,32,.12);
}

.card__ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(160deg,color-mix(in srgb,var(--c,var(--accent)) 70%,#fff),var(--c,var(--accent)));
  box-shadow: 0 6px 14px color-mix(in srgb,var(--c,var(--accent)) 35%,transparent),inset 0 1px 0 rgba(255,255,255,.5);
}

.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(clamp(0.9062rem, calc(0.7917rem + 0.509vw), 1.25rem) + var(--fs-boost, 0px));
  letter-spacing: -.01em;
  margin-bottom: 8px;
}

.card p {
  font-size: calc(clamp(0.7812rem, calc(0.7188rem + 0.278vw), 0.9688rem) + var(--fs-boost, 0px));
  line-height: 1.55;
  color: var(--mut);
}

.kicker {
  font-family: var(--mono);
  font-size: calc(clamp(0.7812rem, calc(0.7292rem + 0.231vw), 0.9375rem) + var(--fs-boost, 0px));
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.frow--rev .frow__media {
  order: -1;
}

.frow__media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line2);
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.frow h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(clamp(1.188rem, 2.153vw, 1.938rem) + var(--fs-boost, 0px));
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.frow h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.frow p {
  color: var(--mut);
  font-size: calc(clamp(0.875rem, calc(0.8125rem + 0.278vw), 1.062rem) + var(--fs-boost, 0px));
  line-height: 1.65;
  margin-bottom: 14px;
}

.ticklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.ticklist li {
  display: flex;
  gap: 11px;
  font-size: calc(clamp(0.8438rem, calc(0.7812rem + 0.278vw), 1.031rem) + var(--fs-boost, 0px));
  color: var(--paper);
  line-height: 1.5;
}

.ticklist li i {
  color: var(--accent);
  font-style: normal;
  flex: none;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  text-align: center;
  align-items: end;
}

.stat__n {
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(clamp(1.812rem, 3.680vw, 3.312rem) + var(--fs-boost, 0px));
  letter-spacing: -.02em;
  color: var(--paper);
}

.stat__n em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}

.stats>div {
  display: flex;
  flex-direction: column;
}

.stat__l {
  font-size: calc(clamp(0.9375rem, calc(0.875rem + 0.278vw), 1.125rem) + var(--fs-boost, 0px));
  color: var(--mut);
  line-height: 1.45;
  margin-top: 8px;
}

.ctaband {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line2);
  padding: 60px 50px;
  text-align: center;
  background: radial-gradient(ellipse 80% 120% at 50% 0%,rgba(232,134,46,.34),transparent 65%),radial-gradient(ellipse 80% 120% at 100% 100%,rgba(47,174,78,.24),transparent 65%),linear-gradient(165deg,rgba(255,255,255,.95),var(--bg-1));
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset,0 24px 50px rgba(15,20,32,.08);
}

.ctaband h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(clamp(1.469rem, 2.639vw, 2.375rem) + var(--fs-boost, 0px));
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}

.ctaband h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.ctaband p {
  color: var(--mut);
  font-size: calc(clamp(0.9375rem, calc(0.875rem + 0.278vw), 1.125rem) + var(--fs-boost, 0px));
  max-width: 56ch;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.uc {
  position: relative;
  background: linear-gradient(165deg,rgba(255,255,255,.9),rgba(255,255,255,.55));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset,0 10px 28px rgba(15,20,32,.05);
  transition: border-color .25s,transform .25s,box-shadow .25s;
}

.uc:hover {
  border-color: color-mix(in srgb,var(--c) 55%,transparent);
  transform: translateY(-5px);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset,0 20px 40px rgba(15,20,32,.12);
}

.uc__metric {
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(clamp(1.312rem, 2.361vw, 2.125rem) + var(--fs-boost, 0px));
  letter-spacing: -.025em;
  color: var(--c);
  line-height: 1;
  margin-bottom: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.uc__metric span {
  font-family: var(--mono);
  font-size: calc(clamp(0.6875rem, calc(0.6771rem + 0.046vw), 0.7188rem) + var(--fs-boost, 0px));
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 400;
}

.uc h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(clamp(0.9375rem, calc(0.875rem + 0.278vw), 1.125rem) + var(--fs-boost, 0px));
  letter-spacing: -.01em;
  margin-bottom: 7px;
}

.uc p {
  font-size: calc(clamp(0.7812rem, calc(0.7292rem + 0.231vw), 0.9375rem) + var(--fs-boost, 0px));
  line-height: 1.55;
  color: var(--mut);
}

.exec {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}

.exec__card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
  background: linear-gradient(180deg,rgba(15,20,32,.03),rgba(15,20,32,.008));
  position: relative;
  overflow: hidden;
}

.exec__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: .6;
}

.exec__role {
  font-family: var(--mono);
  font-size: calc(clamp(0.6875rem, calc(0.6667rem + 0.093vw), 0.75rem) + var(--fs-boost, 0px));
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 6px 0 10px;
}

.exec__card h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(clamp(0.9375rem, calc(0.875rem + 0.278vw), 1.125rem) + var(--fs-boost, 0px));
  margin-bottom: 7px;
  color: var(--paper);
}

.exec__card p {
  font-size: calc(clamp(0.7812rem, calc(0.7292rem + 0.231vw), 0.9375rem) + var(--fs-boost, 0px));
  line-height: 1.55;
  color: var(--mut);
}

.shots {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}

.shots image-slot {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
}

@media (max-width:960px) {
  .exec {
    grid-template-columns: 1fr 1fr;
  }

  .shots {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:600px) {
  .exec {
    grid-template-columns: 1fr;
  }

  .shots {
    grid-template-columns: 1fr;
  }
}

.faq {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg,rgba(255,255,255,.9),rgba(255,255,255,.55));
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset,0 6px 18px rgba(15,20,32,.04);
  transition: border-color .2s,box-shadow .2s;
}

.faq details[open] {
  border-color: var(--line2);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset,0 14px 30px rgba(15,20,32,.08);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(clamp(0.9062rem, calc(0.8438rem + 0.278vw), 1.094rem) + var(--fs-boost, 0px));
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--accent);
  font-size: calc(clamp(0.9062rem, calc(0.7917rem + 0.509vw), 1.25rem) + var(--fs-boost, 0px));
  transition: transform .2s;
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 22px 19px;
  color: var(--mut);
  font-size: calc(clamp(0.8125rem, calc(0.75rem + 0.278vw), 1rem) + var(--fs-boost, 0px));
  line-height: 1.65;
  margin: 0;
}

@media (max-width:960px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2,1fr);
  }

  .frow {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .frow--rev .frow__media {
    order: 0;
  }

  .stats {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width:600px) {
  .grid-3, .grid-4, .grid-2 {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

.section--alt {
  background: transparent;
  backdrop-filter: none;
  border-top: none;
}

.leadform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.leadform[hidden] {
  display: none;
}

.leadform__in {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--paper);
  font-family: var(--body);
  font-size: calc(clamp(0.7812rem, calc(0.7188rem + 0.278vw), 0.9688rem) + var(--fs-boost, 0px));
  outline: none;
  transition: border-color .2s;
}

.leadform__in:focus {
  border-color: var(--gold);
}

.leadform__in::placeholder {
  color: var(--dim);
}

.leadform__in--full {
  grid-column: 1/-1;
}

textarea.leadform__in {
  resize: vertical;
  min-height: 66px;
  line-height: 1.45;
}

.leadform__btn {
  grid-column: 1/-1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  cursor: pointer;
  font-family: var(--body);
  font-size: calc(clamp(0.7812rem, calc(0.7188rem + 0.278vw), 0.9688rem) + var(--fs-boost, 0px));
  font-weight: 600;
  color: #3a1f05;
  background: linear-gradient(160deg,#ffb673,var(--accent) 55%,#c96a1c);
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(232,134,46,.4),inset 0 1px 0 rgba(255,255,255,.55),inset 0 -2px 4px rgba(0,0,0,.15);
  white-space: nowrap;
  transition: transform .15s;
}

.leadform__btn:hover {
  transform: translateY(-1px);
}

.leadform__btn span {
  font-family: var(--mono);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,20,32,.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-box {
  width: min(480px,100%);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line2);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  padding: 26px 26px 22px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line2);
  background: transparent;
  color: var(--mut);
  cursor: pointer;
  font-size: calc(clamp(0.9375rem, calc(0.875rem + 0.278vw), 1.125rem) + var(--fs-boost, 0px));
  display: grid;
  place-items: center;
}

.modal-close:hover {
  color: var(--paper);
  border-color: var(--gold);
}

.modal-box h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(clamp(0.9375rem, calc(0.8125rem + 0.556vw), 1.312rem) + var(--fs-boost, 0px));
  color: var(--paper);
  margin-bottom: 6px;
}

.modal-box p.modal-sub {
  font-family: var(--body);
  font-size: calc(clamp(0.7812rem, calc(0.7292rem + 0.231vw), 0.9375rem) + var(--fs-boost, 0px));
  color: var(--mut);
  margin-bottom: 18px;
  line-height: 1.5;
}

.modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-form select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--paper);
  font-family: var(--body);
  font-size: calc(clamp(0.7812rem, calc(0.7188rem + 0.278vw), 0.9688rem) + var(--fs-boost, 0px));
  outline: none;
  grid-column: 1/-1;
}

.modal-done {
  display: none;
  text-align: center;
  padding: 20px;
  font-family: var(--body);
  font-size: calc(clamp(0.8125rem, calc(0.75rem + 0.278vw), 1rem) + var(--fs-boost, 0px));
  color: var(--paper);
}

@media (max-width:700px) {
  .sec-head h2 {
  }

  .btn {
    padding: 14px 20px;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    justify-content: center;
  }

  .stats {
    grid-template-columns: 1fr 1fr!important;
    gap: 14px;
  }
}

/* ==========================================================
   Premium motion system
   Lightweight, scroll-triggered reveals + subtle micro-interactions.
   ========================================================== */
:root {
  --motion-fast: 180ms;
  --motion-base: 500ms;
  --motion-slow: 700ms;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}

@keyframes bwFadeUp {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes bwFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes bwScaleIn {
  from { opacity: 0; transform: scale(.965) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes bwHeroText {
  from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(4px); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

/* Elements get this class from index.js when they enter the viewport. */
.motion-ready {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity var(--motion-slow) var(--motion-ease),
    transform var(--motion-slow) var(--motion-ease);
  will-change: opacity, transform;
}

.motion-ready.is-visible {
  opacity: 1;
  transform: none;
}

.motion-scale {
  opacity: 0;
  transform: scale(.97) translateY(14px);
  transition:
    opacity 650ms var(--motion-ease),
    transform 650ms var(--motion-ease);
}

.motion-scale.is-visible {
  opacity: 1;
  transform: none;
}

.motion-stagger > * {
  --motion-delay: 0ms;
  transition-delay: var(--motion-delay);
}

.motion-stagger.is-visible > * {
  --motion-delay: calc(var(--i, 0) * 70ms);
}

/* Premium hover motion without making the whole site jump. */
.btn,
.nav__cta,
.qq-btn,
.leadcta__open,
.leadform__btn,
.chip,
.nav__burger {
  will-change: transform;
}

.btn:hover,
.nav__cta:hover,
.leadcta__open:hover,
.leadform__btn:hover {
  transform: translateY(-2px);
}

.card,
.team-card,
.dir-card,
.pillar-box,
.svc-tile,
.mock-panel,
.stat {
  transition:
    transform 350ms var(--motion-ease),
    box-shadow 350ms var(--motion-ease),
    border-color 250ms ease;
}

.card:hover,
.team-card:hover,
.pillar-box:hover,
.svc-tile:hover,
.mock-panel:hover {
  transform: translateY(-5px);
}

/* Hero entrance is intentionally short and elegant. */
.phero .eyebrow,
.phero h1,
.phero .hero__tag,
.phero .hero__tag2,
.phero .prompt,
.phero .kw-groups {
  animation: bwHeroText 700ms var(--motion-ease) both;
}

.phero h1 { animation-delay: 90ms; }
.phero .hero__tag { animation-delay: 150ms; }
.phero .hero__tag2 { animation-delay: 210ms; }
.phero .prompt { animation-delay: 280ms; }
.phero .kw-groups { animation-delay: 360ms; }

/* Respect users who disable animation at OS/browser level. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .motion-ready,
  .motion-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================
   Mobile font boost: +3px on every font-size (phones only).
   All font-size declarations use calc(<size> + var(--fs-boost)).
   Change the value below to tune it (e.g. 2px / 4px).
   ========================================================== */
@media (max-width: 767.98px) {
  :root { --fs-boost: 3px; }
}
