/* =====================================================================
   Video - Now Playing Bar (prefix: .afnp, pop-up: .afnp-pop)
   Full width video band: a looping background clip under a navy tint, copy at the left, and a blue
   bar along the bottom that names the video. A line on the bar fills as the clip loops. The Watch
   bar opens the main video in a full-screen pop-up player with a shutter opening.
   Options (classes on the section):
     afnp--tint-light | --tint-standard | --tint-dark   how dark the tint is
     afnp--grid                                         44px grid lines over the tint
     afnp--focus-center | --focus-left | --focus-right  which part of the clip stays in view
     afnp--no-media                                     no clip or poster: navy gradient instead
   State (set by module.js): .is-armed, .is-in, .is-done (entrance), .is-live (clip playing),
     .is-hot (Watch bar hovered) on the section; .is-open, .is-loading on .afnp-pop;
     html.afnp-lock while the pop-up is open
   Uses the theme's CSS variables with AirFreight.com values as fallbacks.
   Assumes the theme's html { font-size: 62.5% } (1rem = 10px). Square corners, no drop shadows.
   ===================================================================== */
.afnp, .afnp-pop {
  --afnp-navy: #00305A; --afnp-deep: #00243F; --afnp-ink: #00172B;
  --afnp-blue: var(--primary-color, #0092D6); --afnp-blue-2: var(--secondary-color, #006EB8); --afnp-mid: #007BCF;
  --afnp-ice: #01B0FF; --afnp-sky: #8CD8FF; --afnp-pale: #BFE7FF;
  --afnp-text: #E6F2FB; --afnp-hair: rgba(255, 255, 255, .18);
  --afnp-display: var(--secondary-font-family, 'Jost', sans-serif);
  --afnp-body: var(--primary-font-family, 'Raleway', sans-serif);
  --afnp-gridlines: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  --afnp-grad: linear-gradient(115deg, #00305A 0%, #00518F 42.5%, #006EB8 100%);
  /* the easing set: Out for reveals and hover moves, In-out for wipes that play on their own,
     Swift for anything a click sets off, Standard for colour and opacity, Rise for text fading up */
  --afnp-out: cubic-bezier(.16, 1, .3, 1);
  --afnp-inout: cubic-bezier(.76, 0, .24, 1);
  --afnp-swift: cubic-bezier(.3, 0, 0, 1);
  --afnp-std: cubic-bezier(.4, 0, .2, 1);
  --afnp-rise: cubic-bezier(.22, .61, .36, 1);
}
.afnp {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  /* never wider than the screen: HubSpot's flex rows let a module's minimum width push the column open */
  width: 100%;
  min-width: 0;
  max-width: 100vw;
  /* the theme pads every <section>; this one runs edge to edge */
  padding: 0;
  margin: 0;
  color: #fff;
  font-family: var(--afnp-body);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.7;
  text-align: left;
}
.afnp *, .afnp *::before, .afnp *::after,
.afnp-pop, .afnp-pop *, .afnp-pop *::before, .afnp-pop *::after { box-sizing: border-box; }
.afnp p, .afnp-pop p { margin: 0; }
/* theme button and link styles are reset so every control starts clean */
.afnp button, .afnp-pop button {
  -webkit-appearance: none; appearance: none;
  margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; text-shadow: none;
  background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: none;
  line-height: inherit; width: auto; height: auto; min-width: 0; min-height: 0; cursor: pointer;
}
.afnp a, .afnp-pop a {
  color: inherit; font-family: inherit; font-weight: inherit; font-size: inherit; line-height: inherit;
  letter-spacing: inherit; text-transform: inherit; text-align: inherit; text-decoration: none; transition: none;
}
.afnp :focus-visible, .afnp-pop :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---- Background: poster image with the looping clip on top (module.js starts the clip) ---- */
.afnp .afnp__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background-color: var(--afnp-deep); }
.afnp--no-media .afnp__media { background-image: var(--afnp-gridlines), var(--afnp-grad); background-size: 44px 44px, 44px 44px, 100% 100%; }
.afnp .afnp__pic { position: absolute; inset: 0; transition: transform 1.4s var(--afnp-out); }
.afnp .afnp__poster, .afnp .afnp__clip { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.afnp--focus-left .afnp__poster, .afnp--focus-left .afnp__clip { object-position: 0 50%; }
.afnp--focus-right .afnp__poster, .afnp--focus-right .afnp__clip { object-position: 100% 50%; }
.afnp .afnp__clip { opacity: 0; transition: opacity .8s var(--afnp-std); }
.afnp.is-live .afnp__clip { opacity: 1; }
.afnp.is-hot .afnp__pic { transform: scale(1.035); }
.afnp .afnp__c { width: min(var(--container-width, 1180px), 100% - 4rem); margin-inline: auto; }

/* ---- Shared parts: eyebrow, title, pulse dot, text link, phone ---- */
.afnp .afnp__eyebrow { display: flex; align-items: center; gap: 1.44rem; margin: 0; font-family: var(--afnp-display); font-weight: 700; font-size: 1.5rem; line-height: 1.4; letter-spacing: 3px; text-transform: uppercase; color: #fff; }
.afnp .afnp__eyebrow::before { content: ""; flex: none; width: 1.98rem; height: 3px; background: currentColor; transform-origin: left; }
.afnp .afnp__eyebrow span { display: block; }
.afnp .afnp__title { margin: 0; padding: 0; font-family: var(--afnp-display); font-weight: 700; letter-spacing: -.015em; text-transform: none; color: #fff; text-wrap: balance; }
.afnp .afnp__title em { font-style: normal; font-weight: inherit; color: var(--afnp-pale); }
/* module.js wraps each rendered line of the title so it can animate on its own */
.afnp .afnp__ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.afnp .afnp__ln-i { display: block; }
.afnp .afnp__w { display: inline-block; }

.afnp .afnp__dot { flex: none; display: block; width: .9rem; height: .9rem; border-radius: 50%; background: var(--afnp-pale); animation: afnp-pulse 2s infinite; }
@keyframes afnp-pulse { 0% { box-shadow: 0 0 0 0 rgba(191,231,255,.7); } 70% { box-shadow: 0 0 0 9px rgba(191,231,255,0); } 100% { box-shadow: 0 0 0 0 rgba(191,231,255,0); } }

.afnp .afnp__link, .afnp-pop .afnp__link { display: inline-flex; align-items: center; gap: 1rem; padding: 0 0 .5rem; font-family: var(--afnp-display); font-weight: 600; font-size: 1.4rem; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: #fff; cursor: pointer;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; transition: background-size .45s var(--afnp-out); }
.afnp .afnp__link svg, .afnp-pop .afnp__link svg { display: block; flex: none; width: 1.6rem; height: 1.2rem; fill: currentColor; transition: transform .35s var(--afnp-out); }
.afnp .afnp__link:hover, .afnp .afnp__link:focus, .afnp-pop .afnp__link:hover, .afnp-pop .afnp__link:focus { color: #fff; background-size: 100% 2px; }
.afnp .afnp__link:hover svg, .afnp .afnp__link:focus svg, .afnp-pop .afnp__link:hover svg, .afnp-pop .afnp__link:focus svg { transform: translateX(4px); }

.afnp .afnp__call, .afnp-pop .afnp__call { display: inline-flex; align-items: center; gap: 1rem; font-family: var(--afnp-display); font-style: normal; font-weight: 600; font-size: 1.9rem; line-height: 1; letter-spacing: .08em; white-space: nowrap; color: #fff; cursor: pointer; transition: color .2s var(--afnp-std); }
.afnp .afnp__call svg, .afnp-pop .afnp__call svg { display: block; flex: none; width: 1.8rem; height: 1.8rem; fill: currentColor; transform-origin: 50% 60%; }
.afnp .afnp__call:hover, .afnp .afnp__call:focus, .afnp-pop .afnp__call:hover, .afnp-pop .afnp__call:focus { color: var(--afnp-pale); }
.afnp .afnp__call:hover svg, .afnp-pop .afnp__call:hover svg { animation: afnp-ring .6s var(--afnp-std); }
@keyframes afnp-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(11deg); } 60% { transform: rotate(-7deg); } 80% { transform: rotate(4deg); } }

/* ---- Entrance: everything sits in its final state by default. .is-armed hides the animated parts
   until module.js adds .is-in (a third of the section in view), which plays each part once. ---- */
.afnp.is-armed:not(.is-in) [data-a], .afnp.is-armed:not(.is-in) .afnp__ln-i, .afnp.is-armed:not(.is-in) .js-afnp-split:not(.is-split) { opacity: 0; }
.afnp.is-done .afnp__ln-i { animation: none !important; }
@keyframes afnp-push { from { transform: scale(var(--s, 1.08)) translateX(var(--x, 0)); } to { transform: none; } }
@keyframes afnp-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes afnp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes afnp-fade-y { from { opacity: 0; transform: translateY(var(--y, 1.6rem)); } to { opacity: 1; transform: none; } }

/* ---- Tint over the clip: deep navy at the left where the copy sits, clearing to the right ---- */
.afnp { --t1: .95; --t2: .84; --t3: .34; --t4: .2; --t5: .8; display: flex; flex-direction: column; min-height: clamp(56rem, 46vw, 74rem); background-color: var(--afnp-deep); }
.afnp--tint-light { --t1: .86; --t2: .68; --t3: .2; --t4: .08; --t5: .6; }
.afnp--tint-dark { --t1: .97; --t2: .93; --t3: .6; --t4: .44; --t5: .86; }
.afnp .afnp__media::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,36,63,var(--t1)) 0%, rgba(0,48,90,var(--t2)) 36%, rgba(0,48,90,var(--t3)) 72%, rgba(0,48,90,var(--t4)) 100%), linear-gradient(0deg, rgba(0,36,63,var(--t5)) 0%, rgba(0,36,63,0) 46%); }
.afnp--no-media .afnp__media::before { display: none; }
.afnp--grid .afnp__media::after { content: ""; position: absolute; inset: 0; z-index: 2; background-image: var(--afnp-gridlines); background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 62%); mask-image: linear-gradient(90deg, #000 0%, transparent 62%); }
.afnp--no-media.afnp--grid .afnp__media::after { display: none; }
/* navy curtain that wipes off to the right on entrance */
.afnp .afnp__curtain { position: absolute; inset: 0; z-index: 3; display: block; background: var(--afnp-navy); transform: scaleX(0); transform-origin: right; }
.afnp.is-armed:not(.is-in) .afnp__curtain { transform: none; }

/* ---- Copy ---- */
.afnp .afnp__body { flex: 1 0 auto; display: flex; align-items: center; padding-block: 8rem 6.4rem; }
.afnp .afnp__copy { max-width: 68rem; }
.afnp .afnp__title { margin-top: 2rem; font-size: clamp(3.8rem, 5vw, 6.4rem); line-height: 1.06; }
.afnp .afnp__title:first-child { margin-top: 0; }
.afnp .afnp__desc { margin-top: 2.4rem; max-width: 52ch; font-family: var(--afnp-body); font-weight: 500; font-size: 1.9rem; line-height: 1.8; color: var(--afnp-text); }
.afnp .afnp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 3.2rem; margin-top: 3.6rem; }

/* Watch bar: darker blue wipes across on hover; the arrow leaves right as a new one enters left */
.afnp .afnp__watch { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: stretch; height: 6.4rem; background: var(--afnp-blue); color: #fff; font-family: var(--afnp-display); font-weight: 600; font-size: 1.5rem; line-height: 1; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transition: transform .15s var(--afnp-std); }
.afnp .afnp__watch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--afnp-blue-2); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--afnp-out); }
.afnp .afnp__watch-ico { position: relative; flex: none; width: 6.4rem; display: grid; place-items: center; overflow: hidden; background: var(--afnp-blue-2); transition: background .3s var(--afnp-std); }
.afnp .afnp__watch-ico svg { grid-area: 1 / 1; display: block; width: 1.8rem; height: 2rem; margin-left: .3rem; fill: #fff; transition: transform .45s var(--afnp-out); }
.afnp .afnp__watch-ico svg + svg { transform: translateX(-4.4rem); }
.afnp .afnp__watch-txt { display: flex; align-items: center; padding: 0 2.6rem 0 2.4rem; }
.afnp .afnp__watch-txt:not(:last-child) { padding-right: 2rem; }
.afnp .afnp__watch-len { display: flex; align-items: center; margin-block: 1.9rem; padding: 0 2.6rem 0 2rem; border-left: 1px solid rgba(255,255,255,.45); font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--afnp-pale); }
.afnp .afnp__watch:hover::before, .afnp .afnp__watch:focus-visible::before { transform: scaleX(1); }
.afnp .afnp__watch:hover .afnp__watch-ico, .afnp .afnp__watch:focus-visible .afnp__watch-ico { background: #00518F; }
.afnp .afnp__watch:hover .afnp__watch-ico svg, .afnp .afnp__watch:focus-visible .afnp__watch-ico svg { transform: translateX(4.4rem); }
.afnp .afnp__watch:hover .afnp__watch-ico svg + svg, .afnp .afnp__watch:focus-visible .afnp__watch-ico svg + svg { transform: none; }
.afnp .afnp__watch:active { transform: scale(.985); }

.afnp .afnp__phone { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; margin-top: 3rem; }
.afnp .afnp__phone > span { font-family: var(--afnp-body); font-size: 1.6rem; font-weight: 600; line-height: 1.3; color: var(--afnp-pale); }

/* ---- Bottom bar: what is playing, with a line that fills as the clip loops ---- */
.afnp .afnp__rail { position: relative; flex: none; background: var(--afnp-mid); }
.afnp .afnp__prog { position: absolute; inset: 0 0 auto; height: 3px; background: rgba(255,255,255,.24); opacity: 0; transition: opacity .6s var(--afnp-std); }
.afnp.is-live .afnp__prog { opacity: 1; }
.afnp .afnp__prog i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.afnp .afnp__rail-in { display: flex; align-items: center; gap: 1.2rem 2.4rem; min-height: 7.2rem; padding-block: 1.6rem 1.3rem; }
.afnp .afnp__now { display: inline-flex; align-items: center; gap: 1.1rem; font-family: var(--afnp-display); font-weight: 600; font-size: 1.2rem; line-height: 1; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: rgba(255,255,255,.9); }
.afnp .afnp__name { flex: 1 1 0; min-width: 0; padding-left: 2.4rem; border-left: 1px solid rgba(255,255,255,.35); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--afnp-display); font-weight: 600; font-size: 1.7rem; line-height: 1.3; color: #fff; }
.afnp .afnp__name:first-child { padding-left: 0; border-left: 0; }
.afnp .afnp__len { font-family: var(--afnp-display); font-weight: 500; font-size: 1.3rem; line-height: 1; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--afnp-pale); font-variant-numeric: tabular-nums; }
.afnp .afnp__rail .afnp__link { padding-block: .5rem; }

/* ---- Entrance ---- */
@keyframes afnp-curtain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes afnp-fade-x { from { opacity: 0; transform: translateX(-1rem); } to { opacity: 1; transform: none; } }
@keyframes afnp-line { from { transform: translateY(112%); } to { transform: none; } }
@keyframes afnp-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes afnp-up { from { transform: translateY(100%); } to { transform: none; } }
.afnp.is-in .afnp__curtain { animation: afnp-curtain 1s var(--afnp-inout) backwards; }
.afnp.is-in .afnp__pic { animation: afnp-push 1.6s var(--afnp-out) backwards; }
.afnp.is-in .afnp__eyebrow::before { animation: afnp-draw .5s var(--afnp-out) .35s backwards; }
.afnp.is-in .afnp__eyebrow span { animation: afnp-fade-x .6s var(--afnp-out) .43s backwards; }
.afnp.is-in .afnp__ln-i { animation: afnp-line .9s var(--afnp-out) calc(.45s + var(--i, 0) * 90ms) backwards; }
.afnp.is-in .afnp__desc { animation: afnp-fade-y .8s var(--afnp-rise) .7s backwards; }
.afnp.is-in .afnp__watch { animation: afnp-wipe .7s var(--afnp-out) .82s backwards; }
.afnp.is-in .afnp__phone { --y: 1.2rem; animation: afnp-fade-y .7s var(--afnp-rise) .96s backwards; }
.afnp.is-in .afnp__rail { animation: afnp-up .7s var(--afnp-out) .55s backwards; }
.afnp.is-in .afnp__rail-in { animation: afnp-fade .5s var(--afnp-std) .95s backwards; }

@media (max-width: 991px) {
  .afnp .afnp__title { font-size: clamp(3.6rem, 6.4vw, 5.2rem); }
  .afnp .afnp__desc { font-size: 1.8rem; }
  .afnp .afnp__len { display: none; }
}
@media (max-width: 767px) {
  .afnp { --t1: .96; --t2: .86; --t3: .3; --t4: .18; min-height: 64rem; }
  .afnp--tint-light { --t1: .92; --t2: .74; --t3: .18; --t4: .06; }
  .afnp--tint-dark { --t1: .97; --t2: .93; --t3: .52; --t4: .38; }
  /* copy drops to the bottom over a bottom-up tint */
  .afnp .afnp__media::before { background: linear-gradient(0deg, rgba(0,36,63,var(--t1)) 0%, rgba(0,42,76,var(--t2)) 44%, rgba(0,48,90,var(--t3)) 78%, rgba(0,48,90,var(--t4)) 100%); }
  .afnp--grid .afnp__media::after { -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 70%); mask-image: linear-gradient(0deg, #000 0%, transparent 70%); }
  .afnp .afnp__body { align-items: flex-end; padding-block: 12rem 3.2rem; }
  .afnp .afnp__title { margin-top: 1.6rem; font-size: clamp(3.2rem, 9.4vw, 4.2rem); line-height: 1.08; }
  .afnp .afnp__desc { margin-top: 1.8rem; font-size: 1.6rem; line-height: 1.7; }
  .afnp .afnp__actions { margin-top: 2.8rem; }
  .afnp .afnp__watch { width: 100%; height: 6rem; font-size: 1.4rem; }
  .afnp .afnp__watch-ico { width: 6rem; }
  .afnp .afnp__watch-txt, .afnp .afnp__watch-txt:not(:last-child) { flex: 1 1 auto; padding: 0 1.4rem 0 1.8rem; }
  .afnp .afnp__watch-len { margin-block: 1.7rem; padding: 0 1.8rem 0 1.4rem; }
  .afnp .afnp__phone { margin-top: 2.4rem; }
  .afnp .afnp__phone > span { font-size: 1.5rem; }
  .afnp .afnp__rail-in { flex-wrap: wrap; justify-content: space-between; min-height: 0; padding-block: 1.8rem 1.6rem; }
  .afnp .afnp__name { order: 3; flex: 1 1 100%; padding-left: 0; border-left: 0; font-size: 1.5rem; }
  .afnp .afnp__rail .afnp__link { font-size: 1.3rem; }
}
@media (max-width: 379px) {
  /* the smallest phones: the length moves off the Watch bar, and the bar's two labels tighten to share a line */
  .afnp .afnp__watch-len { display: none; }
  .afnp .afnp__rail-in { column-gap: 1.2rem; }
  .afnp .afnp__now { letter-spacing: .12em; }
  .afnp .afnp__rail .afnp__link { font-size: 1.2rem; letter-spacing: .06em; }
}

/* =====================================================================
   Pop-up player (.afnp-pop). module.js moves it to the end of <body>, so its rules do not sit
   under .afnp. Near-black navy with the 44px grid, the video name at the top left, a white square
   close button and the video as large as the screen allows. An end screen follows the video.
   ===================================================================== */
html.afnp-lock, html.afnp-lock body { overflow: hidden; }
.afnp-pop { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  padding: calc(2.4rem + env(safe-area-inset-top, 0px)) max(3.2rem, env(safe-area-inset-right, 0px)) calc(2.4rem + env(safe-area-inset-bottom, 0px)) max(3.2rem, env(safe-area-inset-left, 0px));
  overflow: hidden; overscroll-behavior: contain;
  color: #fff; font-family: var(--afnp-body); font-weight: 500; font-size: 1.6rem; line-height: 1.7; text-align: left; }
.afnp-pop[hidden] { display: none; }
.afnp-pop .afnp-pop__bg { position: fixed; inset: 0; cursor: pointer; }
.afnp-pop .afnp-pop__bg i { position: absolute; inset: 0; display: block; background-color: #00162A; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; }

.afnp-pop .afnp-pop__dialog { position: relative; width: min(150rem, 100%, (100vh - 15rem) * 16 / 9); }
@supports (height: 100dvh) { .afnp-pop .afnp-pop__dialog { width: min(150rem, 100%, (100dvh - 15rem) * 16 / 9); } }
.afnp-pop .afnp-pop__top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1.4rem; opacity: 0; transform: translateY(-1.2rem); transition: opacity .18s var(--afnp-std), transform .18s var(--afnp-std); }
.afnp-pop .afnp-pop__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--afnp-display); font-weight: 600; font-size: 1.5rem; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.afnp-pop .afnp-pop__close { flex: none; display: grid; place-items: center; width: 4.4rem; height: 4.4rem; background: #fff; color: var(--afnp-blue-2); transition: background .2s var(--afnp-std), color .2s var(--afnp-std); }
.afnp-pop .afnp-pop__close svg { display: block; width: 1.6rem; height: 1.6rem; stroke: currentColor; stroke-width: 2.2; fill: none; transition: transform .45s var(--afnp-out); }
.afnp-pop .afnp-pop__close:hover { background: var(--afnp-blue); color: #fff; }
.afnp-pop .afnp-pop__close:hover svg { transform: rotate(90deg); }
.afnp-pop .afnp-pop__stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; opacity: 0; transform: scale(.965); transition: opacity .18s var(--afnp-std), transform .18s var(--afnp-std); }
.afnp-pop .afnp-pop__stage video, .afnp-pop .afnp-pop__stage iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; border: 0; background: #000; }
.afnp-pop .afnp-pop__stage video { object-fit: contain; }
/* loading: a short ice bar runs along the bottom of the video */
.afnp-pop .afnp-pop__stage::after { content: ""; position: absolute; left: 0; bottom: 0; z-index: 1; width: 30%; height: 4px; background: var(--afnp-ice); opacity: 0; pointer-events: none; }
.afnp-pop.is-loading .afnp-pop__stage::after { opacity: 1; animation: afnp-load 1.1s var(--afnp-std) infinite; }
@keyframes afnp-load { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
/* content waits (--in) for the backdrop, then the title bar drops in and the video scales up */
.afnp-pop.is-open .afnp-pop__top { opacity: 1; transform: none; transition: opacity .45s var(--afnp-out) var(--in), transform .6s var(--afnp-out) var(--in); }
.afnp-pop.is-open .afnp-pop__stage { opacity: 1; transform: none; transition: opacity .4s var(--afnp-std) calc(var(--in) + 60ms), transform .7s var(--afnp-out) calc(var(--in) + 60ms); }

/* end screen */
.afnp-pop .afnp-pop__end { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.8rem; padding: 2rem; text-align: center; background: rgba(0,22,42,.94); animation: afnp-fade .4s var(--afnp-std); }
.afnp-pop .afnp-pop__end[hidden] { display: none; }
.afnp-pop .afnp-pop__end-k { font-family: var(--afnp-display); font-weight: 600; font-size: clamp(2.2rem, 3vw, 3.4rem); line-height: 1.15; color: #fff; }
.afnp-pop .afnp-pop__end-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.6rem 3.2rem; }
.afnp-pop .afnp-pop__again { display: inline-flex; align-items: center; gap: 1.2rem; height: 5.6rem; padding: 0 2.6rem; background: var(--afnp-blue); color: #fff; font-family: var(--afnp-display); font-weight: 600; font-size: 1.4rem; line-height: 1; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transition: background .2s var(--afnp-std); }
.afnp-pop .afnp-pop__again:hover { background: var(--afnp-blue-2); }
.afnp-pop .afnp-pop__again svg { display: block; width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2; }

/* Opening: shutter. Two halves of the backdrop close from the top and bottom, an ice line runs
   along the seam, then the player follows. */
.afnp-pop { --in: .34s; }
.afnp-pop .afnp-pop__bg i { transition: clip-path .46s var(--afnp-swift) .12s; }
.afnp-pop .afnp-pop__bg i:nth-child(1) { clip-path: inset(0 0 100% 0); }
.afnp-pop .afnp-pop__bg i:nth-child(2) { clip-path: inset(100% 0 0 0); }
.afnp-pop.is-open .afnp-pop__bg i { transition: clip-path .52s var(--afnp-swift); }
.afnp-pop.is-open .afnp-pop__bg i:nth-child(1) { clip-path: inset(0 0 49.8% 0); }
.afnp-pop.is-open .afnp-pop__bg i:nth-child(2) { clip-path: inset(49.8% 0 0 0); }
.afnp-pop .afnp-pop__seam { position: fixed; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: var(--afnp-ice); opacity: 0; pointer-events: none; }
.afnp-pop.is-open .afnp-pop__seam { animation: afnp-seam .7s var(--afnp-out) .24s both; }
@keyframes afnp-seam { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

@media (max-width: 640px) {
  .afnp-pop { padding-inline: 0; }
  .afnp-pop .afnp-pop__top { padding: 0 1.2rem 0 1.6rem; }
  .afnp-pop .afnp-pop__title { font-size: 1.3rem; white-space: normal; }
  .afnp-pop .afnp-pop__end { gap: 1.4rem; }
  .afnp-pop .afnp-pop__end-k { font-size: 2rem; }
  .afnp-pop .afnp-pop__again { height: 4.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .afnp.is-in *, .afnp.is-in *::before, .afnp.is-in *::after { animation: none !important; }
  .afnp .afnp__dot { animation: none; }
  .afnp *, .afnp *::before, .afnp *::after, .afnp-pop *, .afnp-pop *::before, .afnp-pop *::after { transition-duration: .01s !important; transition-delay: 0s !important; }
  .afnp-pop .afnp-pop__seam { display: none; }
}
