/**
 * LEGAL PRO · matte cells
 * Decorative monolith tiles — hero grid, login, editorial blocks.
 * Usage: .lp-matte.lp-matte--{variant}  (+ optional .lp-matte__mono inside)
 */

.lp-matte {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* —— gold wash · default hero —— */
.lp-matte--gold {
  background: #0a0a0a;
  border: 1px solid rgba(201, 169, 98, 0.35);
}

.lp-matte--gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(201, 169, 98, 0.22), rgba(168, 139, 74, 0.08));
  pointer-events: none;
}

.lp-matte--gold::after {
  content: '';
  position: absolute;
  inset: clamp(0.5rem, 1.5vw, 1.25rem);
  border: 1px solid rgba(201, 169, 98, 0.22);
  pointer-events: none;
}

/* —— pure dark · hairline only —— */
.lp-matte--dark {
  background: #0a0a0a;
  border: 1px solid rgba(201, 169, 98, 0.28);
}

.lp-matte--dark::after {
  content: '';
  position: absolute;
  inset: clamp(0.65rem, 2vw, 1.1rem);
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* —— canvas · light editorial —— */
.lp-matte--canvas {
  background: var(--lp-canvas, #e8e8e8);
  border: 1px solid rgba(168, 139, 74, 0.35);
}

.lp-matte--canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(201, 169, 98, 0.12), transparent 55%);
  pointer-events: none;
}

[data-theme='dark'] .lp-matte--canvas {
  background: #141414;
  border-color: rgba(201, 169, 98, 0.3);
}

/* —— L|P monogram centered —— */
.lp-matte--mono {
  background: #0a0a0a;
  border: 1px solid rgba(201, 169, 98, 0.35);
  display: grid;
  place-items: center;
}

.lp-matte__mono {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-serif, 'Bodoni Moda', Georgia, serif);
  font-size: clamp(1.75rem, 8vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #f2f2f2;
  pointer-events: none;
}

.lp-matte__mono .pipe {
  color: var(--gold, #c9a962);
}

/* —— photo under matte frame (court, architecture, …) —— */
.lp-matte--photo {
  background: #0a0a0a;
  border: 1px solid rgba(201, 169, 98, 0.35);
}

.lp-matte--photo > .lp-photo,
.lp-matte--photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-matte--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.15), rgba(201, 169, 98, 0.12));
  pointer-events: none;
  z-index: 1;
}

.lp-matte--photo::after {
  content: '';
  position: absolute;
  inset: clamp(0.5rem, 1.5vw, 0.85rem);
  border: 1px solid rgba(201, 169, 98, 0.22);
  pointer-events: none;
  z-index: 2;
}

/* —— vertical gold band —— */
.lp-matte--band {
  background: #0a0a0a;
  border: 1px solid rgba(201, 169, 98, 0.25);
}

.lp-matte--band::before {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(201, 169, 98, 0.55), transparent);
  pointer-events: none;
}

/* —— corner brackets —— */
.lp-matte--bracket {
  background: var(--lp-canvas, #e8e8e8);
  border: none;
}

.lp-matte--bracket::before,
.lp-matte--bracket::after {
  content: '';
  position: absolute;
  width: clamp(1.25rem, 4vw, 2rem);
  height: clamp(1.25rem, 4vw, 2rem);
  border-color: rgba(201, 169, 98, 0.45);
  border-style: solid;
  pointer-events: none;
}

.lp-matte--bracket::before {
  top: clamp(0.65rem, 2vw, 1rem);
  left: clamp(0.65rem, 2vw, 1rem);
  border-width: 1px 0 0 1px;
}

.lp-matte--bracket::after {
  right: clamp(0.65rem, 2vw, 1rem);
  bottom: clamp(0.65rem, 2vw, 1rem);
  border-width: 0 1px 1px 0;
}

[data-theme='dark'] .lp-matte--bracket {
  background: #0a0a0a;
}
