/* The supplier content keeps its own imagery; Northwood workspace chrome stays on brand. */
body.nw-refined.page-brand {
  /* Brand themes are written inline by brand-page.js, so these shared UI tokens take precedence. */
  --brand-workspace-accent: #2f3538 !important;
  --brand-workspace-accent-rgb: 47, 53, 56 !important;
  --brand-workspace-glow: #e3ae95 !important;
  --brand-workspace-glow-rgb: 227, 174, 149 !important;
  --brand-workspace-dark: #2f3538 !important;
  --brand-workspace-dark-rgb: 47, 53, 56 !important;
  --brand-workspace-surface: #f4f3f1 !important;
  --brand-workspace-surface-rgb: 244, 243, 241 !important;
  --brand-workspace-ink: #2f3538 !important;
  --brand-studio-line: #dedbd6;
  --brand-studio-soft: #f4f3f1;
  background: #f4f3f1;
}

/* Reolink retains its dedicated, compact product-browser introduction. */
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero {
  padding: 0;
  border: 1px solid #dedbd6;
  border-top: 3px solid var(--brand-workspace-accent);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(47 53 56 / 4%);
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero::before,
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero::after { display: none; }
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero :is(.portal-brand-hero__badge, .portal-brand-summary__copy, .portal-brand-summary__meta, .brand-studio-map) { animation: none; }

body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-summary__layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 28%);
  align-items: stretch;
  gap: 0;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-summary__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  padding: 28px 32px;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-summary__head {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  grid-template-areas: "logo category" "logo title" "description description" "metadata metadata";
  column-gap: 22px;
  row-gap: 4px;
  align-items: center;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-summary__copy { display: contents; }
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-hero__badge {
  grid-area: logo;
  width: 100px;
  height: 66px;
  padding-right: 20px;
  border-right: 1px solid #dedbd6;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-mark-badge--hero {
  display: grid;
  place-items: center;
  width: 100%;
  height: 66px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-hero__badge:hover .brand-mark-badge--hero {
  box-shadow: none;
  transform: none;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-mark-badge__logo {
  width: 100%;
  height: 48px;
  max-width: none;
  max-height: 48px;
  padding: 0;
  object-fit: contain;
  transform: none;
}
body.nw-refined.page-brand:is([data-brand-id="avigilon"], [data-brand-id="avigilon-alta"]) .brand-studio-hero .brand-mark-badge__logo { object-fit: cover; object-position: center; }
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-mark-badge__platform {
  font-size: .6rem;
  letter-spacing: .08em;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .eyebrow {
  grid-area: category;
  align-self: end;
  margin: 0;
  color: #62696b;
  font-size: .63rem;
  line-height: 1.55;
  letter-spacing: .11em;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero h1 {
  grid-area: title;
  align-self: start;
  max-width: none;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-lede {
  grid-area: description;
  max-width: 66ch;
  margin: 15px 0 0;
  color: #62696b;
  font-size: .9rem;
  line-height: 1.7;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-hero__meta {
  grid-area: metadata;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 13px 0 0;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .supplier-badge {
  min-height: 20px;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #62696b;
  font-size: .72rem;
  font-weight: 500;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .supplier-badge--local::before,
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .supplier-badge--supplier::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-workspace-accent);
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .supplier-badge--compliance {
  padding: 5px 8px;
  border: 1px solid #dedbd6;
  border-radius: 6px;
  color: var(--brand-workspace-ink);
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-summary__meta {
  display: block;
  margin: 21px 0 0;
  padding: 0;
  border: 0;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 9px;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-actions .button {
  min-height: 42px;
  margin: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: .78rem;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-actions .button--solid {
  border-color: var(--brand-workspace-ink);
  background: var(--brand-workspace-ink);
  color: #fff;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-actions .button--line {
  border-color: #dedbd6;
  background: #fff;
  color: var(--brand-workspace-ink);
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-studio-map {
  display: block;
  position: relative;
  align-self: stretch;
  min-height: 275px;
  padding: 0;
  border: 0;
  border-left: 1px solid #dedbd6;
  border-radius: 0;
  background: #f4f3f1;
  box-shadow: none;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-studio-map__visual {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-studio-map__visual > img {
  grid-area: 1 / 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-studio-map__visual > img.is-contain {
  padding: 14px;
  object-fit: contain;
  background: #f4f3f1;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-studio-map__visual figcaption {
  position: static;
  grid-area: 2 / 1;
  gap: 4px;
  padding: 14px 22px;
  border: 0;
  border-top: 1px solid #dedbd6;
  border-radius: 0;
  background: #fff;
  color: var(--brand-workspace-ink);
  backdrop-filter: none;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-studio-map__visual figcaption small {
  color: #62696b;
  font-size: .6rem;
  letter-spacing: .09em;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-studio-map__visual figcaption strong {
  overflow: visible;
  white-space: normal;
  font-size: .82rem;
  line-height: 1.5;
}
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero:has(.brand-studio-map__visual[hidden]) .portal-brand-summary__layout { grid-template-columns: 1fr; }
body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-studio-map:has(.brand-studio-map__visual[hidden]) { display: none; }

/* Layered photographs and titles move together without resizing the header. */
.brand-feature__stage {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}
body.nw-refined.page-brand .brand-studio-hero .brand-feature__stage .brand-feature__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(12px) scale(1.035);
  transition: opacity 550ms ease, transform 850ms cubic-bezier(.2,.65,.25,1);
  pointer-events: none;
}
body.nw-refined.page-brand .brand-studio-hero .brand-feature__stage .brand-feature__image.is-active {
  z-index: 1;
  opacity: 1;
  transform: translateX(0) scale(1);
}
body.nw-refined.page-brand .brand-studio-hero .brand-feature__stage .brand-feature__image.is-contain {
  padding: 14px;
  object-fit: contain;
  background: #f4f3f1;
}
body.nw-refined.page-brand .brand-studio-hero .brand-feature figcaption {
  position: relative;
  padding: 12px 18px 5px;
  gap: 2px;
}
.brand-feature__titles { display: grid; align-items: center; min-height: 2.5em; }
body.nw-refined.page-brand .brand-studio-hero .brand-feature__title {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms ease, transform 450ms ease;
}
body.nw-refined.page-brand .brand-studio-hero .brand-feature__title.is-active { opacity: 1; transform: translateY(0); }
.brand-feature__controls { display: flex; align-items: center; gap: 12px; }
.brand-feature__shortcuts { display: flex; flex: 1; min-width: 0; gap: 6px; }
.brand-feature__shortcut,
.brand-feature__toggle {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--brand-workspace-ink);
  cursor: pointer;
}
.brand-feature__shortcut { position: relative; flex: 1; }
.brand-feature__shortcut::before { content: ""; position: absolute; inset: 13px 0; border-radius: 3px; background: #dedbd6; }
.brand-feature__progress { position: absolute; inset: 13px 0; border-radius: 3px; background: var(--brand-workspace-ink); transform: scaleX(0); transform-origin: left; }
.brand-feature__shortcut[aria-pressed="true"] .brand-feature__progress { transform: scaleX(1); }
.brand-feature[data-playing="true"] .brand-feature__shortcut[aria-pressed="true"] .brand-feature__progress { animation: brand-feature-progress 3500ms linear both; }
.brand-feature__toggle { width: 30px; flex: 0 0 30px; background: #f4f3f1; }
.brand-feature__toggle svg { fill: none; stroke: currentColor; stroke-width: 2; }
.brand-feature__play-icon { display: none; }
.brand-feature[data-paused="true"] .brand-feature__pause-icon { display: none; }
.brand-feature[data-paused="true"] .brand-feature__play-icon { display: block; fill: currentColor; stroke: none; }
.brand-feature :is(button):hover { background-color: #eeece8; }
.brand-feature :is(button):focus-visible { outline: 2px solid var(--brand-workspace-ink); outline-offset: 2px; }
@keyframes brand-feature-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  body.nw-refined.page-brand .brand-studio-hero .brand-feature__stage .brand-feature__image,
  body.nw-refined.page-brand .brand-studio-hero .brand-feature__title { transition: none; transform: none; }
  .brand-feature .brand-feature__progress { animation: none !important; }
}

@media (max-width: 950px) {
  body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-summary__layout { grid-template-columns: minmax(0, 1fr) 260px; }
  body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-summary__main { padding: 24px; }
}
@media (max-width: 700px) {
  body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-summary__layout { grid-template-columns: minmax(0, 1fr); }
  body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-studio-map { min-height: 110px; border-left: 0; border-top: 1px solid #dedbd6; }
  body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-studio-map__visual { position: static; grid-template-columns: 110px minmax(0, 1fr); grid-template-rows: 110px; min-height: 0; height: 110px; }
  body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-studio-map__visual > img.is-contain { padding: 10px; }
  body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .brand-studio-map__visual figcaption { grid-area: 1 / 2; align-content: center; padding: 14px 18px; border: 0; border-left: 1px solid #dedbd6; }
  body.nw-refined.page-brand .brand-studio-hero .brand-feature figcaption { padding: 10px 14px 4px; }
  .brand-feature__titles { min-height: 2em; }
  body.nw-refined.page-brand .brand-studio-hero .brand-feature__stage .brand-feature__image.is-contain { padding: 10px; }
}
@media (max-width: 480px) {
  body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-summary__main { padding: 22px 20px; }
  body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-summary__head { grid-template-columns: 78px minmax(0, 1fr); column-gap: 16px; }
  body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-hero__badge { width: 78px; padding-right: 15px; }
  body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-lede { font-size: .84rem; }
  body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .eyebrow { font-size: .58rem; }
  body.nw-refined.page-brand:not([data-brand-id="reolink"]) .brand-studio-hero .portal-brand-actions .button { flex: 1 1 140px; min-height: 44px; padding-inline: 12px; }
}
