/* Kingsley Visuals — premium architecture reel */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --gold: #c9a25b;
  --gold-bright: #e3bd76;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  cursor: none;
}

/* Hero rotation — two absolutely stacked images that crossfade */
.hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}
.hero .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.hero .layer.is-active { opacity: 1; }

.hero .vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

/* Top-left wordmark */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.topbar .wordmark {
  pointer-events: auto;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  gap: 0.28em;
  mix-blend-mode: difference;
  transition: color 0.3s ease;
}
.topbar .wordmark .kv-sub {
  color: var(--gold);
  font-style: italic;
  text-transform: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* Centered "Work with me" CTA */
.cta-wrap {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 22px 40px;
  background: rgba(10, 10, 10, 0.32);
  border: 1px solid rgba(244, 241, 234, 0.22);
  border-radius: 100px;
  color: var(--ink);
  text-decoration: none;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  letter-spacing: 0.01em;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    transform 0.4s ease,
    color 0.4s ease;
}
.cta:hover {
  background: rgba(201, 162, 91, 0.18);
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: scale(1.03);
}
.cta-arrow {
  font-size: 1em;
  display: inline-block;
  transition: transform 0.4s ease;
}
.cta:hover .cta-arrow { transform: translateX(6px); }

/* Custom cursor */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(244, 241, 234, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99;
  mix-blend-mode: difference;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.cursor-ring.is-hovering {
  width: 56px;
  height: 56px;
  border-color: var(--gold);
}

/* Mobile: hide custom cursor, restore native */
@media (hover: none) and (pointer: coarse) {
  html, body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  .topbar { padding: 18px 22px; }
  .cta { padding: 18px 30px; gap: 12px; }
}

/* Reduced motion: stop crossfade transitions */
@media (prefers-reduced-motion: reduce) {
  .hero .layer { transition: opacity 0.1s ease; }
  .cta, .cta-arrow, .cursor-ring { transition: none; }
}
