/* 12 — Share moments. Build community. (Agent CLOSE)
   Live JOIN NOW video in a glowing broadcast frame that tilts in 3D with scroll,
   custom play button with pulsing rings, "ambient light" that spills the video's colours. */
@property --hl-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.hl { padding: clamp(72px, 8vw, 120px) 0; background: #060b16; overflow: hidden; overflow: clip; isolation: isolate;
  border-block: 1px solid rgba(130,40,230,.3); }
.hl::before { content: ''; position: absolute; left: -10%; top: 50%; width: 70%; height: 90%; transform: translateY(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse, rgba(153,44,255,.16), transparent 65%); }
.hl-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hl-stage { grid-column: 1; grid-row: 1; position: relative; perspective: 1400px; }
.hl-copy { grid-column: 2; grid-row: 1; }

/* copy */
.hl-eyebrow { margin: 0 0 16px; }
.hl-title { font-size: clamp(40px, 3.9vw, 60px); margin-bottom: 20px; }
.hl-line { display: block; overflow: hidden; padding-bottom: .03em; }
.hl-line > span { display: inline-block; }
.hl-accent { color: var(--purple); }
.hl-sub { font: 400 clamp(17px, 1.4vw, 21px)/1.35 var(--f-ui); color: var(--text-2); max-width: 380px; margin: 0; }

/* ambient light (poster until playing, then live canvas of the video) */
.hl-ambient { position: absolute; inset: 0 -2%; z-index: 0; pointer-events: none; filter: blur(56px) saturate(1.5); opacity: .6; transform: translateZ(-60px); }
.hl-ambient > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s ease; }
.hl-ambient-cv { opacity: 0; }
.hl.is-playing .hl-ambient-cv { opacity: 1; }
.hl.is-playing .hl-ambient-img { opacity: 0; }

/* frame */
.hl-frame { position: relative; z-index: 1; padding: 10px; border-radius: 20px; transform-style: preserve-3d;
  transform: rotateY(6deg) rotateX(3deg); transform-origin: 50% 50%;
  background: linear-gradient(150deg, rgba(40,22,70,.9), rgba(8,10,22,.95) 45%, rgba(20,28,10,.9));
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 80px -20px rgba(153,44,255,.55); }
.hl-frame::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--hl-ang), rgba(153,44,255,.95), rgba(153,44,255,.2) 25%, rgba(208,250,0,.9) 45%, rgba(153,44,255,.2) 65%, rgba(153,44,255,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: hl-spin 9s linear infinite; }
.hl.is-off .hl-frame::before, .hl.is-off .hl-ring { animation-play-state: paused; }
@keyframes hl-spin { to { --hl-ang: 360deg; } }
.hl-corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--lime); pointer-events: none; filter: drop-shadow(0 0 6px rgba(208,250,0,.6)); }
.hl-c1 { left: -9px; top: -9px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.hl-c2 { right: -9px; top: -9px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px; }
.hl-c3 { left: -9px; bottom: -9px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px; }
.hl-c4 { right: -9px; bottom: -9px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.hl-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #03060e; }
.hl-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #03060e; }
.hl-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: opacity .7s ease, transform 1.2s var(--ease-out); }
.hl-glass { position: absolute; inset: 0; pointer-events: none; transition: opacity .6s;
  background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 32%), linear-gradient(0deg, rgba(3,6,14,.55), transparent 35%); }
.hl-stage:hover .hl-poster { transform: scale(1.03); }

/* play button */
.hl-play { position: absolute; left: 50%; top: 79%; width: 104px; height: 104px; margin: -52px 0 0 -52px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer;
  display: grid; place-items: center; transition: opacity .4s, transform .5s var(--ease-out); }
.hl-play-core { position: relative; z-index: 1; width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; color: var(--lime-ink);
  background: radial-gradient(circle at 35% 30%, #efff7a, var(--lime) 55%, #a9cc00); box-shadow: 0 0 0 6px rgba(208,250,0,.18), 0 12px 40px -6px rgba(208,250,0,.65);
  transition: transform .4s var(--ease-out), box-shadow .4s; }
.hl-play-core svg { width: 34px; height: 34px; margin-left: 5px; }
.hl-play:hover .hl-play-core { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(208,250,0,.22), 0 16px 50px -6px rgba(208,250,0,.8); }
.hl-play:focus-visible { outline: 3px solid var(--lime); outline-offset: 6px; }
.hl-ring { position: absolute; inset: 11px; border-radius: 50%; border: 2px solid rgba(208,250,0,.75); animation: hl-pulse 2.6s cubic-bezier(.2,.6,.3,1) infinite; }
.hl-ring-2 { animation-delay: 1.3s; }
@keyframes hl-pulse { from { transform: scale(1); opacity: .85; } to { transform: scale(1.9); opacity: 0; } }
.hl.is-playing .hl-poster, .hl.is-playing .hl-glass { opacity: 0; pointer-events: none; }
.hl.is-playing .hl-play { opacity: 0; transform: scale(.6); pointer-events: none; }

/* floor reflection */
.hl-reflect { position: absolute; left: 8%; right: 8%; bottom: -46px; height: 60px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse, rgba(153,44,255,.45), transparent 70%); filter: blur(12px); }

/* entrance (JS-armed) */
.hl.is-armed .hl-line > span { transform: translateY(105%); }
.hl.is-armed .hl-eyebrow, .hl.is-armed .hl-sub { opacity: 0; transform: translateY(20px); }
.hl.is-in .hl-line > span { transform: none; transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.hl.is-in .hl-line + .hl-line > span { transition-delay: .12s; }
.hl.is-in .hl-eyebrow, .hl.is-in .hl-sub { opacity: 1; transform: none; transition: opacity .9s var(--ease-out) .2s, transform .9s var(--ease-out) .2s; }

@media (max-width: 767px) {
  .hl { padding: 60px 0 70px; }
  .hl-grid { grid-template-columns: 1fr; gap: 34px; }
  .hl-stage, .hl-copy { grid-column: 1; grid-row: auto; }
  .hl-title { font-size: 40px; margin-bottom: 14px; }
  .hl-sub { font-size: 17px; }
  .hl-frame { padding: 7px; border-radius: 14px; transform: rotateY(3deg) rotateX(2deg); }
  .hl-screen { border-radius: 9px; }
  .hl-corner { width: 18px; height: 18px; }
  .hl-c1, .hl-c3 { left: -6px; } .hl-c2, .hl-c4 { right: -6px; } .hl-c1, .hl-c2 { top: -6px; } .hl-c3, .hl-c4 { bottom: -6px; }
  .hl-play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .hl-play-core { width: 64px; height: 64px; }
  .hl-play-core svg { width: 26px; height: 26px; margin-left: 4px; }
  .hl-ring { inset: 10px; }
  .hl-ambient { filter: blur(34px) saturate(1.4); opacity: .5; }
}
@media (prefers-reduced-motion: reduce) { .hl-ring, .hl-frame::before { animation: none; } }
.hl.is-still .hl-ring, .hl.is-still .hl-frame::before { animation: none; }
.hl.is-still .hl-ring-2 { display: none; }
