.m15 {
  --m15-radius: clamp(19px, 2.5vw, 38px);
  --m15-border: clamp(8px, .95vw, 15px);
  --m15-settle: cubic-bezier(.17,.72,.24,1);
  --m15-pulse-cycle: 5.2s;
  --m15-start-padding: clamp(54px, 7vw, 104px);
  padding: var(--m15-start-padding) clamp(16px, 5.6vw, 104px) clamp(76px, 9vw, 142px);
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(ellipse 66% 52% at 50% 61%, #e4b87713, transparent 85%),
    linear-gradient(180deg, #111217, #0b0c0f 54%, #090a0c);
}

.m15-stage {
  width: min(92%, 1180px);
  margin-inline: auto;
  perspective: 1500px;
}

#convite-final { scroll-margin-block-start: calc(96px + var(--m15-start-padding)); }

@media (width > 900px) {
  html:has(#convite-final:target) { scroll-behavior: auto; }
  #convite-final { scroll-margin-block-start: clamp(82px, 11.6vh, 98px); }
}

.m15 + .m03 { padding-block-start: clamp(18px,2.4vw,40.8px); }

.m15-glass {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr);
  grid-template-areas: "device editorial";
  align-items: center;
  border: var(--m15-border) solid transparent;
  border-radius: var(--m15-radius);
  background:
    radial-gradient(ellipse 67% 86% at var(--m15-light-x,28%) var(--m15-light-y,18%), #dce4f31f, transparent 72%) padding-box,
    radial-gradient(ellipse 85% 58% at 86% 105%, #a5783e30, transparent 83%) padding-box,
    linear-gradient(138deg, #27292e 0%, #18191d 47%, #1b1918 84%, #302719 100%) padding-box,
    linear-gradient(135deg, #dfbd83 0%, #816440 22%, #ad8653 47%, #f2d6a5 71%, #745332 100%) border-box;
  box-shadow: inset 0 1px #ffe5b72b, inset 0 -1px #ffe7b52c, 0 3px 0 #1a1612,
    0 5px 0 #75573572, 0 42px 67px -33px #030305, 0 28px 68px -47px #e5ae6f69;
  transform: rotateX(var(--m15-rx, 0deg)) rotateY(var(--m15-ry, 0deg));
  transition: transform .5s var(--m15-settle);
}

.m15-glass::before {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  border: 1px solid #ecd1a41a;
  border-radius: calc(var(--m15-radius) - var(--m15-border) - 5px);
  box-shadow: inset 0 1px 0 #ffffff0e;
}

.m15-frame {
  position: absolute;
  z-index: 2;
  inset: calc(-1 * var(--m15-border));
  width: calc(100% + 2 * var(--m15-border));
  height: calc(100% + 2 * var(--m15-border));
  overflow: visible;
  pointer-events: none;
}

.m15-frame rect {
  x: calc(var(--m15-border) / 2);
  y: calc(var(--m15-border) / 2);
  width: calc(100% - var(--m15-border));
  height: calc(100% - var(--m15-border));
  rx: calc(var(--m15-radius) - var(--m15-border) / 2);
  fill: none;
}

.m15-reflections {
  stroke-dashoffset: -6;
  opacity: 0;
}

.m15[data-m15-motion] .m15-reflections {
  opacity: 1;
  animation: m15-trace 12.8s linear infinite;
}

.m15-reflection-halo {
  stroke: #e3e8ef;
  stroke-width: var(--m15-border);
  stroke-opacity: .32;
  stroke-dasharray: 8 42;
  stroke-linecap: round;
  filter: blur(calc(var(--m15-border) * .32));
}

.m15-reflection-core {
  stroke: #f5f6fa;
  stroke-width: var(--m15-border);
  stroke-opacity: .62;
  stroke-dasharray: 4.6 45.4;
  stroke-dashoffset: 1.7;
  stroke-linecap: round;
  filter: blur(calc(var(--m15-border) * .19));
}

.m15[data-m15-motion] .m15-reflection-core {
  animation: m15-trace-core 12.8s linear infinite;
}

@keyframes m15-trace {
  to { stroke-dashoffset: -106; }
}

@keyframes m15-trace-core {
  from { stroke-dashoffset: -7.7; }
  to { stroke-dashoffset: -107.7; }
}

.m15-device {
  position: absolute;
  inset: auto auto 0 0;
  z-index: 3;
  height: min(calc(100% + clamp(42px, 5vw, 72px)), 55vw);
  aspect-ratio: 2 / 3;
  overflow: clip;
  border-bottom-left-radius: calc(var(--m15-radius) - var(--m15-border));
}

.m15-phone { width: 100%; height: 100%; }

.m15-screen {
  position: absolute;
  top: 4.20%;
  left: 24.65%;
  width: 51.45%;
  height: 71.88%;
  overflow: hidden;
  border-radius: 14.8% / 7.5%;
  background: #0d1117;
  box-shadow: inset 0 0 1px #aebac24d;
}

.m15-screen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.m15-screen::after {
  content: "";
  position: absolute;
  inset: 1.6% auto auto 35%;
  width: 30%;
  height: 3.9%;
  border-radius: 999px;
  background: #020304;
  box-shadow: inset 0 -1px #adb1bd15;
}

.m15-editorial {
  grid-area: editorial;
  min-width: 0;
  position: relative;
  z-index: 3;
  padding: clamp(31px, 3.2vw, 53px) clamp(18px, 2vw, 27px) clamp(34px, 3.9vw, 62px) clamp(14px, 1.7vw, 28px);
}

.m15-logo {
  width: calc(clamp(142px, 16vw, 216px) * .85);
  height: auto;
  margin-bottom: clamp(16px, 2.4vw, 34px);
}

.m15-title {
  max-width: 13ch;
  font-size: calc(clamp(37px, 4.65vw, 74px) * .85);
  line-height: 1.01;
  letter-spacing: -.07em;
  text-wrap: balance;
  color: #edeef0;
  background: linear-gradient(127deg, #fbfcfd 12%, #d2d4da 55%, #aeb4bf 94%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.m15-copy {
  max-width: 47ch;
  margin-top: clamp(18px, 2.3vw, 31px);
  font-size: clamp(.96rem, 1.32vw, 1.17rem);
  line-height: 1.65;
  color: #d1ced0;
  text-wrap: pretty;
}

.m15-action {
  width: min(100%, 560px);
  margin-top: clamp(24px, 3.4vw, 47px);
  perspective: 760px;
}

.m15 .m07-cta-shell {
  animation: none;
  transition: transform .38s var(--m15-settle);
}

.m15[data-m15-motion] .m07-cta-shell {
  animation: m15-approach var(--m15-pulse-cycle) ease-in-out infinite;
}

.m15 .m07-cta-shell::before { animation: none; }
.m15 .m07-cta-shell::after { content: none; }
.m15[data-m15-motion] .m07-cta-shell::before {
  animation: m15-sonar var(--m15-pulse-cycle) ease-out infinite;
}

.m15[data-m07-cta-host] .m07-cta {
  min-height: clamp(57px, 5.3vw, 75px);
  padding: 14px clamp(12px, 2vw, 28px);
  font-size: clamp(.77rem, 1.13vw, 1.04rem);
  text-wrap: balance;
  transition: transform .28s var(--m15-settle), box-shadow .28s, filter .28s;
}

.m15[data-m07-cta-host] .m07-cta::before { animation: none; }
.m15[data-m15-motion] .m07-cta::before {
  animation: m15-shine var(--m15-pulse-cycle) ease-out infinite;
}

.m15[data-m15-motion] .m07-cta:is(:hover, :focus-visible) {
  transform: translateY(-2px) scale(1.012);
  filter: brightness(1.08);
}

.m15[data-m15-motion] .m07-cta:active {
  transform: translateY(1px) scale(.992);
  transition-duration: .07s;
}

.m15[data-m15-motion] .m07-cta-shell:has(.m07-cta:active)::before {
  animation: none;
  opacity: .7;
  transform: scale(1.045, 1.15);
}

@keyframes m15-approach {
  0%, 58%, 100% { transform: translateZ(0); }
  73% { transform: translate3d(0,-2px,12px); }
  89% { transform: translateZ(0); }
}

@keyframes m15-sonar {
  0%, 65% { opacity: 0; transform: scale(1); }
  73% { opacity: .55; transform: scale(1.019,1.12); }
  93%, 100% { opacity: 0; transform: scale(1.07,1.36); }
}

@keyframes m15-shine {
  0%, 60% { opacity: 0; transform: translateX(-115%); }
  73% { opacity: .8; }
  88%, 100% { opacity: 0; transform: translateX(115%); }
}

@media (max-width: 740px) {
  .m15-stage { width: 98%; }
  .m15-glass {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "editorial" "device";
  }
  .m15-editorial {
    padding: clamp(23px,6vw,45px) max(12px, calc(clamp(19px,5.6vw,41px) - var(--m15-border) - 2px)) 0;
  }
  .m15-title { font-size: calc(clamp(31px,7.4vw,48px) * .85); }
  .m15-device {
    grid-area: device;
    position: relative;
    inset: auto;
    justify-self: center;
    width: min(100%,344px);
    height: auto;
    margin-top: 24px;
  }
}

@media (min-width: 416px) and (max-width: 740px) {
  .m15-device {
    mask-image: linear-gradient(90deg, transparent, #000 10%);
  }
}

@media (forced-colors: active) {
  .m15-title { -webkit-text-fill-color: currentColor; background: none; }
  .m15-glass { border-color: CanvasText; }
}

.motion-off .m15-glass { transform: none; transition: none; }
.motion-off .m15 .m15-reflections { opacity: 0; }
.motion-off .m15 :is(.m15-reflections, .m15-reflection-core, .m07-cta-shell),
.motion-off .m15 :is(.m07-cta-shell, .m07-cta)::before { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .m15-glass { transform: none; transition: none; }
  .m15 .m15-reflections { opacity: 0; }
  .m15 :is(.m15-reflections, .m15-reflection-core, .m07-cta-shell),
  .m15 :is(.m07-cta-shell, .m07-cta)::before { animation: none; }
}
