/* Client-directed revisions — exact-scope correction, 12 Aug 2026 */

/* Hero message loop: outgoing copy disappears completely before the next enters. */
.hero-messages {
  position: relative;
  min-height: clamp(150px, 14vw, 230px);
}

/* Medium Maroon brand trial — espresso foundations remain unchanged. */
:root {
  --blue: #841e32;
  --hero-navy: #841e32;
  --blue-grey: #76545b;
  --sky: #c9a2aa;
}

::selection {
  background: #841e32;
  color: #fff;
}

/* One-file logo lock-up: replace rafaga-logo-primary.png to update it. */
.brand {
  width: 224px;
  height: 52px;
  display: flex;
  align-items: center;
}
.brand img {
  width: 224px;
  height: auto;
  filter: none !important;
}
.footer-brand img {
  width: 224px;
  height: auto;
  filter: none !important;
}

@media (max-width: 800px) {
  .brand { width: 176px; height: 44px; }
  .brand img { width: 176px; }
  .footer-brand img { width: 205px; }
}
.hero-message {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  margin: 0;
  opacity: 0 !important;
  visibility: hidden;
  transform: translate3d(0, 12px, 0) !important;
  pointer-events: none;
  transition:
    opacity 600ms cubic-bezier(.22,.61,.36,1),
    transform 600ms cubic-bezier(.22,.61,.36,1),
    visibility 0s linear 600ms !important;
}
.hero-message > span {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.hero.is-intro-ready .hero-message.is-active {
  opacity: 1 !important;
  visibility: visible;
  transform: translate3d(0, 0, 0) !important;
  transition-delay: 0s !important;
}
.hero.is-intro-ready .hero-message.is-active.is-leaving {
  opacity: 0 !important;
  visibility: visible;
  transform: translate3d(0, -8px, 0) !important;
}

/* The automatic hero image and advisory slideshow retain their source colours. */
.reveal .frame {
  background-blend-mode: normal !important;
  filter: none !important;
}
.reveal .shade {
  background: transparent !important;
}
.advisory-slideshow img {
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* Why CFO is integrated into the same beige expertise environment. */
.services > .why {
  margin: 0;
  padding: clamp(28px, 4vh, 48px) 9vw clamp(72px, 10vh, 112px);
  background: #f3e7ea;
  color: #4b1021;
}
.services > .why .why-intro {
  max-width: 1180px;
  margin: 0 auto clamp(34px, 5vh, 58px);
}
.services > .why .why-intro h2 {
  max-width: 920px;
  margin: 0;
  color: #4b1021;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.services > .why .why-dash { color: #b87082; }
.services > .why .why-subtitle {
  color: #6f4c56;
  font-weight: 400;
}
.services > .why .reason-grid {
  max-width: 1180px;
  margin: 0 auto;
  gap: 1px;
  background: #e3d0d5;
  border: 1px solid #e3d0d5;
}
.services > .why .reason-grid article {
  min-height: 260px;
  padding: clamp(26px, 3vw, 42px);
  background: #fff;
  border: 0;
}
.services > .why .reason-grid h3 {
  color: #4b1021;
  font-size: clamp(18px, 1.55vw, 23px);
}
.services > .why .reason-grid p {
  color: #6f4c56;
  font-size: 14px;
  line-height: 1.6;
}
.services > .why .reason-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  color: #c9919f;
}
.services > .why + .expertise-groups { margin-top: 0; }

.services-bridge {
  width: min(1440px, 84vw);
  margin: 0 auto;
  padding: clamp(6px, 1vh, 14px) 0 clamp(42px, 6vh, 72px);
  border-top: 1px solid #dfcbd0;
}
.services-bridge p {
  margin: 28px 0 10px;
  color: #841e32;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.services-bridge h2 {
  margin: 0;
  color: #4b1021;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.services-bridge + .expertise-groups { margin-top: 0; }

/* Keep the original rectangular delivery boxes; only their copy has changed. */
.delivery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  overflow: hidden;
}
.delivery-grid .delivery-highlight {
  display: block !important;
  background: #68192d;
}
.delivery-grid article,
.delivery-grid article:nth-child(n) {
  aspect-ratio: auto;
  min-height: 280px;
  padding: clamp(28px, 3vw, 42px);
  border: 0;
  border-radius: 0;
  background: #fbf7f8;
  color: #4b1021;
  text-align: left;
  align-items: flex-start;
  justify-content: flex-end;
  isolation: auto;
}
.delivery-grid article::after { content: none !important; }
.delivery-grid article.is-active { background: transparent; color: #fff; }
.delivery-grid article b {
  display: block;
  color: inherit;
}
.delivery-grid article h3 {
  margin: 0;
  color: inherit;
  font-size: clamp(24px, 2.2vw, 34px);
}
.delivery-grid article p {
  max-width: 240px;
  margin: 12px 0 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
}

/* More vertical separation between each industry icon and its label. */
.industry-curtain {
  background-blend-mode: normal !important;
}
.industry-list {
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 6vw;
  padding-bottom: 24px;
}
.industry-list span,
.industry-list span:nth-child(even) {
  min-width: 0;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 28px;
  font-size: clamp(17px, 1.85vw, 29px);
  line-height: 1.15;
}
.industry-list span i {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  font-size: 15px;
}

@media (max-width: 800px) {
  .hero-messages { min-height: clamp(150px, 42vw, 205px); }
  .hero-message { font-size: clamp(42px, 12vw, 61px); }
  .services > .why { padding: 22px 24px 74px; }
  .services > .why .reason-grid { grid-template-columns: 1fr; }
  .services > .why .reason-grid article { min-height: 0; padding: 28px 24px; }
  .services-bridge {
    width: auto;
    margin: 0 24px;
    padding-bottom: 42px;
  }
  .services-bridge p { margin-top: 24px; }
  .delivery-grid { grid-template-columns: 1fr; gap: 10px; }
  .delivery-grid article,
  .delivery-grid article:nth-child(n) { min-height: 230px; padding: 30px 26px; }
  .industries { height: 260vh; min-height: 1540px; }
  .industries-content { padding: 72px 24px 94px; justify-content: center; }
  .industry-list {
    margin-top: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
    padding-bottom: 38px;
  }
  .industry-list span,
  .industry-list span:nth-child(even) {
    padding: 0;
    gap: 18px;
    font-size: clamp(14px, 4.2vw, 18px);
    line-height: 1.2;
  }
  .industry-list span i {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-message { transition: none !important; transform: none !important; }
}
