/* =========================================================
   Luxury layer v1 — thelifeofkev.com pilot
   Sits on top of style.css. Remove the <link> to switch off.
   Rules: one easing, reveals only when motion is allowed,
   no layout shift, no heavy libraries.
   ========================================================= */

:root {
  --lux-ease: cubic-bezier(.16, 1, .3, 1);
  --lux-ink: #0b0a08;
  --lux-gold: #d9b45a;
  --lux-serif: "Instrument Serif", "Times New Roman", serif;
}

/* ---------- Page-to-page fades (View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: lux-vt-out .35s var(--lux-ease) both; }
::view-transition-new(root) { animation: lux-vt-in .55s var(--lux-ease) both; }
@keyframes lux-vt-out { to { opacity: 0; } }
@keyframes lux-vt-in { from { opacity: 0; } }

/* ---------- Editorial accent word ---------- */
.lux-it {
  font-family: var(--lux-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--gold);
}

/* ---------- Film grain over everything (very light) ---------- */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90; pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Photo grade + slow hover zoom ---------- */
:is(.tile, .stage-slide, .strip figure, .pc-photo, .lux-reel-card) img {
  filter: contrast(1.06) saturate(.9);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.tile, .strip figure, .lux-reel-card) img { transition: transform 1.4s var(--lux-ease); }
  :is(.tile, .strip figure, .lux-reel-card):hover img { transform: scale(1.045); }
}

/* ---------- Scroll progress line ---------- */
.lux-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 95; pointer-events: none;
  background: linear-gradient(90deg, var(--lux-gold), #f3dfa6);
  transform-origin: 0 50%; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .lux-progress { animation: lux-grow linear both; animation-timeline: scroll(root); }
  @keyframes lux-grow { to { transform: scaleX(1); } }
}

/* ---------- Chapter counter (HUD, desktop) ---------- */
.lux-chapter {
  position: fixed; left: 22px; bottom: 22px; z-index: 60;
  display: none; align-items: center; gap: 12px;
  font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--label-2);
  padding: 9px 13px; border-radius: 999px;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  box-shadow: inset 0 0 0 .5px var(--sep);
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--lux-ease), transform .5s var(--lux-ease);
}
.lux-chapter.is-on { opacity: 1; transform: none; }
.lux-chapter b { color: var(--gold); font-weight: 600; }
.lux-chapter i { font-style: normal; color: var(--label); }
@media (min-width: 1100px) { .lux-chapter { display: inline-flex; } }

/* ---------- Prologue (homepage) ---------- */
.lux-prologue {
  position: relative; isolation: isolate;
  height: min(100svh, 980px); min-height: 560px;
  margin-top: -57px;               /* tuck under the frosted bar */
  display: grid; align-items: end;
  color: #fff; background: var(--lux-ink);
  overflow: hidden;
}
.lux-pro-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  transform: scale(1.06);
  will-change: transform;
}
.lux-pro-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 40%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.25) 55%, rgba(11,10,8,.96) 100%);
}
.lux-pro-copy { padding-bottom: clamp(56px, 9vh, 104px); }
.lux-kicker {
  margin: 0 0 18px;
  font: 500 12px/1.2 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.lux-kicker span { color: var(--lux-gold); }
.lux-name {
  margin: 0;
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(76px, 17.5vw, 248px);
  line-height: .82; letter-spacing: -0.015em;
}
.lux-name .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.lux-name .ln > span { display: block; }
.lux-name .ln:last-child > span { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.92); }
.lux-pro-line {
  margin: 22px 0 0; max-width: 30em;
  font-size: clamp(19px, 2vw, 24px); line-height: 1.38;
  color: rgba(255,255,255,.86); letter-spacing: -0.015em;
}
.lux-pro-line .lux-it { color: var(--lux-gold); font-size: 1.18em; }
.lux-pro-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.lux-prologue .btn-tint { background: rgba(255,255,255,.14); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lux-scroll {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 9vh, 104px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.7);
  writing-mode: vertical-rl;
}
.lux-scroll::after { content: ""; width: 1px; height: 64px; background: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,0)); }
@media (max-width: 760px) {
  .lux-prologue { height: 92svh; margin-top: -57px; }
  .lux-scroll { display: none; }
  .lux-name { font-size: clamp(64px, 21vw, 120px); }
}

@media (prefers-reduced-motion: no-preference) {
  .lux-name .ln > span { animation: lux-up 1.15s var(--lux-ease) both; }
  .lux-name .ln:nth-child(2) > span { animation-delay: .12s; }
  .lux-kicker, .lux-pro-line, .lux-pro-row { animation: lux-fade 1.1s .35s var(--lux-ease) both; }
  .lux-pro-media { animation: lux-settle 2.4s var(--lux-ease) both; }
  .lux-scroll::after { animation: lux-drip 2.2s 1.2s ease-in-out infinite; transform-origin: top; }
  @keyframes lux-up { from { transform: translateY(105%); } to { transform: none; } }
  @keyframes lux-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes lux-settle { from { transform: scale(1.16); } to { transform: scale(1.06); } }
  @keyframes lux-drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
}

/* ---------- Reveals (JS adds .lux-rv, then .is-in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lux-js .lux-rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--lux-ease), transform 1.1s var(--lux-ease); }
  .lux-js .lux-rv.is-in { opacity: 1; transform: none; }
  .lux-js .lux-rv-img { clip-path: inset(8% 8% 8% 8% round var(--r-lg)); transition: clip-path 1.3s var(--lux-ease), opacity 1s var(--lux-ease); opacity: .001; }
  .lux-js .lux-rv-img.is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); opacity: 1; }
}

/* ---------- Match history reel (homepage) ---------- */
.lux-reel { padding-top: clamp(56px, 8vw, 104px); }
.lux-reel-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.lux-reel-head .lux-kicker { color: var(--label-3); margin-bottom: 12px; }
.lux-reel-hint { font: 500 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--label-3); white-space: nowrap; }
.lux-reel-track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter) 6px;
  scroll-padding-left: var(--gutter);
}
.lux-reel-track::-webkit-scrollbar { display: none; }
.lux-reel-card {
  position: relative; flex: 0 0 clamp(250px, 30vw, 380px); aspect-ratio: 3 / 4;
  border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start;
  background: #111; color: #fff;
}
.lux-reel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lux-reel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85) 100%); }
.lux-reel-body { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; }
.lux-yr { display: block; font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 64px; line-height: .9; color: transparent; -webkit-text-stroke: 1.2px var(--lux-gold); }
.lux-reel-body h3 { margin: 10px 0 4px; font-size: 20px; letter-spacing: -0.02em; line-height: 1.15; }
.lux-reel-body p { margin: 0; font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.4; }
.lux-reel-wrap { max-width: none; }

/* Desktop: vertical scroll drives the reel sideways (pinned) */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .lux-js .lux-reel[data-pin] { position: relative; }
  .lux-js .lux-reel[data-pin] .lux-reel-sticky { position: sticky; top: 72px; overflow: hidden; }
  .lux-js .lux-reel[data-pin] .lux-reel-track { overflow: visible; scroll-snap-type: none; will-change: transform; padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
}

/* ---------- Magnetic buttons (fine pointers only) ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .lux-mag { transition: transform .5s var(--lux-ease), background-color .2s; }
}

/* ---------- Big headline accents ---------- */
.t-large .lux-it, .t-hero .lux-it { font-size: 1.08em; line-height: .9; }

/* ---------- Bar goes clear over the prologue ---------- */
.lux-over .bar { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; transition: background-color .4s var(--lux-ease); }
.lux-over .bar .nav a { color: rgba(255,255,255,.78); }
.lux-over .bar .nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.lux-over .bar .btn-primary { background: #fff; color: #000; }
.lux-over .bar .menu-btn { color: #fff; }

@media (max-width: 560px) { .lux-k-x { display: none; } }
