/* Mezcon CPR — Joint Venture landing */
:root {
  --top: 58%;      /* where the angle meets the top edge */
  --bottom: 42%;   /* where the angle meets the bottom edge */
  --seam: #8dc63f; /* Mezcon lime */
  --ink: #141516;
  --overlay: rgba(12, 13, 14, 0.5);
  --overlay-left: rgba(12, 13, 14, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: #fff;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.jv {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

/* Panels */
.panel {
  position: absolute;
  inset: 0;
  background-size: cover;
  transition: filter .35s ease;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}
.panel:hover { filter: brightness(1.12); }

.panel-left {
  background-color: #1d2a3a;
  background-image: url(images/mez-bg.jpg?v=mw8w8zel);
  background-position: 38% center;
  clip-path: polygon(0 0, var(--top) 0, var(--bottom) 100%, 0 100%);
}
.panel-left::before { background: var(--overlay-left); }

.panel-right {
  background-color: #2a3640;
  background-image: url(images/cpr-bg.jpg?v=mw8w8zel);
  background-position: 60% center;
  clip-path: polygon(var(--top) 0, 100% 0, 100% 100%, var(--bottom) 100%);
}

/* Content */
.content {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 0 6%;
  text-align: center;
  z-index: 1;
}
.panel-left .content { left: 0; }
.panel-right .content { right: 0; }

.plate {
  background: #fff;
  padding: 26px 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.plate img {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
}

.desc {
  margin: 0;
  max-width: 340px;
  font-size: 17px;
  line-height: 1.5;
  color: #eef0f1;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
}
.panel:hover .cta,
.cta:focus-visible { background: #fff; color: var(--ink); }

.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: -10px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}
.mail:hover, .mail:focus-visible { text-decoration: underline; }

a:focus-visible { outline: 2px solid var(--seam); outline-offset: 4px; }

/* Seam + badge */
.seam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--seam);
  clip-path: polygon(calc(var(--top) - .3%) 0, calc(var(--top) + .3%) 0, calc(var(--bottom) + .3%) 100%, calc(var(--bottom) - .3%) 100%);
  z-index: 2;
}

.badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--seam);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .16em;
  padding-left: .16em;
  pointer-events: none;
  z-index: 3;
}

.top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 28px 24px;
  pointer-events: none;
  z-index: 3;
}
.top h1 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #eef0f1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
  text-align: center;
}
.top h1 span { color: var(--seam); }

/* Mobile: stack top / bottom with an angled split */
@media (max-width: 760px) {
  .jv { min-height: 640px; }
  .panel-left { clip-path: polygon(0 0, 100% 0, 100% 44%, 0 56%); }
  .panel-right { clip-path: polygon(0 56%, 100% 44%, 100% 100%, 0 100%); }
  .seam { clip-path: polygon(0 55.6%, 100% 43.6%, 100% 44.4%, 0 56.4%); }
  .content { width: 100%; height: 44%; padding: 56px 24px 0; gap: 16px; }
  .panel-right .content { top: auto; bottom: 0; padding: 0 24px 8px; }
  .plate { padding: 16px 20px; }
  .plate img { width: 220px; }
  .desc { display: none; }
  .mail { margin-top: -6px; font-size: 15px; }
  .top { padding: 18px 16px; }
  .top h1 { font-size: 11px; letter-spacing: .2em; }
}

@media (prefers-reduced-motion: reduce) {
  .panel, .cta { transition: none; }
}