.m11 {
  --m11-ease: cubic-bezier(.18,.73,.25,1);
  --m11-light-x: 50%;
  --m11-light-y: 46%;
  isolation: isolate;
  scroll-margin-top: 76px;
  padding-block: clamp(56px,7.5vw,126px) clamp(42px,5.04vw,85.8px);
  background: linear-gradient(180deg,#090a0c,#101115 38%,#0b0c0f 77%,#090a0c);
}

.m084:has(+ .m11) { padding-block-end: clamp(39px,4.2vw,66px); }
.m084 + .m11 { padding-block-start: clamp(33.6px,4.5vw,75.6px); }
.m11 + .m03 { padding-block-start: clamp(18px,2.4vw,40.8px); }

.m11-chamber {
  position: relative;
  isolation: isolate;
  max-width: 1340px;
  margin-inline: auto;
}

.m11-light, .m11-particles {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.m11-light {
  inset: 8% -4% -4%;
  background:
    radial-gradient(ellipse 21% 50% at calc(var(--m11-light-x) - 10%) var(--m11-light-y),#b5b9c737,transparent 86%),
    radial-gradient(ellipse 23% 59% at calc(var(--m11-light-x) + 8%) calc(var(--m11-light-y) + 4%),#b58d563b,transparent 85%),
    radial-gradient(ellipse 37% 20% at 50% 85%,#7880932b,transparent 100%);
}

.m11-particles { inset: 0; width: 100%; height: 100%; }
.m11-heading { position: relative; z-index: 2; text-align: center; }
#sobre.m11-heading { scroll-margin-block-start: 84px; }
html:has(#sobre.m11-heading:target) { scroll-behavior: auto; }
.m11-heading .mc01-seal { margin-bottom: clamp(13px,1.7vw,24px); }
.m11-heading h2 {
  font-size: clamp(39px,6.2vw,94px);
  line-height: 1.06;
  color: #f4f0e9;
}
.m11-heading .m11-role {
  max-width: none;
  margin-top: .65rem;
  font-size: clamp(14px,1.45vw,19px);
  color: #cfc7bc;
}

.m11-stage {
  --m11-panel-columns: minmax(0,1fr) minmax(0,1.43fr) minmax(0,1fr);
  --m11-panel-column-gap: 1rem;
  position: relative;
  display: grid;
  min-height: clamp(500px,46vw,625px);
  isolation: isolate;
}

.m11-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: auto 4% 0;
  height: 18%;
  z-index: 1;
  background: linear-gradient(90deg,transparent,#acb3c65e 46%,#d5ac746b 60%,transparent) center bottom / 100% 1px no-repeat,
    radial-gradient(ellipse at 50% 100%,#8e99ae28,transparent 67%);
}

.m11-portrait {
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: center;
  width: min(51%,500px);
  display: grid;
  position: relative;
  container-type: size;
  z-index: 1;
  margin-block: -1% 0;
  min-width: 0;
  overflow: clip;
  mask-image: linear-gradient(#000 94%,transparent);
}

.m11-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  /* O topo da cabeça está a 7,3% da altura do retrato. */
  transform-origin: center calc(100% - .927 * min(133.333cqw,100cqh));
  scale: 1.08;
  filter: drop-shadow(0 21px 20px #0008);
}

.m11-expertise {
  grid-area: 1 / 1;
  display: grid;
  align-self: stretch;
  z-index: 2;
  pointer-events: none;
  /* Conserva as posições dos painéis após a remoção da rubrica. */
  padding-block: 4.45rem 1rem;
}

.m11-panels {
  display: grid;
  grid-template-columns: var(--m11-panel-columns);
  grid-template-rows: repeat(6,minmax(0,1fr));
  gap: .45rem var(--m11-panel-column-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.m11-panel {
  --m11-entry-x: -47px;
  --m11-entry-yaw: 28deg;
  --m11-entry-mask: inset(-35% 94% -35% -12%);
  --m11-delay: 630ms;
  --m11-sweep-time: 12.7s;
  --m11-sweep-phase: -2.7s;
  grid-column: 1;
  align-self: center;
  perspective: 720px;
  pointer-events: auto;
  min-width: 0;
}
.m11-panel:nth-child(even) {
  --m11-entry-x: 47px;
  --m11-entry-yaw: -28deg;
  --m11-entry-mask: inset(-35% -12% -35% 94%);
  grid-column: 3;
}
.m11-panel:nth-child(1) { grid-row: 2; }
.m11-panel:nth-child(2) { grid-row: 2; --m11-delay: 810ms; --m11-sweep-time: 15.4s; --m11-sweep-phase: -7.5s; }
.m11-panel:nth-child(3) { grid-row: 4; --m11-delay: 990ms; --m11-sweep-time: 13.8s; --m11-sweep-phase: -8.5s; }
.m11-panel:nth-child(4) { grid-row: 4; --m11-delay: 1170ms; --m11-sweep-time: 17.1s; --m11-sweep-phase: -3.8s; }

.m11-plate {
  --m11-rx: 0deg;
  --m11-ry: 0deg;
  --m11-hx: 50%;
  --m11-hy: 50%;
  --m11-hot: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: clamp(13px,1.6vw,23px);
  min-height: clamp(66px,7vw,96px);
  padding: 14px clamp(14px,1.7vw,24px);
  border: 1px solid #89919c93;
  border-radius: 5px 11px 5px 11px;
  transform: rotateX(var(--m11-rx)) rotateY(var(--m11-ry));
  background:
    linear-gradient(114deg,#dce1ea29,transparent 39%,#bfc9dc16 72%,#cad0dc2e),
    linear-gradient(180deg,#353941c4,#15171cda 45%,#202329ce);
  box-shadow:
    inset 0 1px #e8edf3a3,
    inset 0 -2px #08090cb3,
    0 4px 0 -2px #14161c,
    0 6px 0 -3px #5d626e8c,
    0 13px 25px -10px #000b;
}

.m11-plate::before, .m11-plate::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.m11-plate::before {
  inset: 3px;
  border-radius: 3px 8px;
  border: 1px solid #c8d0db26;
  background:
    radial-gradient(ellipse at var(--m11-hx) var(--m11-hy),rgb(233 239 251 / calc(.22 * var(--m11-hot))),transparent 67%),
    linear-gradient(172deg,#e7ecff13,transparent 47%);
}

.m11-plate::after {
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg,transparent 37%,#f5d7a723 47%,#dcb67e0b 57%,transparent 65%) 100% 50% / 285% 100% no-repeat;
  opacity: 0;
  animation: m11-sweep var(--m11-sweep-time) var(--m11-sweep-phase) ease-in-out infinite paused;
}

.m11-area-title {
  color: #f1f2f5;
  font: 600 clamp(14px,1.32vw,20px)/1.34 var(--display);
  letter-spacing: -.022em;
  text-wrap: balance;
}

.m11-orb {
  position: relative;
  width: clamp(13px,1.42vw,19px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #e3b36e99;
  background: radial-gradient(circle at 34% 25%,#ffefcc 2%,#eac68c 21%,#b57e36 48%,#573b21 74%,#ad7544 100%);
  box-shadow: 0 0 calc(9px + 9px * var(--m11-hot)) #f3bc686b,inset 0 -1px #30200f;
}

.m11-orb::before, .m11-orb::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid #e6ba78a6;
  border-radius: 50%;
  opacity: 0;
  animation: m11-sonar 5.4s calc(var(--m11-sweep-phase) + .4s) ease-out infinite paused;
}
.m11-orb::after { animation-delay: calc(var(--m11-sweep-phase) + .72s); }

.m11-emblem {
  --m11-size: clamp(60px,7.2vw,101px);
  --m11-depth: clamp(13px,1.55vw,22px);
  --m11-float-time: 13.4s;
  --m11-float-phase: -1.2s;
  --m11-float-angle: 1;
  position: absolute;
  width: var(--m11-size);
  height: var(--m11-size);
  perspective: 540px;
  z-index: 3;
}
.m11-emblem-a { top: 7%; right: 4%; }
.m11-emblem-b {
  --m11-size: clamp(51px,6vw,83px);
  --m11-float-time: 16.2s;
  --m11-float-phase: -4.7s;
  --m11-float-angle: -1;
  bottom: 3%; left: 4%;
}
.m11-emblem-float, .m11-emblem-solid {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.m11-emblem-float {
  transform: rotateX(-10deg) rotateY(22deg) rotateZ(-5deg);
  animation: m11-drift var(--m11-float-time) var(--m11-float-phase) ease-in-out infinite paused;
}
.m11-emblem-solid { transition: transform 1.45s var(--m11-ease); }
.m11-face {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid #d1d9e7a6;
  backface-visibility: hidden;
}
.m11-face-front, .m11-face-back {
  inset: 0;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 50% 50%,#edb35f35,transparent 66%),
    linear-gradient(129deg,#d8e1f06b,#202730d4 38%,#434852a8 65%,#a3afbd72);
  box-shadow: inset 0 0 0 3px #cdd6e433,inset 0 0 18px #d5dbe543,0 0 20px #b4bbcf29;
  transition: box-shadow .75s var(--m11-ease);
}
.m11-face-front { transform: translateZ(calc(var(--m11-depth) / 2)); }
.m11-face-back {
  transform: rotateY(180deg) translateZ(calc(var(--m11-depth) / 2));
  background:
    radial-gradient(ellipse at 50% 50%,#edb35f42,transparent 68%),
    linear-gradient(135deg,#d1dbe083,#4c515dbd 34%,#171b22dc 70%,#9da5b98c);
}
.m11-face-left, .m11-face-right {
  inset: 3px auto 3px calc(50% - var(--m11-depth) / 2);
  width: var(--m11-depth);
  background: linear-gradient(90deg,#c9d1ddae,#343b49b3 28%,#909aab91 62%,#dce5e9ac);
}
.m11-face-left { transform: rotateY(-90deg) translateZ(calc(var(--m11-size) / 2)); }
.m11-face-right { transform: rotateY(90deg) translateZ(calc(var(--m11-size) / 2)); }
.m11-face-top, .m11-face-bottom {
  inset: calc(50% - var(--m11-depth) / 2) 3px auto;
  height: var(--m11-depth);
  background: linear-gradient(180deg,#d9e2eacc,#424a56a3 43%,#9fa9ba9c 79%,#dfe4edc2);
}
.m11-face-top { transform: rotateX(90deg) translateZ(calc(var(--m11-size) / 2)); }
.m11-face-bottom { transform: rotateX(-90deg) translateZ(calc(var(--m11-size) / 2)); }
.m11-monogram {
  display: block;
  width: 58%;
  aspect-ratio: 1;
  background: linear-gradient(145deg,#fff0c7,#d7a66a 53%,#9c662e 63%,#f8ce8d);
  mask: url("../camara-mc01/assets/commitment-symbol.webp") center / contain no-repeat;
}

@media (hover: hover) and (pointer: fine) {
  .m11[data-m11-live] .m11-emblem:hover .m11-emblem-solid { transform: rotateY(180deg); }
  .m11[data-m11-live] .m11-emblem:hover .m11-face:is(.m11-face-front,.m11-face-back) {
    box-shadow: inset 0 0 0 3px #e3d3bd42,inset 0 0 27px #dfb77361,0 0 24px #d7dceb38;
  }
}

.m11-origin {
  position: relative;
  max-width: 1030px;
  margin-inline: auto;
  padding-top: clamp(28.8px,4.2vw,65.4px);
}
.m11-origin h3 {
  color: #f4f0e9;
  font-size: clamp(33px,5.25vw,78px);
  line-height: 1.06;
  text-align: center;
}
.m11-origin-copy {
  display: grid;
  gap: 1em;
  max-width: 66ch;
  margin: clamp(25px,4vw,52px) auto 0;
  font-size: clamp(15px,1.55vw,20px);
  line-height: 1.72;
}
.m11-origin-copy p { max-width: none; color: #d0cac2; }
.m11-gold { color: #e8bd7d; }

@supports (background-clip: text) {
  .m11-gold {
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background: linear-gradient(105deg,#e8bd7d 10%,#f6d49a 43%,#fbf6e9 50%,#d9dbe4 52%,#f0c685 57%,#e8bd7d 90%) 100% 0 / 290% 100%;
    background-clip: text;
    animation: m11-type-sweep 13.4s .8s ease-in-out infinite paused;
  }
  .m11-origin h3 .m11-gold {
    /* Dá margem de pintura ao último glifo com espaçamento negativo. */
    padding-inline-end: .08em;
    margin-inline-end: -.08em;
  }
  .m11-origin-copy p:first-child .m11-gold { animation-delay: 2.4s; }
  .m11-origin-copy p:last-child .m11-gold { animation-delay: 4.2s; }
}

.m11[data-m11-live] .m11-emblem-float,
.m11[data-m11-live] .m11-plate::after,
.m11[data-m11-live] .m11-orb::before,
.m11[data-m11-live] .m11-orb::after,
.m11[data-m11-story-live] .m11-gold { animation-play-state: running; }

.m11[data-m11-entered] .m11-light { animation: m11-light-rise 1.4s ease-out both; }
.m11[data-m11-entered] .m11-heading .mc01-seal { animation: m11-type-rise .9s .1s var(--m11-ease) both; }
.m11[data-m11-entered] .m11-role { animation: m11-type-rise .95s .44s var(--m11-ease) both; }
.m11[data-m11-entered] .m11-portrait img { animation: m11-portrait-rise 1.35s .14s var(--m11-ease) both; }
.m11[data-m11-entered] .m11-panel { animation: m11-materialize 1.08s var(--m11-delay) var(--m11-ease) backwards; }
.m11[data-m11-entered] .m11-plate::before { animation: m11-edge-form 1.24s var(--m11-delay) var(--m11-ease) backwards; }
.m11[data-m11-entered] .m11-emblem-a { animation: m11-type-rise 1.2s 1.33s var(--m11-ease) backwards; }
.m11[data-m11-entered] .m11-emblem-b { animation: m11-type-rise 1.2s 1.57s var(--m11-ease) backwards; }
.m11[data-m11-story] .m11-origin h3 { animation: m11-type-rise 1.25s var(--m11-ease) both; }
.m11[data-m11-story] .m11-origin-copy { animation: m11-type-rise 1.23s .25s var(--m11-ease) both; }

@media (prefers-reduced-motion: no-preference) {
  body:not(.motion-off) .m11[data-m11-entered] .m11-name-type {
    --m11-name-timing: 2.35s .23s cubic-bezier(.33,.57,.25,1) backwards;
    display: inline-block;
    animation: m11-name-focus var(--m11-name-timing);
  }
  @supports (background-clip: text) {
    body:not(.motion-off) .m11[data-m11-entered] .m11-name-type {
      background-image: linear-gradient(104deg,#f4f0e9 33%,#dbaf74 44%,#fff0cd 48%,#f8faff 50%,#bdc9db 53%,#f4f0e9 63%);
      background-size: 290% 100%;
      background-position: 0 50%;
      background-clip: text;
      animation: m11-name-focus var(--m11-name-timing), m11-name-metal var(--m11-name-timing);
    }
  }
}

@keyframes m11-name-focus {
  0% {
    opacity: 0;
    clip-path: polygon(-12% -35%,-5% -35%,-19% 135%,-12% 135%);
    transform: perspective(880px) translate3d(-16px,12px,-66px) rotateX(-14deg);
  }
  18% {
    opacity: 1;
    clip-path: polygon(-12% -35%,26% -35%,11% 135%,-12% 135%);
    filter: drop-shadow(0 0 9px #efbe7877);
  }
  42% { clip-path: polygon(-12% -35%,73% -35%,58% 135%,-12% 135%); }
  69%, 100% { clip-path: polygon(-12% -35%,117% -35%,117% 135%,-12% 135%); }
  76% { transform: none; }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes m11-name-metal {
  0% { color: transparent; background-position: 100% 50%; }
  18% { background-position: 69% 50%; }
  42% { background-position: 45% 50%; }
  69% { background-position: 0 50%; }
  78% { color: transparent; }
  100% { color: #f4f0e9; background-position: 0 50%; }
}

@keyframes m11-type-rise {
  from { opacity: 0; transform: translateY(16px); clip-path: inset(0 0 91%); }
  52% { opacity: 1; }
  to { opacity: 1; transform: none; clip-path: inset(-30% -8%); }
}
@keyframes m11-light-rise { from { opacity: .16; } to { opacity: 1; } }
@keyframes m11-portrait-rise {
  from { opacity: 0; transform: translateY(17px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes m11-materialize {
  from {
    opacity: 0;
    transform: translateX(var(--m11-entry-x)) perspective(660px) translateZ(-95px) rotateY(var(--m11-entry-yaw));
    clip-path: var(--m11-entry-mask);
  }
  66% { opacity: 1; clip-path: inset(-36% -12%); }
  to { opacity: 1; transform: none; clip-path: inset(-36% -12%); }
}
@keyframes m11-edge-form {
  from { opacity: .15; box-shadow: inset 0 1px 8px #f3e0b17a; }
  43% { opacity: .95; box-shadow: inset 0 1px #f5e5c6c7,0 0 14px #c6cddd56; }
  to { opacity: 1; box-shadow: none; }
}
@keyframes m11-sweep {
  0%, 9% { background-position: 100% 50%; opacity: 0; }
  17% { opacity: .95; }
  30%, 100% { background-position: 0 50%; opacity: 0; }
}
@keyframes m11-sonar {
  0%, 10% { opacity: calc(.39 + .4 * var(--m11-hot)); transform: scale(.92); }
  34%, 100% { opacity: 0; transform: scale(calc(2.08 + .25 * var(--m11-hot))); }
}
@keyframes m11-drift {
  0%, 100% { transform: translate3d(0,0,0) rotateX(-11deg) rotateY(calc(22deg * var(--m11-float-angle))) rotateZ(-5deg); }
  35% { transform: translate3d(4px,-9px,9px) rotateX(-16deg) rotateY(calc(32deg * var(--m11-float-angle))) rotateZ(-2deg); }
  68% { transform: translate3d(-5px,6px,-5px) rotateX(5deg) rotateY(calc(13deg * var(--m11-float-angle))) rotateZ(-7deg); }
}
@keyframes m11-type-sweep {
  0%, 72% { background-position: 100% 0; }
  94%, 100% { background-position: 0 0; }
}

@media (width > 900px) {
  .m11-stage {
    grid-template-columns: var(--m11-panel-columns);
    column-gap: var(--m11-panel-column-gap);
  }
  .m11-portrait, .m11-expertise { grid-column: 1 / -1; }
  .m11-emblem { justify-self: center; inset-inline: auto; }
  .m11-emblem-a { grid-area: 1 / 3 / 2 / 4; top: 2%; }
  .m11-emblem-b { grid-area: 1 / 1 / 2 / 2; bottom: 10%; }
}

@media (max-width: 900px) {
  .m11-stage { grid-template-rows: clamp(350px,66vw,524px) auto; min-height: 0; }
  .m11-portrait { width: min(76%,380px); }
  .m11-expertise { grid-area: 2 / 1; padding-block: 3.2rem 1.65rem; }
  .m11-panels { grid-template: auto auto / repeat(2,minmax(0,1fr)); gap: 13px; }
  .m11-panels .m11-panel { grid-area: auto; }
  .m11-stage::after { inset-inline: 0; }
  .m11-emblem-a { top: 7%; right: 12%; }
  .m11-emblem-b { top: clamp(239px,47vw,389px); bottom: auto; left: 11%; }
  .m11-area-title { font-size: clamp(14px,2.35vw,18px); }
}

@media (max-width: 570px) {
  .m11-stage { grid-template-rows: clamp(299px,90vw,460px) auto; }
  .m11-portrait { width: min(100%,350px); }
  .m11-expertise { padding-block: 2.425rem; }
  .m11-panels { grid-template-columns: minmax(0,1fr); grid-template-rows: none; gap: 10px; }
  .m11-panel:nth-child(odd) { margin-right: 6px; }
  .m11-panel:nth-child(even) { margin-left: 6px; }
  .m11-emblem-a { top: 7%; right: 3%; }
  .m11-emblem-b { top: clamp(218px,65vw,335px); left: 0; }
  .m11-light { inset: 3% -4% 24%; }
  .m11-origin h3 { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .m11 *, .m11 *::before, .m11 *::after { animation: none !important; transition: none !important; }
  .m11-particles { display: none; }
}
.motion-off .m11-particles { display: none; }

@media (forced-colors: active) {
  .m11-gold { color: CanvasText; background: none; animation: none; }
  .m11-plate { border: 1px solid CanvasText; }
}
