/* Phone and touch layer for The Sunday Shoot.
   kf-mobile.js sets two classes on <html>:
   .kfx-m  narrow screens (under 860px): full-screen before/after scene
   .kfx-t  touch screens or narrow screens: swipeable gallery instead of the hover orb */

/* ---------- before / after: swipeable stacked pairs ---------- */

.kfx-ba { display: none; }
.kfx-m .kfx-ba { display: block; }
.kfx-m .kfx-ba-hide { display: none !important; }

.kfx-ba { width: 100vw; margin: 4px 0 0 calc(50% - 50vw); }
.kfx-ba-track {
  display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 4px 24px 14px; scroll-padding: 0 24px;
}
.kfx-ba-track::-webkit-scrollbar { display: none; }
.kfx-ba-slide {
  flex: none; width: calc(100vw - 64px); max-width: 640px; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  scroll-snap-align: start; scroll-snap-stop: always;
}
.kfx-ba-shot {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: var(--surf, #0C0912);
  box-shadow: 0 18px 40px -26px rgba(0,0,0,0.7), 0 0 0 1px var(--line2, rgba(255,255,255,0.1));
}
.kfx-ba-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.kfx-ba-tag {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(8,6,12,0.55); border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #fff; font-family: 'Inter', system-ui, sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.kfx-ba-tag i { width: 6px; height: 6px; border-radius: 50%; background: #8E8899; }
.kfx-ba-dir .kfx-ba-tag i { background: #C4B5FD; box-shadow: 0 0 8px #A855F7; }
.kfx-ba-meta {
  display: flex; align-items: center; gap: 14px; padding: 2px 24px 0;
  font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted, #8E8899);
}
.kfx-ba-dots { flex: 1; display: flex; gap: 6px; }
.kfx-ba-dots b { width: 16px; height: 3px; border-radius: 3px; background: var(--line2, rgba(255,255,255,0.2)); transition: background 0.3s, width 0.3s; }
.kfx-ba-dots b.on { width: 28px; background: #7C3AED; }

/* ---------- touch gallery ---------- */

.kfx-flow { display: none; }
.kfx-t .kfx-flow { display: block; }
.kfx-t .kfx-orb-hide { display: none !important; }

.kfx-flow { position: relative; width: 100%; padding: 8px 0 4px; }
.kfx-flow-track {
  display: flex; align-items: center; gap: 14px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 36px 0; perspective: 1100px;
}
.kfx-flow-track::-webkit-scrollbar { display: none; }
.kfx-flow-pad { flex: none; width: 1px; }
.kfx-card {
  flex: none; position: relative; padding: 0; margin: 0; border: 0; cursor: pointer;
  scroll-snap-align: center; scroll-snap-stop: always;
  border-radius: 18px; overflow: hidden; background: var(--surf, #0C0912);
  box-shadow: 0 28px 60px -30px rgba(0,0,0,0.95), 0 0 0 1px rgba(255,255,255,0.08);
  will-change: transform, opacity; transform-origin: 50% 50%;
  -webkit-tap-highlight-color: transparent;
}
.kfx-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.kfx-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 38%);
  opacity: var(--shine, 0); transition: opacity 0.2s;
}
.kfx-flow-meta {
  display: flex; align-items: center; gap: 14px; max-width: 1180px; margin: 0 auto; padding: 0 24px;
  font-family: 'Inter', system-ui, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted, #8E8899);
}
.kfx-flow-bar { flex: 1; height: 2px; border-radius: 2px; background: var(--line2, #221D2C); overflow: hidden; }
.kfx-flow-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7C3AED, #C4B5FD); }

/* ---------- general phone fixes ---------- */

@media (max-width: 859px) {
}

/* ---------- liquid glass on phones and tablets ----------
   On a laptop the glass reads because purple light and hover glows sit behind it.
   On a phone the light leaks mostly fall off-screen and there is no hover, so:
   a drifting colour field behind the page, stronger blur and saturation,
   specular edges, and a sheen that slides as you scroll. */

@media (max-width: 1099px), (hover: none) {
  #top::before {
    content: ''; position: fixed; inset: -20vh -30vw; z-index: 0; pointer-events: none;
    background:
      radial-gradient(38% 26% at 18% 22%, rgba(124,58,237,0.34), rgba(124,58,237,0) 70%),
      radial-gradient(34% 24% at 86% 48%, rgba(168,85,247,0.26), rgba(168,85,247,0) 70%),
      radial-gradient(40% 26% at 30% 82%, rgba(76,29,149,0.30), rgba(76,29,149,0) 70%),
      radial-gradient(26% 18% at 74% 12%, rgba(236,160,110,0.10), rgba(236,160,110,0) 70%);
    filter: blur(28px);
    animation: kfxField 22s ease-in-out infinite alternate;
  }
  .kfx-light #top::before { opacity: 0.55; }
  @keyframes kfxField {
    0% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(-6vw,4vh,0) scale(1.06); }
    100% { transform: translate3d(5vw,-3vh,0) scale(1.02); }
  }

  /* every glass surface: deeper blur, richer colour through it, lit edges */
  [style*="backdrop-filter"][style*="border-radius"] {
    -webkit-backdrop-filter: blur(22px) saturate(1.9) brightness(1.04) !important;
    backdrop-filter: blur(22px) saturate(1.9) brightness(1.04) !important;
    box-shadow:
      inset 0 1px 0 var(--glassHi, rgba(255,255,255,0.35)),
      inset 1px 0 0 rgba(255,255,255,0.10),
      inset 0 -1px 0 rgba(255,255,255,0.05),
      inset 0 -26px 40px -32px rgba(168,85,247,0.55),
      0 18px 44px -26px rgba(0,0,0,0.55) !important;
  }
  .kfx-light [style*="backdrop-filter"][style*="border-radius"] {
    box-shadow:
      inset 0 1px 0 #fff, inset 1px 0 0 rgba(255,255,255,0.8),
      inset 0 -26px 40px -32px rgba(124,58,237,0.22),
      0 18px 44px -26px rgba(60,30,110,0.28) !important;
  }

  /* the big cards get a real glass body and a sliding sheen */
  [data-rise], .kfx-glass {
    background-color: color-mix(in srgb, var(--surf, #0C0912) 74%, transparent) !important;
    background-image:
      linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.03) 38%, rgba(168,85,247,0.10) 100%) !important;
    border-color: var(--glassLine, rgba(255,255,255,0.22)) !important;
    -webkit-backdrop-filter: blur(30px) saturate(2) brightness(1.05) !important;
    backdrop-filter: blur(30px) saturate(2) brightness(1.05) !important;
    overflow: hidden;
  }
  .kfx-light [data-rise], .kfx-light .kfx-glass {
    background-color: color-mix(in srgb, #FFFFFF 66%, transparent) !important;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.35) 42%, rgba(196,181,253,0.22) 100%) !important;
  }
  [data-rise]::after, .kfx-glass::after {
    content: ''; position: absolute; inset: -40% -60%; pointer-events: none; z-index: 0;
    background: linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.13) 49%, rgba(255,255,255,0.03) 53%, rgba(255,255,255,0) 60%);
    transform: translate3d(calc(var(--kfx-sheen, 0) * 1%), 0, 0);
    mix-blend-mode: screen;
  }
  .kfx-light [data-rise]::after, .kfx-light .kfx-glass::after { mix-blend-mode: normal; opacity: 0.7; }
  .kfx-glass { position: relative; }
  [data-rise] > *, .kfx-glass > * { position: relative; z-index: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #top::before { animation: none; }
}

/* ---------- section 04: the five steps as a plain list (all screen sizes) ---------- */

.kfx-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line2, rgba(255,255,255,0.12)); }
.kfx-step {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px 32px; align-items: baseline;
  padding: clamp(20px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line2, rgba(255,255,255,0.12));
}
.kfx-step-no {
  font-family: 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0.22em;
  color: var(--accent, #7C3AED);
}
.kfx-step-h {
  margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -0.015em; color: var(--ink, #FFFFFF);
  text-wrap: pretty;
}
.kfx-step-p {
  margin: 0; font-family: 'Inter', system-ui, sans-serif; font-size: var(--fsBody, 17px); line-height: 1.6;
  color: var(--body, #A49EB0); text-wrap: pretty; max-width: 46ch;
}
@media (max-width: 859px) {
  .kfx-step { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 14px; }
  .kfx-step-p { grid-column: 2; }
}
