/* ==========================================================================
   PRISM — Unisex Hair Studio
   Design tokens: void/chrome base + holographic (violet/aqua/pink) accent
   ========================================================================== */

:root {
  --void: #08090d;
  --void-2: #101219;
  --void-3: #171a24;
  --chrome: #eceef3;
  --chrome-dim: #8b90a5;
  --chrome-faint: #565b6e;

  --holo-1: #b98cff;
  --holo-2: #62e8d9;
  --holo-3: #ff6fb0;
  --holo-grad: linear-gradient(115deg, var(--holo-1), var(--holo-2) 50%, var(--holo-3));

  --edge: rgba(236, 238, 243, 0.09);
  --edge-strong: rgba(236, 238, 243, 0.18);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--chrome);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

section[id] { scroll-margin-top: 84px; }

::selection { background: var(--holo-1); color: var(--void); }

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--holo-2);
  outline-offset: 3px;
}

/* ========================= texture layers ========================= */

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  margin-left: -240px; margin-top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 140, 255, 0.10) 0%, rgba(98, 232, 217, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-1000px, -1000px);
  transition: transform 0.12s linear;
  will-change: transform;
}

@media (max-width: 860px) {
  .cursor-glow { display: none; }
}

/* ========================= header ========================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--edge);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 26px; height: 26px;
  filter: drop-shadow(0 0 10px rgba(185, 140, 255, 0.5));
  animation: spin-slow 14s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--edge);
  border-radius: 100px;
  padding: 4px;
}

.main-nav a {
  padding: 9px 18px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--chrome-dim);
  border-radius: 100px;
  transition: color 0.25s, background 0.25s;
  position: relative;
}

.main-nav a:hover { color: var(--chrome); }

.main-nav a.is-active {
  color: var(--void);
  background: var(--chrome);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.87rem;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s;
}

.btn-holo {
  background: var(--holo-grad);
  background-size: 200% 100%;
  color: var(--void);
  box-shadow: 0 0 0 rgba(185, 140, 255, 0);
  animation: holo-shift 6s ease infinite;
}

.btn-holo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(185, 140, 255, 0.55);
}

@keyframes holo-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-ghost {
  border: 1px solid var(--edge-strong);
  color: var(--chrome);
  background: rgba(255,255,255,0.02);
}

.btn-ghost:hover {
  border-color: var(--holo-2);
  background: rgba(98, 232, 217, 0.06);
  transform: translateY(-2px);
}

.btn-lg { padding: 15px 30px; font-size: 0.95rem; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 20px; height: 1.5px;
  background: var(--chrome);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 80vw);
  height: 100vh;
  background: var(--void-2);
  border-left: 1px solid var(--edge);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 100px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav a {
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  border-bottom: 1px solid var(--edge);
  color: var(--chrome);
}

.mobile-nav .mobile-book {
  margin-top: 20px;
  border-bottom: none;
  text-align: center;
  border-radius: 100px;
  background: var(--holo-grad);
  color: var(--void);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions .btn-holo.header-book { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 861px) {
  .mobile-nav { display: none; }
}

/* ========================= hero ========================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 28px 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.55;
}

.hero-glow-a {
  width: 640px; height: 640px;
  top: -220px; right: -160px;
  background: radial-gradient(circle, var(--holo-1), transparent 70%);
  animation: drift-a 16s ease-in-out infinite;
}

.hero-glow-b {
  width: 520px; height: 520px;
  bottom: -200px; left: -140px;
  background: radial-gradient(circle, var(--holo-2), transparent 70%);
  animation: drift-b 18s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 40px) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--holo-2);
  margin: 0 0 22px;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.1s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 30px;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: rise-clip 0.9s var(--ease) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.35s; }

.hero-holo {
  background: var(--holo-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise-clip 0.9s var(--ease) 0.35s forwards, holo-shift 7s ease infinite 1.2s;
}

@keyframes rise {
  to { opacity: 1; }
}
@keyframes rise-clip {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  max-width: 480px;
  font-size: 1.08rem;
  color: var(--chrome-dim);
  margin: 0 0 40px;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.55s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.7s forwards;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.8s var(--ease) 0.85s forwards;
}

.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--chrome-faint);
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--edge-strong);
  border-radius: 100px;
  z-index: 1;
}

.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--holo-2);
  animation: cue-drop 1.8s ease infinite;
}

@keyframes cue-drop {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 640px) {
  .hero { padding-top: 120px; }
  .hero-stats { gap: 32px; }
}

/* ========================= marquee (flowing images) ========================= */

.marquee-section {
  position: relative;
  padding: 6px 0;
  background: var(--void-2);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.marquee-row { overflow: hidden; padding: 10px 0; }

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-left 46s linear infinite;
}

.marquee-track-reverse {
  animation-name: scroll-right;
  animation-duration: 52s;
}

.marquee-row-a { transform: rotate(-1.4deg) scale(1.02); }
.marquee-row-b { transform: rotate(1.2deg) scale(1.02); }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.marquee-section:hover .marquee-track,
.marquee-section:focus-within .marquee-track {
  animation-play-state: paused;
}

.mq-card {
  flex: none;
  width: 190px;
  height: 250px;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--edge);
  position: relative;
}

.mq-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s;
  filter: saturate(0.92);
}

.mq-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.15);
}

@media (max-width: 640px) {
  .mq-card { width: 140px; height: 185px; }
}

/* ========================= section shared ========================= */

.section-kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--holo-2);
  margin: 0 0 14px;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================= studio ========================= */

.studio {
  padding: 140px 28px;
  max-width: 1320px;
  margin: 0 auto;
}

.studio-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.studio-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 28px;
}

.studio-text {
  color: var(--chrome-dim);
  font-size: 1.02rem;
  max-width: 520px;
  margin: 0 0 20px;
}

.studio-facts {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.fact { max-width: 140px; }

.fact-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--holo-1);
  margin-bottom: 6px;
}

.fact-label {
  font-size: 0.8rem;
  color: var(--chrome-faint);
  line-height: 1.4;
}

.studio-visual {
  position: relative;
  height: 560px;
}

.studio-frame {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--edge-strong);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}

.studio-frame img { width: 100%; height: 100%; object-fit: cover; }

.studio-frame-1 {
  width: 78%;
  height: 480px;
  top: 0; right: 0;
  animation: float-slow 9s ease-in-out infinite;
}

.studio-frame-2 {
  width: 52%;
  height: 260px;
  bottom: 0; left: 0;
  z-index: 2;
  animation: float-slow 11s ease-in-out infinite reverse;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px var(--void);
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (max-width: 900px) {
  .studio-inner { grid-template-columns: 1fr; gap: 56px; }
  .studio { padding: 100px 24px; }
  .studio-visual { height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-frame-1, .studio-frame-2 { animation: none; }
}

/* ========================= services ========================= */

.services {
  padding: 60px 0 140px;
}

.services-head {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

.services-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin: 0 0 32px;
  max-width: 600px;
}

.services-filter {
  display: inline-flex;
  gap: 4px;
  background: var(--void-2);
  border: 1px solid var(--edge);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--chrome-dim);
  transition: color 0.25s, background 0.25s;
}

.filter-btn.is-active {
  background: var(--chrome);
  color: var(--void);
}

.services-strip {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 28px 20px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--edge-strong) transparent;
}

.services-strip::-webkit-scrollbar { height: 6px; }
.services-strip::-webkit-scrollbar-thumb { background: var(--edge-strong); border-radius: 10px; }

.service-card {
  flex: none;
  width: 280px;
  scroll-snap-align: start;
  position: relative;
  transition: opacity 0.4s, transform 0.4s;
}

.service-card.is-hidden {
  display: none;
}

.service-media {
  width: 100%;
  height: 340px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--edge);
  margin-bottom: 18px;
  position: relative;
}

.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-media img { transform: scale(1.06); }

.service-tag {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(8,9,13,0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--edge-strong);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--holo-2);
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--chrome-dim);
  margin: 0;
  line-height: 1.5;
}

/* ========================= gallery (masonry) ========================= */

.gallery {
  padding: 40px 28px 140px;
  max-width: 1320px;
  margin: 0 auto;
}

.gallery-head { margin-bottom: 44px; }

.gallery-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin: 0;
  max-width: 600px;
}

.gallery-grid {
  columns: 4 260px;
  column-gap: 20px;
}

.g-item {
  margin: 0 0 20px;
  break-inside: avoid;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--edge);
  aspect-ratio: 3 / 4;
}

.g-item.g-tall { aspect-ratio: 2 / 3.1; }
.g-item.g-wide { aspect-ratio: 4 / 2.6; }

.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s;
}

.g-item:hover img { transform: scale(1.06); filter: brightness(0.5); }

.g-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.g-item:hover figcaption { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .gallery-grid { columns: 2 160px; }
}

/* ========================= testimonials marquee ========================= */

.reviews {
  padding: 120px 0;
  background: var(--void-2);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  overflow: hidden;
}

.reviews-kicker, .reviews-title {
  text-align: center;
  padding: 0 28px;
}

.reviews-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin: 0 0 56px;
}

.reviews-marquee { overflow: hidden; }

.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.reviews-marquee:hover .reviews-track { animation-play-state: paused; }

.review-card {
  flex: none;
  width: 340px;
  padding: 32px;
  border-radius: 16px;
  background: var(--void);
  border: 1px solid var(--edge);
}

.review-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.review-name {
  font-size: 0.85rem;
  color: var(--holo-2);
  margin: 0;
  font-weight: 600;
}

@media (max-width: 640px) {
  .review-card { width: 280px; padding: 26px; }
}

/* ========================= book / CTA ========================= */

.book {
  position: relative;
  padding: 160px 28px;
  text-align: center;
  overflow: hidden;
}

.book-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  margin: -450px 0 0 -450px;
  background: radial-gradient(circle, rgba(185,140,255,0.14), rgba(98,232,217,0.08) 45%, transparent 70%);
  filter: blur(60px);
  animation: drift-a 20s ease-in-out infinite;
}

.book-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.book-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.08;
  margin: 0 0 24px;
}

.book-sub {
  color: var(--chrome-dim);
  font-size: 1.05rem;
  margin: 0 0 40px;
}

.book-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.book-details {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  text-align: left;
}

.book-detail-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--holo-2);
  margin: 0 0 10px;
}

.book-detail-value {
  font-size: 0.92rem;
  margin: 0 0 2px;
}

.book-detail-dim { color: var(--chrome-faint); }

/* ========================= footer ========================= */

.site-footer {
  border-top: 1px solid var(--edge);
  padding: 56px 28px 28px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-nav a, .footer-social a {
  font-size: 0.88rem;
  color: var(--chrome-dim);
  transition: color 0.25s;
}

.footer-nav a:hover, .footer-social a:hover { color: var(--holo-2); }

.footer-social { display: flex; gap: 22px; }

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--edge);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--chrome-faint);
}

/* ========================= reduced motion ========================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track, .reviews-track {
    animation: none !important;
  }
}
