/* Brand showcase: spacious introduction, layered product imagery, vertical selector. */
body[data-page="brands"] { background: #fff; }
.brands-stage { min-height: calc(100svh - 72px); padding: 80px 0 96px; display: flex; align-items: center; }
.brands-layout { display: grid; grid-template-columns: minmax(270px, .85fr) minmax(0, 1.55fr) 88px; gap: 36px; align-items: center; min-height: 510px; }
.brands-info { min-width: 0; position: relative; z-index: 1; }
.brands-icon { width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 30px; }
.brands-icon img { width: 96px; height: 96px; object-fit: contain; }
.brands-info h1 { font-size: 40px; color: var(--text); font-weight: 600; margin: 0 0 28px; line-height: 1.3; letter-spacing: .02em; }
.brands-desc { font-size: 16px; color: var(--text-sub); line-height: 2; margin: 0 0 30px; max-width: 360px; }
.brands-more { font-size: 15px; margin: 0; }
.brands-more a { color: var(--blue); display: inline-block; padding: 3px 0; }
.brands-more a:hover { color: var(--blue-dark); }
.brands-more a:focus-visible,.brands-rail-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.brands-show { position: relative; min-width: 0; width: 100%; }
.brand-visual { position: relative; width: 100%; height: 510px; margin: 0; isolation: isolate; }
.brand-visual[hidden] { display: none; }
.brand-visual:not([hidden]) { animation: brand-appear .16s ease-out; }
.brand-visual--original { display: flex; align-items: center; }
.brand-original { width: 100%; height: auto; object-fit: contain; }
.brand-device { position: absolute; width: 88%; height: 294px; left: 1%; top: 100px; background: #fff; padding: 16px 14px; border: 1px solid #dce2ed; border-radius: 24px; transform: rotate(-16deg); box-shadow: 0 3px 0 #dce2ed, 0 22px 44px #23395b18; }
.brand-camera { position: absolute; top: 6px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: #b3bdcc; }
.brand-device img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 10px; }
.brand-visual[data-visual="store"] .brand-device img { object-fit: contain; }
.brand-scene { position: absolute; width: 55%; height: 338px; right: 3%; top: 142px; transform: rotate(15deg); border: 7px solid #fff; border-radius: 10px; background: var(--surface); box-shadow: 0 18px 38px #23395b26; }
.brand-scene img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.brands-rail { display: grid; gap: 26px; justify-items: center; position: relative; z-index: 2; }
.brands-rail-item { width: 88px; height: 88px; display: grid; place-items: center; background: transparent; border: 0; padding: 12px; }
.brands-rail-mark { display: grid; place-items: center; width: 56px; height: 56px; transition: transform .16s ease; }
.brands-rail-mark img { width: 56px; height: 56px; object-fit: contain; }
.brands-rail-item.is-active .brands-rail-mark,
.brands-rail-item:focus-visible .brands-rail-mark { transform: scale(1.28); }
@media (hover: hover) {
  .brands-rail-item:hover .brands-rail-mark { transform: scale(1.28); }
}
@keyframes brand-appear { from { opacity: .3; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 1100px) {
  .brands-stage { padding: 64px 0 80px; }
  .brands-layout { grid-template-columns: minmax(250px, .9fr) minmax(0, 1.4fr) 80px; gap: 24px; }
  .brands-info h1 { font-size: 36px; }
  .brand-device { height: 250px; top: 115px; }
  .brand-scene { height: 290px; top: 165px; }
  .brands-rail-item { width: 80px; }
}
@media (max-width: 900px) {
  .brands-layout { grid-template-columns: minmax(230px, .85fr) minmax(0, 1fr) 72px; gap: 20px; }
  .brands-rail-item { width: 72px; }
  .brands-desc { font-size: 16px; }
  .brand-device { height: 210px; top: 130px; }
  .brand-scene { height: 245px; top: 185px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-visual:not([hidden]) { animation: none; }
  .brands-rail-item,.brands-rail-mark,.brands-more a { transition: none; }
}

.brands-empty { min-height: 510px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; }
.brands-empty h1 { font-size: 36px; font-weight: 600; }
.brands-empty p { color: var(--text-sub); font-size: 16px; }
.brands-retry { color: var(--blue); }
.brands-rail { display: flex; flex-direction: column; align-items: center; max-height: 510px; overflow-y: auto; scrollbar-width: thin; padding: 8px 0; }
.brands-rail-item { flex: 0 0 88px; width: 72px; }
/* Extra configured brands scroll vertically without widening the icon rail. */
.brands-rail-item { padding: 0; }
.brands-rail-item:focus-visible { outline-offset: -3px; }
.brands-info h1,.brands-desc { overflow-wrap: anywhere; }
