/* =====================================================================
   Video - Viewfinder (prefix: .afvf, pop-up: .afvf-pop)
   Full width video band: centred copy over a looping background clip, inside ice blue camera corner
   marks, with a Preview label, running timecode and progress line while the clip plays. The Watch
   Video button opens the main video in a full-screen pop-up player; the corner marks travel from
   the section to frame it.
   Options (classes on the section):
     afvf--tint-light | --tint-standard | --tint-dark   how dark the veil is
     afvf--focus-center | --focus-left | --focus-right  which part of the clip stays in view
     afvf--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 (button hovered), .is-lifted (marks are with the pop-up) on the section;
     .is-open, .is-loading on .afvf-pop; html.afvf-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.
   ===================================================================== */
.afvf, .afvf-pop {
  --afvf-navy: #00305A; --afvf-deep: #00243F; --afvf-ink: #00172B;
  --afvf-blue: var(--primary-color, #0092D6); --afvf-blue-2: var(--secondary-color, #006EB8); --afvf-mid: #007BCF;
  --afvf-ice: #01B0FF; --afvf-sky: #8CD8FF; --afvf-pale: #BFE7FF;
  --afvf-text: #E6F2FB; --afvf-hair: rgba(255, 255, 255, .18);
  --afvf-display: var(--secondary-font-family, 'Jost', sans-serif);
  --afvf-body: var(--primary-font-family, 'Raleway', sans-serif);
  --afvf-gridlines: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  --afvf-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 */
  --afvf-out: cubic-bezier(.16, 1, .3, 1);
  --afvf-inout: cubic-bezier(.76, 0, .24, 1);
  --afvf-swift: cubic-bezier(.3, 0, 0, 1);
  --afvf-std: cubic-bezier(.4, 0, .2, 1);
  --afvf-rise: cubic-bezier(.22, .61, .36, 1);
}
.afvf {
  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(--afvf-body);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.7;
  text-align: left;
}
.afvf *, .afvf *::before, .afvf *::after,
.afvf-pop, .afvf-pop *, .afvf-pop *::before, .afvf-pop *::after { box-sizing: border-box; }
.afvf p, .afvf-pop p { margin: 0; }
/* theme button and link styles are reset so every control starts clean */
.afvf button, .afvf-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;
}
.afvf a, .afvf-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;
}
.afvf :focus-visible, .afvf-pop :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

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

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

.afvf .afvf__dot { flex: none; display: block; width: .9rem; height: .9rem; border-radius: 50%; background: var(--afvf-pale); animation: afvf-pulse 2s infinite; }
@keyframes afvf-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); } }

.afvf .afvf__link, .afvf-pop .afvf__link { display: inline-flex; align-items: center; gap: 1rem; padding: 0 0 .5rem; font-family: var(--afvf-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(--afvf-out); }
.afvf .afvf__link svg, .afvf-pop .afvf__link svg { display: block; flex: none; width: 1.6rem; height: 1.2rem; fill: currentColor; transition: transform .35s var(--afvf-out); }
.afvf .afvf__link:hover, .afvf .afvf__link:focus, .afvf-pop .afvf__link:hover, .afvf-pop .afvf__link:focus { color: #fff; background-size: 100% 2px; }
.afvf .afvf__link:hover svg, .afvf .afvf__link:focus svg, .afvf-pop .afvf__link:hover svg, .afvf-pop .afvf__link:focus svg { transform: translateX(4px); }

.afvf .afvf__call, .afvf-pop .afvf__call { display: inline-flex; align-items: center; gap: 1rem; font-family: var(--afvf-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(--afvf-std); }
.afvf .afvf__call svg, .afvf-pop .afvf__call svg { display: block; flex: none; width: 1.8rem; height: 1.8rem; fill: currentColor; transform-origin: 50% 60%; }
.afvf .afvf__call:hover, .afvf .afvf__call:focus, .afvf-pop .afvf__call:hover, .afvf-pop .afvf__call:focus { color: var(--afvf-pale); }
.afvf .afvf__call:hover svg, .afvf-pop .afvf__call:hover svg { animation: afvf-ring .6s var(--afvf-std); }
@keyframes afvf-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. ---- */
.afvf.is-armed:not(.is-in) [data-a], .afvf.is-armed:not(.is-in) .afvf__ln-i, .afvf.is-armed:not(.is-in) .js-afvf-split:not(.is-split) { opacity: 0; }
.afvf.is-done .afvf__ln-i { animation: none !important; }
@keyframes afvf-push { from { transform: scale(var(--s, 1.08)) translateX(var(--x, 0)); } to { transform: none; } }
@keyframes afvf-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes afvf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes afvf-fade-y { from { opacity: 0; transform: translateY(var(--y, 1.6rem)); } to { opacity: 1; transform: none; } }

/* ---- Veil over the clip: the darkest of the three, because the copy is centred on the footage ---- */
.afvf { --v1: .7; --v2: .86; --v3: .76; --in: 2.8rem; --arm: 4.4rem; --thick: 6px; display: grid; place-items: center; min-height: clamp(60rem, 50vw, 78rem); background-color: var(--afvf-ink); text-align: center; }
.afvf--tint-light { --v1: .56; --v2: .76; --v3: .64; }
.afvf--tint-dark { --v1: .8; --v2: .92; --v3: .86; }
.afvf .afvf__media { background-color: var(--afvf-ink); }
.afvf .afvf__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 75% at 50% 50%, rgba(0,23,43,var(--v1)) 0%, rgba(0,23,43,var(--v2)) 100%); transition: opacity .6s var(--afvf-std); }
.afvf--no-media .afvf__media::after { display: none; }
.afvf.is-hot .afvf__media::after { opacity: .84; }

/* ---- Corner marks, preview label, timecode and progress line ---- */
.afvf .afvf__frame { position: absolute; inset: var(--in); pointer-events: none; }
.afvf.is-lifted .afvf__frame { opacity: 0; }
.afvf .afvf__frame i, .afvf-pop .afvf-pop__finder i { position: absolute; display: block; width: var(--arm, 4.4rem); height: var(--arm, 4.4rem); border: 0 solid var(--afvf-ice); }
.afvf .afvf__frame i { transition: transform .6s var(--afvf-out); }
.afvf .afvf__frame i:nth-child(1), .afvf-pop .afvf-pop__finder i:nth-child(1) { top: 0; left: 0; border-top-width: var(--thick, 6px); border-left-width: var(--thick, 6px); --fx: 30vw; --fy: 16rem; }
.afvf .afvf__frame i:nth-child(2), .afvf-pop .afvf-pop__finder i:nth-child(2) { top: 0; right: 0; border-top-width: var(--thick, 6px); border-right-width: var(--thick, 6px); --fx: -30vw; --fy: 16rem; }
.afvf .afvf__frame i:nth-child(3), .afvf-pop .afvf-pop__finder i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: var(--thick, 6px); border-left-width: var(--thick, 6px); --fx: 30vw; --fy: -16rem; }
.afvf .afvf__frame i:nth-child(4), .afvf-pop .afvf-pop__finder i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: var(--thick, 6px); border-right-width: var(--thick, 6px); --fx: -30vw; --fy: -16rem; }
/* hovering the Watch button pulls the marks in */
.afvf.is-hot .afvf__frame i:nth-child(1) { transform: translate(1.2rem, 1.2rem); }
.afvf.is-hot .afvf__frame i:nth-child(2) { transform: translate(-1.2rem, 1.2rem); }
.afvf.is-hot .afvf__frame i:nth-child(3) { transform: translate(1.2rem, -1.2rem); }
.afvf.is-hot .afvf__frame i:nth-child(4) { transform: translate(-1.2rem, -1.2rem); }

/* the label, timecode and progress line only show while the clip is actually playing */
.afvf .afvf__hud { position: absolute; top: var(--in); left: var(--in); right: var(--in); height: var(--arm); padding-inline: calc(var(--arm) + 1.8rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; font-family: var(--afvf-display); line-height: 1; text-transform: uppercase; color: rgba(255,255,255,.9); pointer-events: none; opacity: 0; transition: opacity .6s var(--afvf-std); }
.afvf .afvf__rec { display: inline-flex; align-items: center; gap: 1.1rem; font-weight: 600; font-size: 1.2rem; letter-spacing: .2em; }
.afvf .afvf__tc { margin-left: auto; font-weight: 500; font-size: 1.3rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.afvf .afvf__prog { position: absolute; left: calc(var(--in) + var(--arm) + 1.8rem); right: calc(var(--in) + var(--arm) + 1.8rem); bottom: var(--in); height: var(--thick); background: rgba(255,255,255,.22); transform-origin: left; opacity: 0; transition: opacity .6s var(--afvf-std); }
.afvf .afvf__prog i { display: block; height: 100%; background: var(--afvf-ice); transform: scaleX(0); transform-origin: left; }
.afvf.is-live .afvf__hud, .afvf.is-live .afvf__prog { opacity: 1; }

/* ---- Copy ---- */
.afvf .afvf__body { position: relative; width: min(86rem, 100% - 4rem); padding-block: 10.4rem 9.6rem; display: flex; flex-direction: column; align-items: center; }
.afvf .afvf__eyebrow { justify-content: center; }
.afvf .afvf__eyebrow::before { display: none; }
.afvf .afvf__title { margin-top: 1.8rem; max-width: 19ch; font-size: clamp(3.8rem, 5.2vw, 6.8rem); line-height: 1.05; text-align: center; }
.afvf .afvf__title:first-child { margin-top: 0; }
.afvf .afvf__ln { overflow: visible; }
.afvf .afvf__desc { margin-top: 2.2rem; max-width: 54ch; font-family: var(--afvf-body); font-weight: 500; font-size: 1.9rem; line-height: 1.8; color: var(--afvf-text); text-align: center; }

/* Watch button: ice blue opens out from the centre on hover and the arrow and label turn navy */
.afvf .afvf__play { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 1.4rem; min-width: 25.6rem; height: 6.1rem; margin-top: 4rem; padding: 0 3.5rem; background: var(--afvf-blue); color: #fff; font-family: var(--afvf-display); font-weight: 600; font-size: 1.45rem; line-height: 1; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: color .3s var(--afvf-std), transform .15s var(--afvf-std); }
.afvf .afvf__play::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--afvf-ice); transform: scaleX(0); transition: transform .5s var(--afvf-out); }
.afvf .afvf__play svg { display: block; flex: none; width: 1.6rem; height: 1.76rem; fill: currentColor; transition: transform .5s var(--afvf-out); }
.afvf .afvf__play:hover, .afvf .afvf__play:focus-visible { color: var(--afvf-navy); }
.afvf .afvf__play:hover::before, .afvf .afvf__play:focus-visible::before { transform: scaleX(1); }
.afvf .afvf__play:hover svg, .afvf .afvf__play:focus-visible svg { transform: scale(1.15); }
.afvf .afvf__play:active { transform: scale(.985); }

/* View all videos and the phone number share one row, set at the same size */
.afvf .afvf__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.6rem 3.6rem; margin-top: 3.8rem; }
.afvf .afvf__meta .afvf__link { gap: 1.1rem; padding-block: .5rem; font-size: 1.7rem; line-height: 1; letter-spacing: .08em; }
.afvf .afvf__meta .afvf__link svg { width: 1.9rem; height: 1.44rem; }
.afvf .afvf__meta .afvf__call { height: 3rem; padding-left: 3.6rem; border-left: 1px solid var(--afvf-hair); font-size: 1.7rem; }
.afvf .afvf__meta .afvf__call svg { width: 1.6rem; height: 1.6rem; }
.afvf .afvf__meta .afvf__call:first-child { padding-left: 0; border-left: 0; }

/* ---- Entrance ---- */
@keyframes afvf-blur-in { from { filter: blur(16px); transform: scale(1.08); } to { filter: blur(0); transform: none; } }
@keyframes afvf-focus { from { opacity: 0; filter: blur(12px); transform: scale(1.04); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes afvf-corner { from { opacity: 0; transform: translate(var(--fx), var(--fy)); } to { opacity: 1; transform: none; } }
@keyframes afvf-open-x { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
.afvf.is-in .afvf__pic { animation: afvf-blur-in 1.5s var(--afvf-out) backwards; }
.afvf.is-in .afvf__frame i { animation: afvf-corner 1.1s var(--afvf-inout) .1s backwards; }
.afvf.is-in .afvf__prog { animation: afvf-draw .8s var(--afvf-inout) .7s backwards; }
.afvf.is-in .afvf__rec { --y: -.8rem; animation: afvf-fade-y .5s var(--afvf-rise) .8s backwards; }
.afvf.is-in .afvf__tc { --y: -.8rem; animation: afvf-fade-y .5s var(--afvf-rise) .88s backwards; }
.afvf.is-in .afvf__eyebrow span { animation: afvf-fade .6s var(--afvf-rise) .45s backwards; }
.afvf.is-in .afvf__ln-i { animation: afvf-focus 1s var(--afvf-out) calc(.52s + var(--i, 0) * 110ms) backwards; }
.afvf.is-in .afvf__desc { animation: afvf-fade-y .8s var(--afvf-rise) .82s backwards; }
.afvf.is-in .afvf__play { animation: afvf-open-x .7s var(--afvf-out) .95s backwards; }
.afvf.is-in .afvf__play > * { animation: afvf-fade .6s var(--afvf-rise) 1.1s backwards; }
.afvf.is-in .afvf__meta { --y: 1rem; animation: afvf-fade-y .6s var(--afvf-rise) 1.2s backwards; }

@media (max-width: 991px) {
  .afvf { --in: 2rem; }
  .afvf .afvf__title { font-size: clamp(3.6rem, 6.6vw, 5.4rem); }
}
@media (max-width: 767px) {
  .afvf { --in: 1.4rem; --arm: 2.8rem; --thick: 4px; min-height: 62rem; }
  .afvf .afvf__media::after { background: rgba(0,23,43,var(--v3)); }
  .afvf .afvf__hud { padding-inline: calc(var(--arm) + 1.2rem); }
  .afvf .afvf__rec { font-size: 1.1rem; letter-spacing: .16em; }
  .afvf .afvf__tc { font-size: 1.2rem; }
  .afvf .afvf__prog { left: calc(var(--in) + var(--arm) + 1.2rem); right: calc(var(--in) + var(--arm) + 1.2rem); }
  .afvf .afvf__body { width: calc(100% - 5.6rem); padding-block: 8.4rem 7.2rem; }
  .afvf .afvf__title { margin-top: 1.6rem; font-size: clamp(3.2rem, 9.4vw, 4.2rem); line-height: 1.08; }
  .afvf .afvf__desc { margin-top: 1.8rem; font-size: 1.6rem; line-height: 1.7; }
  .afvf .afvf__play { width: 100%; min-width: 0; max-width: 25.6rem; height: 5.4rem; margin-top: 3.2rem; padding: 0 2rem; font-size: 1.4rem; }
  .afvf .afvf__meta { flex-direction: column; margin-top: 3.2rem; gap: 2.2rem; }
  .afvf .afvf__meta .afvf__call { padding-left: 0; border-left: 0; height: auto; }
  /* the blur is skipped on phones and the clip just settles */
  .afvf.is-in .afvf__pic { animation-name: afvf-push; }
}

/* =====================================================================
   Pop-up player (.afvf-pop). module.js moves it to the end of <body>, so its rules do not sit
   under .afvf. 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.afvf-lock, html.afvf-lock body { overflow: hidden; }
.afvf-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(--afvf-body); font-weight: 500; font-size: 1.6rem; line-height: 1.7; text-align: left; }
.afvf-pop[hidden] { display: none; }
.afvf-pop .afvf-pop__bg { position: fixed; inset: 0; cursor: pointer; }
.afvf-pop .afvf-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; }

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

/* end screen */
.afvf-pop .afvf-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: afvf-fade .4s var(--afvf-std); }
.afvf-pop .afvf-pop__end[hidden] { display: none; }
.afvf-pop .afvf-pop__end-k { font-family: var(--afvf-display); font-weight: 600; font-size: clamp(2.2rem, 3vw, 3.4rem); line-height: 1.15; color: #fff; }
.afvf-pop .afvf-pop__end-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.6rem 3.2rem; }
.afvf-pop .afvf-pop__again { display: inline-flex; align-items: center; gap: 1.2rem; height: 5.6rem; padding: 0 2.6rem; background: var(--afvf-blue); color: #fff; font-family: var(--afvf-display); font-weight: 600; font-size: 1.4rem; line-height: 1; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transition: background .2s var(--afvf-std); }
.afvf-pop .afvf-pop__again:hover { background: var(--afvf-blue-2); }
.afvf-pop .afvf-pop__again svg { display: block; width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2; }

/* Opening: reframe. The section's corner marks travel to frame the player while the backdrop fades up.
   module.js places .afvf-pop__finder over the section's frame, then over the video. */
.afvf-pop { --in: .36s; }
.afvf-pop .afvf-pop__top { margin-bottom: 2.8rem; }
.afvf-pop .afvf-pop__dialog { width: min(150rem, 100% - 2.8rem, (100vh - 19rem) * 16 / 9); }
@supports (height: 100dvh) { .afvf-pop .afvf-pop__dialog { width: min(150rem, 100% - 2.8rem, (100dvh - 19rem) * 16 / 9); } }
.afvf-pop .afvf-pop__bg { opacity: 0; transition: opacity .3s var(--afvf-std) .25s; }
.afvf-pop.is-open .afvf-pop__bg { opacity: 1; transition: opacity .42s var(--afvf-std); }
.afvf-pop .afvf-pop__finder { position: fixed; display: block; pointer-events: none; transition: top .5s var(--afvf-swift), left .5s var(--afvf-swift), width .5s var(--afvf-swift), height .5s var(--afvf-swift); }
.afvf-pop.is-open .afvf-pop__finder { transition-duration: .68s; }
.afvf-pop .afvf-pop__finder.is-placed { transition: none; }

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

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