/* ═══════════════════════════════════════════════════════════════
   KING KUTZ ORIGINAL — interim demo site
   Obsidian & royal gold · Cinzel / Manrope / Space Mono
   ═══════════════════════════════════════════════════════════════ */

:root {
  --obsidian: #0A0A0B;
  --obsidian-2: #101012;
  --gold: #C9A227;
  --gold-soft: #E8C766;
  --mist: #F5F3EE;
  --smoke: #9B958A;
  --hairline: rgba(201, 162, 39, 0.28);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--obsidian);
  color: var(--mist);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

.mono { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.02em; }

/* Inline SVG icons (phone / instagram / clock) — inherit link color */
.icon {
  width: 1em; height: 1em; flex: none;
  fill: currentColor; vertical-align: -0.12em;
}
.icon-lead { margin-right: 0.5em; }

/* ── Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--obsidian);
  padding: 0.6rem 1.2rem; font-family: var(--font-mono); font-size: 0.8rem;
}
.skip-link:focus { left: 0; }

/* ── Playhead (top progress line, like a film scrubber) ────── */
.playhead {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(201, 162, 39, 0.12); z-index: 60;
}
.playhead span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  box-shadow: 0 0 8px rgba(232, 199, 102, 0.55);
}

/* ── Film grain overlay ────────────────────────────────────── */
.grain {
  position: fixed; inset: -50%; z-index: 55; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(10, 10, 11, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.82);
  border-bottom-color: var(--hairline);
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo-img {
  height: 44px; width: auto;
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.3));
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-king {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0.22em; color: var(--mist);
}
.nav-logo-orig {
  font-family: var(--font-mono); font-size: 0.55rem;
  letter-spacing: 0.62em; color: var(--gold); margin-top: 2px;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--gold-soft);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 0.55rem 1.15rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav-cta:hover { background: var(--gold); color: var(--obsidian); border-color: var(--gold); }
.nav-cta-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 6px var(--gold-soft);
  animation: pulse 2.2s ease-in-out infinite;
}
.nav-cta:hover .nav-cta-dot { background: var(--obsidian); box-shadow: none; animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ── Shared type ───────────────────────────────────────────── */
.kicker {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.1rem;
}
.panel-h {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: 0.08em;
  color: var(--mist); margin-bottom: 2.2rem;
}
.body-lg { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--mist); max-width: 34rem; }
.fineprint { font-family: var(--font-mono); font-size: 0.7rem; color: var(--smoke); margin-top: 1.4rem; }

.btn-gold, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.82rem;
  letter-spacing: 0.08em; padding: 0.85rem 1.7rem; border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #B08E1E);
  color: var(--obsidian); font-weight: 700;
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.25);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--obsidian);
  box-shadow: 0 0 36px rgba(232, 199, 102, 0.45);
  transform: translateY(-1px);
}
.btn-ghost { border: 1px solid var(--hairline); color: var(--mist); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  animation: hero-drift 22s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.1) translateY(-1.5%); }
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.08) 34%, rgba(10,10,11,0.32) 62%, rgba(10,10,11,0.96) 100%),
    radial-gradient(ellipse at 50% 88%, rgba(201,162,39,0.14), transparent 55%);
}
.hero-copy {
  position: relative; z-index: 2;
  padding: 0 clamp(1.25rem, 6vw, 5rem) clamp(5.5rem, 12vh, 8rem);
  max-width: 60rem;
}
.hero-logo {
  width: clamp(110px, 15vw, 168px);
  margin-bottom: 1.3rem;
  filter: drop-shadow(0 0 22px rgba(201, 162, 39, 0.35)) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6));
}
.hero h1 { display: flex; flex-direction: column; margin: 0.2rem 0 1rem; }
.h1-king {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 10vw, 7rem); line-height: 1.02;
  letter-spacing: 0.06em; color: var(--mist);
  text-shadow: 0 4px 40px rgba(0,0,0,0.65);
}
.h1-orig {
  font-family: var(--font-mono); font-weight: 400;
  font-size: clamp(0.8rem, 2vw, 1.15rem); letter-spacing: 1.05em;
  color: var(--gold); margin-top: 0.65rem; text-indent: 0.2em;
}
.tagline {
  font-family: var(--font-display); font-style: normal; font-weight: 400;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem); letter-spacing: 0.14em;
  color: var(--gold-soft); margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.scroll-cue {
  position: absolute; z-index: 2; right: clamp(1.25rem, 5vw, 4rem);
  bottom: clamp(1.5rem, 5vh, 2.75rem);
  display: flex; align-items: center; gap: 0.8rem;
}
.scroll-cue-line {
  display: block; width: 1px; height: 54px;
  background: linear-gradient(180deg, transparent, var(--gold-soft));
  animation: cue-grow 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue-grow { 0%, 100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }
.scroll-cue-txt {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--smoke);
  writing-mode: vertical-rl;
}

/* Load-in reveals */
.reveal { opacity: 0; transform: translateY(26px); animation: reveal-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.reveal.d1 { animation-delay: 0.18s; }
.reveal.d2 { animation-delay: 0.4s; }
.reveal.d3 { animation-delay: 0.62s; }
.reveal.d4 { animation-delay: 1s; }
@keyframes reveal-up { to { opacity: 1; transform: translateY(0); } }

/* ── Chapters (pinned film) ────────────────────────────────── */
.chapter { position: relative; }
/* JS sets each chapter's height; fallback ensures scrollability without JS */
.chapter { height: 400vh; }

.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; background: var(--obsidian);
}

.frame { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  will-change: transform; transform: scale(1.06);
}
/* Letterbox bars — cinema framing on wide screens */
.stage::before, .stage::after {
  content: ""; position: absolute; left: 0; right: 0; height: clamp(0px, 4vh, 44px);
  background: var(--obsidian); z-index: 5; pointer-events: none;
}
.stage::before { top: 0; box-shadow: 0 1px 0 rgba(201,162,39,0.12); }
.stage::after { bottom: 0; box-shadow: 0 -1px 0 rgba(201,162,39,0.12); }

.titlecard {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: rgba(10, 10, 11, 0.55);
  opacity: 1; will-change: opacity;
  padding: 0 1.5rem;
}
.titlecard-no {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.6em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}
.titlecard-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 5.5rem); letter-spacing: 0.1em;
  color: var(--mist); text-shadow: 0 6px 60px rgba(0,0,0,0.8);
}
.titlecard-sub {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem); letter-spacing: 0.18em;
  color: var(--gold-soft); margin-top: 1.1rem;
}
.titlecard::before, .titlecard::after {
  content: ""; width: min(220px, 40vw); height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.4rem 0;
}

/* ── Content panels ────────────────────────────────────────── */
.panel {
  position: relative; padding: clamp(5rem, 12vh, 9rem) clamp(1.25rem, 6vw, 5rem);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201,162,39,0.05), transparent 70%),
    var(--obsidian);
  border-top: 1px solid rgba(201, 162, 39, 0.14);
}
.panel-inner { max-width: 68rem; margin: 0 auto; }

/* Services menu */
.menu { list-style: none; max-width: 40rem; }
.menu li {
  display: flex; align-items: baseline; gap: 0.8rem;
  padding: 1.05rem 0; border-bottom: 1px solid rgba(155, 149, 138, 0.14);
}
.menu-name { font-family: var(--font-body); font-weight: 400; font-size: 1.05rem; color: var(--mist); }
.menu-name em {
  display: block; font-style: normal; font-family: var(--font-mono);
  font-size: 0.68rem; color: var(--smoke); letter-spacing: 0.05em; margin-top: 0.25rem;
}
.menu-dots { flex: 1; border-bottom: 1px dotted rgba(155, 149, 138, 0.4); transform: translateY(-4px); }
.menu-price { font-family: var(--font-mono); font-size: 0.95rem; color: var(--gold-soft); white-space: nowrap; }
.menu-feature .menu-name { color: var(--gold-soft); }
.menu-feature { border-bottom-color: var(--hairline); }

/* About split */
.panel-split .panel-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.split-copy .btn-gold { margin-top: 2rem; }
.split-img {
  position: relative; border: 1px solid var(--hairline);
  padding: clamp(0.6rem, 1.5vw, 1rem); background: var(--obsidian-2);
}
.split-img img { filter: saturate(0.95); }
.split-img::after {
  content: "264 KING ST E"; position: absolute;
  bottom: -0.7rem; right: 1.2rem; background: var(--obsidian);
  padding: 0.15rem 0.7rem;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.35em; color: var(--gold);
}

/* Visit grid */
.visit-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.visit-map { grid-column: 1 / -1; }
.visit-sub {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold);
  margin: 1.8rem 0 0.7rem;
}
.visit-sub:first-child { margin-top: 0; }
.visit-block .mono { color: var(--mist); line-height: 2; }
.visit-sub .icon { font-size: 1.15em; }
.hours { border-collapse: collapse; color: var(--mist); }
.hours td { padding: 0.4rem 0; }
.hours td:first-child { padding-right: 2.5rem; color: var(--smoke); }
.visit-map iframe {
  width: 100%; height: 320px; border: 1px solid var(--hairline);
  filter: grayscale(1) invert(0.92) contrast(0.9) sepia(0.15);
  display: block;
}

/* ── Footer ────────────────────────────────────────────────── */
.foot {
  padding: 3.5rem clamp(1.25rem, 6vw, 5rem) 4.5rem;
  text-align: center; border-top: 1px solid var(--hairline);
  background: var(--obsidian);
}
.foot-logo {
  height: 72px; width: auto; margin: 0 auto 1.1rem;
  filter: drop-shadow(0 0 14px rgba(201, 162, 39, 0.25));
}
.foot-brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.35em; color: var(--gold); margin-bottom: 0.9rem;
}
.foot-line { color: var(--smoke); margin-bottom: 1.6rem; }
.foot-note { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--smoke); opacity: 0.7; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 760px) {
  .panel-split .panel-inner, .visit-grid { grid-template-columns: 1fr; }
  .split-img { order: -1; }
  .scroll-cue { display: none; }
  .stage::before, .stage::after { height: 0; }
}

/* ── Reduced motion: static film, no pinning tricks ────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .hero-img, .scroll-cue-line, .nav-cta-dot { animation: none !important; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .chapter { height: auto !important; }
  .stage { position: static; height: auto; overflow: visible; }
  .stage::before, .stage::after { display: none; }
  .titlecard {
    position: static; background: none; opacity: 1 !important;
    padding: 4rem 1.5rem 2rem;
  }
  .frame { position: static; opacity: 1 !important; margin: 0 0 2px; }
  .frame img { height: auto; transform: none !important; }
}
