/* ── 1. Sun-glint on CTAs ── */
    /* clip-path: inset(0) is the bulletproof containment — overflow:hidden alone
       doesn't clip skewed/translated pseudo-elements in all browsers              */
    .nav-cta, .form-submit, .freebie-btn, .google-cta {
      position: relative;
      overflow: hidden;
      isolation: isolate;
      clip-path: inset(0);
    }
    .nav-cta::after, .form-submit::after, .freebie-btn::after, .google-cta::after {
      content: '';
      position: absolute;
      top: -10%; left: -80%;
      width: 30%; height: 120%;
      background: linear-gradient(105deg,
        transparent 0%,
        rgba(255,255,255,0.92) 50%,
        transparent 100%);
      transform: skewX(-15deg);
      pointer-events: none;
      opacity: 0; /* invisible at rest — never escapes the button */
    }
    /* On hover: fire once — fast narrow beam sweeps left to right like sun catching a surface */
    .nav-cta:hover::after, .form-submit:hover::after, .freebie-btn:hover::after, .google-cta:hover::after {
      animation: sunGlint 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    @keyframes sunGlint {
      0%   { left: -80%; opacity: 1; }
      100% { left: 130%; opacity: 1; }
    }


    /* ── 2. Play-button progress ring (outer, conic-gradient) ── */
    .play-btn::after {
      content: '';
      position: absolute;
      inset: -5px;
      border-radius: 50%;
      background: conic-gradient(
        var(--yellow) calc(var(--prog, 0) * 1%),
        transparent 0
      );
      -webkit-mask: radial-gradient(circle, transparent 64%, #000 66%, #000 70%, transparent 72%);
              mask: radial-gradient(circle, transparent 64%, #000 66%, #000 70%, transparent 72%);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.25s ease;
      filter: drop-shadow(0 0 4px rgba(232,245,66,0.55));
    }
    .play-btn.playing::after { opacity: 1; }

    /* ── 3. Hero stat: ∞ portal opening + slot-machine counter ── */

    /* ── INFINITY — container + SVG ── */
    .hero-stat-infinity {
      display: inline-block;
      width: clamp(78px, 9vw, 132px);
      height: clamp(40px, 4.5vw, 66px);
      color: var(--yellow);
    }
    .hero-stat-infinity svg { width: 100%; height: 100%; overflow: visible; }

    /* Styling only — all animation driven by JS animateInfinity() */
    .hero-stat-infinity .inf-path {
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      opacity: 0;
      filter: drop-shadow(0 0 6px rgba(232,245,66,0.7));
    }

    /* ── SLOT-MACHINE COUNTER ── */
    .counter {
      display: inline-block;
      text-align: center;
    }
    .counter.landed {
      animation: counterLand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    @keyframes counterLand {
      0%   { transform: translateY(-6px); filter: drop-shadow(0 0 14px rgba(232,245,66,0.75)); }
      60%  { transform: translateY(2px); }
      100% { transform: none; filter: none; }
    }

    /* ── 8. Floating-label form ── */
    .form-float { position: relative; }
    .form-float .form-input,
    .form-float .form-textarea,
    .form-float .form-select {
      padding-top: 22px;
      padding-bottom: 10px;
    }
    .form-float .form-textarea { padding-top: 26px; }
    .form-float > .form-label {
      position: absolute;
      left: 16px;
      top: 18px;
      font-size: 14px;
      font-weight: 300;
      letter-spacing: 0;
      text-transform: none;
      color: var(--muted);
      pointer-events: none;
      transform-origin: left top;
      transition: transform 0.22s cubic-bezier(0.23,1,0.32,1), color 0.18s;
    }
    /* Floated state: focused, has value, or select (always floated) */
    .form-float .form-input:focus ~ .form-label,
    .form-float .form-input:not(:placeholder-shown) ~ .form-label,
    .form-float .form-textarea:focus ~ .form-label,
    .form-float .form-textarea:not(:placeholder-shown) ~ .form-label,
    .form-float.has-value > .form-label,
    .form-float:focus-within > .form-label {
      transform: translateY(-12px) scale(0.72);
      color: var(--yellow);
      letter-spacing: 2px;
      text-transform: uppercase;
    }
    /* When floated, hide the placeholder text so it doesn't double up */
    .form-float .form-input::placeholder,
    .form-float .form-textarea::placeholder {
      color: transparent;
      transition: color 0.2s;
    }
    .form-float .form-input:focus::placeholder,
    .form-float .form-textarea:focus::placeholder {
      color: rgba(107, 101, 96, 0.6);
    }

    /* ── 9. Now-playing mini-bar ── */
    .now-playing {
      position: fixed;
      bottom: 22px; right: 22px;
      background: rgba(15, 14, 11, 0.92);
      border: 1px solid rgba(232, 245, 66, 0.38);
      border-radius: 10px;
      padding: 10px 12px 10px 10px;
      display: flex;
      align-items: center;
      gap: 12px;
      z-index: 90;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
      max-width: 300px;
      min-width: 220px;
      opacity: 0;
      transform: translateY(20px) scale(0.96);
      pointer-events: none;
      transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .now-playing.visible {
      opacity: 1;
      transform: none;
      pointer-events: auto;
    }
    .np-eq {
      width: 18px; height: 22px;
      display: flex; align-items: flex-end; gap: 2px;
      flex-shrink: 0;
    }
    .np-eq i {
      flex: 1; min-width: 3px; background: var(--yellow); border-radius: 1px 1px 0 0;
      animation: npEqBar 0.8s ease-in-out infinite alternate;
      box-shadow: 0 0 6px rgba(232,245,66,0.6);
    }
    .np-eq i:nth-child(1) { animation-duration: 0.65s; animation-delay: 0s; height: 40%; }
    .np-eq i:nth-child(2) { animation-duration: 0.95s; animation-delay: 0.1s; height: 80%; }
    .np-eq i:nth-child(3) { animation-duration: 0.75s; animation-delay: 0.2s; height: 55%; }
    @keyframes npEqBar { 0% { transform: scaleY(0.45); } 100% { transform: scaleY(1); transform-origin: bottom; } }
    .np-info { flex: 1; min-width: 0; cursor: pointer; }
    .np-title {
      font-family: var(--font-hero);
      font-size: 13px;
      color: var(--cream);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.2;
    }
    .np-artist {
      font-size: 10px;
      color: var(--muted);
      letter-spacing: 1.5px;
      text-transform: uppercase;
      margin-top: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .np-btn {
      width: 30px; height: 30px; border-radius: 50%;
      background: var(--yellow); color: var(--bg);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; cursor: pointer;
      transition: background 0.18s, transform 0.18s;
    }
    .np-btn:hover { background: #fff; transform: scale(1.06); }
    .np-btn svg { width: 12px; height: 12px; fill: currentColor; }
    .np-close {
      color: var(--muted); font-size: 18px; line-height: 1;
      padding: 0 6px; cursor: pointer; flex-shrink: 0;
      transition: color 0.18s;
    }
    .np-close:hover { color: var(--yellow); }
    @media (max-width: 768px) {
      .now-playing { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    }

    /* ── 5. Nav scroll-spy + straight underline (also acts as page progress) ── */
    .nav-links a:not(.nav-cta),
    .contact-detail-text a {
      position: relative;
      display: inline-block;
      padding-bottom: 4px;
    }
    .nav-links a:not(.nav-cta)::after,
    .contact-detail-text a::after {
      content: '';
      position: absolute;
      left: 0; right: 0; bottom: 0;
      height: 1.5px;
      background: var(--yellow);
      box-shadow: 0 0 6px rgba(232,245,66,0.55);
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s;
      pointer-events: none;
      opacity: 0.9;
    }
    .nav-links a:not(.nav-cta):hover::after,
    .contact-detail-text a:hover::after,
    .nav-links a.nav-active::after {
      transform: scaleX(1);
    }
    .nav-links a.nav-active {
      color: var(--cream);
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
          .reading-progress, .np-eq i, .hero-stat-infinity path { animation: none !important; transition: none !important; }
    }
