/* Homepage-only layout: every major section fills 100vw x 100vh. Scoped to body.home. */

.home {
  overflow-x: hidden;
}

/* ---- header: nav on the right, red corner beam instead of the Contact button ---- */
.home header {
  overflow: visible;
}

.home header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  pointer-events: none;
}

.home .desktop-contact-only {
  display: none;
}

.home .header-inner {
  justify-content: flex-start;
}
@media (max-width: 1024px) {
  .home .header-inner { justify-content: space-between; }
}

.home nav.desktop-nav {
  margin-left: auto;
  margin-right: 56px;
}

.home nav.desktop-nav a {
  font-size: 15px;
}

/* ---- shared section rhythm ---- */
.home #capabilities,
.home #experience,
.home #work,
.home #team {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding: 72px 0;
}

.home #capabilities>.wrap,
.home #experience>.wrap,
.home #work>.wrap,
.home #team>.wrap {
  width: 100%;
}

.home .hl {
  color: var(--red);
}

.home #capabilities .eyebrow,
.home #experience .eyebrow,
.home #work .eyebrow,
.home #team .eyebrow {
  display: block;
  color: var(--secondary);
  text-transform: none;
  letter-spacing: 0;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 14px;
}

.home #experience h2,
.home #work .section-head h2,
.home #team .section-head h2,
.home #capabilities h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1.12;
}

/* ---- hero: static, left copy / right animated PR film widget ---- */
.home .hero {
  height: calc(100vh - 66px);
  min-height: 560px;
  padding: 0;
  display: flex;
  align-items: center;
}

.home .hero-grid {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 40px;
}

.home .hero-media-full {
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  overflow: visible;
  align-self: center;
  aspect-ratio: auto;
}

.home .hero-media {
  flex: 1;
  align-self: stretch;
  overflow: hidden;
}

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

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

  .home .hero-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .home .hero-copy {
    width: auto;
    max-width: none;
    padding-left: 32px;
    padding-right: 32px;
  }

  .home .hero-media {
    padding: 0;
    aspect-ratio: auto;
  }
}


/* ---- red proof band ---- */
.stats-band {
  background: var(--red);
  color: var(--white);
  width: 100%;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.stats-band .stat strong {
  color: var(--white);
  font-size: clamp(24px, 2.6vw, 34px);
  /* text-transform: uppercase; */
  letter-spacing: 0.01em;
}

.stats-band .stat span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

/* ---- capabilities: title left, three items right ---- */
.cap-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.home .cap-split > *,
.home .cap-item,
.home .cap-text {
  min-width: 0;
}

.home .cap-left .section-sub {
  margin: 18px 0 0;
}

.home .cap-left .differentiators {
  margin-top: 40px;
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.home .differentiators .diff-label {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.home .differentiators .diff-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #D9DDE2;
}

.home .differentiators ul {
  display: flex;
  gap: 28px;
  width: 100%;
  flex-wrap: wrap;
}

.home .differentiators li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
}

.home .differentiators li::before {
  display: none;
}

.home .differentiators li svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  fill: none;
  stroke: #9AA0A8;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home .cap-split .cap-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 0;
  padding-top: 0;
}

.home .cap-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 0px 0;
  border-top: 0;
}

.home .cap-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  object-fit: contain;
  fill: none;
  stroke: #8C929A;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home .cap-item h3 {
  font-size: 18px;
  margin-bottom: 4px;
  color: #000;
}

.home .cap-item p {
  font-size: 13.5px;
  margin-bottom: 6px;
}

.home .cap-item .link-arrow {
  color: var(--red);
}


/* ---- selected experience ---- */
.home .home-exp {
  background-color: #F5F5F5;
  color: var(--charcoal);
}

.home .home-exp::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.exp-sectors {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 14px;
  color: var(--charcoal);
}

.home .logo-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin: 32px auto 24px;
  /* keep two rows of square tiles inside one screen on short laptop displays */
  width: min(100%, calc(3 * (100vh - 380px) + 120px));
}

.home .logo-tile {
  height: auto;
  aspect-ratio: 1 / 1;
  /* background: rgb(255 255 255 / 55%); */
  border: 1px solid #D9DDE2;
  padding: 5%;
}

/* ---- selected work ---- */
.home #work .section-head {
  margin-bottom: 40px;
}

.home #work .case-grid {
  gap: 28px;
}

/* ---- leadership ---- */
.home #team::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.home #team .section-head {
  margin-bottom: 40px;
}

.home .team-card img {
  margin-bottom: 14px;
}

/* ---- client voice / news: now two stacked, normal-flow sections (no longer the old
   2-column side-by-side layout, so no vertical-centering flex box needed here) ---- */
.home #insights .eyebrow {
  color: var(--red);
}

/* ---- tablet / mobile: natural height, stacked ---- */
@media (max-width: 1024px) {

  .home #capabilities,
  .home #experience,
  .home #work,
  .home #team,
  .home #insights {
    min-height: 0;
    padding: 48px 0;
  }

  .home header::after {
    width: 40px;
    height: 40px;
  }

  .home .home-exp::after,
  .home #team::before {
    width: 40px;
    height: 40px;
  }

  .cap-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

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

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

  .home .cap-item {
    border-top: 1px solid #E7EAEE;
  }
}

@media (max-width: 480px) {
  .home .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* stats band + capabilities share one 100vw x 100vh screen */
.home .home-block {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.home .home-block #capabilities {
  flex: 1;
  min-height: 0;
}

@media (max-width: 1024px) {
  .home .home-block {
    min-height: 0;
  }
}

/* "Explore our experience" link sits on the right edge of the (centred) logo grid */
.home .home-exp .wrap>.link-arrow {
  display: flex;
  justify-content: flex-end;
  width: min(100%, calc(3 * (100vh - 380px) + 120px));
  margin: 0 auto;
}

/* ---- logo marquee: two rows of square tiles drifting in opposite directions ---- */
.home .logo-marquee {
  --gap: 24px;
  --vis: 6;
  --tile: 150px;
  /* replaced with an exact width by assets/js/effects.js */
  width: min(100%, calc(3 * (90% - 380px) + 120px));
  margin: 32px auto 24px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.home .logo-row {
  overflow: hidden;
}

.home .logo-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: logo-drift 40s linear infinite;
}

.home .logo-row.is-reverse .logo-track {
  animation-direction: reverse;
}

.home .logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.home .logo-marquee .logo-tile {
  flex: 0 0 var(--tile);
  width: var(--tile);
  height: var(--tile);
  box-sizing: border-box;
  padding: calc(var(--tile) * 0.05);
  aspect-ratio: auto;
}

@keyframes logo-drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(var(--n) * (var(--tile) + var(--gap)) * -1));
  }
}

@media (max-width: 1024px) {
  .home .logo-marquee {
    --vis: 5;
    --gap: 12px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .home .logo-marquee {
    --vis: 4;
    --gap: 10px;
  }
}

@media (max-width: 480px) {
  .home .logo-marquee {
    --vis: 3;
    --gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .logo-track {
    animation: none;
  }
}
/* mobile: hamburger sits on the right edge, clear of the red corner beam */
@media (max-width: 1024px) {
  .home .header-actions,
  .inner .header-actions { margin-left: auto; margin-right: 26px; }
}


