/* Saints & Scissors — overhaul
   Shared tokens + per-direction themes */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Anton&family=Archivo+Black&family=Barlow+Condensed:ital,wght@0,400;0,600;0,800;1,400;1,700&family=JetBrains+Mono:wght@400;700&family=Permanent+Marker&family=Rubik+Mono+One&family=Syne:wght@700;800&family=Space+Mono:wght@400;700&family=Playfair+Display:ital,wght@1,900&family=Bowlby+One&display=swap');

:root {
  --ink: #0a0a0a;
  --paper: #f5f0e6;
  --pink: #ff2e93;
  --blue: #00e7ff;
  --gold: #f7c948;
  --red: #ff1f3d;
  --lime: #c6ff3f;
  --purple: #b026ff;

  --font-display: 'Anton', 'Bebas Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-marker: 'Permanent Marker', cursive;
  --font-cond: 'Barlow Condensed', sans-serif;
}

/* Screen-reader-only utility (keeps locally-relevant copy crawlable without showing it) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body {
  font-family: var(--font-cond);
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.3;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; border: none; background: none; color: inherit; cursor: pointer; }

/* noise overlay used by several directions */
.noise {
  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 baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.08;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

/* ============ MARQUEE ============ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marquee 30s linear infinite;
  align-items: center;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ============ DIRECTION SWITCHER (bottom center, away from nav) ============ */
.dir-switcher {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 1000;
  display: flex; gap: 4px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 4px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.dir-switcher button {
  padding: 8px 16px;
  border-radius: 999px;
  color: rgba(255,255,255,0.65);
  transition: all 0.2s;
  white-space: nowrap;
}
.dir-switcher button.active {
  background: var(--pink);
  color: #000;
  font-weight: 700;
}
.dir-switcher button:hover:not(.active) { color: #fff; }

/* ============ TWEAKS PANEL ============ */
.tweaks {
  position: fixed;
  bottom: 90px; right: 20px;
  z-index: 1000;
  background: rgba(15,15,15,0.96);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 16px;
  width: 260px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  display: none;
}
.tweaks.open { display: block; }
.tweaks h4 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: var(--pink);
}
.tweaks label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin: 10px 0 4px;
  font-size: 9px;
}
.tweaks select, .tweaks input[type="text"] {
  width: 100%;
  background: #000;
  border: 1px solid #333;
  color: #fff;
  padding: 6px 8px;
  font: inherit;
  border-radius: 4px;
}
.tweaks .swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks .sw {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #333; cursor: pointer;
  transition: all 0.15s;
}
.tweaks .sw.active { border-color: #fff; transform: scale(1.1); }
.tweaks-toggle-btn {
  position: fixed; bottom: 90px; right: 20px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--pink); color: #000;
  font-family: var(--font-display);
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(255,46,147,0.5);
}
.tweaks.open ~ .tweaks-toggle-btn,
.tweaks-toggle-btn.hidden { display: none; }

/* ============ DISCO MODE (easter egg) ============ */
body.disco {
  animation: discoBg 0.4s linear infinite;
}
body.disco .noise { opacity: 0.2; }
@keyframes discoBg {
  0%   { background: #ff2e93; }
  25%  { background: #00e7ff; }
  50%  { background: #f7c948; }
  75%  { background: #b026ff; }
  100% { background: #c6ff3f; }
}
body.disco img { filter: hue-rotate(90deg) saturate(2); }
/* Recent sins gallery stays true-to-color during disco */
body.disco .d1-gallery img,
body.disco .d1-gal img { filter: none !important; }

/* Nav disco — the nav text is white so hue-rotate can't shift it on Safari.
   Directly animate color/background instead so it's obvious on every browser. */
body.disco .nav { animation: navDiscoBg 0.4s linear infinite; }
body.disco .nav-links a,
body.disco .nav-logo,
body.disco .nav-hamburger,
body.disco .nav-book { animation: navDiscoColor 0.4s linear infinite; }
@keyframes navDiscoBg {
  0%   { background: rgba(255, 46, 147, 0.35); }
  25%  { background: rgba(0, 240, 255, 0.35); }
  50%  { background: rgba(255, 214, 0, 0.35); }
  75%  { background: rgba(198, 255, 63, 0.35); }
  100% { background: rgba(255, 46, 147, 0.35); }
}
@keyframes navDiscoColor {
  0%   { color: #ffd600; }
  25%  { color: #00f0ff; }
  50%  { color: #ff2e93; }
  75%  { color: #c6ff3f; }
  100% { color: #ffd600; }
}

/* Salon interior photo in hero — aggressive color cycling so grayscale-ish photos change too */
body.disco .d1-hero-icons {
  animation: heroPhotoDisco 1.6s steps(5) infinite;
}
@keyframes heroPhotoDisco {
  0%   { filter: hue-rotate(0deg)   saturate(3) brightness(1.1)  contrast(1.2); }
  20%  { filter: hue-rotate(90deg)  saturate(3) brightness(1.15) contrast(1.2); }
  40%  { filter: hue-rotate(180deg) saturate(3) brightness(1.2)  contrast(1.25); }
  60%  { filter: hue-rotate(270deg) saturate(3) brightness(1.1)  contrast(1.2); }
  80%  { filter: hue-rotate(45deg)  saturate(3.5) brightness(1.2) contrast(1.25); }
  100% { filter: hue-rotate(0deg)   saturate(3) brightness(1.1)  contrast(1.2); }
}

/* Graffiti wordmark — pure white can't hue-rotate, so swap the color via drop-shadow tinting */
body.disco .d1-hero-wordmark {
  animation: wordmarkDisco 1.2s steps(6) infinite;
}
@keyframes wordmarkDisco {
  0%   { filter: drop-shadow(0 0 0 #ff2e93) drop-shadow(0 0 20px rgba(255,46,147,0.9)) brightness(0) invert(32%) sepia(100%) saturate(5000%) hue-rotate(315deg); }
  17%  { filter: drop-shadow(0 0 20px rgba(0,231,255,0.9)) brightness(0) invert(70%) sepia(100%) saturate(3000%) hue-rotate(155deg); }
  33%  { filter: drop-shadow(0 0 20px rgba(247,201,72,0.9)) brightness(0) invert(85%) sepia(100%) saturate(1500%) hue-rotate(10deg); }
  50%  { filter: drop-shadow(0 0 20px rgba(198,255,63,0.9)) brightness(0) invert(95%) sepia(100%) saturate(1500%) hue-rotate(50deg); }
  67%  { filter: drop-shadow(0 0 20px rgba(176,38,255,0.9)) brightness(0) invert(30%) sepia(100%) saturate(5000%) hue-rotate(260deg); }
  83%  { filter: drop-shadow(0 0 20px rgba(255,31,61,0.9))  brightness(0) invert(30%) sepia(100%) saturate(5000%) hue-rotate(345deg); }
  100% { filter: drop-shadow(0 0 20px rgba(255,46,147,0.9)) brightness(0) invert(32%) sepia(100%) saturate(5000%) hue-rotate(315deg); }
}
/* Drip: cycles through all disco colors when disco is on */
body.disco .d1-hero-drip {
  animation: dripDisco 1.6s steps(5) infinite;
}
@keyframes dripDisco {
  0%   { filter: hue-rotate(0deg)   saturate(2.2) brightness(1.1)  drop-shadow(0 4px 10px rgba(255, 46, 147, 0.6)); }  /* pink */
  20%  { filter: hue-rotate(180deg) saturate(2.4) brightness(1.15) drop-shadow(0 4px 12px rgba(0, 231, 255, 0.7));  }  /* cyan */
  40%  { filter: hue-rotate(60deg)  saturate(2.2) brightness(1.2)  drop-shadow(0 4px 10px rgba(247, 201, 72, 0.7));  }  /* gold */
  60%  { filter: hue-rotate(240deg) saturate(2.4) brightness(1.15) drop-shadow(0 4px 12px rgba(176, 38, 255, 0.7));  }  /* purple */
  80%  { filter: hue-rotate(90deg)  saturate(2.2) brightness(1.25) drop-shadow(0 4px 10px rgba(198, 255, 63, 0.7));  }  /* lime */
  100% { filter: hue-rotate(0deg)   saturate(2.2) brightness(1.1)  drop-shadow(0 4px 10px rgba(255, 46, 147, 0.6)); }  /* back to pink */
}
body.disco .hero-title, body.disco h1, body.disco h2 {
  animation: discoText 0.2s steps(5) infinite;
}
@keyframes discoText {
  0%, 100% { color: #fff; text-shadow: 3px 0 #ff2e93, -3px 0 #00e7ff; }
  50% { color: #000; text-shadow: 3px 0 #f7c948, -3px 0 #c6ff3f; }
}

/* ============ SHARED NAV ============ */
.nav {
  position: sticky; top: 0;
  z-index: 100;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* NOTE: no backdrop-filter — it creates a containing block that traps position:fixed children (the drawer) */
}
/* When drawer is open: kill backdrop-filter (creates containing block that traps position:fixed) and escalate */
.nav:has(.nav-drawer.open) {
  z-index: 9999;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Drip inside hero — sits behind content */
.d1-hero-drip {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 4px 6px rgba(255,46,147,0.25));
}
/* Booking page drip — positioned inside .bk-wrap's scope, pull to full width
   and up under the nav so there's no gap between the nav and the drip. */
.bk-wrap .d1-hero-drip {
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  top: -120px;
}
@media (max-width: 760px) {
  .bk-wrap .d1-hero-drip { top: -70px; }
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
}
.nav-logo-halo { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.nav-logo-wordmark {
  height: 32px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .nav-logo-wordmark { height: 26px; max-width: 160px; }
  .nav-logo-halo { width: 30px; height: 30px; }
}
/* legacy (kept so nothing else breaks) */
.nav-logo img:not([class]) { width: 36px; height: 36px; border-radius: 50%; }
.nav-links {
  display: flex; gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links a { opacity: 0.7; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-book {
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  border: 2px solid currentColor;
  border-radius: 999px;
  transition: all 0.2s;
}
.nav-book:hover { background: currentColor; color: #000; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-book { display: none; }
}

/* Hamburger button — hidden on desktop */
.nav-burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
  margin-left: auto;
}
.nav-burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 29px; }
.nav-burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav-burger { display: block; }
}

/* Drawer overlay */
/* Drawer overlay */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: #070508;
  visibility: hidden;
  pointer-events: none;
  z-index: 2147483647;
  display: flex;
  justify-content: flex-end;
}
.nav-drawer.open {
  visibility: visible;
  pointer-events: auto;
}
.nav-drawer-inner {
  width: 100vw;
  height: 100%;
  background: #070508;
  border-left: 0;
  padding: 88px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.5,.1,.25,1);
  box-shadow: none;
  position: relative;
}
.nav-drawer.open .nav-drawer-inner { transform: translateX(0); }

.nav-drawer-close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top, 0px));
  right: 20px;
  width: 56px;
  height: 56px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pink, #ff2e93);
  color: #fff;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 18px rgba(255,46,147,0.4);
}
.nav-drawer-close svg { display: block; }
.nav-drawer-close:hover { color: var(--pink); }

.nav-drawer-inner a {
  display: block;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.15s, padding-left 0.15s;
}
.nav-drawer-inner a:hover { color: var(--pink); padding-left: 10px; }
.nav-drawer-inner .nav-drawer-book {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--pink);
  color: #000;
  text-align: center;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(255,46,147,0.4);
  letter-spacing: 0.1em;
}
.nav-drawer-inner .nav-drawer-book:hover { padding-left: 22px; color: #000; }
