/* ==========================================================================
   CHRSTPHR — global.css
   Shared base layer used on every page. Page-specific styles stay inline
   in each .html file and override these where needed.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0A0A0A;
  --fg: #F2EDE2;
  --fg-dim: rgba(242, 237, 226, 0.5);
  --line: rgba(242, 237, 226, 0.15);
  --accent: #FF4500;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", "Arial", sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none;
}

/* Subtle film-grain noise overlay across every page */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.93 0 0 0 0 0.88 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  mix-blend-mode: overlay;
}

/* --------------------------------------------------------------------------
   CUSTOM CURSOR
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed;
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.2s, border-radius 0.25s;
}
.cursor.big   { width: 80px; height: 80px; }
.cursor.click { width: 12px; height: 12px; }

.cursor-label {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--bg);
  background: var(--accent);
  padding: 5px 9px;
  transform: translate(20px, 20px);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.cursor-label.show { opacity: 1; }

/* --------------------------------------------------------------------------
   TOP BAR / NAV
   -------------------------------------------------------------------------- */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  z-index: 50;
  color: var(--fg);

  /* iOS Liquid Glass */
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(28px) saturate(160%) brightness(0.85);
  -webkit-backdrop-filter: blur(28px) saturate(160%) brightness(0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 32px rgba(0, 0, 0, 0.4);
}
.top-bar .logo { font-weight: 900; }
.top-bar .logo .star {
  color: var(--accent);
  display: inline-block;
  animation: spin 6s linear infinite;
}
.top-bar nav { display: flex; gap: 28px; }
.top-bar nav a {
  color: inherit;
  text-decoration: none;
  position: relative;
  cursor: none;
}
.top-bar nav a.curr { color: var(--accent); }
.top-bar nav a::after {
  content: ""; position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 2px; background: var(--accent);
  transition: right 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
.top-bar nav a:hover::after,
.top-bar nav a.curr::after { right: 0; }
.top-bar .clock { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   SOUND TOGGLE
   -------------------------------------------------------------------------- */
.sound-toggle {
  position: fixed;
  bottom: 22px; right: 28px;
  z-index: 200;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  font-family: inherit;
  cursor: none;
  transition: all 0.2s;
}
.sound-toggle:hover { border-color: var(--accent); color: var(--accent); }
.sound-toggle .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 1.4s ease-in-out infinite;
}
.sound-toggle.off .dot { background: var(--fg-dim); animation: none; }

/* --------------------------------------------------------------------------
   SHARED KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.85); }
}

/* ==========================================================================
   FOOTER — loud, edge-to-edge wordmark + status strip + meta row
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 5;
  margin-top: 80px;
  border-top: 4px solid var(--fg);
  background: var(--bg);
  overflow: hidden;
}

/* Giant CHRSTPHR wordmark — true edge-to-edge via SVG textLength */
.footer-mark {
  display: block;
  width: 100%;
  height: auto;
  padding: 30px 0 0;
  user-select: none;
  position: relative;
}
.footer-mark text {
  font-family: "Arial Black", "Helvetica Neue", Impact, sans-serif;
  font-weight: 900;
  font-style: italic;
  fill: var(--fg);
  text-transform: uppercase;
}
.footer-mark .footer-mark-dot {
  fill: var(--accent);
  font-style: normal;
  transform-origin: center;
  transform-box: fill-box;
  animation: spin 8s linear infinite;
}
.footer-mark-rule {
  display: block;
  width: 92vw;
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--line);
}

/* Marquee status strip (orange) */
.footer-strip {
  background: var(--accent);
  color: var(--bg);
  font-family: "Arial Black", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--bg);
  border-bottom: 1px solid var(--bg);
}
.footer-strip-track {
  display: inline-block;
  animation: footer-marquee 28s linear infinite;
  padding-left: 100%;
}
.footer-strip-track span { margin: 0 28px; }
.footer-strip-track .star { display: inline-block; }
@keyframes footer-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* CTA row — say hello + scroll up */
.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.footer-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 4vw;
  color: var(--fg);
  text-decoration: none;
  font-family: "Arial Black", sans-serif;
  font-size: clamp(20px, 3vw, 38px);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transition: background 0.25s, color 0.25s;
  cursor: none;
  position: relative;
}
.footer-cta a + a { border-left: 1px solid var(--line); }
.footer-cta a:hover { background: var(--accent); color: var(--bg); }
.footer-cta a .arrow { display: inline-block; transition: transform 0.25s; }
.footer-cta a:hover .arrow { transform: translateX(8px); }
.footer-cta a.up:hover .arrow { transform: translateY(-8px); }

/* Meta row — copyright + version + tagline */
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 18px 4vw 22px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  font-weight: 700;
  line-height: 1.8;
}
.footer-meta .group { display: flex; flex-wrap: wrap; gap: 8px 18px; flex-direction: column; }
.footer-meta .accent { color: var(--accent); }

/* When the footer is on the page, give the body breathing room above it */
.has-footer main,
.has-footer .page-content { padding-bottom: 0; }

/* Mobile niceties */
@media (max-width: 720px) {
  .footer-cta { flex-direction: column; }
  .footer-cta a + a { border-left: none; border-top: 1px solid var(--line); }
  .footer-mark { font-size: clamp(56px, 22vw, 180px); padding: 28px 4vw 12px; }
}
