/* Home page styles extracted from css/styles.css. */
.hero-home {
  min-height: clamp(620px, 72vh, 780px);
  padding-top: clamp(48px, 7vh, 82px);
  padding-bottom: clamp(48px, 7vh, 82px);
}

.hero-home .hero-grid {
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(500px, 58vh, 650px);
}

.hero-home .hero-copy {
  position: relative;
  z-index: 3;
  width: min(62%, 760px);
}

.hero-home .hero-visual-home {
  position: absolute;
  z-index: 1;
  inset: 0 -72px 0 clamp(330px, 40%, 520px);
  min-height: 0;
  place-items: stretch;
  pointer-events: none;
}

.hero-home .hero-foreground-media {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.05) 12%, rgba(0, 0, 0, 0.32) 28%, rgba(0, 0, 0, 0.72) 46%, #000 64%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.05) 12%, rgba(0, 0, 0, 0.32) 28%, rgba(0, 0, 0, 0.72) 46%, #000 64%);
}

.hero-home .hero-foreground-media::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 24%, transparent 74%, rgba(255, 255, 255, 0.2));
}

.hero-home .hero-foreground-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-home .method-hero-media {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.03) 14%, rgba(0, 0, 0, 0.24) 32%, rgba(0, 0, 0, 0.62) 52%, #000 72%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.03) 14%, rgba(0, 0, 0, 0.24) 32%, rgba(0, 0, 0, 0.62) 52%, #000 72%);
}

.hero-home .method-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.9;
}

.home-ambient-pilotage {
  --ambient-image: none;
}

.home-ambient-pilotage .home-media-intro {
  position: relative;
  isolation: isolate;
}

.home-ambient-pilotage .home-media-intro::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: min(58%, 700px);
  height: 100%;
  content: "";
  pointer-events: none;
  background-image: url("../assets/img/home-pilotage-client.webp");
  background-repeat: no-repeat;
  background-position: right top;
  background-size: cover;
  opacity: 0.14;
  filter: saturate(0.92) contrast(1.02);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 88%, transparent 100%);
}

.home-ambient-pilotage .home-media-intro>* {
  position: relative;
  z-index: 1;
}

.home-ambient-contact {
  --ambient-image: url("../assets/img/home-contact-audit.webp");
  --ambient-mask: linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
  --ambient-opacity: 0.3;
  --ambient-position: center center;
  --ambient-size: cover;
}

.home-ambient-contact::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 246, 216, 0.72), rgba(255, 246, 216, 0.44) 42%, rgba(255, 246, 216, 0.78)),
    linear-gradient(90deg, rgba(255, 246, 216, 0.76), rgba(255, 246, 216, 0.28) 48%, rgba(255, 246, 216, 0.68));
}

.home-media-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 4.4vw, 58px);
  align-items: center;
  margin-bottom: 42px;
}

.home-media-intro .section-heading {
  max-width: none;
  margin-bottom: 0;
}

.home-media-intro .section-heading p:not(.eyebrow) {
  max-width: 66ch;
}

.home-media-intro-reverse {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 0.92fr);
}

.home-media-intro-reverse .section-heading {
  order: 2;
}

.home-ambient-section .home-media-intro {
  min-height: clamp(230px, 26vw, 350px);
}

.home-inline-media,
.home-full-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(51, 51, 51, 0.1);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(51, 51, 51, 0.08);
}

.home-inline-media {
  min-height: 270px;
  aspect-ratio: 16 / 9;
}

.home-inline-media-strategy {
  height: 100%;
  min-height: clamp(340px, 28vw, 440px);
  align-self: stretch;
  aspect-ratio: auto;
}

.home-full-media {
  height: clamp(290px, 34vw, 430px);
  margin: -10px 0 34px;
  border-radius: 10px;
}

.home-inline-media::after,
.home-full-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 0 58%, rgba(255, 255, 255, 0.2));
  pointer-events: none;
}

.home-inline-media img,
.home-full-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-inline-media-strategy img {
  object-position: center;
}

.home-full-media img {
  object-position: center top;
}

.problem-match-list {
  display: grid;
  gap: 10px;
  margin: -16px 0 32px;
}

.problem-match-list article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-width: 0;
  padding: 18px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(51, 51, 51, 0.05);
}

.problem-match-list article::before {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--gold);
  border-radius: 999px;
  content: "";
  justify-self: center;
}

.problem-match-list article::after {
  grid-column: 2;
  grid-row: 1;
  width: 22px;
  height: 22px;
  content: "";
  background: var(--dark);
  justify-self: center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.problem-match-list span {
  display: block;
  grid-column: 1;
  color: var(--dark);
  font-size: 1.02rem;
  font-weight: 900;
  text-align: right;
}

.problem-match-list p {
  grid-column: 3;
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.5;
}

.problem-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 20px 0;
}

.problem-cards article {
  position: relative;
  top: auto;
  left: auto;
  display: grid;
  width: auto;
  min-width: 0;
  min-height: 230px;
  gap: 18px;
  align-content: start;
  padding: 28px 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--bubble-color, var(--gold));
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(51, 51, 51, 0.06);
  text-align: left;
}

.problem-cards article::before {
  display: none;
}

.problem-cards h3::before {
  width: 30px;
  height: 30px;
  content: "";
  background: var(--bubble-color, var(--gold));
  -webkit-mask: var(--bubble-icon) center / contain no-repeat;
  mask: var(--bubble-icon) center / contain no-repeat;
}

.problem-cards article::after {
  display: none;
}

.problem-cards article:nth-child(1) {
  --bubble-color: #f4c300;
  --bubble-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5M4 19h16M7 15l4-4 3 3 5-7M16 7h3v3'/%3E%3C/g%3E%3C/svg%3E");
}

.problem-cards article:nth-child(2) {
  --bubble-color: #349ed8;
  --bubble-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4M9 10h3.5M10.5 8.5V12'/%3E%3C/g%3E%3C/svg%3E");
}

.problem-cards article:nth-child(3) {
  --bubble-color: #2fbf71;
  --bubble-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16M4 16h16M8 4v16M16 4v16'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

.problem-cards article:nth-child(4) {
  --bubble-color: #ef6f6c;
  --bubble-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 4v5c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V7l7-4Z'/%3E%3Cpath d='m9.5 12 1.8 1.8 3.5-4'/%3E%3C/g%3E%3C/svg%3E");
}

.problem-cards article:nth-child(5) {
  --bubble-color: #8a63d2;
  --bubble-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.4 4.1L17.5 8l-4.1 1.4L12 13.5l-1.4-4.1L6.5 8l4.1-1.4L12 3ZM18 13l.9 2.6 2.6.9-2.6.9L18 21l-.9-3.6-2.6-.9 2.6-.9L18 13Z'/%3E%3C/g%3E%3C/svg%3E");
}

.problem-cards article:nth-child(6) {
  --bubble-color: #1fb6aa;
  --bubble-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s6-5.4 6-11a6 6 0 1 0-12 0c0 5.6 6 11 6 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
}

.problem-cards h3 {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.28vw, 1.22rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.problem-cards p {
  max-width: 31ch;
  font-size: clamp(0.82rem, 0.95vw, 0.94rem);
  font-weight: 650;
  line-height: 1.48;
}

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

.leverage-card {
  display: grid;
  min-height: 430px;
  gap: 18px;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  padding: 28px 24px;
  border-top: 5px solid var(--leverage-color, var(--gold));
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.leverage-card h3 {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: auto;
  margin-bottom: 0;
  line-height: 1.08;
}

.leverage-card h3::before {
  width: 30px;
  height: 30px;
  content: "";
  background: var(--leverage-color, var(--gold));
  -webkit-mask: var(--leverage-icon) center / contain no-repeat;
  mask: var(--leverage-icon) center / contain no-repeat;
}

.leverage-card:nth-child(1) {
  --leverage-color: #f4c300;
  --leverage-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4M8 10.5h5M10.5 8v5'/%3E%3C/g%3E%3C/svg%3E");
}

.leverage-card:nth-child(2) {
  --leverage-color: #349ed8;
  --leverage-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5M4 19h16M7 15l4-4 3 3 5-7M16 7h3v3'/%3E%3C/g%3E%3C/svg%3E");
}

.leverage-card:nth-child(3) {
  --leverage-color: #ef6f6c;
  --leverage-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 4v5c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V7l7-4Z'/%3E%3Cpath d='m9.5 12 1.8 1.8 3.5-4'/%3E%3C/g%3E%3C/svg%3E");
}

.leverage-card:nth-child(4) {
  --leverage-color: #1fb6aa;
  --leverage-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='12' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4M8 9h8M8 13h5'/%3E%3C/g%3E%3C/svg%3E");
}

.leverage-links {
  display: grid;
  gap: 8px;
  align-content: space-evenly;
  align-self: stretch;
}

.leverage-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 10px;
  color: var(--dark);
  background: color-mix(in srgb, var(--leverage-color, var(--gold)) 50%, var(--white));
  background-image: none;
  border: 1px solid color-mix(in srgb, var(--leverage-color, var(--gold)) 42%, var(--line));
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
}

.leverage-links a:hover,
.leverage-links a:focus-visible {
  border-color: var(--leverage-color, var(--gold));
  background: color-mix(in srgb, var(--leverage-color, var(--gold)) 62%, var(--white));
}

.leverage-card>.text-link {
  align-self: end;
  justify-self: center;
  width: fit-content;
  color: var(--link);
  text-align: center;
}

.leverage-card>.text-link:hover,
.leverage-card>.text-link:focus-visible {
  color: var(--dark);
}

.metric-card {
  padding: 32px 24px;
  text-align: center;
}

.metric-card strong {
  display: block;
  color: var(--gold);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 10px;
  color: var(--dark);
  font-weight: 800;
}

.metric-card small {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 0.92rem;
}

.proof-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.proof-gallery figure {
  margin: 0;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(51, 51, 51, 0.08);
}

.proof-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 6px;
}

.proof-gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.case-label {
  width: calc(100% + 48px);
  margin: -24px -24px 0;
  padding: 10px 16px;
  color: var(--dark);
  background: rgba(244, 195, 0, 0.18);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.case-chart {
  overflow: hidden;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(24, 35, 52, 0.06) 32px);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.case-chart svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 276 / 156;
}

@media (prefers-reduced-motion: reduce) {
.problem-cards {
    display: grid;
    min-height: auto;
  }

.problem-cards article {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    transform: none !important;
  }
}

@media (max-width: 1080px) {
.hero-home {
    min-height: auto;
  }

.hero-home .hero-grid {
    min-height: auto;
  }

.hero-home .hero-copy {
    width: 100%;
  }

.hero-home .hero-visual-home {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 28px;
    pointer-events: auto;
  }

.hero-home .hero-foreground-media {
    height: auto;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(51, 51, 51, 0.1);
    border-radius: 10px;
    box-shadow: 0 22px 52px rgba(51, 51, 51, 0.12);
    -webkit-mask-image: linear-gradient(180deg, #000 0 82%, rgba(0, 0, 0, 0.2) 100%);
    mask-image: linear-gradient(180deg, #000 0 82%, rgba(0, 0, 0, 0.2) 100%);
  }

.hero-home .hero-foreground-media img {
    height: 100%;
  }

.hero-home .method-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.home-media-intro,
  .home-media-intro-reverse {
    margin-bottom: 34px;
  }

.home-ambient-section .home-media-intro {
    min-height: auto;
  }

.home-media-intro-reverse .section-heading {
    order: initial;
  }
}

@media (max-width: 860px) {
.home-ambient-pilotage .home-media-intro::before {
    top: 0;
    width: min(70%, 620px);
    background-size: cover;
  }

.home-ambient-contact {
    --ambient-position: center center;
    --ambient-size: cover;
  }

.home-inline-media {
    min-height: 240px;
  }

.home-inline-media-strategy {
    min-height: clamp(300px, 48vw, 380px);
  }

.home-full-media {
    height: clamp(260px, 48vw, 390px);
    margin-bottom: 28px;
  }

.problem-match-list {
    margin-top: -8px;
  }

.problem-match-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

.problem-match-list article::before {
    grid-column: 1;
    grid-row: 2;
    width: 30px;
    height: 30px;
    transform: rotate(90deg);
  }

.problem-match-list article::after {
    grid-column: 1;
    grid-row: 2;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    transform: rotate(90deg);
  }

.problem-match-list span,
  .problem-match-list p {
    grid-column: 1;
    text-align: left;
  }

.problem-match-list span {
    grid-row: 1;
  }

.problem-match-list p {
    grid-row: 3;
  }

.problem-cards {
    display: grid;
    min-height: auto;
  }

.problem-cards article {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    border-radius: 10px;
    padding: 30px 24px;
    transform: none;
    animation: none;
  }
}

@media (max-width: 560px) {
.hero-home .hero-foreground-media {
    aspect-ratio: 4 / 3;
  }

.hero-home .method-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.home-inline-media {
    min-height: 210px;
  }

.home-inline-media-strategy {
    min-height: 260px;
  }

.home-full-media {
    height: 240px;
    margin-top: -4px;
    margin-bottom: 24px;
  }

.home-ambient-pilotage .home-media-intro::before {
    top: 0;
    width: 100%;
    background-position: right top;
    background-size: cover;
    opacity: 0.08;
  }
}

@media (min-width: 861px) {
.site-hero.is-hero-locked.hero-home:has(.hero-insights-in-hero) {
    padding-bottom: calc(clamp(24px, 4vh, 46px) + var(--home-insights-height));
  }
}
