/* ==========================================================================
   109 · BRANDLY (دار السِّمة — Brandly House) — 1:1 Locked 100vh Warm Editorial Canvas
   Canvas #F5F3EE · Ink #080808 · Frosted White/50 6-Col Client Dock · Pill Hero CTA above Bio
   ========================================================================== */

:root {
  --canvas: #F5F3EE;
  --ink: #080808;
  --ink-85: rgba(8, 8, 8, 0.85);
  --ink-20: rgba(8, 8, 8, 0.2);
  --ink-10: rgba(8, 8, 8, 0.1);
  --display: 'Cairo', 'Readex Pro', system-ui, sans-serif;
  --sans: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; letter-spacing: 0; }
.bidi { unicode-bidi: isolate; font-family: var(--mono); }

.br-shell {
  position: relative;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.br-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.br-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.br-bg-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(245, 243, 238, 0.72) 0%,
    rgba(245, 243, 238, 0.36) 50%,
    rgba(245, 243, 238, 0.88) 100%
  );
}

/* Header */
.br-header {
  position: relative;
  z-index: 10;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.br-wordmark {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.br-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.br-nav button, .br-nav a {
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.br-nav button:hover, .br-nav a:hover { opacity: 0.65; }

.br-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.br-btn-dark {
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.br-btn-frost {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--ink-20);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Main 3-Band 100vh Layout */
.br-main {
  position: relative;
  z-index: 10;
  flex: 1;
  padding: 8px 40px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.br-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.br-h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.8vw, 4.9rem);
  font-weight: 900;
  line-height: 1.04;
  max-width: 720px;
}

.br-stat-top {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
}

.br-mid-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.br-bio-stack {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.br-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9999px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.br-pill-cta:hover { transform: translateY(-2px); }

.br-bio {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-85);
}

.br-social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
}

.br-stat-bot {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 900;
  white-space: nowrap;
}

/* Bottom 6-Column Frosted Client Dock */
.br-dock-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.br-logo-tile {
  border: 1px solid var(--ink-10);
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.br-logo-tile:hover, .br-logo-tile.active {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
}

/* Interactive Info Toast */
.br-toast {
  position: fixed;
  bottom: 108px;
  left: 40px;
  z-index: 30;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ink-20);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 13.5px;
  display: none;
}
.br-toast.show { display: block; }

@media (max-width: 720px) {
  html, body { overflow: auto; height: auto; }
  .br-shell { height: auto; min-height: 100dvh; }
  .br-nav { display: none; }
  .br-top-row, .br-mid-row { flex-direction: column; align-items: flex-start; }
  .br-dock-6 { grid-template-columns: repeat(2, 1fr); }
}
