/* ============================================================
   Vextris — Project Brief Modal
   Luxury / editorial / white with red accents
   ============================================================ */

.pm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  visibility: hidden;
  pointer-events: none;
}
.pm-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* ---------- backdrop ---------- */
.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}
.pm-overlay.is-open .pm-backdrop { opacity: 1; }

/* ---------- container ---------- */
.pm-dialog {
  position: relative;
  width: 1280px;
  max-width: 92vw;
  height: min(740px, calc(100vh - 56px));
  background: #FFFFFF;
  border-radius: 36px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: 58fr 42fr;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.pm-overlay.is-open .pm-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .pm-backdrop, .pm-dialog { transition: none; }
}

/* ---------- close ---------- */
.pm-close {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: #F8F8F8;
  color: #16130f;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(60, 20, 10, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}
.pm-close:hover { background: #EFEFEF; transform: rotate(90deg); }
.pm-close svg { display: block; }

/* ---------- left column ---------- */
.pm-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 48px 24px 48px 60px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 112, 104, 0.35) transparent;
}
.pm-left::-webkit-scrollbar { width: 10px; }
.pm-left::-webkit-scrollbar-track { background: transparent; margin: 36px 0; }
.pm-left::-webkit-scrollbar-thumb {
  background: rgba(120, 112, 104, 0.32);
  border-radius: 999px;
  border: 3px solid #FFFFFF;
  background-clip: padding-box;
}
.pm-left::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 92, 84, 0.5);
  border: 3px solid #FFFFFF;
  background-clip: padding-box;
}
.pm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin-bottom: 34px;
}
.pm-logo {
  height: 48px;
  width: auto;
  display: block;
}
.pm-brand-word { line-height: 1; }
.pm-brand-name {
  display: block;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 4px;
  color: #16130f;
}
.pm-brand-sub {
  display: block;
  margin-top: 3px;
  padding-left: 2px;
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 5.5px;
  color: #C00000;
}
.pm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 88px;
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: #16130f;
  margin: 0;
}
.pm-title .it {
  font-style: italic;
  color: #D40000;
}
.pm-underline {
  display: block;
  width: 140px;
  height: 12px;
  margin-top: 16px;
}
.pm-desc {
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.8;
  color: #666666;
  max-width: 550px;
  text-wrap: pretty;
}

/* trust row */
.pm-trust {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}
.pm-trust .ti {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16.5px;
  color: #44403a;
}
.pm-trust .ti + .ti {
  padding-left: 40px;
  border-left: 1px solid #f0ebe8;
}
.pm-trust .ico {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #FDF0EE;
  color: #D40000;
}

/* personal review line */
.pm-review {
  margin-top: 26px;
  font-size: 14.5px;
  color: #9b958e;
}

/* primary CTA */
.pm-cta {
  margin-top: 14px;
  width: 520px;
  max-width: 100%;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #E60000, #C80000);
  color: #fff;
  text-decoration: none;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 40px rgba(214, 0, 0, 0.25);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.22s ease;
}
.pm-cta:active { transform: translateY(0) scale(0.98); transition-duration: 0.12s; }
.pm-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(214, 0, 0, 0.35);
}
.pm-cta .pm-arrow { display: block; transition: transform 0.22s ease; }
.pm-cta:hover .pm-arrow { transform: translateX(5px); }

.pm-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-size: 14px;
  color: #999999;
}
.pm-note svg { flex: none; }

/* ---------- right column: rocket + journey ---------- */
.pm-right {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 10%, #FFF3EF 0%, rgba(255, 243, 239, 0) 60%),
    radial-gradient(110% 80% at 15% 80%, #FFF7F5 0%, rgba(255, 247, 245, 0) 65%),
    radial-gradient(130% 100% at 70% 100%, #FBEDE8 0%, rgba(251, 237, 232, 0) 70%),
    linear-gradient(180deg, #FFFBFA 0%, #FFF6F3 100%);
}
.pm-right::before {
  content: "";
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 0, 0, 0.12), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
@keyframes pm-float-up {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}
.pm-rocket {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 116%;
  max-width: none;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: radial-gradient(85% 88% at 50% 42%, #000 58%, transparent 96%);
  mask-image: radial-gradient(85% 88% at 50% 42%, #000 58%, transparent 96%);
}
@media (prefers-reduced-motion: no-preference) {
  .pm-overlay.is-open .pm-rocket { animation: pm-float-up 6s ease-in-out infinite; }
}

@keyframes pm-float-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(4px); }
}
.pm-journey {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: min(420px, 84%);
  background: #FFFFFF;
  border: 1px solid #FBF4F2;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  padding: 30px 32px 28px;
}
@media (prefers-reduced-motion: no-preference) {
  .pm-overlay.is-open .pm-journey { animation: pm-float-down 6s ease-in-out infinite; }
}
.pm-journey-title {
  font-size: 22px;
  font-weight: 600;
  color: #D40000;
  padding-bottom: 16px;
  border-bottom: 1px solid #F6F0EE;
  margin-bottom: 20px;
}
.pm-steps { display: flex; flex-direction: column; }
.pm-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
}
.pm-step:last-child { padding-bottom: 0; }
.pm-step::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  border-left: 2px dashed #F4DEDA;
}
.pm-step:last-child::before { display: none; }
.pm-step .ico {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #FDF0EE;
  color: #D40000;
}
.pm-step .tx { display: flex; flex-direction: column; gap: 2px; }
.pm-step .t {
  font-size: 17px;
  font-weight: 600;
  color: #16130f;
}
.pm-step .s {
  font-size: 14px;
  color: #8b857e;
}

/* ---------- compact heights ---------- */
@media (max-height: 860px) {
  .pm-left { padding-top: 36px; padding-bottom: 36px; }
  .pm-brand { margin-bottom: 22px; }
  .pm-logo { height: 40px; }
  .pm-title { font-size: 72px; }
  .pm-desc { margin-top: 18px; font-size: 18px; line-height: 1.65; }
  .pm-trust { margin-top: 22px; }
  .pm-review { margin-top: 18px; }
  .pm-cta { margin-top: 12px; height: 72px; font-size: 25px; }
  .pm-journey { padding: 24px 26px 22px; }
  .pm-step { padding-bottom: 16px; }
  .pm-journey-title { padding-bottom: 12px; margin-bottom: 14px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .pm-title { font-size: 68px; }
  .pm-cta { font-size: 24px; }
}
@media (max-width: 1020px) {
  .pm-dialog { grid-template-columns: 1fr; height: auto; max-height: calc(100vh - 56px); }
  .pm-right { display: none; }
  .pm-left { padding: 48px; }
}
@media (max-width: 680px) {
  .pm-dialog { border-radius: 26px; }
  .pm-left { padding: 36px 26px; }
  .pm-title { font-size: 52px; }
  .pm-desc { font-size: 17px; line-height: 1.6; }
  .pm-trust { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pm-trust .ti + .ti { padding-left: 0; border-left: none; }
  .pm-cta { width: 100%; height: 68px; font-size: 21px; }
  .pm-close { top: 20px; right: 20px; width: 42px; height: 42px; }
}
