.brand-universe {
  --brand-ink: #0d326c;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--brand-ink);
  background: #fff;
  isolation: isolate;
}

.brand-universe__heading {
  position: absolute;
  z-index: 20;
  top: clamp(150px, 17vh, 174px);
  right: 50%;
  width: min(520px, 60vw);
  text-align: center;
  transform: translateX(50%);
}

.brand-universe__kicker {
  display: none;
  margin: 0;
  direction: ltr;
  color: #0a8c9d;
  font: 700 8px/1.2 Arial, sans-serif;
  letter-spacing: .28em;
}

.brand-universe__heading h2 {
  margin: 0;
  color: #102f66;
  font-size: clamp(18px, 1.25vw, 23px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.brand-wall {
  --wall-rx: 0deg;
  --wall-ry: 0deg;
  --wall-light-x: 50%;
  --wall-light-y: 40%;
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  perspective: 1500px;
}

.brand-wall__scene {
  position: absolute;
  inset: 72px 0 -72px;
  overflow: hidden;
  transform: rotateX(var(--wall-rx)) rotateY(var(--wall-ry)) scale(1.012);
  transform-origin: 50% 52%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 1.1s cubic-bezier(.22,1,.36,1);
}

.brand-wall__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.brand-wall__scene::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: none;
}

.brand-wall__items {
  position: absolute;
  z-index: 5;
  inset: 0;
  transform-style: preserve-3d;
}

.brand-wall__item {
  position: absolute;
  right: var(--x);
  top: var(--y);
  width: 18.8%;
  height: 20.5%;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 18px;
  outline: none;
  color: #153965;
  text-decoration: none;
  transform: translate3d(50%, -50%, 18px) scale(.96);
  transform-style: preserve-3d;
  opacity: 0;
  transition:
    transform .72s cubic-bezier(.22,1,.36,1),
    opacity .65s ease var(--delay),
    filter .55s ease;
}

.brand-universe.is-page-active .brand-wall__item {
  opacity: 1;
  transform: translate3d(50%, -50%, 22px) scale(1);
}

.brand-wall__item::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4%;
  border: 1px solid rgba(255,255,255,0);
  border-radius: 16px;
  background: rgba(255,255,255,0);
  box-shadow: 0 16px 38px rgba(11, 58, 99, 0);
  transition: background .5s ease, border-color .5s ease, box-shadow .5s ease;
}

.brand-wall__item:hover,
.brand-wall__item:focus-visible {
  z-index: 10;
  transform: translate3d(50%, -52%, 62px) scale(1.045);
  filter: saturate(1.08);
}

.brand-wall__item:hover::before,
.brand-wall__item:focus-visible::before {
  border-color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.2);
  box-shadow: 0 22px 42px rgba(11, 58, 99, .13), inset 0 0 32px color-mix(in srgb, var(--accent) 8%, transparent);
}

.brand-wall__item img {
  width: auto;
  max-width: 70%;
  height: auto;
  max-height: 47%;
  object-fit: contain;
  filter: drop-shadow(0 7px 7px rgba(19, 49, 78, .08));
  transform: translateZ(18px);
  transition: transform .6s cubic-bezier(.22,1,.36,1), filter .5s ease;
}

.brand-wall__item:hover img,
.brand-wall__item:focus-visible img {
  filter: drop-shadow(0 13px 13px rgba(19, 49, 78, .16));
  transform: translate3d(0, -8px, 34px) scale(1.05);
}

.brand-wall__light {
  position: absolute;
  z-index: -1;
  top: 8%;
  right: 50%;
  width: 75%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--accent) 12%, white), transparent 70%);
  opacity: 0;
  transform: translateX(50%) translateZ(5px);
  transition: opacity .45s ease;
}

.brand-wall__item:hover .brand-wall__light,
.brand-wall__item:focus-visible .brand-wall__light { opacity: .72; }

.brand-wall__meta {
  position: absolute;
  left: 12%;
  bottom: 12%;
  right: 12%;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  opacity: .67;
  transform: translateZ(14px);
  transition: opacity .45s ease, transform .55s cubic-bezier(.22,1,.36,1);
}

.brand-wall__meta b { color: #153965; font-size: clamp(11px, .9vw, 15px); font-weight: 700; }
.brand-wall__meta small { direction: ltr; color: #7a8da4; font: 500 clamp(7px, .58vw, 10px)/1 Arial, sans-serif; letter-spacing: .08em; }

.brand-wall__item:hover .brand-wall__meta,
.brand-wall__item:focus-visible .brand-wall__meta { opacity: 1; transform: translate3d(0, -2px, 30px); }

.brand-wall__arrow {
  position: absolute;
  right: 12%;
  bottom: 12%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, #ccd8e3);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255,255,255,.72);
  font-size: 12px;
  opacity: 0;
  transform: translate3d(8px, 5px, 20px);
  transition: opacity .4s ease, transform .55s cubic-bezier(.22,1,.36,1);
}

.brand-wall__item:hover .brand-wall__arrow,
.brand-wall__item:focus-visible .brand-wall__arrow { opacity: 1; transform: translate3d(0, 0, 34px); }

.brand-wall__floor-glow {
  position: absolute;
  z-index: 4;
  right: 50%;
  bottom: 4%;
  width: 54%;
  height: 11%;
  border-radius: 50%;
  display: none;
  filter: blur(10px);
  transform: translateX(50%) rotateX(72deg) translateZ(8px);
  pointer-events: none;
}

.brand-wall__hint {
  position: absolute;
  z-index: 20;
  bottom: 2.8%;
  right: 50%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b829d;
  font-size: 10px;
  transform: translateX(50%);
}

.brand-wall__hint i { width: 23px; height: 1px; background: #0ca4c2; }
.brand-wall__hint span { direction: ltr; color: #9aaabd; font: 600 8px/1 Arial, sans-serif; letter-spacing: .18em; }

.brand-universe__rail {
  position: absolute;
  z-index: 22;
  right: 27px;
  top: 34%;
  height: 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  color: #53657a;
}

.brand-universe__rail span { margin: 2px 0 7px; writing-mode: vertical-rl; transform: rotate(180deg); font: 500 8px/1 Arial, sans-serif; letter-spacing: .12em; }
.brand-universe__rail i { width: 1px; height: 38px; background: rgba(25,52,78,.3); }
.brand-universe__rail i:first-child { height: 20px; background: #132f52; }

@media (max-width: 760px) {
  .brand-universe { min-height: 980px; padding: 110px 18px 42px; background: linear-gradient(180deg, #fafdff, #eef5f9); }
  .brand-universe__heading { position: relative; top: auto; right: auto; width: 100%; margin-bottom: 28px; transform: none; }
  .brand-universe__kicker { display: block; margin-bottom: 5px; }
  .brand-universe__heading h2 { font-size: 27px; }
  .brand-wall { position: relative; inset: auto; overflow: visible; perspective: none; }
  .brand-wall__scene { position: relative; inset: auto; overflow: visible; transform: none !important; }
  .brand-wall__background, .brand-wall__floor-glow { display: none; }
  .brand-wall__items { position: relative; inset: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .brand-wall__item { position: relative; right: auto; top: auto; width: auto; height: 190px; border: 1px solid rgba(255,255,255,.9); border-radius: 22px; background: linear-gradient(145deg, #fff, #eaf1f5); box-shadow: 0 16px 34px rgba(29,65,96,.1); opacity: 1; transform: none !important; }
  .brand-wall__item img { max-width: 72%; max-height: 42%; }
  .brand-wall__meta { left: 8px; bottom: 17px; right: 8px; display: grid; justify-items: center; gap: 4px; }
  .brand-wall__arrow { display: none; }
  .brand-wall__hint { position: relative; bottom: auto; margin: 26px auto 0; justify-content: center; transform: none; }
  .brand-universe__rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-wall__scene,
  .brand-wall__item,
  .brand-wall__item img,
  .brand-wall__meta,
  .brand-wall__arrow { transition: none !important; }
}

@media (prefers-reduced-motion: reduce) { .brand-wall__item { opacity: 1; } }
@media (max-width: 760px) {
  .brand-universe { background: #fff; }
  .brand-wall__item { background: #fff; border: 1px solid #e7edf3; box-shadow: none; border-radius: 12px; }
}

/* Keep the brand reading order left to right on the mobile grid as well. */
@media (max-width: 760px) {
  .brand-wall__items { direction: ltr; }
  .brand-wall__item { direction: ltr; }
}
