/* Master section / live wire-flow stage. Real portrait pixels remain untouched. */
.page-home .master-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse 48% 76% at 20% 49%, #53365f6b, transparent 76%),
    radial-gradient(ellipse 37% 57% at 88% 20%, #47305773, transparent 85%),
    linear-gradient(135deg, #160e1f 0%, #24192d 50%, #130f1c 100%);
}
.page-home .master-section::before {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  top: 0;
  right: 0;
  border-radius: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .75;
  background:
    radial-gradient(ellipse 35% 45% at 28% 48%, #c996f323, transparent 78%),
    linear-gradient(105deg, transparent 15%, #ca9de312 36%, transparent 65%);
}
.page-home .master-section::after { opacity: .1; }
.page-home .master-section .wrap { position: relative; z-index: 2; }
.master-wire-v9__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .94;
  -webkit-mask-image: linear-gradient(0deg, transparent, #000 14%, #000 84%, transparent);
  mask-image: linear-gradient(0deg, transparent, #000 14%, #000 84%, transparent);
}
.page-home .master-section .master-grid {
  position: relative;
  isolation: isolate;
  perspective: 1300px;
}
.page-home .master-section .master-grid::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -29px;
  bottom: 31px;
  left: -28px;
  width: 45%;
  border: 1px solid #d3a3ec79;
  border-radius: 235px 10px 10px 10px;
  box-shadow: -34px 41px 65px #06030f77, 0 0 42px #ab64d13d, inset 0 0 42px #bb80df26;
  transform: translateZ(-45px) rotate(-2deg);
  pointer-events: none;
}
.page-home .master-section .master-portrait {
  position: relative;
  z-index: 2;
  isolation: isolate;
  background: #3f3348;
  box-shadow:
    -40px 50px 90px #070510b0,
    12px -12px 56px #c189e833,
    0 0 0 1px #e7b9ef67,
    inset -12px -9px 40px #130d2399;
  outline: 1px solid #ebc8f073;
  outline-offset: 13px;
  transform-style: preserve-3d;
  transition: box-shadow .65s ease, outline-color .6s ease;
}
.page-home .master-section .master-portrait::before {
  content: '';
  position: absolute;
  z-index: 3;
  pointer-events: none;
  inset: 12px;
  border: 1px solid #ffedff4d;
  border-radius: 215px 3px 3px 3px;
  box-shadow: inset 0 0 29px #fff3, 0 0 16px #a864c835;
}
.page-home .master-section .master-portrait::after {
  z-index: 2;
  background:
    linear-gradient(120deg, #f7e8ff24 0%, transparent 35%, #c593dd0a 55%, #130c1e45 100%),
    linear-gradient(0deg, #190e2b75 0%, transparent 35%);
}
.page-home .master-section .master-portrait > img {
  transform: translate3d(var(--wire-photo-x, 0px),var(--wire-photo-y, 0px),0) scale(1.065);
  filter: contrast(1.075) saturate(.98);
  transition: transform .85s cubic-bezier(.17,.67,.21,1);
  will-change: transform;
}
.page-home .master-section .master-portrait .master-signature { z-index: 4; }
.page-home .master-section .master-copy {
  position: relative;
  padding: 27px 25px 30px 6px;
  background: linear-gradient(105deg,#251b3003,#21162519 75%, transparent);
  border-right: 1px solid #ca9adc29;
}
.page-home .master-section .master-copy::before {
  content: '';
  display: block;
  position: absolute;
  top: -1px;
  right: -1px;
  width: 76px;
  border-top: 1px solid #d69dea8c;
}
.page-home .master-section .master-copy h2 {
  text-shadow: 0 8px 48px #0006;
}
.page-home .master-section .master-facts {
  border-color: #d5a5e14d;
}
@media(hover:hover) and (pointer:fine) {
  .page-home .master-section .master-portrait:hover {
    outline-color: #ebc8f0bb;
    box-shadow: -48px 58px 100px #070510c7, 15px -18px 70px #c189e852, 0 0 0 1px #e7b9ef7a;
  }
}
@media(max-width:900px) {
  .page-home .master-section .master-grid::before { width: 47%; left: -13px; top: -17px; bottom: 23px; }
  .page-home .master-section .master-copy { padding-right: 10px; }
}
@media(max-width:700px) {
  .page-home .master-section { background: radial-gradient(ellipse 80% 40% at 50% 20%,#51345b8a,transparent),linear-gradient(180deg,#181020,#281b30 60%,#17111f); }
  .page-home .master-section .master-grid::before { width: calc(100% - 18px); height: 57%; bottom: auto; left: -5px; top: -19px; border-radius: 130px 5px 5px 5px; }
  .page-home .master-section .master-portrait { outline-offset: 8px; }
  .page-home .master-section .master-portrait::before { inset: 7px; border-radius: 125px 3px 3px 3px; }
  .page-home .master-section .master-portrait > img { transform: scale(1.025); will-change: auto; }
  .page-home .master-section .master-copy { padding: 45px 0 8px; border-right: 0; }
  .master-wire-v9__canvas { opacity: .5; }
}
@media(prefers-reduced-motion:reduce) {
  .page-home .master-section .master-portrait > img { transition: none; transform: scale(1.025); }
  .master-wire-v9__canvas { opacity: .6; }
}
