/* ITA Motion — supporting styles */
html.itm-anim:not(.itm-failsafe):not(.itm-ready) .ita-hero .wp-block-group__inner-container > * { opacity: 0; }

/* Hero: photo moves on its own layer so it can zoom in / out smoothly */
.ita-hero.itm-hero { background-image: none !important; isolation: isolate; }
.itm-hero__bg { position: absolute; inset: -4%; z-index: -1; background-size: cover; background-position: 100% 50%; will-change: transform; pointer-events: none; }
.itm-hero__glow { position: absolute; z-index: -1; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; right: -8vw; top: -12vw; border-radius: 50%; background: radial-gradient(circle, rgba(248,180,63,.28), rgba(248,180,63,0) 65%); pointer-events: none; will-change: transform; }

.ita-hero .wp-block-group__inner-container { position: relative; z-index: 1; }

/* Images zoom on hover — uses the CSS "scale" property so it combines with scroll zoom */
.ita-card__media img:not(.ita-cover__brand):not(.ita-cover__logo),
.ita-pillar__media img:not(.ita-cover__brand):not(.ita-cover__logo) { transition: scale .6s cubic-bezier(.2,.7,.2,1); }
.ita-card:hover .ita-card__media img:not(.ita-cover__brand):not(.ita-cover__logo),
.ita-pillar:hover .ita-pillar__media img:not(.ita-cover__brand):not(.ita-cover__logo) { scale: 1.07; }
.ita-card, .ita-pillar { transition: box-shadow .35s ease, translate .35s ease; }
.ita-card:hover, .ita-pillar:hover { translate: 0 -6px; box-shadow: 0 16px 40px rgba(40,39,37,.14); }

/* Scroll progress bar */
.itm-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--c-accent, #f8b43f); transform-origin: 0 50%; transform: scaleX(0); z-index: 99999; pointer-events: none; }
html[dir="rtl"] .itm-progress { transform-origin: 100% 50%; }

@media (prefers-reduced-motion: reduce) {
	.itm-hero__glow, .itm-progress { display: none; }
	.ita-card, .ita-pillar, .ita-card__media img, .ita-pillar__media img { transition: none !important; }
}

/* Headline line masks (SplitText) */
.itm-line { will-change: transform; }

/* Pinned headline showcase — glass blade ring and light streaks */
.itm-show { position: relative; background: transparent; color: #fff; padding: 2.5rem 0; }
.itm-show__stage { position: relative; height: 76vh; min-height: 460px; width: calc(100% - 48px); max-width: 1440px; border-radius: 28px; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, #1d1530 0%, #0b0912 72%); box-shadow: 0 30px 80px rgba(20,12,40,.35); }
.itm-show__aurora { position: absolute; inset: -25%; opacity: .75; will-change: transform; }
.itm-show__aurora i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.itm-show__aurora .itm-b1 { width: 55vw; height: 55vw; left: 4%; top: 8%; background: radial-gradient(circle, rgba(255,61,139,.55) 0%, rgba(255,61,139,0) 62%); }
.itm-show__aurora .itm-b2 { width: 55vw; height: 55vw; right: 0; top: 26%; background: radial-gradient(circle, rgba(110,80,255,.6) 0%, rgba(110,80,255,0) 62%); }
.itm-show__aurora .itm-b3 { width: 48vw; height: 48vw; left: 32%; bottom: 0; background: radial-gradient(circle, rgba(248,180,63,.55) 0%, rgba(248,180,63,0) 62%); }
.itm-warp { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; mix-blend-mode: screen; }
.itm-3d { position: absolute; inset: 0; z-index: 1; perspective: 900px; perspective-origin: 50% 40%; pointer-events: none; }
.itm-fan { position: absolute; left: 50%; top: 52%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.itm-fan__spin { transform-style: preserve-3d; will-change: transform; }
.itm-fan i { position: absolute; display: block; width: 13vmin; height: 34vmin; left: -6.5vmin; top: -17vmin; border-radius: 6px; transform: rotateY(calc(var(--i) * 20deg)) translateZ(30vmin) rotateY(72deg); background: linear-gradient(165deg, rgba(255,92,170,.75), rgba(110,80,255,.35) 45%, rgba(20,14,40,.2) 70%, rgba(248,180,63,.65)); border: 1px solid rgba(255,255,255,.45); box-shadow: inset 0 0 22px rgba(255,255,255,.12), 0 0 26px rgba(255,61,139,.3); }
.itm-fan i:nth-child(3n+2) { background: linear-gradient(165deg, rgba(120,235,255,.6), rgba(110,80,255,.35) 45%, rgba(20,14,40,.2) 70%, rgba(255,92,170,.6)); box-shadow: inset 0 0 22px rgba(255,255,255,.12), 0 0 26px rgba(110,80,255,.35); }
.itm-fan i:nth-child(3n) { background: linear-gradient(165deg, rgba(248,180,63,.75), rgba(255,92,170,.35) 45%, rgba(20,14,40,.2) 70%, rgba(120,235,255,.55)); box-shadow: inset 0 0 22px rgba(255,255,255,.12), 0 0 26px rgba(248,180,63,.35); }
.itm-show__vignette { position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse at center, rgba(5,3,10,.5) 0%, rgba(5,3,10,.15) 38%, rgba(5,3,10,.7) 100%); pointer-events: none; }
.itm-show__words { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 3; }
.itm-show__phrase { grid-area: 1 / 1; margin: 0; padding: 0 6vw; text-align: center; font-family: var(--font-head, Montserrat, sans-serif); font-weight: 800; font-size: clamp(2.2rem, 6vw, 6.2rem); line-height: 1.02; letter-spacing: -0.02em; color: #fff; text-shadow: 0 6px 36px rgba(5,3,10,.75), 0 0 18px rgba(255,255,255,.15); will-change: transform, opacity, filter; }
.itm-show__phrase.is-accent { background: linear-gradient(90deg, #f8b43f 0%, #ff7a59 50%, #ff3d8b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 28px rgba(255,92,140,.45)); }
html[dir="rtl"] .itm-show__phrase { letter-spacing: 0; line-height: 1.35; }
@media (max-width: 767px) { .itm-show { display: none; } }

/* ---- Small touches ---- */
/* Moving ribbon */
.itm-ribbon { position: relative; overflow: hidden; padding: 18px 0; background: linear-gradient(90deg, #f8b43f, #ff7a59 50%, #ff3d8b); color: #1c1b19; transform-origin: 50% 50%; }
.itm-ribbon__track { display: flex; width: max-content; will-change: transform; }
.itm-ribbon__set { display: flex; align-items: center; flex: none; }
.itm-ribbon span { font-family: var(--font-head, Montserrat, sans-serif); font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.8rem); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; padding: 0 26px; }
html[dir="rtl"] .itm-ribbon span { text-transform: none; letter-spacing: 0; }
.itm-ribbon i { display: block; flex: none; width: 12px; height: 12px; border-radius: 3px; background: #1c1b19; transform: rotate(45deg); }

/* Card tilt and light */
.itm-tilt { position: relative; transform-style: preserve-3d; }
.itm-shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.45), rgba(255,255,255,0) 45%); mix-blend-mode: soft-light; z-index: 3; }
.itm-tilt:hover .itm-shine { opacity: 1; }

/* Heading underline */
.itm-uline::after { content: ""; display: block; width: 64px; height: 4px; margin-top: .55rem; border-radius: 4px; background: linear-gradient(90deg, #f8b43f, #ff7a59, #ff3d8b); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
html[dir="rtl"] .itm-uline::after { transform-origin: 100% 50%; }
.itm-uline--c::after { margin-left: auto; margin-right: auto; transform-origin: 50% 50%; }
.itm-uline.is-in::after { transform: scaleX(1); }

/* Corner blade rings */
.itm-has-deco { position: relative; overflow-x: clip; }
.itm-has-deco > :not(.itm-deco):not(.itm-ph__glow) { position: relative; z-index: 1; }
.itm-deco { position: absolute; top: 8%; width: 170px; height: 170px; perspective: 600px; pointer-events: none; z-index: 0; opacity: .85; }
.itm-deco.is-r { right: 3%; }
.itm-deco.is-l { left: 3%; }
.itm-deco__ring { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; transform: rotateX(-16deg); will-change: transform; }
.itm-deco__ring i { position: absolute; width: 26px; height: 76px; left: -13px; top: -38px; border-radius: 4px; transform: rotateY(calc(var(--i) * 36deg)) translateZ(52px) rotateY(70deg); background: linear-gradient(165deg, rgba(255,92,170,.6), rgba(110,80,255,.3) 50%, rgba(248,180,63,.6)); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 0 14px rgba(255,61,139,.25); }
.itm-deco__ring i:nth-child(odd) { background: linear-gradient(165deg, rgba(248,180,63,.7), rgba(255,92,170,.3) 50%, rgba(120,235,255,.55)); }

/* Primary buttons: a light sweep every few seconds */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link { position: relative; overflow: hidden; }
.wp-block-button:not(.is-style-outline) > .wp-block-button__link::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0)); transform: skewX(-20deg); animation: itm-sweep 5s ease-in-out infinite; pointer-events: none; }
@keyframes itm-sweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
	.itm-ribbon__track { transform: none !important; }
	.wp-block-button__link::after { animation: none !important; display: none; }
	.itm-uline::after { transform: none; transition: none; }
}

/* ---- Inner pages ---- */
html.itm-anim:not(.itm-failsafe):not(.itm-ph-ready) .page-hero .container > * { opacity: 0; }
.itm-ph { position: relative; isolation: isolate; }
.itm-ph__glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.itm-ph__glow i { position: absolute; display: block; width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; border-radius: 50%; will-change: transform; }
.itm-ph__glow i:nth-child(1) { right: -10%; top: -40%; background: radial-gradient(circle, rgba(248,180,63,.30), rgba(248,180,63,0) 65%); }
.itm-ph__glow i:nth-child(2) { left: -12%; bottom: -55%; background: radial-gradient(circle, rgba(255,92,170,.16), rgba(255,92,170,0) 65%); }
html[dir="rtl"] .itm-ph__glow i:nth-child(1) { right: auto; left: -10%; }
html[dir="rtl"] .itm-ph__glow i:nth-child(2) { left: auto; right: -12%; }
.itm-ph__deco { top: 6%; width: 150px; height: 150px; opacity: .75; }
html[dir="rtl"] .itm-ph__deco.is-r { right: auto; left: 3%; }
.page-hero__media.itm-tilt { will-change: transform; }
.itm-ribbon--end { margin-top: clamp(32px, 5vw, 64px); }

/* The theme limits section children to the content width; motion layers must span the full width */
.itm-hero__bg, .itm-hero__glow, .itm-show, .itm-show__stage, .itm-ribbon, .itm-ribbon__track, .itm-deco, .itm-ph__glow { max-width: none !important; margin: 0 !important; }
.itm-ribbon--end { margin-top: clamp(32px, 5vw, 64px) !important; }
.itm-hero__bg { width: auto !important; }
.itm-show__stage { margin: 0 auto !important; }
