/* ===== Motion graphics "video" ===== */
.video-section { background: #fff; }
.mg {
  --gold-l: #d8b67a;
  --ink-l: #c9d4e6;
  position: relative;
  max-width: 960px;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1830;
  box-shadow: 0 30px 60px -24px rgba(15, 35, 64, 0.55);
  container-type: inline-size;
  --speed: .72;
}
.mg-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: #fff;
  font-family: var(--sans);
  background: radial-gradient(120% 90% at 15% 10%, #1b3358 0%, #0f2340 45%, #081427 100%);
}

/* Background: blobs, grid, particles */
.mg-bg, .mg-bg > * { position: absolute; pointer-events: none; }
.mg-bg { inset: 0; }
.blob { border-radius: 50%; filter: blur(5cqw); opacity: 0.45; animation: mgFloat 16s ease-in-out infinite alternate; }
.b1 { width: 38cqw; height: 38cqw; right: -8cqw; top: -14cqw; background: #b08d57; }
.b2 { width: 44cqw; height: 44cqw; left: -16cqw; bottom: -22cqw; background: #2f5bd3; animation-duration: 19s; }
.b3 { width: 26cqw; height: 26cqw; left: 40cqw; top: 30cqw; background: #1e4a8a; opacity: 0.35; animation-duration: 23s; }
.mg-grid {
  inset: -10%;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 6cqw 6cqw;
  animation: mgPan 30s linear infinite;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
}
.mg-particles { inset: 0; }
.mg-particles i {
  position: absolute;
  width: 0.35cqw; height: 0.35cqw;
  border-radius: 50%;
  background: var(--gold-l);
  opacity: 0;
  animation: mgRise linear infinite;
}

/* Scenes */
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5cqw 8cqw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.scene.active { opacity: 1; visibility: visible; }

.mg .a { opacity: 0; }
.mg .scene.active .a {
  animation: var(--anim, mgUp) var(--dur, 0.7s) cubic-bezier(.2,.75,.2,1) forwards;
  animation-delay: calc(var(--d, 0) * var(--speed) * 1s);
}
.mg.paused *, .mg.paused *::before, .mg.paused *::after { animation-play-state: paused !important; }

/* Typography */
.mg .mg-kicker {
  margin: 0 0 1.6cqw;
  font-size: 1.35cqw;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-l);
}
.mg .mg-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 11cqw;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}
.mg-name .ch { display: inline-block; opacity: 0; white-space: pre; }
.mg .scene.active .mg-name .ch { animation: mgLetter 0.65s cubic-bezier(.2,.75,.2,1) forwards; animation-delay: calc((0.4s + var(--i) * 0.045s) * var(--speed)); }
.mg-rule {
  display: block;
  width: 18cqw;
  height: 0.28cqw;
  margin: 2.4cqw 0 0;
  background: linear-gradient(90deg, var(--gold-l), transparent);
  transform-origin: left;
}
.mg .mg-sub { margin: 2cqw 0 0; max-width: 70cqw; font-size: 1.75cqw; line-height: 1.55; color: var(--ink-l); }

/* Stats */
.mg-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3cqw; margin-top: 2cqw; }
.mg-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 9cqw;
  line-height: 1;
  color: #fff;
  background: linear-gradient(180deg, #fff 30%, var(--gold-l));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mg-stat .bar { display: block; width: 100%; height: 0.2cqw; margin: 1.6cqw 0 1.2cqw; background: rgba(216,182,122,.25); position: relative; overflow: hidden; }
.mg-stat .bar::after { content: ""; position: absolute; inset: 0; background: var(--gold-l); transform: scaleX(0); transform-origin: left; }
.mg .scene.active .mg-stat .bar::after { animation: mgDrawX 1.4s cubic-bezier(.2,.75,.2,1) forwards; animation-delay: calc(var(--d) * 1s + .3s); }
.mg-stat > span:not(.bar) { font-size: 1.6cqw; color: var(--ink-l); }

/* Timeline */
.mg-tl { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.6cqw; margin-top: 3cqw; }
.mg-tl-line {
  position: absolute; left: 0; right: 0; top: 1.1cqw; height: 0.22cqw;
  background: linear-gradient(90deg, rgba(216,182,122,.3), var(--gold-l));
  transform-origin: left;
}
.mg-node { position: relative; padding-top: 4cqw; font-size: 1.45cqw; line-height: 1.35; }
.mg-node i {
  position: absolute; top: 0; left: 0;
  width: 2.4cqw; height: 2.4cqw; border-radius: 50%;
  background: #0f2340; border: 0.35cqw solid var(--gold-l);
  box-shadow: 0 0 0 0 rgba(216,182,122,.6);
}
.mg .scene.active .mg-node.hl i { animation: mgPulse 1.8s ease-out calc(3.6s * var(--speed)) infinite; background: var(--gold-l); }
.mg-node b { display: block; font-family: var(--serif); font-size: 3.2cqw; color: var(--gold-l); line-height: 1; margin-bottom: 0.8cqw; }
.mg-node > span { display: block; font-weight: 600; color: #fff; }
.mg-node em { display: block; margin-top: 0.5cqw; font-style: normal; color: var(--ink-l); font-size: 1.25cqw; }


.mg-side {
  grid-column: 1 / 3;
  position: relative;
  margin: 1.6cqw 0 0 1.2cqw;
  padding-top: 1.8cqw;
  border-top: 0.22cqw dashed var(--gold-l);
  font-size: 1.35cqw;
  line-height: 1.35;
}
.mg-side::before, .mg-side::after { content: ""; position: absolute; top: -1cqw; width: 0.22cqw; height: 1.8cqw; background: var(--gold-l); }
.mg-side::before { left: 0; }
.mg-side::after { right: 0; }
.mg-side b { display: block; font-family: var(--serif); font-size: 2.2cqw; color: var(--gold-l); line-height: 1; margin-bottom: 0.6cqw; }
.mg-side > span { display: block; font-weight: 600; }
.mg-side em { display: block; font-style: normal; color: var(--ink-l); font-size: 1.2cqw; margin-top: 0.4cqw; }

/* Skills */
.mg-chips { display: flex; flex-wrap: wrap; gap: 1.1cqw 1cqw; max-width: 84cqw; }
.chip {
  padding: 0.85cqw 1.7cqw;
  border: 1px solid rgba(216,182,122,.55);
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  font-size: 1.6cqw;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.chip.gold { background: var(--gold-l); border-color: var(--gold-l); color: #0f2340; font-weight: 600; }

/* Brands */
.mg-logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2cqw; align-items: center; }
.mg-logos img { width: 100%; height: auto; aspect-ratio: 2.43; object-fit: cover; border-radius: 0.6cqw; box-shadow: 0 1.2cqw 2.5cqw -1cqw rgba(0,0,0,.6); outline: 1px solid rgba(255,255,255,.12); }
.mg .mg-places { margin: 3.4cqw 0 0; font-size: 1.7cqw; letter-spacing: 0.08em; color: var(--ink-l); }

/* Outro */
.s-outro { align-items: flex-start; }
.mg .mg-quote { margin: 0; max-width: 72cqw; font-family: var(--serif); font-size: 6.2cqw; font-weight: 600; line-height: 1.1; }
.mg-quote em { font-style: italic; color: var(--gold-l); }
.mg .mg-cta {
  margin: 3cqw 0 0;
  padding: 1.2cqw 2.4cqw;
  border-radius: 99px;
  background: #fff;
  color: #0f2340;
  font-size: 1.7cqw;
  font-weight: 600;
}

/* Sectors scene: animated line illustrations */
.mg-sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4cqw; }
.sector {
  padding: 2cqw 1.6cqw 1.8cqw;
  border: 1px solid rgba(216,182,122,.35);
  border-radius: 1.2cqw;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  text-align: center;
  font-size: 1.7cqw;
  font-weight: 600;
  letter-spacing: .04em;
}
.ill { display: block; width: 100%; height: auto; margin-bottom: 1.2cqw; overflow: visible; }
.ill * { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ill .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mg .scene.active .ill .draw { animation: mgStroke 1.1s cubic-bezier(.6,.1,.3,1) forwards; animation-delay: calc((var(--sd, .6s)) * var(--speed)); }
@keyframes mgStroke { to { stroke-dashoffset: 0; } }

/* Finance */
.ill-fin .base { stroke: rgba(255,255,255,.35); stroke-width: 1.4; }
.ill-fin .bar { fill: rgba(216,182,122,.25); stroke: var(--gold-l); stroke-width: 1.6; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.mg .scene.active .ill-fin .bar { animation: mgGrow .7s cubic-bezier(.2,.75,.2,1) forwards; animation-delay: calc((.5s + var(--i) * .12s) * var(--speed)); }
.ill-fin .line { stroke: var(--gold-l); stroke-width: 3; --sd: 1.1s; }
.ill-fin .arrow { stroke: var(--gold-l); stroke-width: 3; --sd: 1.9s; }
.ill-fin .coin { fill: var(--gold-l); stroke: none; opacity: 0; }
.mg .scene.active .ill-fin .coin { animation: mgBlink 1.6s ease-in-out infinite; animation-delay: calc(2.2s * var(--speed)); }
@keyframes mgGrow { to { transform: scaleY(1); } }
@keyframes mgBlink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* Automotive */
.ill-car .road { stroke: rgba(255,255,255,.5); stroke-width: 1.6; stroke-dasharray: 10 8; }
.mg .scene.active .ill-car .road { animation: mgRoad .6s linear infinite; }
.ill-car .body { --sd: .5s; }
.ill-car .win { stroke: var(--gold-l); stroke-width: 1.8; --sd: 1s; }
.ill-car .wheel circle, .ill-car .wheel path { stroke: var(--gold-l); }
.ill-car .wheel { transform-box: fill-box; transform-origin: center; }
.mg .scene.active .ill-car .wheel { animation: mgSpin .5s linear infinite; }
.mg .scene.active .ill-car .car { animation: mgBounce .45s ease-in-out infinite alternate; }
.ill-car .speed { stroke: rgba(216,182,122,.8); stroke-width: 1.8; }
.mg .scene.active .ill-car .speed { animation: mgSpeed .6s linear infinite; }
@keyframes mgRoad { to { stroke-dashoffset: -18; } }
@keyframes mgSpin { to { transform: rotate(360deg); } }
@keyframes mgBounce { from { transform: translateY(0); } to { transform: translateY(-1.2px); } }
@keyframes mgSpeed { from { transform: translateX(0); opacity: 1; } to { transform: translateX(-8px); opacity: 0; } }

/* Insurance */
.ill-ins .shield { stroke-width: 3; --sd: .5s; }
.ill-ins .check { stroke: var(--gold-l); stroke-width: 4; --sd: 1.4s; }
.ill-ins .ring { stroke: rgba(216,182,122,.6); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; opacity: 0; }
.mg .scene.active .ill-ins .ring { animation: mgRing 1.8s ease-out infinite; animation-delay: calc(2s * var(--speed)); }
@keyframes mgRing { from { transform: scale(.75); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }

/* Multicultural globe */
.ill-globe .sphere { stroke-width: 2.6; --sd: .3s; }
.ill-globe .meridian { stroke: rgba(255,255,255,.55); stroke-width: 1.3; transform-box: fill-box; transform-origin: center; }
.mg .scene.active .ill-globe .meridian { animation: mgTurn 3s linear infinite; }
.mg .scene.active .ill-globe .meridian.m2 { animation-delay: -1.5s; }
.ill-globe .lat { stroke: rgba(255,255,255,.3); stroke-width: 1.1; }
.ill-globe .arc { stroke: var(--gold-l); stroke-width: 1.8; stroke-dasharray: 4 4; }
.mg .scene.active .ill-globe .arc { animation: mgRoad 1s linear infinite; }
.ill-globe .pin { fill: var(--gold-l); stroke: none; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.mg .scene.active .ill-globe .pin { animation: mgPin .5s cubic-bezier(.2,.75,.2,1) forwards; animation-delay: calc((1s + var(--i) * .18s) * var(--speed)); }
.ill-globe .orbit { transform-origin: 60px 45px; }
.ill-globe .orbit circle { fill: #fff; stroke: none; }
.mg .scene.active .ill-globe .orbit { animation: mgSpin 4s linear infinite; }
@keyframes mgTurn { 0% { transform: scaleX(1); } 50% { transform: scaleX(.08); } 100% { transform: scaleX(1); } }
@keyframes mgPin { to { transform: scale(1); } }


/* Avatar */
.mg-avatar { position: absolute; right: 5cqw; bottom: 0; width: 27cqw; z-index: 0; pointer-events: none; }
.mg-avatar::before {
  content: ""; position: absolute; left: 9%; right: 9%; bottom: 10%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #e9cf9c 0%, #b08d57 55%, #6f5530 100%);
  box-shadow: 0 0 6cqw rgba(216,182,122,.35);
}
.mg-avatar .ring {
  position: absolute; left: 3%; right: 3%; bottom: 4%; aspect-ratio: 1; border-radius: 50%;
  border: 0.25cqw dashed rgba(216,182,122,.7);
}
.mg .scene.active .mg-avatar .ring { animation: mgSpin 18s linear infinite; }
.mg-avatar img { position: relative; display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.s-intro > :not(.mg-avatar), .s-outro > :not(.mg-avatar) { position: relative; z-index: 1; }
.s-intro .mg-sub { max-width: 54cqw; }
.mg .s-outro .mg-quote { max-width: 86cqw; font-size: 5.6cqw; }
.s-outro .mg-sub { max-width: 70cqw; }
@keyframes mgAvatar { from { opacity: 0; transform: translateY(4cqw) scale(.94); } to { opacity: 1; transform: none; } }

/* Talking avatar scene */
.s-talk { align-items: center; justify-content: flex-end; padding: 4cqw 8cqw 0; }
.mg .s-talk .mg-cta { position: absolute; top: 6cqw; left: 50%; margin: 0; translate: -50% 0; background: var(--gold-l); white-space: nowrap; z-index: 2; }
.talk-avatar { position: relative; width: 40cqw; margin-bottom: -6cqw; }
.talk-avatar::before {
  content: ""; position: absolute; left: 9%; right: 9%; bottom: 10%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #e9cf9c 0%, #b08d57 55%, #6f5530 100%);
  box-shadow: 0 0 7cqw rgba(216,182,122,.35);
}
.talk-avatar .ring { position: absolute; left: 3%; right: 3%; bottom: 4%; aspect-ratio: 1; border-radius: 50%; border: 0.25cqw dashed rgba(216,182,122,.7); }
.mg .scene.active .talk-avatar .ring { animation: mgSpin 18s linear infinite; }
.talk-avatar img { position: relative; display: block; width: 100%; height: auto; transform-origin: 50% 90%; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.talk-avatar.talking .ring { border-color: var(--gold-l); }
@keyframes mgNod { 0%, 100% { transform: rotate(0) translateY(0); } 30% { transform: rotate(-1deg) translateY(-0.3cqw); } 70% { transform: rotate(0.8deg) translateY(0.1cqw); } }
.waves { position: absolute; right: -4cqw; top: 40%; display: flex; gap: 0.5cqw; align-items: center; height: 6cqw; opacity: 0; transition: opacity .3s; }
.waves.left { right: auto; left: -4cqw; flex-direction: row-reverse; }
.talk-avatar.talking .waves { opacity: 1; }
.waves i { width: 0.6cqw; height: 100%; border-radius: 1cqw; background: var(--gold-l); transform: scaleY(.2); }
.talk-avatar.talking .waves i { animation: mgWave .8s ease-in-out infinite; }
.waves i:nth-child(1) { height: 50%; }
.waves i:nth-child(2) { animation-delay: -.2s !important; height: 80%; }
.waves i:nth-child(3) { animation-delay: -.45s !important; }
.waves i:nth-child(4) { animation-delay: -.1s !important; height: 70%; }
.waves i:nth-child(5) { animation-delay: -.6s !important; height: 40%; }
@keyframes mgWave { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
.talk-unmute {
  position: absolute; left: 50%; bottom: 5cqw; translate: -50% 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.8cqw;
  padding: 1.2cqw 2.4cqw; border: 0; border-radius: 99px;
  background: #fff; color: #0f2340; font: 600 1.6cqw var(--sans); cursor: pointer;
  box-shadow: 0 1cqw 3cqw rgba(0,0,0,.4);
  animation: mgPulse 1.8s ease-out infinite;
}
.talk-unmute[hidden] { display: none; }
.talk-unmute svg { width: 2cqw; height: 2cqw; fill: currentColor; }

/* Controls */
.mg-controls { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #0a1830; color: #c9d4e6; }
.mg-play { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--gold-l); color: #0f2340; cursor: pointer; }
.mg-play svg { width: 18px; height: 18px; fill: currentColor; }
.mg .i-play { display: none; }
.mg.paused .i-play { display: block; }
.mg.paused .i-pause { display: none; }
.mg-segments { flex: 1; display: flex; gap: 5px; }
.mg-seg { position: relative; flex: var(--w, 1); height: 5px; border: 0; padding: 0; border-radius: 3px; background: rgba(255,255,255,.18); cursor: pointer; overflow: hidden; }
.mg-seg span { position: absolute; inset: 0; background: var(--gold-l); transform: scaleX(var(--p, 0)); transform-origin: left; }
.mg-time { flex: none; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.mg-sound { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(216,182,122,.6); border-radius: 50%; background: transparent; color: var(--gold-l); cursor: pointer; }
.mg-sound svg { width: 17px; height: 17px; fill: currentColor; }
.mg-sound .i-on { display: none; }
.mg-sound[aria-pressed="true"] { background: var(--gold-l); color: #0f2340; }
.mg-sound[aria-pressed="true"] .i-on { display: block; }
.mg-sound[aria-pressed="true"] .i-off { display: none; }

/* Keyframes */
@keyframes mgUp { from { opacity: 0; transform: translateY(2.5cqw); } to { opacity: 1; transform: none; } }
@keyframes mgLetter { from { opacity: 0; transform: translateY(55%) rotate(8deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mgDrawX { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes mgPop { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@keyframes mgZoomIn { from { opacity: 0; transform: scale(1.12); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes mgFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(6cqw, 4cqw) scale(1.15); } }
@keyframes mgPan { from { transform: translate(0, 0); } to { transform: translate(6cqw, 6cqw); } }
@keyframes mgRise { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .8; } 100% { opacity: 0; transform: translateY(-40cqw); } }
@keyframes mgPulse { 0% { box-shadow: 0 0 0 0 rgba(216,182,122,.6); } 100% { box-shadow: 0 0 0 2.2cqw rgba(216,182,122,0); } }


/* Narrow screens: portrait format with larger type */
@container (max-width: 640px) {
  .mg-stage { aspect-ratio: 4 / 5; }
  .scene { padding: 8cqw 7cqw; }
  .mg .mg-kicker { font-size: 3cqw; margin-bottom: 4cqw; }
  .mg .mg-name { font-size: 15cqw; }
  .mg-rule { width: 30cqw; height: 0.6cqw; margin-top: 5cqw; }
  .mg .mg-sub { font-size: 3.8cqw; max-width: none; margin-top: 4cqw; }
  .mg-stats { grid-template-columns: 1fr 1fr; gap: 7cqw 6cqw; }
  .mg-stat strong { font-size: 15cqw; }
  .mg-stat .bar { height: 0.5cqw; margin: 3cqw 0 2.4cqw; }
  .mg-stat > span:not(.bar) { font-size: 3.6cqw; }
  .mg-tl { grid-template-columns: 1fr; gap: 3.4cqw; margin-top: 2cqw; padding-left: 9cqw; }
  .mg-tl-line { left: 2.6cqw; right: auto; top: 1cqw; bottom: 1cqw; width: 0.5cqw; height: auto; background: linear-gradient(180deg, rgba(216,182,122,.3), var(--gold-l)); transform-origin: top; }
  .mg .scene.active .mg-tl-line { animation-name: mgDrawY; }
  .mg-node { padding-top: 0; font-size: 3.3cqw; }
  .mg-node i { left: -9cqw; top: 0.6cqw; width: 5.4cqw; height: 5.4cqw; border-width: 0.8cqw; }
  .mg-node b { display: inline; font-size: 5cqw; margin-right: 2cqw; }
  .mg-node > span { display: inline; }
  .mg-node em { font-size: 2.9cqw; margin-top: 0.4cqw; }
  .mg-chips { max-width: none; gap: 1.4cqw 1.2cqw; }
  .s-skills { padding-top: 4.5cqw; padding-bottom: 4.5cqw; }
  .chip { font-size: 2.65cqw; padding: 1.2cqw 2.4cqw; }
  .mg-logos { grid-template-columns: 1fr 1fr 1fr; gap: 3cqw; }
  .mg-side { grid-column: auto; margin: 1cqw 0 0; padding-top: 3cqw; font-size: 3.1cqw; border-top-width: 0.5cqw; }
  .mg-side::before, .mg-side::after { width: 0.5cqw; height: 3.6cqw; top: -2cqw; }
  .mg-side b { display: inline; font-size: 4.4cqw; margin-right: 2cqw; }
  .mg-side > span { display: inline; }
  .mg-side em { font-size: 2.8cqw; }
  .mg-sectors { grid-template-columns: 1fr 1fr; gap: 4cqw; }
  .sector { font-size: 3.4cqw; padding: 3cqw 3cqw 2.6cqw; border-radius: 2.4cqw; }
  .mg .mg-places { font-size: 3.4cqw; margin-top: 6cqw; line-height: 1.6; }
  .mg .mg-quote { font-size: 10cqw; max-width: none; }
  .mg .mg-cta { font-size: 3.6cqw; padding: 2.6cqw 5cqw; margin-top: 6cqw; }
  .mg-avatar { width: 46cqw; right: 2cqw; }
  .s-outro .mg-avatar { width: 34cqw; }
  .talk-avatar { width: 66cqw; margin-bottom: -8cqw; }
  .mg .s-talk .mg-cta { top: 10cqw; }
  .talk-unmute { font-size: 3.6cqw; padding: 2.4cqw 4.4cqw; gap: 1.6cqw; bottom: 8cqw; }
  .talk-unmute svg { width: 4.4cqw; height: 4.4cqw; }
  .waves { height: 9cqw; gap: 0.9cqw; right: -6cqw; } .waves.left { left: -6cqw; } .waves i { width: 1.1cqw; }
  .mg .s-outro .mg-cta { font-size: 3.2cqw; padding: 2.4cqw 4cqw; }
  .s-intro, .s-outro { justify-content: flex-start; padding-top: 12cqw; }
  .s-intro .mg-sub, .s-outro .mg-sub { max-width: none; }
  .mg .s-outro .mg-quote { max-width: none; font-size: 8.4cqw; }
}
@keyframes mgDrawY { from { opacity: 1; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }

@media (max-width: 560px) {
  .mg { border-radius: 6px; }
  .mg-controls { padding: 8px 10px; gap: 10px; }
}

/* ===== v2 look: modern background, transitions, rhythm ===== */
.mg { --speed: .62; }
.mg-stage { background: #050c1a; }

/* Aurora: slowly rotating colour field */
.mg-aurora {
  inset: -35%;
  background: conic-gradient(from 0deg at 50% 50%, #0b2a6b, #1d4fb8 14%, #b08d57 26%, #0a1f4d 38%, #2f5bd3 55%, #0b1d45 70%, #8a6a3a 82%, #0b2a6b);
  filter: blur(9cqw) saturate(1.25);
  opacity: .5;
  animation: mgSpin 28s linear infinite;
}
.blob { opacity: .35; mix-blend-mode: screen; }

/* Perspective floor grid moving towards the viewer */
.mg-floor {
  left: -50%; right: -50%; bottom: -6%; height: 62%;
  background-image:
    linear-gradient(rgba(216,182,122,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,255,.16) 1px, transparent 1px);
  background-size: 5cqw 5cqw;
  transform: perspective(36cqw) rotateX(70deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: mgFloor 1.4s linear infinite;
}
@keyframes mgFloor { from { background-position: 0 0; } to { background-position: 0 5cqw; } }

/* Diagonal light sweep */
.mg-beam {
  top: -60%; left: 0; width: 18%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07) 40%, rgba(216,182,122,.12) 50%, rgba(255,255,255,.07) 60%, transparent);
  transform: rotate(18deg);
  animation: mgBeam 6.5s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes mgBeam { 0% { translate: -40cqw 0; } 60%, 100% { translate: 140cqw 0; } }

/* Film grain + vignette */
.mg-grain {
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .09;
  mix-blend-mode: overlay;
  animation: mgGrain .7s steps(3) infinite;
}
@keyframes mgGrain { 0% { translate: 0 0; } 33% { translate: -3% 2%; } 66% { translate: 2% -3%; } 100% { translate: 0 0; } }
.mg-vignette { inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.6)); }

/* Scene entrance + slow camera drift */
.mg .scene.active { animation: mgEnter .9s cubic-bezier(.2,.7,.2,1) both, mgDrift 12s linear .9s both; }
@keyframes mgEnter { from { scale: 1.06; filter: blur(6px); } to { scale: 1; filter: none; } }
@keyframes mgDrift { from { transform: scale(1); } to { transform: scale(1.035); } }

/* Transition wipe between scenes */
.mg-wipe { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.mg-wipe i { position: absolute; top: -10%; bottom: -10%; left: -15%; width: 130%; transform: translateX(-120%) skewX(-14deg); }
.mg-wipe i:nth-child(1) { background: var(--gold-l); }
.mg-wipe i:nth-child(2) { background: #fff; }
.mg-wipe i:nth-child(3) { background: #0a1830; }
.mg-wipe.run i { animation: mgWipe .8s cubic-bezier(.75,0,.25,1) both; }
.mg-wipe.run i:nth-child(2) { animation-delay: .05s; }
.mg-wipe.run i:nth-child(3) { animation-delay: .1s; }
@keyframes mgWipe { 0% { transform: translateX(-120%) skewX(-14deg); } 48%, 52% { transform: translateX(0) skewX(-14deg); } 100% { transform: translateX(120%) skewX(-14deg); } }

/* Kinetic type: masked reveal for kickers */
.mg .scene.active .mg-kicker { animation-name: mgReveal; animation-duration: .8s; }
@keyframes mgReveal { from { opacity: 1; clip-path: inset(0 100% 0 0); letter-spacing: .6em; } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* Shine sweep on highlights */
.chip.gold, .sector, .mg-cta { position: relative; overflow: hidden; }
.chip.gold::after, .sector::after, .mg .mg-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.mg .scene.active .chip.gold::after, .mg .scene.active .sector::after, .mg .scene.active .mg-cta::after { animation: mgShine 3.2s ease-in-out 1.6s infinite; }
@keyframes mgShine { 0% { left: -60%; opacity: 0; } 10% { opacity: 1; } 35% { left: 130%; opacity: 0; } 100% { left: 130%; opacity: 0; } }

/* Gentle floating for illustrations and the timeline glow */
.mg .scene.active .ill { animation: mgBob 2.6s ease-in-out infinite alternate; }
@keyframes mgBob { from { translate: 0 0; } to { translate: 0 -0.6cqw; } }
.mg-tl-line { box-shadow: 0 0 1.2cqw rgba(216,182,122,.55); }
.mg .mg-name { text-shadow: 0 0 4cqw rgba(216,182,122,.25); }

/* Click-to-pause overlay (no control bar) */
.mg-stage { cursor: pointer; }
.mg-toggle {
  position: absolute; left: 50%; top: 50%; z-index: 7;
  width: 9cqw; height: 9cqw; min-width: 48px; min-height: 48px;
  translate: -50% -50%;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(10,24,48,.55); color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(216,182,122,.6), 0 1cqw 4cqw rgba(0,0,0,.4);
  cursor: pointer; opacity: 0; scale: .85;
  transition: opacity .3s ease, scale .3s ease;
  pointer-events: none;
}
.mg-toggle svg { width: 45%; height: 45%; fill: currentColor; }
.mg-toggle .i-pause, .mg-toggle .i-replay { display: none; }
.mg.paused .mg-toggle, .mg.flash .mg-toggle { opacity: 1; scale: 1; }
.mg.flash:not(.paused) .mg-toggle .i-play { display: none; }
.mg.flash:not(.paused) .mg-toggle .i-pause { display: block; }
.mg.ended .mg-toggle .i-play { display: none; }
.mg.ended .mg-toggle .i-replay { display: block; }
.mg.paused .mg-toggle, .mg.flash .mg-toggle { animation: none !important; }
.mg-sound-float { position: absolute; right: 2cqw; top: 2cqw; z-index: 8; width: 30px; height: 30px; background: rgba(10,24,48,.5); backdrop-filter: blur(6px); opacity: .7; }
.mg-sound-float:hover, .mg-sound-float[aria-pressed="true"] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .blob, .mg-grid, .mg-particles i, .mg-aurora, .mg-floor, .mg-beam, .mg-grain, .mg .scene.active, .mg-wipe i { animation: none !important; }
  .mg .scene.active .a, .mg .scene.active .mg-name .ch { animation-duration: 0.01s !important; animation-delay: 0s !important; }
}

/* Sector cards with photos (replaces the line icons) */
.sector { padding: 0; text-align: left; border-color: rgba(216,182,122,.45); }
.sector .ph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.sector .ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,12,26,0) 35%, rgba(5,12,26,.85) 100%); }
.sector .ph img { display: block; width: 100%; height: 100%; object-fit: cover; scale: 1.12; filter: saturate(.9) contrast(1.05); }
.mg .scene.active .sector .ph img { animation: mgKen 6s ease-out both; }
@keyframes mgKen { from { scale: 1.18; translate: 2% 1%; } to { scale: 1.02; translate: 0 0; } }
.sector > span:not(.ph) { display: block; margin-top: -3.6cqw; padding: 0 1.4cqw 1.2cqw; position: relative; z-index: 1; font-size: 1.8cqw; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.sector > span:not(.ph)::before { content: ""; display: block; width: 3cqw; height: 0.25cqw; margin-bottom: 0.8cqw; background: var(--gold-l); }
@container (max-width: 640px) {
  .sector { padding: 0; }
  .sector > span:not(.ph) { font-size: 3.6cqw; margin-top: -7cqw; padding: 0 2.6cqw 2.4cqw; }
  .sector > span:not(.ph)::before { width: 6cqw; height: 0.5cqw; margin-bottom: 1.4cqw; }
}

/* Clickable contact button in the closing scene */
.mg a.mg-cta { display: inline-block; text-decoration: none; background: var(--gold-l); color: #0f2340; cursor: pointer; transition: background .2s, transform .2s; }
.mg a.mg-cta:hover { background: #fff; }

/* Groups & brands: minimalist gold map of the Americas and Europe */
.s-brands > :not(.mg-map) { position: relative; z-index: 1; }
.mg-map { position: absolute; right: 2cqw; top: 50%; height: 94%; aspect-ratio: 820 / 700; translate: 0 -50%; z-index: 0; pointer-events: none; }
.mg-map img { width: 100%; height: 100%; opacity: 0; }
.mg .scene.active .mg-map img { animation: mgMapIn 1.6s ease-out forwards; }
@keyframes mgMapIn { from { opacity: 0; scale: 1.08; } to { opacity: .38; scale: 1; } }
.mg-map .routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mg-map .routes path { fill: none; stroke: #f3d9a4; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px rgba(216,182,122,.9)); }
.mg .scene.active .mg-map .routes path { animation: mgStroke 1.4s cubic-bezier(.6,.1,.3,1) forwards; }
.mg .scene.active .mg-map .routes path:nth-child(1) { animation-delay: .8s; }
.mg .scene.active .mg-map .routes path:nth-child(2) { animation-delay: 1.1s; }
.mg .scene.active .mg-map .routes path:nth-child(3) { animation-delay: 1.5s; }
.mg-map .pin { position: absolute; width: 1.1cqw; height: 1.1cqw; margin: -0.55cqw 0 0 -0.55cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0.3cqw rgba(216,182,122,.9), 0 0 1.6cqw rgba(216,182,122,.9); scale: 0; }
.mg .scene.active .mg-map .pin { animation: mgPinIn .5s cubic-bezier(.2,.75,.2,1) forwards, mgPinPulse 2s ease-out infinite; animation-delay: calc(.5s + var(--i) * .2s), calc(1.2s + var(--i) * .2s); }
@keyframes mgPinPulse { 0% { box-shadow: 0 0 0 0.3cqw rgba(216,182,122,.9), 0 0 0 0 rgba(216,182,122,.6); } 100% { box-shadow: 0 0 0 0.3cqw rgba(216,182,122,.9), 0 0 0 2cqw rgba(216,182,122,0); } }
.mg .mg-places { color: var(--gold-l); text-transform: uppercase; letter-spacing: .28em; font-weight: 600; font-size: 1.35cqw; }
@container (max-width: 640px) {
  .mg-map { right: -10cqw; height: 70%; top: auto; bottom: 0; translate: 0 0; }
  .mg-map .pin { width: 2.2cqw; height: 2.2cqw; margin: -1.1cqw 0 0 -1.1cqw; }
  .mg .mg-places { font-size: 3cqw; letter-spacing: .18em; }
}
@keyframes mgPinIn { to { scale: 1; } }

/* Sector titles sit on the photo so all cards keep the same height */
.sector { position: relative; }
.sector > span:not(.ph) { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 0 1.4cqw 1.2cqw; line-height: 1.2; }
.sector .ph::after { background: linear-gradient(180deg, rgba(5,12,26,0) 30%, rgba(5,12,26,.9) 100%); }
@container (max-width: 640px) {
  .sector > span:not(.ph) { margin: 0; padding: 0 2.6cqw 2.4cqw; }
}

/* ===== Competencies: four themed cards with motion icons ===== */
.mg-skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; align-items: stretch; }
.skill-card {
  position: relative;
  padding: 1.8cqw 1.5cqw 1.6cqw;
  border: 1px solid rgba(216,182,122,.28);
  border-radius: 1.2cqw;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02) 60%);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.skill-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid var(--gold-l);
  box-shadow: inset 0 0 3cqw rgba(216,182,122,.18), 0 0 2.4cqw rgba(216,182,122,.35);
  opacity: 0;
}
.mg .scene.active .skill-card::before { animation: mgSpot 6s ease-in-out infinite; animation-delay: calc(1.2s + var(--g) * 1.5s); }
@keyframes mgSpot { 0%, 30%, 100% { opacity: 0; } 8%, 22% { opacity: 1; } }
.skill-title { margin: 1cqw 0 1.1cqw !important; font-size: 1.15cqw; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); }
.skill-chips { display: flex; flex-wrap: wrap; gap: .6cqw; }
.skill-chips .chip { padding: .55cqw 1.1cqw; font-size: 1.12cqw; line-height: 1.25; opacity: 0; translate: 0 1cqw; }
.mg .scene.active .skill-chips .chip { animation: mgChipIn .5s cubic-bezier(.2,.75,.2,1) forwards; }
.mg .scene.active .skill-card .chip:nth-child(1) { animation-delay: calc(var(--g) * .22s + .55s); }
.mg .scene.active .skill-card .chip:nth-child(2) { animation-delay: calc(var(--g) * .22s + .65s); }
.mg .scene.active .skill-card .chip:nth-child(3) { animation-delay: calc(var(--g) * .22s + .75s); }
.mg .scene.active .skill-card .chip:nth-child(4) { animation-delay: calc(var(--g) * .22s + .85s); }
.mg .scene.active .skill-card .chip:nth-child(5) { animation-delay: calc(var(--g) * .22s + .95s); }
.mg .scene.active .skill-card .chip:nth-child(6) { animation-delay: calc(var(--g) * .22s + 1.05s); }
.mg .scene.active .skill-card .chip:nth-child(7) { animation-delay: calc(var(--g) * .22s + 1.15s); }
@keyframes mgChipIn { to { opacity: 1; translate: 0 0; } }

/* Motion icons */
.ico { display: block; width: 5.2cqw; height: 5.2cqw; overflow: visible; }
.ico * { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ico .thin { stroke: rgba(255,255,255,.35); stroke-width: 1.4; }
/* compass */
.ico-compass .needle { transform-box: view-box; transform-origin: 32px 32px; }
.ico-compass .needle .fill { fill: var(--gold-l); stroke: var(--gold-l); }
.ico-compass .dot { fill: #fff; stroke: none; }
.mg .scene.active .ico-compass .needle { animation: mgNeedle 3s ease-in-out infinite; }
@keyframes mgNeedle { 0%, 100% { rotate: -28deg; } 45% { rotate: 38deg; } 70% { rotate: 22deg; } }
/* steps */
.ico-steps .bar { fill: rgba(216,182,122,.25); stroke: var(--gold-l); stroke-width: 1.6; transform-box: fill-box; transform-origin: bottom; scale: 1 0; }
.mg .scene.active .ico-steps .bar { animation: mgBars 3s cubic-bezier(.2,.75,.2,1) infinite; animation-delay: calc(var(--i) * .15s); }
@keyframes mgBars { 0% { scale: 1 0; } 25%, 85% { scale: 1 1; } 100% { scale: 1 0; } }
.ico-steps .trend { stroke: #fff; stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mg .scene.active .ico-steps .trend { animation: mgTrend 3s ease-in-out infinite; }
@keyframes mgTrend { 0%, 20% { stroke-dashoffset: 1; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
/* target */
.ico-target .ring { transform-box: view-box; transform-origin: 30px 34px; }
.ico-target .r3 { fill: var(--gold-l); stroke: var(--gold-l); }
.mg .scene.active .ico-target .r1 { animation: mgRing1 2.4s ease-out infinite; }
@keyframes mgRing1 { 0%, 40% { scale: 1; opacity: 1; } 55% { scale: 1.12; opacity: .6; } 100% { scale: 1; opacity: 1; } }
.ico-target .arrow { stroke: var(--gold-l); }
.ico-target .arrow * { stroke: var(--gold-l); stroke-width: 2.8; }
.mg .scene.active .ico-target .arrow { animation: mgShoot 2.4s cubic-bezier(.7,0,.3,1) infinite; }
@keyframes mgShoot { 0% { translate: 18px -18px; opacity: 0; } 15% { opacity: 1; } 40%, 85% { translate: 0 0; opacity: 1; } 100% { translate: 0 0; opacity: 0; } }
/* pie + shield */
.ico-pie .track { stroke: rgba(255,255,255,.18); stroke-width: 5; }
.ico-pie .arc { stroke: var(--gold-l); stroke-width: 5; stroke-dasharray: 0 100; transform-box: view-box; transform-origin: 32px 32px; rotate: -90deg; }
.mg .scene.active .ico-pie .arc { animation: mgArc 3.2s ease-in-out infinite; }
@keyframes mgArc { 0% { stroke-dasharray: 0 100; } 55%, 85% { stroke-dasharray: 78 100; } 100% { stroke-dasharray: 0 100; } }
.ico-pie .shield { stroke-width: 1.8; }
.ico-pie .check { stroke: var(--gold-l); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mg .scene.active .ico-pie .check { animation: mgTrend 3.2s ease-in-out infinite; }

@container (max-width: 640px) {
  .mg-skills { grid-template-columns: 1fr 1fr; gap: 2cqw; }
  .skill-card { padding: 2.2cqw 2cqw 2cqw; border-radius: 2cqw; }
  .ico { width: 7cqw; height: 7cqw; }
  .skill-title { font-size: 2.1cqw; letter-spacing: .1em; margin: 1.1cqw 0 1.1cqw !important; }
  .skill-chips { gap: .8cqw; }
  .skill-chips .chip { font-size: 2.05cqw; padding: .7cqw 1.4cqw; }
  .s-skills .mg-kicker { margin-bottom: 2.4cqw; }
}
