/* MFTI portfolio: deliberately light in every colour scheme; no global overrides. */
.brand-portfolio {
  color-scheme: light;
  padding-block: 0 clamp(2rem, 1rem + 3vw, 4rem);
  color: #22304A;
  background: var(--bg, #F7F6F2);
  font-family: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.brand-portfolio__container {
  width: min(100% - 2rem, 1408px);
  margin-inline: auto;
}
.brand-portfolio__panel {
  padding: clamp(1rem, 3vw, 2.75rem);
  border: 0;
  border-radius: 0;
  background: var(--bg, #F7F6F2);
  box-shadow: none;
}
.brand-portfolio__head {
  max-width: 46rem;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}
.brand-portfolio__title {
  margin: 0;
  color: #011E48;
  font-size: var(--section-heading-size);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.5rem, 1.5vw, 1.125rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.brand-grid__cell {
  position: relative;
  isolation: isolate;
  min-width: 0;
  height: clamp(72px, 8.5vw, 112px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.brand-grid__logo {
  position: absolute;
  inset: 17% 11%;
  display: block;
  width: 78%;
  max-width: none;
  height: 66%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 360ms linear;
  /* No filters, transforms, hover scaling or animated card dimensions. */
}
.brand-grid__cell[data-brand-active="0"] > [data-brand-layer="0"],
.brand-grid__cell[data-brand-active="1"] > [data-brand-layer="1"] {
  opacity: 1;
}
.brand-portfolio__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-top: clamp(1rem, 2vw, 1.75rem);
}
/* Keep keyboard controls available without showing buttons in the presentation. */
.brand-portfolio__controls:not(:focus-within) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.brand-portfolio__controls[hidden],
.brand-portfolio__button[hidden] { display: none; }
.brand-portfolio__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: .5rem;
  border: 0;
  border-radius: 999px;
  color: #011E48;
  background: transparent;
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.brand-portfolio__button {
  min-width: 7.5rem;
  padding-inline: 1rem;
  border: 1px solid #BCC8D9;
}
.brand-portfolio__button:hover { background: #DFE6F0; }
.brand-portfolio__button:focus-visible {
  outline: 2px solid #011E48;
  outline-offset: 3px;
}
.brand-portfolio__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.brand-portfolio[data-brand-motion="reduced"] .brand-grid__logo,
.brand-portfolio[data-brand-instant] .brand-grid__logo { transition: none; }
@media (min-width: 1024px) {
  .brand-portfolio { padding-bottom: clamp(1rem, 3vh, 2rem); scroll-margin-top: var(--header-h); }
  .brand-portfolio__panel { padding-block: clamp(1rem, 3vh, 1.5rem); }
  .brand-portfolio__head { margin-bottom: 1.5rem; }
  .brand-grid { gap: 1rem; }
  .brand-grid__cell { height: clamp(4rem, 10vh, 6rem); }
}
@media (min-width: 768px) {
  .brand-portfolio__container { width: min(100% - 2rem, 1408px); }
  .brand-portfolio__panel {
    padding-inline: calc(max(2rem, (100vw - var(--container, 1280px)) / 2) - max(1rem, (100vw - 1408px) / 2));
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-portfolio .brand-grid__logo { transition: none; }
}
@media (max-width: 599px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid__cell { height: 72px; }
}
