/* Portfolio company tiles — equal typography and hover, brand colours unchanged. */
.gr-pc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

a.gr-pc-tile,
.gr-pc-tile {
  min-height: 350px;
  height: 100%;
  padding: 30px;
  color: var(--gr-pc-text, #fff);
  background: var(--gr-pc-bg, #00249C);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  text-decoration: none;
  position: relative;
  box-sizing: border-box;
  border-top: 4px solid var(--gr-pc-accent, transparent);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.gr-pc-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.gr-pc-tile small {
  display: block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0.9;
  margin: 0;
  min-height: 1.3em;
}

.gr-pc-tile .gr-pc-name,
.gr-pc-tile h2.gr-pc-name,
h2.gr-pc-name {
  font-size: clamp(36px, calc(6vw - 4px), 78px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.07em;
  margin: 0;
  color: inherit;
  width: 100%;
  min-height: calc(0.96em * 3);
}

.gr-pc-tagline {
  display: block;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: inherit;
  opacity: 0.92;
  width: 100%;
  min-height: calc(1.4em * 2);
}

.gr-pc-visit {
  display: block;
  margin-top: 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0.88;
  min-height: 1.3em;
}

.gr-pc-logo-wrap {
  position: absolute;
  top: 22px;
  left: 30px;
  right: 30px;
}

.gr-pc-logo {
  max-height: 48px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: none;
}

a.gr-pc-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: var(--gr-pc-accent, #fff);
  transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

a.gr-pc-tile:hover,
a.gr-pc-tile:focus-visible {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 36px rgba(9, 11, 18, 0.22);
  color: var(--gr-pc-text, #fff);
  outline: none;
  z-index: 1;
}

a.gr-pc-tile:hover .gr-pc-visit,
a.gr-pc-tile:focus-visible .gr-pc-visit {
  opacity: 1;
}

a.gr-pc-tile:hover::after,
a.gr-pc-tile:focus-visible::after {
  height: 3px;
}

a.gr-pc-tile:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gr-pc-accent, #00249C), 0 18px 36px rgba(9, 11, 18, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  a.gr-pc-tile,
  a.gr-pc-tile::after {
    transition: none;
  }
  a.gr-pc-tile:hover,
  a.gr-pc-tile:focus-visible {
    transform: none;
    box-shadow: 0 8px 20px rgba(9, 11, 18, 0.18);
  }
  a.gr-pc-tile:focus-visible {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--gr-pc-accent, #00249C), 0 8px 20px rgba(9, 11, 18, 0.18);
  }
  a.gr-pc-tile:hover::after,
  a.gr-pc-tile:focus-visible::after {
    height: 3px;
  }
}

@media (max-width: 700px) {
  .gr-pc-grid,
  .pf-grid.gr-pc-grid,
  .gr-portfolio.gr-pc-grid {
    grid-template-columns: 1fr;
  }
  h2.gr-pc-name,
  .gr-pc-tile .gr-pc-name {
    min-height: calc(0.96em * 2);
  }
}
