/* PurplePerfect V35 — surgical implementation of the 21 Aug remarks.
   Loaded after the approved layers; scoped to the named Home, Contact,
   Quote and About components. */

:root {
  --ppc-line: rgba(10, 10, 30, .1);
  --ppc-ease: cubic-bezier(.2, .78, .2, 1);
}

/* The second global-nav link is now Portfolio. Keep it visible where the
   earlier compact rule hid the former Services link. */
@media (max-width: 420px) {
  .pp-global-links a:nth-child(2) { display: inline-flex !important; }
}

/* Home outcome cards: smoother pointer feedback without changing geometry. */
@media (hover: hover) and (pointer: fine) {
  .pp-search-card {
    transition: flex-grow .68s var(--ppc-ease), transform .5s var(--ppc-ease), box-shadow .45s ease !important;
    will-change: flex-grow, transform;
  }
  .pp-search-card:hover,
  .pp-search-card:focus-visible {
    box-shadow: 0 30px 78px rgba(5, 4, 11, .28);
  }
  .pp-search-card .pp-search-card-media img {
    transition-duration: .9s, .5s;
    transition-timing-function: var(--ppc-ease), ease;
  }
}

/* V19 response commitment, restored in its original place inside each form. */
.lean-form .pp-promise,
.form .pp-promise { grid-column: 1 / -1; }

.pp-promise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 22px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(122, 44, 255, .18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(122, 44, 255, .075), rgba(53, 215, 255, .05));
}
.pp-promise__l { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 250px; }
.pp-promise__pulse {
  position: relative;
  width: 11px;
  height: 11px;
  flex: none;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}
.pp-promise__pulse i {
  position: absolute;
  inset: -4px;
  border: 1.5px solid rgba(34, 197, 94, .7);
  border-radius: 50%;
  animation: pp35-promise 2.6s var(--ppc-ease) infinite;
}
@keyframes pp35-promise {
  0% { transform: scale(.75); opacity: .9; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}
.pp-promise__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pp-promise__txt b { color: #070816; font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.pp-promise__txt span { color: #61617A; font-size: 13.5px; line-height: 1.45; }
.pp-promise__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 11px 18px;
  border: 1px solid rgba(10, 10, 30, .12);
  border-radius: 999px;
  background: #fff;
  color: #070816;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: transform .32s var(--ppc-ease), box-shadow .32s ease, border-color .28s ease;
}
.pp-promise__wa svg { width: 17px; height: 17px; flex: none; color: #25D366; }
.pp-promise__wa:hover,
.pp-promise__wa:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 211, 102, .5);
  box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .6);
}

/* Contact FAQ: V19 two-column placement and smooth native-details motion. */
.pp-faq { padding: 88px 0; border-top: 1px solid var(--ppc-line); background: #fff; color: #070816; }
.pp-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.pp-faq h2 { margin: 0 0 16px; color: #070816; font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.055em; line-height: .98; }
.pp-faq__lede { margin: 0 0 20px; color: #55556A; font-size: 17px; line-height: 1.6; }
.pp-faq__ask { display: inline-flex; align-items: center; gap: 8px; color: #7A2CFF; font-size: 14.5px; font-weight: 700; text-decoration: none; }
.pp-faq__ask:hover,
.pp-faq__ask:focus-visible { text-decoration: underline; }
.pp-faq__list { display: flex; flex-direction: column; gap: 10px; }
.pp-faq details {
  overflow: hidden;
  border: 1px solid var(--ppc-line);
  border-radius: 20px;
  background: #FCFBFF;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.pp-faq details[open] { border-color: rgba(122, 44, 255, .26); box-shadow: 0 18px 50px rgba(35, 18, 92, .08); }
.pp-faq summary {
  position: relative;
  padding: 20px 54px 20px 22px;
  color: #070816;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.35;
  list-style: none;
}
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary:focus-visible { outline: 2px solid #7A2CFF; outline-offset: -3px; border-radius: 20px; }
.pp-faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border-right: 2.5px solid #7A2CFF;
  border-bottom: 2.5px solid #7A2CFF;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform .34s var(--ppc-ease);
}
.pp-faq details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.pp-faq__a { padding: 0 22px 22px; color: #55556A; font-size: 15px; line-height: 1.65; }
.pp-faq__a p { margin: 0 0 10px; }
.pp-faq__a p:last-child { margin: 0; }
.pp-faq__a b { color: #070816; }
@media (prefers-reduced-motion: no-preference) {
  .pp-faq details[open] .pp-faq__a { animation: pp35-faq-in .38s var(--ppc-ease) both; }
}
@keyframes pp35-faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Quote page: restore the V19 two-question disclosure system. */
.pp-asks { padding: 80px 0; background: linear-gradient(180deg, #FCFBFF, #F4EFFF); color: #070816; }
.pp-asks__h { margin: 0 0 10px; color: #A08CFF; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.pp-asks__t { margin: 0 0 34px; color: #070816; font-size: clamp(30px, 4vw, 50px); letter-spacing: -.055em; line-height: 1; }
.pp-asks__l { display: flex; flex-direction: column; gap: 14px; }
.pp-ask { overflow: hidden; border: 1px solid rgba(10, 10, 30, .12); border-radius: 26px; background: #fff; transition: border-color .35s ease, box-shadow .4s ease; }
.pp-ask[open] { border-color: rgba(122, 44, 255, .3); box-shadow: 0 28px 70px rgba(35, 18, 92, .13); }
.pp-ask__s { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 28px 30px; cursor: pointer; list-style: none; }
.pp-ask__s::-webkit-details-marker { display: none; }
.pp-ask__s:focus-visible { outline: 2px solid #7A2CFF; outline-offset: -3px; border-radius: 26px; }
.pp-ask__q { grid-column: 1; color: #070816; font-size: clamp(19px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }
.pp-ask__sub { grid-column: 1; max-width: 62ch; margin-top: 7px; color: #61617A; font-size: 14.5px; line-height: 1.5; }
.pp-ask__i {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(122, 44, 255, .2);
  border-radius: 50%;
  background: rgba(122, 44, 255, .09);
  transition: background .3s ease, transform .4s var(--ppc-ease);
}
.pp-ask__i::before,
.pp-ask__i::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 2px; background: #7A2CFF; transition: transform .4s var(--ppc-ease), opacity .3s ease; }
.pp-ask__i::before { width: 15px; height: 2.5px; margin: -1.25px 0 0 -7.5px; }
.pp-ask__i::after { width: 2.5px; height: 15px; margin: -7.5px 0 0 -1.25px; }
.pp-ask[open] .pp-ask__i { border-color: transparent; background: #7A2CFF; transform: rotate(180deg); }
.pp-ask[open] .pp-ask__i::before { background: #fff; }
.pp-ask[open] .pp-ask__i::after { opacity: 0; transform: scaleY(0); }
.pp-ask__s:hover .pp-ask__i { background: rgba(122, 44, 255, .16); }
.pp-ask__a { border-top: 1px solid rgba(10, 10, 30, .08); }
.pp-cost { padding: 88px 0; border-top: 1px solid var(--ppc-line); background: #fff; color: #070816; }
.pp-cost__grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pp-cost h2,
.pp-proc h2 { margin: 0 0 18px; color: #070816; font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.055em; line-height: .98; }
.pp-cost__lede,
.pp-proc__lede { margin: 0 0 20px; color: #55556A; font-size: 17px; line-height: 1.6; }
.pp-cost__note { margin: 0; padding: 18px 20px; border: 1px solid rgba(122, 44, 255, .14); border-radius: 20px; background: linear-gradient(140deg, rgba(122, 44, 255, .06), transparent); color: #55556A; font-size: 14.5px; line-height: 1.6; }
.pp-cost__note b { color: #070816; }
.pp-drivers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pp-driver { padding: 22px 22px 24px; border: 1px solid var(--ppc-line); border-radius: 24px; background: #FCFBFF; transition: transform .4s var(--ppc-ease), box-shadow .4s ease, border-color .3s ease; }
.pp-driver:hover { transform: translateY(-4px); border-color: rgba(122, 44, 255, .28); box-shadow: 0 22px 60px rgba(35, 18, 92, .1); }
.pp-driver__n { display: block; margin-bottom: 12px; color: #A08CFF; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.pp-driver h3 { margin: 0 0 8px; color: #070816; font-size: 19px; letter-spacing: -.03em; line-height: 1.2; }
.pp-driver p { margin: 0; color: #626376; font-size: 14.5px; line-height: 1.55; }
.pp-proc { padding: 88px 0; background: linear-gradient(180deg, #FCFBFF, #F6F2FF); color: #070816; }
.pp-proc__top { max-width: 60ch; margin-bottom: 44px; }
.pp-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pp-step { position: relative; display: flex; flex-direction: column; padding: 26px 20px 28px; border: 1px solid var(--ppc-line); border-radius: 24px; background: #fff; transition: transform .4s var(--ppc-ease), box-shadow .4s ease; }
.pp-step:hover { transform: translateY(-5px); box-shadow: 0 24px 66px rgba(35, 18, 92, .12); }
.pp-step__n { display: grid; width: 34px; height: 34px; margin-bottom: 16px; place-items: center; flex: none; border-radius: 11px; background: linear-gradient(135deg, #3A45E0, #7A2CFF); color: #fff; font-size: 14px; font-weight: 900; }
.pp-step h3 { margin: 0 0 8px; color: #070816; font-size: 17px; letter-spacing: -.028em; line-height: 1.2; }
.pp-step p { flex: 1; margin: 0 0 16px; color: #626376; font-size: 14px; line-height: 1.55; }
.pp-step__d { padding-top: 13px; border-top: 1px solid var(--ppc-line); color: #7A2CFF; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.pp-proc__total { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; padding: 20px 24px; border: 1px solid rgba(122, 44, 255, .18); border-radius: 20px; background: #fff; color: #55556A; font-size: 15px; }
.pp-proc__total b { color: #070816; font-size: 17px; letter-spacing: -.02em; }
.pp-ask__a .pp-cost,
.pp-ask__a .pp-proc { padding: 34px 0 40px !important; border-top: 0 !important; background: transparent !important; }
.pp-ask__a .pp-cost .container,
.pp-ask__a .pp-proc .container { width: auto !important; max-width: none !important; padding-inline: 30px !important; }
.pp-ask__a .pp-cost h2,
.pp-ask__a .pp-proc h2 { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .pp-ask[open] .pp-ask__a { animation: pp35-ask-in .42s var(--ppc-ease) both; }
}
@keyframes pp35-ask-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* About: pinned client gallery, driven only by native page scroll position. */
.pp-pin { position: relative; }
.pp-pin__vp { position: sticky; top: 0; overflow: hidden; }
html.pp-pin-on .pp-pin__vp .client-engagement-track {
  overflow: visible !important;
  transform: translate3d(var(--pp-pin-x, 0px), 0, 0);
  scroll-snap-type: none !important;
  will-change: transform;
}
.pp-pin__bar { position: sticky; z-index: 3; bottom: 26px; width: min(220px, 42vw); height: 3px; margin: 0 auto; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .16); }
.pp-pin__bar i { display: block; width: 100%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7A2CFF, #35D7FF); transform: scaleX(var(--pp-pin-p, 0)); transform-origin: left; }
html:not(.pp-pin-on) .pp-pin__vp { position: static; }
html:not(.pp-pin-on) .pp-pin__bar { display: none; }

/* About: portrait BTS tiles and portrait-first modal. */
.pp-bts { padding: 92px 0; }
.pp-bts__top { max-width: 62ch; margin-bottom: 40px; }
.pp-bts__top h2 { margin: 0 0 14px; font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.055em; line-height: .99; }
.pp-bts__top p { margin: 0; font-size: 17px; line-height: 1.6; opacity: .78; }
.pp-bts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pp-bts__t { display: flex; flex-direction: column; gap: 14px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.pp-bts__m { position: relative; display: block; overflow: hidden; aspect-ratio: 9 / 16; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; background: #0B0A16; transition: transform .5s var(--ppc-ease), box-shadow .45s ease; }
.pp-bts__m img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.32) contrast(1.05); transition: transform 1.1s var(--ppc-ease), filter .5s ease; }
.pp-bts__m::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 8, 22, .05) 40%, rgba(9, 8, 22, .72)); }
.pp-bts__t:hover .pp-bts__m { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.pp-bts__t:hover .pp-bts__m img { transform: scale(1.07); filter: none; }
.pp-bts__t:focus-visible .pp-bts__m { outline: 2px solid #A98CFF; outline-offset: 3px; }
.pp-bts__play { position: absolute; z-index: 3; left: 50%; top: 50%; display: grid; width: 56px; height: 56px; margin: -28px 0 0 -28px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); opacity: .92; transform: scale(.86); transition: transform .45s var(--ppc-ease), opacity .3s ease; }
.pp-bts__play::before { content: ""; margin-left: 4px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 15px solid #7A2CFF; }
.pp-bts__t:hover .pp-bts__play { opacity: 1; transform: scale(1.06); }
.pp-bts__stage { position: absolute; z-index: 3; left: 14px; top: 14px; padding: 6px 11px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 99px; background: rgba(9, 8, 22, .6); color: #fff; backdrop-filter: blur(8px); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; }
.pp-bts__b { display: flex; flex-direction: column; gap: 6px; }
.pp-bts__h { font-size: 16px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.pp-bts__p { font-size: 13.5px; line-height: 1.5; opacity: .66; }
.pp-btslb { position: fixed; z-index: 12800; inset: 0; display: grid; padding: clamp(16px, 4vw, 48px); place-items: center; background: rgba(4, 3, 10, .9); opacity: 0; visibility: hidden; pointer-events: none; backdrop-filter: blur(24px) saturate(.85); transition: opacity .34s ease, visibility .34s; }
.pp-btslb.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.pp-btslb__in { width: min(430px, 100%); opacity: .96; transform: translateY(20px) scale(.96); transition: transform .55s var(--ppc-ease), opacity .34s ease; }
.pp-btslb.is-open .pp-btslb__in { opacity: 1; transform: none; }
.pp-btslb__f { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 22px; background: #000; box-shadow: 0 50px 130px -40px rgba(122, 44, 255, .85), 0 30px 90px rgba(0, 0, 0, .6); }
.pp-btslb__f iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pp-btslb__soon { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; padding: 32px; background: linear-gradient(160deg, #1A1030, #0B0A16); text-align: center; }
.pp-btslb__soon b { color: #fff; font-size: 17px; letter-spacing: -.02em; }
.pp-btslb__c { margin: 16px 2px 0; color: rgba(255, 255, 255, .82); font-size: 15px; font-weight: 700; letter-spacing: -.02em; text-align: center; }
.pp-btslb__x { position: absolute; top: clamp(14px, 3vw, 26px); right: clamp(14px, 3vw, 26px); display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255, 255, 255, .24); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; font-size: 24px; line-height: 1; transition: transform .34s var(--ppc-ease), background .28s ease; }
.pp-btslb__x:hover,
.pp-btslb__x:focus-visible { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }

@media (max-width: 1080px) { .pp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .pp-cost__grid,
  .pp-faq__grid { grid-template-columns: 1fr; }
  .pp-bts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 900px) { .pp-faq { padding: 64px 0; } }
@media (max-width: 860px) {
  html.pp-pin-on .pp-pin__vp { position: static; }
  html.pp-pin-on .pp-pin__vp .client-engagement-track { overflow-x: auto !important; transform: none !important; }
  .pp-pin__bar { display: none; }
}
@media (max-width: 720px) {
  .pp-proc { padding: 64px 0; }
  .pp-steps { grid-template-columns: 1fr; }
  .pp-step { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px; }
  .pp-step__n { margin-bottom: 0; }
  .pp-step__d { padding-top: 6px; border-top: 0; }
}
@media (max-width: 600px) {
  .pp-cost { padding: 64px 0; }
  .pp-drivers { grid-template-columns: 1fr; }
  .pp-ask__s { padding: 22px; }
  .pp-ask__a .pp-cost .container,
  .pp-ask__a .pp-proc .container { padding-inline: 22px !important; }
}
@media (max-width: 560px) {
  .pp-promise { padding: 16px; }
  .pp-promise__wa { width: 100%; justify-content: center; }
  .pp-bts { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-search-card,
  .pp-search-card .pp-search-card-media img,
  .pp-promise__pulse i,
  .pp-promise__wa,
  .pp-faq details,
  .pp-faq summary::after,
  .pp-faq__a,
  .pp-ask,
  .pp-ask__i,
  .pp-ask__i::before,
  .pp-ask__i::after,
  .pp-ask__a,
  .pp-driver,
  .pp-step,
  .pp-bts__m,
  .pp-bts__m img,
  .pp-bts__play,
  .pp-btslb,
  .pp-btslb__in,
  .pp-btslb__x { animation: none !important; transition: none !important; }
  .pp-pin__vp { position: static !important; }
  .pp-pin__vp .client-engagement-track { overflow-x: auto !important; transform: none !important; }
  .pp-pin__bar { display: none; }
  .pp-btslb.is-open .pp-btslb__in { opacity: 1; transform: none; }
}
