/* MEDIA LOADER "ENTERING CLICKWAVE MEDIA" (Enzo) · Boss approved Oct 18 2026 (PHT). Scoped .mdl-* (+ html.mdl-loading / mdl-arrive / mdl-leaving / mdl-lock / mdl-rm).
   Family of the Portfolio VAULT DOOR loader (.pfl): same dark #05080F stage, cyan HUD, red / blue accents, Anton title, progress bar, Skip button.
   Transform / opacity animation only (plus one clip-path text reveal). Grain, sprockets and vignette are static: no flicker, no glitch.
   Loaded on /, /portfolio/ and /media/. The official logo is shown as is (the only filter is a blur on the out-of-focus copy). */
.mdl { --c: 95, 230, 255; --red: #EC0911; --blue: #0189F7; --cyan: #5FE6FF; --ttl: Impact, "Anton PF", Anton, "Arial Narrow Bold", sans-serif;
  display: none; position: fixed; inset: 0; z-index: 300; place-items: center; overflow: hidden; padding: 1.5rem; text-align: center; color: #fff;
  font-family: Montserrat, system-ui, sans-serif; -webkit-user-select: none; user-select: none; }
.mdl-loading .mdl--page, .mdl-arrive .mdl--page, dialog.mdl[open] { display: grid; }
/* the click path runs in a modal <dialog>: top layer, above any open popup (orbit slot popup, packages add-on popup) */
dialog.mdl { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; background: transparent; }
dialog.mdl::backdrop { background: transparent; }
.mdl--nomodal { z-index: 2147483000; }
.mdl-loading body, .mdl-arrive body, html.mdl-lock, .mdl-lock body { overflow: hidden; }
/* failsafe: if media-loader.js never runs, the cover hides itself (boot also removes the classes) */
.mdl-loading .mdl--page { animation: mdl-failsafe .3s linear 6.2s forwards; }
.mdl-arrive .mdl--page { animation: mdl-failsafe .3s linear 2.6s forwards; }
@keyframes mdl-failsafe { to { opacity: 0; visibility: hidden; } }

/* IRIS: six full-screen blades form the dark cover; at the end they swing out (hexagonal iris) onto /media/ */
.mdl-iris { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mdl-iris i { --a: 0deg; position: absolute; left: 50%; top: 50%; width: 300vmax; height: 150vmax; margin: -150vmax 0 0 -150vmax; transform-origin: 50% 100%;
  background: #05080F;
  transform: rotate(var(--a)) translateY(0); transition: transform .56s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.mdl-iris i:nth-child(2) { --a: 60deg; } .mdl-iris i:nth-child(3) { --a: 120deg; } .mdl-iris i:nth-child(4) { --a: 180deg; } .mdl-iris i:nth-child(5) { --a: 240deg; } .mdl-iris i:nth-child(6) { --a: 300deg; }
/* blade edges light up only while the iris opens (closed, they would draw lines through the centre) */
.mdl-leaving .mdl-iris i { transform: rotate(calc(var(--a) + 38deg)) translateY(-76vmax); box-shadow: inset 0 -2px 0 rgba(1, 137, 247, .8), inset 0 -16px 22px -12px rgba(1, 137, 247, .35); }
.mdl-leaving .mdl-iris i:nth-child(odd) { box-shadow: inset 0 -2px 0 rgba(236, 9, 17, .8), inset 0 -16px 22px -12px rgba(236, 9, 17, .3); }

/* backdrop: projector glow, static film grain, faint sprocket edges, vignette */
.mdl-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(52% 50% at 50% 42%, rgba(1, 137, 247, .2), transparent 70%), radial-gradient(30% 34% at 22% 70%, rgba(236, 9, 17, .1), transparent 70%), radial-gradient(120% 95% at 50% 45%, transparent 55%, rgba(0, 0, 0, .65)); }
.mdl-grain { position: absolute; inset: 0; opacity: .1; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.mdl-sprk { position: absolute; top: 0; bottom: 0; width: 34px; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='30'%3E%3Crect x='10' y='8' width='14' height='13' rx='2.6' fill='%2305080F' stroke='%235FE6FF' stroke-opacity='.35'/%3E%3C/svg%3E") 0 0/34px 30px repeat-y,
    linear-gradient(90deg, rgba(58, 36, 15, .55), rgba(30, 19, 9, .55)); }
.mdl-sprk--l { left: 0; box-shadow: 1px 0 0 rgba(95, 230, 255, .14); }
.mdl-sprk--r { right: 0; box-shadow: -1px 0 0 rgba(95, 230, 255, .14); }

.mdl-box { position: relative; z-index: 2; display: grid; justify-items: center; gap: .9rem; width: min(620px, 100%); transition: opacity .18s ease; }
.mdl-stage { position: relative; width: clamp(210px, min(40vw, 38vh), 330px); aspect-ratio: 1; margin: 2.2rem 0 1.9rem; }
.mdl-corners { position: absolute; inset: -9%; pointer-events: none; }
.mdl-corners i { position: absolute; width: 16%; height: 16%; border: 0 solid rgba(var(--c), .75); }
.mdl-corners i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; } .mdl-corners i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.mdl-corners i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 2px 2px; } .mdl-corners i:nth-child(4) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }

/* 1) FILM LEADER 3-2-1: rings + cross lines, rotating radial sweep with a red / blue hologram tint */
.mdl-leader { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .3s ease, transform .4s cubic-bezier(.4, 0, .2, 1); }
.mdl-leader__svg, .mdl-sweep { position: absolute; inset: 0; width: 100%; height: 100%; }
.mdl-lr { fill: none; stroke: rgba(235, 245, 255, .75); stroke-width: 1.6; }
.mdl-lx { fill: none; stroke: rgba(235, 245, 255, .32); stroke-width: 1; }
.mdl-sweep { inset: 3%; width: auto; height: auto; border-radius: 50%; opacity: .95;
  background: conic-gradient(rgba(236, 9, 17, 0) 0deg, rgba(236, 9, 17, .07) 110deg, rgba(236, 9, 17, .26) 240deg, rgba(1, 137, 247, .4) 340deg, rgba(95, 230, 255, .95) 359deg, rgba(95, 230, 255, 0) 360deg); }
.mdl-nums { position: relative; display: grid; }
.mdl-n { grid-area: 1 / 1; opacity: 0; font: 400 clamp(84px, min(17vw, 16vh), 138px)/1 var(--ttl); color: #F4F8FF; text-shadow: 0 0 24px rgba(1, 137, 247, .55), 0 0 52px rgba(236, 9, 17, .3); }
.mdl.is-lens .mdl-leader { opacity: 0; transform: scale(1.14); }

/* 2) LENS: aperture blades open, focus pulls from soft to sharp, the logo appears in the glass */
.mdl-lens { position: absolute; inset: 0; opacity: 0; transform: scale(.86); transition: opacity .35s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.mdl-lens > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mdl-lens__barrel { filter: drop-shadow(0 0 12px rgba(1, 137, 247, .45)); }
.mdl-logo { position: absolute; left: 30%; top: 30%; width: 40%; height: 40%; object-fit: contain; }
.mdl-logo--soft { filter: blur(7px); transform: scale(1.18); opacity: .9; transition: opacity .8s ease .15s, transform .8s ease .15s; }
.mdl-logo--sharp { opacity: 0; transform: scale(1.1); transition: opacity .7s ease .3s, transform .9s cubic-bezier(.2, .8, .2, 1) .15s; }
.mdl-blade { fill: #0B1322; stroke: rgba(95, 230, 255, .55); stroke-width: .8; transform-box: fill-box; transform-origin: 150px 300px; transition: transform .8s cubic-bezier(.3, .7, .2, 1) .1s; }
.mdl-blade--b { fill: #0E1828; }
.mdl-focus { transform-box: view-box; transform-origin: 100px 100px; transition: transform .9s cubic-bezier(.3, .7, .2, 1) .1s; }
.mdl-focus line { stroke: rgba(150, 210, 255, .45); stroke-width: 1.6; }
.mdl-mark { fill: var(--red); }
.mdl-ring { fill: none; }
.mdl-ring--rim { stroke-width: 2.4; }
.mdl-ring--red { stroke: var(--red); stroke-width: 1.6; stroke-opacity: .9; }
.mdl-ring--in { stroke: rgba(var(--c), .55); stroke-width: 1.2; }
.mdl-print { font: 700 6.6px Montserrat, sans-serif; letter-spacing: 1.6px; fill: rgba(200, 228, 255, .7); }
.mdl-hl { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2.6; stroke-linecap: round; opacity: 0; transition: opacity .5s ease .7s; }
.mdl-hl--c { stroke: rgba(56, 225, 255, .6); }
.mdl-glint { position: absolute; inset: 22%; border-radius: 50%; pointer-events: none; opacity: 0; box-shadow: 0 0 0 2px rgba(56, 225, 255, .7), 0 0 34px rgba(56, 225, 255, .45); transition: opacity .5s ease .75s; }
.mdl.is-lens .mdl-lens { opacity: 1; transform: none; }
.mdl.is-lens .mdl-blade { transform: rotate(-16deg) translateY(-47px); }
.mdl.is-lens .mdl-focus { transform: rotate(-72deg); }
.mdl.is-lens .mdl-logo--soft { opacity: 0; transform: scale(1); }
.mdl.is-lens .mdl-logo--sharp { opacity: 1; transform: none; }
.mdl.is-lens .mdl-hl, .mdl.is-lens .mdl-glint { opacity: 1; }

/* 3) title: Anton, letter-spaced, scan-in */
.mdl-title { position: relative; margin: .2rem 0 0; font: 400 clamp(1.45rem, 3.9vw, 2.55rem)/1.08 var(--ttl); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 24px rgba(var(--c), .3);
  clip-path: inset(-10% 100% -10% 0); transition: clip-path .62s cubic-bezier(.4, 0, .2, 1) .25s; }
.mdl-title__b { color: var(--red); text-shadow: 0 0 22px rgba(236, 9, 17, .45); }
.mdl-title__c { color: #2BA4FF; }
.mdl-scan { position: absolute; inset: -6% 0; pointer-events: none; transform: translateX(-100%); opacity: 0;
  background: linear-gradient(90deg, transparent calc(100% - 26px), rgba(95, 230, 255, .25) calc(100% - 4px), rgba(220, 250, 255, .95) calc(100% - 2px), transparent); }
.mdl.is-run .mdl-title { clip-path: inset(-10% -2% -10% 0); }
/* timecode readout + REC + thin progress bar */
.mdl-tc { display: flex; align-items: center; gap: .9rem; font: 700 .95rem/1 Montserrat, sans-serif; letter-spacing: .14em; color: var(--cyan); font-variant-numeric: tabular-nums; }
.mdl-rec { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .6rem; border-radius: 999px; border: 1px solid rgba(236, 9, 17, .55); background: rgba(236, 9, 17, .1); color: #FF8A8F; font-size: .72rem; letter-spacing: .2em; }
.mdl-rec b { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px rgba(236, 9, 17, .9); }
.mdl-bar { width: min(360px, 82%); height: 3px; border-radius: 3px; background: rgba(var(--c), .15); overflow: hidden; box-shadow: 0 0 14px rgba(var(--c), .25); }
.mdl-bar__fill { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--red), var(--blue) 55%, var(--cyan)); box-shadow: 0 0 12px rgba(var(--c), .7); }
.mdl-skip { min-height: 44px; margin-top: .2rem; padding: .5rem 1.3rem; border-radius: 999px; border: 1px solid rgba(var(--c), .5); background: rgba(var(--c), .08); color: #fff; font: 700 .82rem Montserrat, sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.mdl-skip:hover, .mdl-skip:focus-visible { background: rgba(var(--c), .18); border-color: var(--cyan); box-shadow: 0 0 20px -4px rgba(var(--c), .8); outline: none; }
/* 4) soft shutter flash (then navigate / iris-open) */
.mdl-flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 44%, rgba(255, 255, 255, .95), rgba(225, 242, 255, .8) 42%, rgba(205, 232, 255, .55) 80%); }
.mdl.is-flash .mdl-flash { animation: mdl-flash .36s ease-out forwards; }
@keyframes mdl-flash { 0% { opacity: 0; } 38% { opacity: .82; } 100% { opacity: 0; } }
.mdl-arrive .mdl--page .mdl-flash { opacity: .5; transition: opacity .38s ease-out; }
html.mdl-leaving .mdl .mdl-flash { opacity: 0; }
.mdl-leaving .mdl { pointer-events: none; }
.mdl-leaving .mdl-bg, .mdl-leaving .mdl-box { opacity: 0; }
.mdl-bg { transition: opacity .18s ease; }

@media (prefers-reduced-motion: no-preference) {
  .mdl.is-run .mdl-sweep { animation: mdl-rot .42s linear 3 both; }
  .mdl.is-run .mdl-n { animation: mdl-num .42s linear both; animation-delay: calc(var(--n, 0) * .42s); }
  .mdl.is-run .mdl-scan { animation: mdl-scan .62s cubic-bezier(.4, 0, .2, 1) .25s both; }
  .mdl-rec b { animation: mdl-rec 1.2s ease-in-out infinite; }
}
@keyframes mdl-rot { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes mdl-num { 0% { opacity: 0; transform: scale(1.08); } 10% { opacity: 1; } 84% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.96); } }
@keyframes mdl-scan { 0% { opacity: 1; transform: translateX(-100%); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(0); } }
@keyframes mdl-rec { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

@media (max-width: 600px) {
  .mdl { padding: 1rem; }
  .mdl-stage { width: clamp(200px, 64vw, 260px); }
  .mdl-title { font-size: 1.42rem; letter-spacing: .1em; }
  .mdl-sprk { width: 22px; background-size: 22px 20px, auto; }
  .mdl-tc { font-size: .85rem; gap: .7rem; }
}

/* reduced motion: text only, short fade; no countdown, lens, sweep, scan, flash or iris motion */
.mdl.is-rm .mdl-stage, .mdl.is-rm .mdl-tc, .mdl.is-rm .mdl-bar, .mdl.is-rm .mdl-sprk, .mdl.is-rm .mdl-flash, .mdl-rm .mdl .mdl-flash { display: none; }
.mdl.is-rm .mdl-title { clip-path: none; transition: none; animation: mdl-fade .25s ease both; }
.mdl.is-rm .mdl-scan { display: none; }
.mdl.is-rm .mdl-iris i, .mdl-rm .mdl .mdl-iris i { transition: none; }
.mdl-rm.mdl-leaving .mdl, .mdl-leaving .mdl.is-rm { opacity: 0; transition: opacity .3s ease; }
.mdl-rm.mdl-leaving .mdl-iris i, .mdl-leaving .mdl.is-rm .mdl-iris i { transform: rotate(var(--a)) translateY(0); }
@keyframes mdl-fade { from { opacity: 0; } to { opacity: 1; } }

/* packages ADD-ON popup: "Enter Clickwave Media" replaces "Request a Quote" for the Media Production add-on (pricing-modal.js toggles which one shows).
   Rev 2 (Boss): a distinct cinematic SECONDARY next to the primary "Book a Free Consultation" gradient: dark glass fill, 1.5px cyan -> blue border, white label,
   play icon in a small cyan circle, soft cyan glow; hover = brighter glow + one subtle light sweep. No red/blue fill, no flicker.
   Scoped to .package-modal__actions [data-package-media] only (the orbit popup's .mpf-go button is untouched). Same 48px pill as the sibling button. */
.package-modal__actions [data-package-primary][hidden], .package-modal__actions [data-package-media][hidden] { display: none; }
.package-modal .package-modal__actions .package-modal__media {
  position: relative; isolation: isolate; overflow: hidden; gap: .6rem; color: #fff; text-decoration: none; text-shadow: none;
  border: 1.5px solid transparent; padding: calc(.8rem + .5px) calc(1.4rem + .5px);
  background: linear-gradient(180deg, rgba(20, 30, 42, .92), #0b1118) padding-box, linear-gradient(90deg, #22D3EE, #0189F7) border-box;
  box-shadow: 0 0 18px -6px rgba(34, 211, 238, .5), inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 18px -10px rgba(34, 211, 238, .45);
  transition: box-shadow .25s ease, transform .2s ease;
}
.package-modal .package-modal__actions .package-modal__media::after {
  content: ""; position: absolute; z-index: -1; top: -30%; bottom: -30%; left: 0; width: 38%; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(160, 240, 255, .22) 50%, rgba(255, 255, 255, 0));
  transform: translateX(-140%) skewX(-20deg);
}
.package-modal .package-modal__actions .package-modal__media:hover,
.package-modal .package-modal__actions .package-modal__media:focus-visible {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 0 26px -4px rgba(34, 211, 238, .75), 0 10px 26px -14px rgba(1, 137, 247, .9), inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 22px -8px rgba(34, 211, 238, .55);
}
.package-modal .package-modal__actions .package-modal__media:focus-visible { outline: 2px solid #22D3EE; outline-offset: 3px; }
.package-modal .package-modal__actions .package-modal__media:active { transform: translateY(0); }
.package-modal__play-ring { display: inline-grid; place-items: center; flex: none; width: 1.55em; height: 1.55em; border-radius: 50%;
  background: #22D3EE; box-shadow: 0 0 10px rgba(34, 211, 238, .65); transition: box-shadow .25s ease, transform .25s ease; }
.package-modal__play { width: .78em; height: .78em; margin-left: .1em; fill: #04121C; }
.package-modal__media:hover .package-modal__play-ring { box-shadow: 0 0 16px rgba(34, 211, 238, .95); transform: scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
  .package-modal .package-modal__actions .package-modal__media:hover::after,
  .package-modal .package-modal__actions .package-modal__media:focus-visible::after { opacity: 1; transform: translateX(330%) skewX(-20deg); transition: transform .9s cubic-bezier(.4, 0, .2, 1), opacity .2s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .package-modal .package-modal__actions .package-modal__media::after { display: none; }
  .package-modal .package-modal__actions .package-modal__media, .package-modal .package-modal__actions .package-modal__media:hover,
  .package-modal__media:hover .package-modal__play-ring { transform: none; transition: box-shadow .2s ease; }
}

/* v14: intro sound toggle (default on, remembered) */
.mdl-snd { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 5; display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .4rem .9rem .4rem .7rem; border-radius: 999px; border: 1px solid rgba(56, 225, 255, .5); background: rgba(8, 12, 20, .72); color: #DFF7FF; font: 700 .72rem Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s; }
.mdl-snd:hover, .mdl-snd:focus-visible { border-color: #38E1FF; background: rgba(1, 137, 247, .22); outline: none; box-shadow: 0 0 0 2px rgba(56, 225, 255, .35); }
.mdl-snd__ic { width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='%23000'/%3E%3Cpath d='M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='%23000'/%3E%3Cpath d='M16 9a4 4 0 0 1 0 6M18.5 6.5a8 8 0 0 1 0 11'/%3E%3C/svg%3E") center / contain no-repeat; }
.mdl-snd.is-off { color: #8A97A8; border-color: rgba(138, 151, 168, .45); }
.mdl-snd.is-off .mdl-snd__ic { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='%23000'/%3E%3Cpath d='M16 9l6 6M22 9l-6 6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h4l5-4v14l-5-4H4z' fill='%23000'/%3E%3Cpath d='M16 9l6 6M22 9l-6 6'/%3E%3C/svg%3E"); }
.is-rm .mdl-snd { display: none; }
