/* styles_building.css — Building page only. Shared parts (header, typography,
   buttons, trust, process, partners, contact, popup) come from styles_common.css */

/* ============================================
   PAGE — BUILDING HERO
   ============================================ */
body.page-building {
  background-color: var(--color-black);
}

.building-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-top: 7rem;
  padding-bottom: 0;
}

.building-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 60% 40%,
      rgba(30, 60, 120, 0.45) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 20% 80%,
      rgba(10, 40, 80, 0.3) 0%,
      transparent 50%
    ),
    var(--color-black);
  z-index: 0;
}

.building-hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.building-hero__overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    0deg,
    var(--color-black) 0%,
    transparent 30%
  );
  z-index: 2;
}

/* Hidden until the intro timeline in script_building.js takes over
   (class is set in <head> and removed when the intro ends) */
.hero-intro header,
.hero-intro .building-hero__bg,
.hero-intro .building-hero__grid-lines,
.hero-intro .building-hero h1,
.hero-intro .building-hero__sub,
.hero-intro .building-hero__actions > *,
.hero-intro .building-hero__trio {
  opacity: 0;
}

.building-hero__content {
  position: relative;
  max-width: 820px;
  padding: 2rem 2rem 0;
  z-index: 10;
}

/* Same size as the Home hero headline */
.building-hero h1 {
  font-size: 4rem;
  font-weight: 600;
  text-wrap: balance;
}

@media (max-width: 768px) {
  .building-hero h1 {
    font-size: 2.6rem;
  }
}

/* "Solutions" on its own line, like the Home hero */
.building-hero__brand {
  display: block;
  width: fit-content; /* gradient spans only the word, not the whole line */
  margin-inline: auto;
}

/* Same as the Home hero subline */
.building-hero__sub {
  font-size: 1.15rem;
  font-weight: 300;
  opacity: 0.85;
  margin-top: 1.5rem;
  /* max-width: 620px; */
  margin-left: auto;
  margin-right: auto;
}


.building-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.building-hero__gui-preview {
  display: none; /* legacy — replaced by trio */
}

/* -----------------------------------------------
   HERO TRIO — three laptops, flat layout
----------------------------------------------- */
.building-hero__trio {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 3.5rem;
  z-index: 5;
  /* fade bottom into page */
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.building-hero__trio-laptop {
  position: relative;
  flex-shrink: 0;
}

.building-hero__trio-laptop img {
  width: 100%;
  height: auto;
  display: block;
}

/* CENTER — largest, upright, full brightness */
.building-hero__trio-laptop--center {
  width: 46%;
  z-index: 3;
}

/* LEFT — same look, just smaller and pushed down a bit */
.building-hero__trio-laptop--left {
  width: 34%;
  z-index: 2;
  margin-right: -7%;
  transform: translateY(4%);
  filter: brightness(0.85);
}

/* RIGHT — mirror of left */
.building-hero__trio-laptop--right {
  width: 34%;
  z-index: 2;
  margin-left: -7%;
  transform: translateY(4%);
  filter: brightness(0.85);
}

/* Phones and tablets: same fan of three, smaller — the side laptops peek
   out from behind the centre one and run off the screen edges */
@media (max-width: 900px) {
  .building-hero__trio {
    margin-top: 2.5rem;
  }

  .building-hero__trio-laptop--center {
    width: 66%;
  }

  .building-hero__trio-laptop--left {
    width: 50%;
    margin-right: -28%;
  }

  .building-hero__trio-laptop--right {
    width: 50%;
    margin-left: -28%;
  }
}

/* ============================================
   GUI SHOWCASE SECTIONS
   ============================================ */

.gui-showcase {
  background: var(--color-black);
  padding: 8rem 6rem;
  display: flex;
  align-items: center;
  gap: 6rem;
}

.gui-showcase--reverse {
  flex-direction: row-reverse;
}

.gui-showcase__text {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Title, description and tags use .section-title, .section-sub and .tags */

.gui-showcase__media {
  flex: 1;
  overflow: hidden;
}

.gui-showcase__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  filter: brightness(0.9);
  transition:
    filter 0.4s ease,
    transform 0.5s ease;
}

.gui-showcase__media img:hover {
  filter: brightness(1);
  transform: scale(1.01);
}

/* Split grid variant */
.gui-showcase--split {
  flex-direction: column;
  gap: 4rem;
  padding-bottom: 8rem;
}

.gui-showcase__split-header {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 620px;
}

.gui-showcase__split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

.gui-showcase__split-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gui-showcase__split-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  filter: brightness(0.88);
  transition:
    filter 0.4s ease,
    transform 0.5s ease;
}

.gui-showcase__split-item img:hover {
  filter: brightness(1);
  transform: scale(1.01);
}


@media (max-width: 1024px) {
  .gui-showcase {
    flex-direction: column;
    padding: 5rem 3rem;
    gap: 3rem;
  }
  .gui-showcase--reverse {
    flex-direction: column;
  }
  .gui-showcase__text {
    flex: none;
  }
  .gui-showcase__split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .gui-showcase {
    padding: 4rem 1.5rem;
  }
  .building-hero__gui-preview {
    width: 95%;
  }
}

/* ============================================
   BMS INTRO
   ============================================ */
.bms-intro {
  background: var(--color-black);
  padding: 8rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.bms-intro .section-header {
  max-width: 700px;
}

.bms-intro__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* BMS graph (script_bms_graph.js): star field (canvas) under the network (SVG).
   Below 900px the script sets the height so the composition scales as one. */
.bms-graph {
  position: relative;
  height: min(80vh, 720px);
  min-height: 520px;
  overflow: hidden;
}

.bms-graph canvas,
.bms-graph svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Soft fading edges (vignette): a still layer that fades into the black
   section background. Cheaper than a mask, which is redrawn every frame. */
.bms-graph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--color-black), transparent 4%, transparent 96%, var(--color-black)),
    linear-gradient(to bottom, var(--color-black), transparent 6%, transparent 94%, var(--color-black));
  pointer-events: none;
}

.bms-graph .edge {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  transition:
    stroke 0.3s,
    opacity 0.6s;
}

.bms-graph .edge--cross {
  stroke-dasharray: 2 4;
}

/* User access lines: invisible until the user (or a system) is hovered */
.bms-graph .edge--perm {
  stroke-dasharray: 1 3;
  opacity: 0;
}

.bms-graph .edge--perm.is-lit {
  opacity: 1;
}

.bms-graph .edge.is-lit {
  stroke: rgba(255, 64, 0, 0.75);
}

.bms-graph.is-focus .edge:not(.is-lit):not(.edge--perm) {
  opacity: 0.25;
}

.bms-graph .node {
  cursor: grab;
  touch-action: none; /* drag with a finger without scrolling the page */
  transition: opacity 0.3s;
}

.bms-graph .node.is-dragging {
  cursor: grabbing;
}

.bms-graph .node circle.body {
  fill: #0b0b0d;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
  transition: stroke 0.3s;
}

.bms-graph .node--out circle.body {
  stroke-dasharray: 3 3;
}

.bms-graph .node use {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}

.bms-graph .node text {
  fill: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-anchor: middle;
  transition: fill 0.3s;
}

.bms-graph .node:hover circle.body,
.bms-graph .node.is-lit circle.body {
  stroke: rgba(255, 64, 0, 0.9);
}

.bms-graph .node:hover use,
.bms-graph .node.is-lit use {
  stroke: var(--color-active);
}

.bms-graph .node:hover text,
.bms-graph .node.is-lit text {
  fill: var(--color-white);
}

.bms-graph.is-focus .node:not(.is-lit):not(:hover):not(.hub) {
  opacity: 0.35;
}

.bms-graph .node .hub-title {
  fill: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-anchor: middle;
}

.bms-graph .pulse {
  fill: url(#bmsg-pulse); /* soft dot, gradient set in the script */
}

/* Tooltip next to the node (wide screens). Fixed width, so the box keeps its
   size wherever the node moves. The script keeps it inside the graph:
   above the node, or below it near the top. */
.bms-graph__tip {
  position: absolute;
  z-index: 1; /* above the vignette */
  top: 0;
  left: 0;
  width: 220px;
  max-width: calc(100% - 16px);
  padding: 0.6rem 0.8rem;
  background: rgba(11, 11, 13, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--color-white);
  font-size: 0.78rem;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.bms-graph__tip.is-shown {
  opacity: 1;
}

/* Desktop: the caption is a hint above the graph (details are in the tooltip).
   Phones (vertical layout): a card under the graph, see below. */
.bms-graph-wrap {
  display: flex;
  flex-direction: column;
}

.bms-graph__caption {
  order: -1; /* above the graph */
  max-width: 520px;
  margin: 0 auto 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

/* Phone card: picked icon on the left, description on the right.
   Fixed height, so the page does not jump when the text changes. */
.bms-graph-wrap.is-vertical .bms-graph__caption {
  order: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.9rem;
  align-items: center;
  width: 100%;
  min-height: 9.4em; /* fits the longest description */
  margin: 1rem auto 0;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: left;
  box-sizing: border-box;
}

.bms-graph__cap-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.45);
}

.bms-graph__cap-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bms-graph__caption.is-picked .bms-graph__cap-icon {
  border-color: rgba(255, 64, 0, 0.9);
  color: var(--color-active);
}

.bms-graph__cap-bms {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* On every pick: the text rises in and the border flashes orange */
.bms-graph__caption.is-changed {
  animation: bms-cap-flash 0.9s ease-out;
}

.bms-graph__caption.is-changed .bms-graph__cap-body {
  animation: bms-cap-in 0.35s ease-out;
}

@keyframes bms-cap-flash {
  from {
    border-color: rgba(255, 64, 0, 0.8);
  }
}

@keyframes bms-cap-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.bms-graph__tip b,
.bms-graph__caption b {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--color-white);
  font-weight: 600;
}

.bms-graph__hint {
  color: rgba(255, 255, 255, 0.45);
}

.bms-graph__proto {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-active);
}

/* BMS feature and Use Case cards — same look as the Home interface cards.
   Hover lift uses `translate`, not `transform`: GSAP animates `transform`
   on entrance, and a CSS transition on the same property makes the cards
   get stuck at different heights after a reload. */
.bms-card,
.bms-object-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    translate 0.3s ease;
}

/* Hover only with a mouse. On touch screens a tap would leave a second card
   lit; there the card at the scroll line gets .is-active instead
   (script_common.js), same look without the lift. */
@media (hover: hover) {
  .bms-card:hover,
  .bms-object-card:hover {
    border-color: var(--line-strong);
    background: var(--surface-hover);
    translate: 0 -4px;
  }

  .bms-card:hover::before,
  .bms-object-card:hover::before {
    opacity: 1;
  }
}

.bms-card.is-active,
.bms-object-card.is-active {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.bms-card.is-active::before,
.bms-object-card.is-active::before {
  opacity: 1;
}

/* Colour glow on hover — same as the Home interface cards */
.bms-card::before,
.bms-object-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 0%,
    rgba(var(--glow), 0.12) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Home palette: gold (premium), violet (Apple), blue (Google), green (open source) */
.bms-card:nth-child(1),
.bms-card:nth-child(5),
.bms-object-card:nth-child(2) {
  --glow: 167, 139, 250; /* violet */
}

.bms-card:nth-child(2),
.bms-card:nth-child(6),
.bms-object-card:nth-child(4) {
  --glow: 65, 203, 112; /* green */
}

.bms-card:nth-child(3),
.bms-object-card:nth-child(3) {
  --glow: 66, 133, 244; /* blue */
}

.bms-card:nth-child(4),
.bms-object-card:nth-child(1) {
  --glow: 212, 175, 55; /* gold */
}

.bms-card__icon {
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.bms-card__icon svg {
  width: 100%;
  height: 100%;
}

/* Name and description use .card-title and .card-text */

@media (max-width: 1024px) {
  .bms-intro__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .bms-intro {
    padding: 5rem 2rem;
  }
  .bms-intro__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ============================================
   TYPES OF OBJECTS
   ============================================ */
.bms-objects {
  background: var(--color-black);
  padding: 8rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.bms-objects .section-header {
  max-width: 700px;
}

.bms-objects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Number, title and intro use .card-num, .card-title and .card-text */


@media (max-width: 1200px) {
  .bms-objects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .bms-objects {
    padding: 5rem 2rem;
  }
  .bms-objects__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Compact cards on phones: icon / number in one row with the title,
     smaller padding, so the page is shorter. Text keeps its size. */
  .bms-card,
  .bms-object-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.75rem;
    padding: 1.5rem 1.4rem;
  }
  .bms-card__icon {
    width: 32px;
    height: 32px;
  }
  .bms-card .card-text,
  .bms-object-card .card-text {
    grid-column: 1 / -1;
  }
}

/* ============================================
   CUSTOM DEVELOPMENT
   ============================================ */
.bms-custom {
  background: var(--color-black);
  padding: 8rem 6rem;
}

.bms-custom__content {
  display: flex;
  align-items: flex-start;
  gap: 8rem;
}

.bms-custom__text {
  flex: 1;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bms-custom__list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bms-custom__item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: padding-left 0.3s ease;
}

.bms-custom__item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Mouse only: on a phone a tap would shift the row and wrap the long names */
@media (hover: hover) {
  .bms-custom__item:hover {
    padding-left: 1rem;
  }
}

/* Number and name use .card-num and .row-title (same as the Home offer list) */
.bms-custom__num {
  min-width: 30px;
}

@media (max-width: 1024px) {
  .bms-custom__content {
    flex-direction: column;
    gap: 1.2rem;
  }

  .bms-custom__text {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .bms-custom {
    padding: 5rem 2rem;
  }
}

/* ============================================
   GUI GALLERY
   ============================================ */

.gui-gallery {
  background: var(--color-black);
  padding: 8rem 0 6rem;
  overflow: hidden;
}

.gui-gallery__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 6rem 4rem;
}

/* Track wrapper — clips overflow and positions arrows */
.gui-gallery__track-wrapper {
  position: relative;
  overflow: hidden;
  /* side fade edges */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
}

/* The scrolling track */
.gui-gallery__track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  width: max-content;
  will-change: transform;
  padding: 1rem 0 3.5rem;
}

/* Individual items */
.gui-gallery__item {
  position: relative;
  flex-shrink: 0;
  width: auto;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    opacity 0.3s ease;
}

.gui-gallery__item:hover {
  transform: translateY(-4px) scale(1.02);
}

.gui-gallery__item img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
  filter: brightness(0.88);
}

.gui-gallery__item:hover img {
  filter: brightness(1);
}

/* Label shown on hover */
.gui-gallery__item-label {
  position: absolute;
  bottom: -1.8rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: rgba(255, 255, 255, 0.45);
}

.gui-gallery__item:hover .gui-gallery__item-label {
  opacity: 1;
}

/* Strip arrows */
.gui-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  z-index: 10;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.gui-gallery__arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.gui-gallery__arrow svg {
  width: 18px;
  height: 18px;
}

.gui-gallery__arrow--prev {
  left: 1.5rem;
}
.gui-gallery__arrow--next {
  right: 1.5rem;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.gui-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gui-lightbox.is-open {
  pointer-events: all;
  opacity: 1;
}

.gui-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}

.gui-lightbox__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 5rem 2rem 4rem;
}

.gui-lightbox__img-wrap {
  flex: 1;
  min-width: 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72vh;
  max-height: 72vh;
}

.gui-lightbox__img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  /* hide broken-image browser icon when src not loaded */
  color: transparent;
  /* no box-shadow — transparent PNGs don't need it */
}

/* Lightbox arrows — fixed position, never move */
.gui-lightbox__arrow {
  flex-shrink: 0;
  align-self: center;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.gui-lightbox__arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.gui-lightbox__arrow svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Close button — absolute top-right, always visible */
.gui-lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  z-index: 10;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.25s ease;
}

.gui-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.gui-lightbox__close svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Label + counter */
.gui-lightbox__label {
  position: absolute;
  bottom: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
  white-space: nowrap;
}

.gui-lightbox__counter {
  position: absolute;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.35;
}

@media (max-width: 768px) {
  .gui-gallery__header {
    padding: 0 2rem 3rem;
  }
  .gui-gallery__item {
    height: 220px;
  }
  .gui-lightbox__inner {
    padding: 4rem 0.5rem 3rem;
    gap: 0.75rem;
  }
  .gui-lightbox__arrow {
    width: 40px;
    height: 40px;
  }
  .gui-lightbox__arrow svg {
    width: 18px;
    height: 18px;
  }
  .gui-lightbox__label {
    display: none;
  }
}

/* ============================================
   SCALABLE — text on the left, the three-zone graph on the right
   (stacked on tablets and phones), before Use Cases
   ============================================ */
.bms-scale {
  background: var(--color-black);
  padding: 8rem 6rem 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 3rem;
}

/* Text at the top, level with Zone 1: in the middle of the tall graph it
   would fade in only after half of the graph has scrolled into view */
.bms-scale .section-header {
  align-self: start;
  padding-top: 6rem;
}

@media (max-width: 1024px) {
  .bms-scale {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bms-scale .section-header {
    padding-top: 0;
  }
}

/* the zone circles of the three-zone graph: orange ring, smaller name */
.bms-graph .node--hub circle.body {
  stroke: rgba(255, 64, 0, 0.85);
  stroke-width: 1.2;
}

.bms-graph .node--hub .hub-title {
  font-size: 13px;
  letter-spacing: 0.12em;
}

@media (max-width: 600px) {
  .bms-scale {
    padding: 5rem 2rem 0;
  }
}
