/* Shared styles for all God Nok subpages */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-hero: cubic-bezier(0.16, 1, 0.3, 1);
  --black: #0a0a0a;
  --off-white: #f5f2ed;
  --charcoal: #18181b;
  --steel: #71717a;
  --cream: #faf8f4;
  --sage: #4a5a3a;
  --sage-light: #f0ede6;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { border: none; cursor: pointer; font-family: inherit; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* HEADER (mix-blend-mode difference matches landing) */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 90px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  mix-blend-mode: difference;
}
.header-logo img {
  height: 60px;
  filter: invert(1);
  transition: opacity 0.3s var(--ease-out);
}
.header-logo:hover img { opacity: 0.7; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transition: opacity 0.2s var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: #fff;
  transition: width 0.4s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
.nav-links a.current::after { width: 100%; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  z-index: 1001;
  padding: 8px;
}
.hamburger span { display: block; width: 28px; height: 2px; background: #fff; transition: all 0.4s var(--ease-out); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(30,28,38,0.5) 0%, rgba(10,10,12,0) 60%),
    radial-gradient(ellipse at 75% 80%, rgba(20,25,35,0.45) 0%, rgba(10,10,12,0) 55%),
    linear-gradient(135deg, #0a0a0d 0%, #101015 50%, #08080b 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out);
  z-index: 999;
}
.mobile-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.35;
  mix-blend-mode: overlay;
}
.mobile-nav.active { opacity: 1; pointer-events: all; }
.mobile-nav a {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  position: relative;
}
.mobile-nav a.current::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.5);
}
.mobile-nav.active a:not(.current) { opacity: 0.5; }
.mobile-nav.active a.current { opacity: 1; }
.mobile-nav.active a { transform: translateY(0); }
.mobile-nav.active a:nth-child(1) { transition-delay: 0.02s; }
.mobile-nav.active a:nth-child(2) { transition-delay: 0.05s; }
.mobile-nav.active a:nth-child(3) { transition-delay: 0.08s; }
.mobile-nav.active a:nth-child(4) { transition-delay: 0.11s; }
.mobile-nav.active a:nth-child(5) { transition-delay: 0.14s; }
.mobile-nav.active a:nth-child(6) { transition-delay: 0.17s; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .header { padding: 8px 24px 0; height: 100px; align-items: center; }
}

/* INTRO white split reveal */
.intro-bands {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.intro-band {
  flex: 1;
  background: #fff;
  transition: transform 0.7s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.6s ease;
  opacity: 1;
}
body:not(.loading) .intro-band:nth-child(1) { transform: translateY(-100%); opacity: 0; }
body:not(.loading) .intro-band:nth-child(2) { transform: translateY(100%); opacity: 0; }
body.loading .page-hero { z-index: 10001; }

/* PAGE HERO */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 180px 48px 80px;
  background: var(--cream);
  overflow: hidden;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}
.page-hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s var(--ease-hero) 0.05s forwards;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 11vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--charcoal);
}
/* padding-top gives room for diacriticals (Å, Ø) above the cap-height
   so they aren't clipped by overflow:hidden. Negative margin offsets the
   visual shift so layout stays identical. 0.15em handles even the largest
   clamp() hero sizes. */
.page-hero h1 .line { display: block; overflow: hidden; padding-top: 0.15em; margin-top: -0.15em; }
.page-hero h1 .line-inner {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: heroSlideUp 0.7s var(--ease-hero) forwards;
}
.page-hero h1 .line:nth-child(1) .line-inner { animation-delay: 0.2s; }
.page-hero h1 .line:nth-child(2) .line-inner { animation-delay: 0.35s; }
@keyframes heroSlideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

/* Grain bg */
.grain-bg {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: auto, 256px 256px;
  background-blend-mode: multiply;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Holographic CTA button */
.holo-border {
  display: inline-block;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(180,160,255,0.5), rgba(140,200,255,0.4), rgba(180,255,200,0.3), rgba(255,220,140,0.4), rgba(255,160,200,0.5), rgba(180,160,255,0.5));
  background-size: 300% 300%;
  animation: borderHolo 4s linear infinite;
}
@keyframes borderHolo {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
.holo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  border-radius: 999px;
  color: #2a2a3a;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e0dff8 0%, #d4bef0 10%, #b8d0f8 20%, #a8f0e8 30%, #c8f0b8 40%, #f0e8a8 50%, #f0c0c8 60%, #d8b0f0 70%, #b0d0f8 80%, #b8f0d8 90%, #e0dff8 100%);
  background-size: 400% 400%;
  animation: holoShift 5s linear infinite;
  box-shadow: 0 0 30px rgba(180,160,240,0.3), 0 0 60px rgba(160,180,255,0.15), inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -1px 0 rgba(140,120,180,0.3);
  text-shadow: 0 1px 2px rgba(140,120,180,0.3);
  transition: transform 160ms var(--ease-out);
  text-transform: uppercase;
}
.holo-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.3) 40%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.3) 60%, transparent 80%);
  animation: glossySweep 3s ease-in-out infinite;
  pointer-events: none;
}
.holo-btn:hover { transform: scale(1.04) translateY(-1px); }
.holo-btn:active { transform: scale(0.97); }
@keyframes holoShift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
@keyframes glossySweep { 0%, 100% { left: -120%; } 50% { left: 140%; } }

/* Links in editable content (from rich text editor) */
[data-edit] a, .artist-bio a, .pv-body a, .story-section a, .dag-intro a,
.artist-intro a, .contact-intro a, .friv-body a, .info-body a {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(24, 24, 27, 0.3);
  transition: text-decoration-color 0.2s ease;
}
[data-edit] a:hover, .artist-bio a:hover, .pv-body a:hover, .story-section a:hover,
.dag-intro a:hover, .artist-intro a:hover, .contact-intro a:hover,
.friv-body a:hover, .info-body a:hover {
  text-decoration-color: var(--charcoal);
}

/* Hero photo fade-in on load (subpages) */
[class$="-hero-photo"] img { opacity: 0; transition: opacity 0.5s ease; }
[class$="-hero-photo"].loaded img { opacity: 1; }

/* FOOTER (matches landing) */
.footer {
  background: #fff;
  color: var(--charcoal);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 48px 48px 32px;
  position: relative;
  z-index: 2;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.footer-row > .footer-social { justify-self: start; }
.footer-row > .footer-logo { justify-self: center; }
.footer-row > .footer-email { justify-self: end; }
.footer.visible .footer-row { opacity: 1; transform: translateY(0); }
.footer-logo img { height: 55px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { display: flex; align-items: center; justify-content: center; color: var(--charcoal); transition: opacity 0.2s var(--ease-out), transform 160ms var(--ease-out); }
.footer-social a:hover { opacity: 0.6; }
.footer-social a:active { transform: scale(0.95); }
.footer-social a svg { width: 22px; height: 22px; }
.footer-email a { font-size: 0.9rem; color: var(--steel); transition: color 0.2s var(--ease-out); }
.footer-email a:hover { color: var(--charcoal); }
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 48px 32px;
  position: relative;
  z-index: 2;
  font-size: 0.8rem;
  color: var(--steel);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s var(--ease-out) 0.1s, transform 0.8s var(--ease-out) 0.1s;
}
.footer.visible .footer-bottom-row { opacity: 1; transform: translateY(0); }
.footer-bottom-row a { color: var(--steel); transition: color 0.2s var(--ease-out); }
.footer-bottom-row a:hover { color: var(--charcoal); }
.footer-giant {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 22vw, 20rem);
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  line-height: 0.85;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  position: relative;
  z-index: 1;
  padding: 16px 0 0;
  margin-bottom: -0.08em;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 1.2s var(--ease-drawer) 0.2s, transform 1.2s var(--ease-drawer) 0.2s;
}
.footer.visible .footer-giant { opacity: 1; transform: translateY(0) scale(1); }
.footer-secret { color: inherit; text-decoration: none; cursor: default; -webkit-user-select: text; user-select: text; }

@media (max-width: 768px) {
  .footer-row { grid-template-columns: 1fr; gap: 24px; padding: 36px 24px 24px; }
  .footer-row > .footer-logo,
  .footer-row > .footer-social,
  .footer-row > .footer-email { justify-self: center; }
  .footer-bottom-row { flex-wrap: wrap; padding: 0 24px 24px; }
  .page-hero { padding: 140px 24px 60px; }
}
