/* Autonomous Barbershop case study */

.bb-page main { position: relative; z-index: 1; }
.bb-page .footer { position: relative; z-index: 1; }

.bb-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-cyan);
  font-synthesis: none;
  margin: 0 0 var(--space-5);
}
.bb-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0 auto var(--space-6);
  max-width: 100%;
  font-size: clamp(1.2rem, 2.7vw, 2.45rem);
}
.bb-lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text);
  font-size: var(--text-lg);
  line-height: 1.55;
}
.bb-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}
.bb-panel {
  background:
    linear-gradient(180deg, rgba(12, 18, 36, 0.92), rgba(8, 12, 24, 0.92)) padding-box,
    linear-gradient(135deg, #FF3399, #FF9900 40%, #00FFFF) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
}

/* Hero */
.bb-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-height) + 72px) 0 56px;
  text-align: center;
  overflow: hidden;
}
.bb-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 30, 0.2) 0%, rgba(10, 15, 30, 0.06) 22%, rgba(10, 15, 30, 0.34) 58%, rgba(10, 15, 30, 0.86) 86%, #0A0F1E 100%),
    url("../assets/barbershop-case-study-bg.jpg") center / cover no-repeat;
  z-index: 0;
}
.bb-hero-copy,
.bb-stats { position: relative; z-index: 1; }
.bb-hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -28px;
  bottom: -12px;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(10, 15, 30, 0) 0%, rgba(10, 15, 30, 0.62) 28%, rgba(10, 15, 30, 0.74) 100%);
  pointer-events: none;
}
.bb-hero h1 {
  font-size: clamp(1.22rem, 2.85vw, 2.5rem);
  letter-spacing: 0.04em;
}
.bb-hero .bb-lead { margin-bottom: var(--space-12); }

.bb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.bb-stat {
  padding: var(--space-6) var(--space-4) var(--space-5);
  text-align: center;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  container-type: inline-size;
}
.bb-stat:nth-child(odd) {
  background:
    linear-gradient(180deg, rgba(12, 18, 36, 0.9), rgba(8, 12, 24, 0.94)) padding-box,
    linear-gradient(160deg, #FF3399, rgba(0, 255, 255, 0.35)) border-box;
}
.bb-stat:nth-child(even) {
  background:
    linear-gradient(180deg, rgba(12, 18, 36, 0.9), rgba(8, 12, 24, 0.94)) padding-box,
    linear-gradient(200deg, #00FFFF, rgba(255, 51, 153, 0.4)) border-box;
}
.bb-stat strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(1.05rem, 1.6vw, 1.55rem);
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.bb-stat > span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.bb-stat .bb-noshow {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.32em;
  white-space: nowrap;
  font-size: clamp(0.78rem, 16cqi, 1.45rem);
  letter-spacing: 0.02em;
  line-height: 1;
}
.bb-before {
  color: rgba(232, 236, 244, 0.4);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.bb-arrow {
  color: #00FFFF;
  font-size: 0.82em;
}
.bb-after {
  background: linear-gradient(90deg, #FF3399, #00FFFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.bb-meter {
  display: block;
  width: min(78%, 132px);
  height: 3px;
  margin: 0 auto;
  border-radius: 99px;
  background: rgba(232, 236, 244, 0.16);
  overflow: hidden;
}
.bb-meter i {
  display: block;
  width: 24%;
  height: 100%;
  background: linear-gradient(90deg, #FF3399, #00FFFF);
}

/* Chair */
.bb-section { padding: var(--space-20) 0; }
.bb-section .bb-kicker,
.bb-section .bb-title,
.bb-section .bb-lead { text-align: center; }
.bb-fleet-label {
  margin: var(--space-16) 0 var(--space-6);
  text-align: left;
  letter-spacing: 0.16em;
}
.bb-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.bb-card {
  padding: var(--space-6);
  min-height: 210px;
}
.bb-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(12, 18, 36, 0.92), rgba(8, 12, 24, 0.94)) padding-box,
    linear-gradient(160deg, #00FFFF, #FF3399) border-box;
}
.bb-card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--color-cyan);
  margin-bottom: var(--space-4);
}
.bb-card-icon svg { width: 26px; height: 26px; }
.bb-card h3 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-3);
}
.bb-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.bb-approve-banner {
  margin-top: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  color: var(--color-text);
  font-size: var(--text-base);
}
.bb-approve-banner img { width: 28px; height: 28px; flex-shrink: 0; }

/* Architecture */
.bb-arch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-10);
}
.bb-diagram {
  display: grid;
  grid-template-columns: minmax(128px, 168px) 36px 48px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 0;
  min-height: 440px;
}
.bb-col-label {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cyan);
  font-weight: 400;
  font-synthesis: none;
}
.bb-tools {
  grid-column: 1;
  grid-row: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bb-tools li {
  position: relative;
  box-sizing: border-box;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 255, 255, 0.65);
  border-radius: 8px;
  padding: 0 8px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(10, 15, 30, 0.72);
  font-synthesis: none;
}
.bb-tools li::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 36px;
  height: 2px;
  margin-top: -1px;
  background: #00FFFF;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.55);
}
.bb-bus {
  grid-column: 2;
  grid-row: 2;
  position: relative;
}
.bb-bus::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: #00FFFF;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.55);
}
.bb-link {
  grid-column: 3;
  grid-row: 2;
  position: relative;
}
.bb-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 12px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: #00FFFF;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.55);
}
.bb-link span {
  position: absolute;
  right: 0;
  top: 32px;
  bottom: 32px;
  width: 14px;
  border: 2px solid #00FFFF;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 0 10px rgba(0, 255, 255, 0.25);
}
.bb-layers {
  grid-column: 4;
  grid-row: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bb-layer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-sizing: border-box;
  height: 64px;
  padding: 0 18px 0 14px;
  background:
    linear-gradient(90deg, rgba(18, 8, 22, 0.95), rgba(10, 15, 30, 0.92)) padding-box,
    linear-gradient(90deg, #FF3399, rgba(255, 51, 153, 0.45)) border-box;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  font-synthesis: none;
  filter: drop-shadow(0 0 6px rgba(255, 51, 153, 0.35));
}
.bb-layer img { width: 22px; height: 22px; flex-shrink: 0; }

.bb-barber {
  padding: var(--space-5);
}
.bb-barber-label {
  margin: 0 0 var(--space-4);
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-cyan);
  font-weight: 400;
  font-synthesis: none;
}
.bb-phone {
  width: min(220px, 100%);
  margin: 0 auto;
  border: 2px solid rgba(232, 236, 244, 0.55);
  border-radius: 28px;
  padding: 14px 12px 18px;
  background: #070b16;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 255, 0.15);
}
.bb-phone-notch {
  width: 72px;
  height: 8px;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: #1a2238;
}
.bb-phone-card {
  border: 1px solid rgba(255, 51, 153, 0.7);
  border-radius: 10px;
  padding: 12px 10px 10px;
  text-align: center;
  background: rgba(20, 10, 28, 0.8);
}
.bb-phone-card p { margin: 0; }
.bb-phone-kicker {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.bb-phone-amt {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin-top: 4px !important;
  font-weight: 400;
  font-synthesis: none;
}
.bb-phone-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.bb-yes, .bb-no {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  font-synthesis: none;
}
.bb-yes { background: #FF3399; color: #fff; }
.bb-no {
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
}
.bb-wave { width: 100%; height: 36px; margin-top: 12px; display: block; }
.bb-voice {
  margin-top: 6px !important;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.bb-phone-cap {
  margin: var(--space-4) 0 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

/* Numbers + deployment */
.bb-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: stretch;
}
.bb-split > * { min-width: 0; }
.bb-numbers, .bb-deploy { padding: var(--space-6); }
.bb-numbers .bb-kicker,
.bb-deploy .bb-kicker {
  text-align: left;
  letter-spacing: 0.14em;
  margin-bottom: var(--space-5);
}
.bb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.bb-table th {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cyan);
  text-align: left;
  padding: 0 8px 12px;
}
.bb-table tbody th {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text);
  padding: 12px 8px;
}
.bb-table th:nth-child(2),
.bb-table th:nth-child(3),
.bb-table td:nth-child(2),
.bb-table td:nth-child(3) { text-align: center; }
.bb-table td {
  padding: 12px 8px;
  border-top: 1px solid rgba(232, 236, 244, 0.08);
}
.bb-table td:nth-child(3) { color: var(--color-cyan); }
.bb-note {
  margin: var(--space-5) 0 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.bb-time {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  display: grid;
  gap: var(--space-5);
}
.bb-time li { position: relative; }
.bb-time li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #FF3399;
  box-shadow: 0 0 10px rgba(255, 51, 153, 0.8);
}
.bb-time li:nth-child(even)::before {
  background: #00FFFF;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}
.bb-time li::after {
  content: "";
  position: absolute;
  left: -23px;
  top: 18px;
  bottom: -28px;
  width: 2px;
  background: linear-gradient(#FF3399, #00FFFF);
}
.bb-time li:last-child::after { display: none; }
.bb-time strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.bb-time span { color: var(--color-text-muted); font-size: var(--text-sm); }

.bb-cta {
  margin-top: var(--space-5);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}
.bb-cta h2 {
  font-size: clamp(0.82rem, 1.65vw, 1.2rem);
  letter-spacing: 0.1em;
  margin: 0 0 var(--space-6);
  max-width: none;
}
.bb-cta .btn { min-width: min(100%, 320px); max-width: 100%; }
.bb-back {
  display: inline-block;
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--color-cyan);
  font-synthesis: none;
}
.bb-back:hover { color: var(--color-pink); }

@media (max-width: 900px) {
  .bb-wrap { width: min(1120px, calc(100% - 32px)); }
  .bb-stats,
  .bb-cards,
  .bb-split,
  .bb-arch { grid-template-columns: 1fr; }
  .bb-hero { min-height: auto; padding-top: calc(var(--nav-height) + 36px); }
  .bb-hero .bb-lead { margin-bottom: var(--space-8); }
  .bb-diagram {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    row-gap: 0;
  }
  .bb-tools li::after,
  .bb-bus { display: none; }
  .bb-col-label,
  .bb-tools,
  .bb-link,
  .bb-layers { grid-column: 1; grid-row: auto; }
  .bb-tools { gap: 10px; }
  .bb-link {
    height: 28px;
  }
  .bb-link::before {
    left: 50%;
    right: auto;
    top: 0;
    width: 2px;
    height: 100%;
    margin: 0 0 0 -1px;
  }
  .bb-link span { display: none; }
  .bb-layers { gap: 12px; }
  .bb-fleet-label { text-align: center; }
  .bb-title { letter-spacing: 0.04em; }
}

@media (max-width: 560px) {
  .bb-stats { grid-template-columns: 1fr 1fr; }
  .bb-stat { min-height: 112px; padding: var(--space-4) var(--space-2); }
  .bb-table { table-layout: fixed; }
  .bb-table th:nth-child(1) { width: 42%; }
  .bb-table th,
  .bb-table td { overflow-wrap: anywhere; }
  .bb-numbers .bb-kicker,
  .bb-deploy .bb-kicker { letter-spacing: 0.06em; }
  .bb-cta .btn {
    min-width: 0;
    width: 100%;
    letter-spacing: 0.06em;
    padding-left: 12px;
    padding-right: 12px;
  }
}
