/* ═══════════════════════════════════════════════════════
   BRANDS — company cards and story panels
   ═══════════════════════════════════════════════════════ */

/* ── BRANDS GRID ── */
#brands {
  background: var(--black);
}

.brands-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.brands-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Brand card */
.bc {
  background: var(--card);
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s,
    box-shadow 0.3s;
  cursor: pointer;
}
.bc::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.bc:hover::after {
  transform: scaleX(1);
}
.bc:hover {
  transform: translateY(-7px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}
.bc.green::after {
  background: var(--green-lt);
}
.bc.rose::after {
  background: var(--rose-lt);
}

/* Card photo */
.bc-photo {
  margin: 0;
  height: 200px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.bc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.76) contrast(1.06);
  transition:
    transform 0.55s ease,
    filter 0.35s;
}
.bc:hover .bc-photo img {
  transform: scale(1.05);
  filter: brightness(0.88) contrast(1.06);
}

/* Gradient placeholder for cards without real photos */
.bc-photo-brand {
  background: linear-gradient(
    150deg,
    rgba(32, 32, 36, 1) 0%,
    rgba(18, 18, 22, 1) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bc.green .bc-photo-brand {
  background: linear-gradient(
    150deg,
    rgba(20, 42, 20, 1) 0%,
    rgba(12, 22, 12, 1) 100%
  );
}
.bc.rose .bc-photo-brand {
  background: linear-gradient(
    150deg,
    rgba(42, 12, 26, 1) 0%,
    rgba(22, 8, 16, 1) 100%
  );
}
/* Top accent stripe */
.bc-photo-brand::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
}
.bc.green .bc-photo-brand::after {
  background: var(--green-lt);
}
.bc.rose .bc-photo-brand::after {
  background: var(--rose-lt);
}

/* Card tag */
.bc-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
  padding: 1.25rem 1.5rem 0;
}
.bc.green .bc-tag {
  color: var(--green-lt);
}
.bc.rose .bc-tag {
  color: var(--rose-lt);
}

/* Logo strip */
.bc-logo {
  height: 48px;
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0 1.5rem;
}
.bc-logo.tint-light,
.bc-logo.tint-dark,
.bc-logo.tint-black {
  padding: 8px 12px;
  border-radius: var(--radius);
}
.bc-logo.tint-light {
  background: rgba(255, 255, 255, 0.05);
}
.bc-logo.tint-dark {
  background: rgba(0, 0, 0, 0.45);
}
.bc-logo.tint-black {
  background: #0a0a0a;
}
.bc-logo img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

/* Description */
.bc-d {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
  padding: 0 1.5rem;
}

/* Feature bullets */
.bc-feats {
  list-style: none;
  margin: 0.8rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 1.5rem;
}
.bc-feats li {
  font-size: 0.73rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.bc-feats li::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 5px;
}
.bc.green .bc-feats li::before {
  background: var(--green-lt);
}
.bc.rose .bc-feats li::before {
  background: var(--rose-lt);
}

/* Link */
.bc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  margin-top: auto;
  padding: 0.85rem 1.5rem 1.5rem;
  letter-spacing: 0.03em;
  transition: gap 0.2s;
}
.bc.green .bc-link {
  color: var(--green-lt);
}
.bc.rose .bc-link {
  color: var(--rose-lt);
}
.bc-link:hover {
  gap: 10px;
}

/* ── STORY PANELS ── */
.story-sec {
  background: var(--black);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-sec-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

/* Each panel is its own card — no shared-border trick */
.story-grid {
  display: grid;
  gap: 2rem;
}

.story-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* min-height: 480px; */
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition:
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}
.story-panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Accent top stripe per colour */
.story-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  z-index: 3;
}
.story-panel.green::before {
  background: var(--green-lt);
}
.story-panel.rose::before {
  background: var(--rose-lt);
}

.story-panel.flip .sp-photo {
  grid-column: 2;
  grid-row: 1;
}
.story-panel.flip .sp-body {
  grid-column: 1;
  grid-row: 1;
}

/* Photo side */
.sp-photo {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}
.sp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.72) contrast(1.08);
  transition:
    transform 0.7s ease,
    filter 0.45s ease;
}
.story-panel:hover .sp-photo img {
  transform: scale(1.05);
  filter: brightness(0.84) contrast(1.08);
}

/* Subtle colour-tinted vignette that fades in on hover */
.sp-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  background: linear-gradient(
    135deg,
    rgba(224, 90, 26, 0.12) 0%,
    transparent 60%
  );
}
.story-panel.green .sp-photo::after {
  background: linear-gradient(
    135deg,
    rgba(45, 122, 30, 0.14) 0%,
    transparent 60%
  );
}
.story-panel.rose .sp-photo::after {
  background: linear-gradient(
    135deg,
    rgba(194, 24, 91, 0.14) 0%,
    transparent 60%
  );
}
.story-panel:hover .sp-photo::after {
  opacity: 1;
}

/* Text side */
.sp-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1rem, 2vw, 2.5rem);
  background: var(--dark);
  border-left: 1px solid var(--border);
}
.story-panel.flip .sp-body {
  border-left: none;
  border-right: 1px solid var(--border);
}
.sp-body.alt {
  background: var(--darker);
}

.sp-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  margin-bottom: -1rem;
  letter-spacing: 0.05em;
}
.sp-h {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 1.2rem;
}
.sp-p {
  max-width: 66ch;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.88;
  margin-bottom: 1.8rem;
}

/* Mini stat grid inside panels */
.sp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}
.sp-stat {
  min-width: 0;
  padding: 1.1rem 0.8rem;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background var(--transition);
}
.sp-stat:hover {
  background: rgba(255, 255, 255, 0.03);
}
.sp-stat:last-child {
  border-right: none;
}
.sp-sv {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1;
}
.sp-sv span {
  color: var(--orange);
}
.sp-sv.t {
  font-size: 1.15rem;
}
.sp-sl {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.story-panel.green .sp-sv {
  color: var(--green-lt);
}
.story-panel.rose .sp-sv {
  color: var(--rose-lt);
}
