/* ==========================================================================
   089 · MAX REED (مازن ريد · إدارة منتج) — 1:1 Dark Atmospheric 3-Column Bento Portfolio
   #0A0A0A canvas · #324444 muted teal-slate noise cards · .liquid-glass specular tiles & marquee
   ========================================================================== */

:root {
  --mr-canvas: #0A0A0A;
  --mr-card: #324444;
  --mr-ink: #FFFFFF;
  --mr-muted: rgba(255, 255, 255, 0.60);
  --mr-dim: rgba(255, 255, 255, 0.45);
  --mr-line: rgba(255, 255, 255, 0.10);
  --mr-sans: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
  --mr-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--mr-canvas);
  color: var(--mr-ink);
  font-family: var(--mr-sans);
  letter-spacing: 0;
}

body {
  background: var(--mr-canvas);
  color: var(--mr-ink);
  font-family: var(--mr-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  letter-spacing: 0;
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16);
}

/* ======================== STICKY HEADER ======================== */
.mr-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mr-line);
  padding: 15px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mr-brand {
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.mr-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  color: var(--mr-muted);
  white-space: nowrap;
}

.mr-nav a:hover {
  color: #FFFFFF;
}

/* ======================== HERO 3-COLUMN BENTO MATRIX ======================== */
.mr-bento-sec {
  max-width: 1380px;
  margin: 0 auto;
  padding: 36px 36px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mr-subhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.mr-h1 {
  font-size: clamp(1.9rem, 3.1vw, 2.75rem);
  font-weight: 400;
  line-height: 1.22;
  max-width: 720px;
  margin-bottom: 10px;
}

.mr-cta-pill {
  padding: 13px 28px;
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.mr-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  min-height: 580px;
}

.mr-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--mr-line);
}

.mr-teal-card {
  background-color: var(--mr-card);
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 6px 6px;
  padding: 26px;
}

.mr-kicker {
  font-family: var(--mr-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  margin-bottom: 12px;
}

/* Col 1: Tall Profile Card + 4-Col Timeline */
.mr-col-profile {
  background: #000000;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}

.mr-col-profile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.mr-profile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.2) 100%);
  z-index: -1;
}

.mr-timeline-4 {
  padding-top: 18px;
  border-top: 1px solid var(--mr-line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}

/* Col 2 & Col 3 Stacked Columns */
.mr-stack-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mr-bokeh-card {
  flex: 1;
  min-height: 240px;
  background: #05080A;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

#mr-bokeh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Software Dual Marquee Card */
.mr-tools-card {
  flex: 1;
  background: radial-gradient(circle at 50% 0%, rgba(217, 165, 76, 0.22), #08090B 72%);
  padding: 24px 0 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.mr-tool-row {
  display: flex;
  gap: 10px;
  width: max-content;
}

.mr-tr-1 { animation: mrMarquee 24s linear infinite; }
.mr-tr-2 { animation: mrMarqueeRev 26s linear infinite; }

@keyframes mrMarquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes mrMarqueeRev { from { transform: translateX(30%); } to { transform: translateX(-20%); } }

.mr-tool-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mr-mono);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.mr-arrow-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ======================== EDITORIAL BANDS ======================== */
.mr-band {
  border-top: 1px solid var(--mr-line);
  padding: 72px 36px;
  background: var(--mr-canvas);
}

.mr-band-black {
  background: #000000;
}

.mr-band-inner {
  max-width: 780px;
  margin: 0 auto;
}

.mr-footer {
  border-top: 1px solid var(--mr-line);
  padding: 28px 36px 40px;
}

.mr-showcase-bar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--mr-muted);
}

@media (max-width: 720px) {
  .mr-nav {
    display: none;
  }
  .mr-bento-grid {
    grid-template-columns: 1fr;
  }
}
