/*
 * Boldvision V5
 * A focused small-business offer layered on the existing V2 motion system.
 * This file intentionally contains only V5 overrides so V2 remains untouched.
 */

:root {
  --v5-accent: #ff4d20;
  --v5-paper: #f4f3ef;
  --v5-card: #ebeae6;
}

.v5-hero .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .04) 52%, rgba(0, 0, 0, .2));
  pointer-events: none;
}

.v5-hero .hero__copy {
  top: auto;
  bottom: clamp(34px, 4.6vh, 62px);
  width: min(970px, 76vw);
  font-size: 14px;
}

.v5-eyebrow {
  display: block;
  margin-bottom: 23px;
  color: rgba(255, 255, 255, .64);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.v5-hero .hero__copy h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(48px, 5.35vw, 103px);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.073em;
}

.v5-hero .hero__copy > p {
  max-width: 540px;
  margin: 29px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(14px, 1.05vw, 19px);
  line-height: 1.22;
  letter-spacing: -.025em;
}

.v5-hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 28px;
}

.v5-hero-actions > a:last-child {
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  transition: color .35s ease;
}

.v5-hero-actions > a:last-child:hover { color: #fff; }
.v5-hero .header-card { min-width: 222px; }

.v5-hero .hero__service {
  right: 3.1vw;
  bottom: clamp(38px, 5.1vh, 68px);
  left: auto;
  text-align: left;
}

.v5-trust {
  min-height: 0;
  padding-top: clamp(42px, 4.5vh, 58px);
  /* Tightened with the logo strip restyle: the row is far shorter now, so the
     old 130px floor left the section bottom-heavy. */
  padding-bottom: clamp(54px, 4.8vw, 86px);
}

.v5-trust__head,
.v5-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: clamp(50px, 8vw, 160px);
  align-items: end;
  margin: clamp(86px, 8vw, 150px) var(--pad) 0;
}

.v5-trust__head h2,
.v5-section-head h2,
.v5-work__head h2,
.v5-why > h2,
.v5-faq__layout > h2 {
  margin: 0;
  font-size: clamp(66px, 8.1vw, 156px);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.083em;
}

.v5-trust__head p,
.v5-section-head > p {
  max-width: 420px;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.28;
  letter-spacing: -.03em;
}

.v5-growth-loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(80px, 8vw, 145px) var(--pad) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.v5-growth-loop > div {
  display: flex;
  flex-direction: column;
  min-height: clamp(240px, 19vw, 360px);
  padding: 23px clamp(20px, 2.2vw, 44px) 29px;
}

.v5-growth-loop > div + div { border-left: 1px solid var(--line); }
.v5-growth-loop small,
.v5-solution__top,
.v5-process-grid small,
.v5-package small,
.v5-why-grid small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.v5-growth-loop strong {
  margin-top: auto;
  font-size: clamp(35px, 3.2vw, 62px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.065em;
}

.v5-growth-loop span {
  max-width: 310px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

/* Client logo strip.
   The grey cards are dropped and the logos sized down so the row reads as a
   quiet credibility line rather than a gallery. mix-blend-mode: multiply drops
   the white JPG backgrounds onto the panel; grayscale plus reduced opacity is
   what makes twenty mismatched brand marks read as one consistent row.
   The edge mask fades the marquee out instead of clipping it at the viewport. */
.v5-trust .client-ticker {
  margin-top: clamp(50px, 4.4vw, 76px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.v5-trust .client-ticker__group { gap: clamp(40px, 3.9vw, 70px); padding-right: clamp(40px, 3.9vw, 70px); align-items: center; }
.v5-trust .client-card { width: auto; height: auto; background: transparent; }
.v5-trust .client-card img {
  /* Sized so the lightest marks (Cucina, Giesecke & Devrient) stay legible;
     opacity kept high enough to read, low enough to stay secondary to the copy. */
  width: clamp(112px, 10vw, 150px);
  height: auto;
  /* The grey boxes are baked into the logo files: every JPG carries an #f2f2f2
     background on a white panel. brightness(1.06) lifts 242 to 255 so the
     background merges into the panel while the marks stay dark. mix-blend-mode
     cannot do this job here — the animated marquee creates a stacking context
     that isolates the blend. */
  filter: grayscale(1) brightness(1.06);
  opacity: .58;
  transition: opacity .45s var(--ease);
}
.v5-trust .client-card img:hover { opacity: .95; }

.v5-solutions,
.v5-process,
.v5-why,
.v5-faq {
  min-height: 0;
  padding-bottom: clamp(110px, 10vw, 190px);
}

.v5-stack-work { z-index: 6; }
.v5-process { z-index: 7; }
.v5-packages { z-index: 8; }
.v5-why { z-index: 9; }
.v5-faq { z-index: 10; }

.v5-section-head { margin-top: clamp(90px, 8vw, 155px); }
.v5-section-head h2 { font-size: clamp(62px, 7.5vw, 145px); }

.v5-solution-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: clamp(80px, 7vw, 130px) var(--pad) 0;
}

.v5-solution {
  display: flex;
  flex-direction: column;
  min-height: clamp(570px, 40vw, 720px);
  padding: clamp(24px, 2.1vw, 40px);
  border: 1px solid var(--line);
  background: #fff;
  transition: color .55s var(--ease), background .55s var(--ease), transform .55s var(--ease);
}

.v5-solution:hover {
  color: #fff;
  background: #111;
  transform: translateY(-7px);
}

.v5-solution__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.v5-solution__top small,
.v5-solution__top span { font-size: inherit; }

.v5-solution h3 {
  margin: clamp(65px, 6.2vw, 118px) 0 30px;
  font-size: clamp(50px, 5vw, 95px);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.075em;
}

.v5-solution p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.32;
}

.v5-solution ul {
  display: grid;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  list-style: none;
}

.v5-solution li::before { content: "↳ "; }

.v5-solution > a,
.v5-package > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding: 14px 0 0;
  border-top: 1px solid currentColor;
  font-size: 13px;
}

.v5-work,
.v5-packages {
  min-height: 0;
  padding-bottom: clamp(120px, 11vw, 210px);
  background: #090909;
}

.v5-work__head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, .55fr);
  gap: 60px;
  align-items: end;
  margin: clamp(95px, 8vw, 160px) var(--pad) 0;
}

.v5-work__head h2 { font-size: clamp(66px, 8.6vw, 165px); }
.v5-work__head .line-link { justify-self: end; min-width: min(360px, 100%); margin-bottom: 8px; }

.v5-cases {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  align-items: start;
  margin: clamp(95px, 9vw, 170px) var(--pad) 0;
}

.v5-case { display: block; min-width: 0; }
.v5-case:nth-child(1) { grid-column: 1 / span 7; }
.v5-case:nth-child(2) { grid-column: 8 / span 5; margin-top: 11vw; }
.v5-case:nth-child(3) { grid-column: 4 / span 7; margin-top: 6vw; }

.v5-case__image {
  position: relative;
  display: block;
  aspect-ratio: 1.45;
  overflow: hidden;
  background: #4a1c10;
}

.v5-case__image img {
  object-position: center 42%;
  transform: scale(1.035);
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
}

.v5-case:hover .v5-case__image img { transform: scale(1); }
.v5-case__image--cyan img { filter: hue-rotate(122deg) saturate(.75); }
.v5-case__image--violet img { filter: hue-rotate(245deg) saturate(.72); }

.v5-case__meta {
  display: grid;
  grid-template-columns: .7fr 1.5fr 1fr;
  gap: 15px;
  padding: 15px 0 18px;
  border-bottom: 1px solid var(--line-light);
  font-size: 11px;
}

.v5-case__meta small,
.v5-case__meta i { color: #777; font-size: 9px; font-style: normal; text-transform: uppercase; }
.v5-case__meta strong { font-size: 14px; font-weight: 500; }
.v5-case__meta i { justify-self: end; text-align: right; }

.v5-process-grid,
.v5-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: clamp(85px, 8vw, 150px) var(--pad) 0;
  border-top: 1px solid var(--line);
}

.v5-process-grid article,
.v5-why-grid article {
  min-height: clamp(320px, 24vw, 460px);
  padding: 23px clamp(20px, 2.4vw, 46px) 30px 0;
}

.v5-process-grid article + article,
.v5-why-grid article + article {
  padding-left: clamp(20px, 2.4vw, 46px);
  border-left: 1px solid var(--line);
}

.v5-process-grid h3,
.v5-why-grid h3 {
  max-width: 430px;
  margin: clamp(75px, 7vw, 135px) 0 25px;
  font-size: clamp(31px, 3vw, 58px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.06em;
}

.v5-process-grid p,
.v5-why-grid p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.34;
}

.v5-process-grid article:nth-child(n+4),
.v5-why-grid article:nth-child(n+4) { border-top: 1px solid var(--line); }
.v5-process-grid article:nth-child(3n+1),
.v5-why-grid article:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.v6-testimonial-logo { width: 88px; height: 58px; object-fit: contain; margin-bottom: 22px; filter: grayscale(1); }
.v6-testimonials h3 { margin-top: clamp(45px, 5vw, 90px); }

.v5-section-head--dark > p { color: #929292; }

.v5-package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: clamp(80px, 7vw, 135px) var(--pad) 0;
}

.v5-package {
  display: flex;
  flex-direction: column;
  min-height: clamp(520px, 38vw, 700px);
  padding: clamp(26px, 2.3vw, 44px);
  border: 1px solid var(--line-light);
  transition: color .55s var(--ease), background .55s var(--ease), transform .55s var(--ease);
}

.v5-package:hover {
  color: #111;
  background: var(--v5-paper);
  transform: translateY(-7px);
}

.v5-package h3 {
  margin: clamp(62px, 5vw, 100px) 0 24px;
  font-size: clamp(39px, 3.8vw, 72px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.065em;
}

.v5-package > p {
  max-width: 390px;
  margin: 0;
  color: #8b8b8b;
  line-height: 1.33;
}

.v5-package > div {
  display: grid;
  gap: 8px;
  margin: 35px 0;
  color: #8b8b8b;
  font-size: 11px;
}

.v5-package > div span::before { content: "+ "; }

.v5-why > h2 {
  width: min(1500px, calc(100% - (2 * var(--pad))));
  margin: clamp(95px, 9vw, 165px) auto 0;
  text-align: center;
  font-size: clamp(67px, 8.8vw, 170px);
}

.v5-faq { padding-bottom: clamp(120px, 11vw, 205px); }

.v5-faq__layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(70px, 10vw, 190px);
  align-items: start;
  margin: clamp(95px, 8vw, 160px) var(--pad) 0;
}

.v5-faq__layout > h2 { font-size: clamp(64px, 7.4vw, 143px); }

.v5-faq-list { border-top: 1px solid var(--line); }
.v5-faq-list details { border-bottom: 1px solid var(--line); }
.v5-faq-list summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 30px;
  gap: 30px;
  align-items: center;
  min-height: 86px;
  padding: 18px 0;
  cursor: pointer;
  font-size: clamp(17px, 1.4vw, 25px);
  letter-spacing: -.035em;
  list-style: none;
}

.v5-faq-list summary::-webkit-details-marker { display: none; }
.v5-faq-list summary i { position: relative; width: 17px; height: 17px; justify-self: end; }
.v5-faq-list summary i::before,
.v5-faq-list summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform .35s var(--ease);
}

.v5-faq-list summary i::after { transform: rotate(90deg); }
.v5-faq-list details[open] summary i::after { transform: rotate(0); }

.v5-faq-list details p {
  max-width: 650px;
  margin: -3px 55px 28px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

.v5-footer { min-height: max(820px, 100vh); }
.v5-footer .footer__main { margin-top: clamp(80px, 7vw, 130px); }
.v5-footer .footer__main h2 { font-size: clamp(72px, 9.7vw, 186px); }
.v5-footer .footer__main .v5-eyebrow { margin-bottom: 30px; }

@media (max-width: 1100px) {
  .v5-trust__head,
  .v5-section-head { grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); gap: 55px; }
  .v5-solution h3 { font-size: clamp(44px, 4.6vw, 66px); }
  .v5-solution { min-height: 590px; }
  .v5-package h3 { font-size: clamp(36px, 3.6vw, 52px); }
}

@media (max-width: 900px) {
  .v5-hero .hero__media::after { background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .05) 55%, rgba(0, 0, 0, .3)); }
  .v5-hero .hero__copy { top: auto; bottom: 6vh; width: calc(100% - 36px); }
  .v5-hero .hero__copy h1 { font-size: clamp(46px, 13.6vw, 83px); line-height: .88; }
  .v5-hero .hero__copy > p { max-width: 90%; margin-top: 23px; font-size: 14px; }
  .v5-eyebrow { margin-bottom: 17px; font-size: 8px; }
  .v5-hero-actions { display: grid; justify-items: start; gap: 18px; margin-top: 23px; }
  .v5-hero-actions .line-link { min-width: min(280px, 80vw); }

  .v5-trust { padding-right: 0; padding-left: 0; }
  .v5-trust__head,
  .v5-section-head,
  .v5-work__head,
  .v5-faq__layout {
    display: block;
    margin: 65px 18px 0;
  }

  .v5-trust__head h2,
  .v5-section-head h2,
  .v5-work__head h2,
  .v5-why > h2,
  .v5-faq__layout > h2 {
    font-size: clamp(50px, 14.8vw, 80px);
    line-height: .86;
  }

  .v5-trust__head p,
  .v5-section-head > p { max-width: 520px; margin-top: 38px; }

  .v5-growth-loop,
  .v5-process-grid,
  .v5-why-grid {
    grid-template-columns: 1fr;
    margin: 65px 18px 0;
  }

  .v5-growth-loop > div { min-height: 245px; padding: 20px 0 25px; }
  .v5-growth-loop > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .v5-growth-loop strong { font-size: 48px; }
  .v5-trust .client-ticker { margin-top: 42px; }
  .v5-trust .client-ticker__group { gap: 34px; padding-right: 34px; }
  .v5-trust .client-card img { width: 104px; }

  .v5-solution-list,
  .v5-package-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 65px 18px 0;
  }

  .v5-solution,
  .v5-package { min-height: 540px; padding: 24px; }
  .v5-solution h3 { margin-top: 70px; font-size: clamp(52px, 15vw, 78px); }
  .v5-package h3 { margin-top: 70px; font-size: clamp(45px, 12vw, 64px); }

  .v5-work__head .line-link { justify-self: start; width: min(280px, 80%); margin-top: 42px; }
  .v5-cases { display: block; margin: 70px 18px 0; }
  .v5-case:nth-child(n) { margin: 0 0 70px; }
  .v5-case__image { aspect-ratio: 1.15; }
  .v5-case__meta { grid-template-columns: .7fr 1.5fr .8fr; }

  .v5-process-grid article,
  .v5-why-grid article { min-height: 320px; padding: 20px 0 28px; }
  .v5-process-grid article + article,
  .v5-why-grid article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .v5-process-grid h3,
  .v5-why-grid h3 { margin-top: 75px; font-size: 43px; }

  .v5-why > h2 { width: auto; margin: 70px 18px 0; text-align: left; }
  .v5-faq-list { margin-top: 65px; }
  .v5-faq-list summary { min-height: 78px; font-size: 18px; }

  .v5-footer .footer__main h2 { font-size: clamp(68px, 18vw, 101px); }
  .v5-footer .footer__main .v5-eyebrow { margin-bottom: 24px; }
}

@media (max-width: 520px) {
  .v5-hero .hero__copy { top: auto; bottom: 5vh; }
  .v5-hero .hero__copy h1 { font-size: clamp(42px, 12.5vw, 62px); }
  .v5-hero .hero__copy > p { max-width: 100%; }
  .v5-hero-actions > a:last-child { display: none; }
  .v5-case__meta { grid-template-columns: 52px 1fr; }
  .v5-case__meta i { grid-column: 2; justify-self: start; }
  .v5-faq-list details p { margin-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .v5-solution:hover,
  .v5-package:hover { transform: none; }
}
