/* ============================================
   ONE STAR BARBER — 5TH DIMENSION STYLES
   ============================================ */

@font-face {
  font-family: 'Uncial Animals';
  src: url('uncial-animals/UncialAnimals.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onestar1 Regular';
  src: url('Onestar1-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Plakat Fraktur';
  src: url('plakat-fraktur.black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1d37ff;
  --bg-dark: #1d37ff;
  --bg-deeper: #1d37ff;
  --accent: #ffe347;
  --white: #ffffff;
  --white-dim: rgba(255, 255, 255, 0.6);
  --white-ghost: rgba(255, 255, 255, 0.08);
  --accent-glow: rgba(255, 227, 71, 0.3);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  background: var(--bg);
}

body,
h1, h2, h3, h4, h5, h6,
button, input, select, textarea {
  font-family: 'Onestar1 Regular', 'Inter', -apple-system, sans-serif;
}

body {
  background: var(--bg);
  color: var(--white);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}


.plakat-text {
  font-family: 'Plakat Fraktur', 'Onestar1 Regular', serif !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em;
  text-transform: lowercase !important;
}

.keep-case {
  text-transform: none !important;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: none;
}

button {
  cursor: none;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---- Custom Cursor ---- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor.hovering {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-color: var(--accent);
  mix-blend-mode: normal;
  opacity: 0.3;
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

/* ---- Cosmic Canvas ---- */
#cosmicCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Grain Overlay ---- */
.grain-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  will-change: transform;
  animation: grain 8s steps(1) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

/* ---- Vignette ---- */
.vignette {
  display: none;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav.scrolled {
  padding: 1rem 3rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--accent-glow)); }
  50% { filter: drop-shadow(0 0 16px var(--accent-glow)) brightness(1.1); }
}

.nav-name {
  font-family: 'Onestar1 Regular', serif;
  font-weight: normal;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  font-weight: 400;
  color: var(--white-dim);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:last-child {
  color: var(--bg);
  background: var(--accent);
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav-link:last-child::after {
  display: none;
}

.nav-link:last-child:hover {
  box-shadow: 0 0 35px var(--accent-glow);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-deeper);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.active .mobile-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 4rem 2rem 0;
  overflow: visible;
}

.hero-barber {
  position: fixed;
  left: 50%;
  bottom: clamp(3rem, 10vh, 6rem);
  z-index: 5;
  transform: translateX(-50%);
  font-family: 'Onestar1 Regular', 'Inter', sans-serif !important;
  font-size: clamp(2.8rem, 11vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0.24em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.14), 0 0 42px rgba(255, 227, 71, 0.16);
  pointer-events: none;
  will-change: transform, opacity;
}

.scroll-sun {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(280px, 45vw, 555px);
  height: clamp(280px, 45vw, 555px);
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  will-change: transform, opacity;
}

.scroll-sun::before {
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 227, 71, 0.48) 0%, rgba(255, 227, 71, 0.2) 40%, transparent 72%);
  filter: blur(28px);
  animation: heroicAura 8s ease-in-out infinite;
}

.scroll-sun-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 42px rgba(255, 227, 71, 0.48)) drop-shadow(0 0 96px rgba(255, 227, 71, 0.26));
  animation: logoGlow 5.5s ease-in-out infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 42px rgba(255, 227, 71, 0.48)) drop-shadow(0 0 96px rgba(255, 227, 71, 0.26)); }
  50% { filter: drop-shadow(0 0 54px rgba(255, 227, 71, 0.62)) drop-shadow(0 0 128px rgba(255, 227, 71, 0.34)); }
}

@keyframes heroicAura {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* ---- Sections Common ---- */
.section {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.label-number {
  opacity: 0.5;
}

.label-line {
  width: 30px;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.section-heading em {
  color: var(--accent);
  font-style: italic;
  text-shadow: 0 0 40px var(--accent-glow);
}

/* ---- Reveal animations ---- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s !important; }
.delay-2 { transition-delay: 0.3s !important; }
.delay-3 { transition-delay: 0.45s !important; }

/* ---- About Section ---- */
.about {
  padding-top: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.95fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
}

.about-text {
  max-width: 34rem;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--white-dim);
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-aura {
  position: relative;
  width: min(360px, 68vw);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-aura::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 227, 71, 0.24) 0%, rgba(255, 227, 71, 0.08) 40%, transparent 70%);
  filter: blur(18px);
}

.about-aura-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 227, 71, 0.14);
}

.about-aura-ring-1 {
  animation: rotate 18s linear infinite;
}

.about-aura-ring-2 {
  inset: 16%;
  border-color: rgba(255, 255, 255, 0.12);
  animation: rotateReverse 12s linear infinite;
  border-style: dashed;
}

.about-aura-core {
  position: relative;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 227, 71, 0.92) 0%, rgba(255, 227, 71, 0.34) 38%, rgba(29, 55, 255, 0.02) 72%, transparent 100%);
  box-shadow: 0 0 36px rgba(255, 227, 71, 0.24);
}

/* ---- Services Section ---- */
.services-list {
  margin-top: 3rem;
  width: min(100%, 760px);
  margin-left: auto;
}

.services .section-heading,
.services .section-label {
  width: min(100%, 760px);
  margin-left: auto;
}

.service-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
  transition: all 0.4s ease;
  cursor: pointer;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--white-ghost), transparent);
}

.service-item:hover {
  padding-left: 1rem;
}

.service-item:hover .service-number {
  color: var(--accent);
}

.service-item:hover .service-line {
  transform: scaleX(1);
  opacity: 1;
}

.service-number {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--white-dim);
  transition: color 0.3s ease;
}

.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--white-dim);
}

.service-price {
  font-family: 'Space Mono', monospace;
  font-size: 1.2rem;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

.service-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---- Gallery / Marquee ---- */
.gallery {
  padding: 6rem 0;
  overflow: hidden;
}

.gallery .section-label {
  position: relative;
  z-index: 3;
}

.marquee-wrap {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  animation: marqueeScroll 25s linear infinite;
}

.marquee-reverse .marquee-inner {
  animation: marqueeScrollReverse 30s linear infinite;
}

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

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

.marquee-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  color: var(--white);
  opacity: 0.08;
}

.marquee-text.outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  color: transparent;
  opacity: 1;
}

.marquee-star {
  color: var(--accent);
  font-size: 1.5rem;
  opacity: 0.4;
  animation: starPulse 3s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.2); }
}

/* ---- Photo Reel (gallery carousel) ---- */
.photo-reel-wrap {
  margin: 3rem 0;
  overflow: hidden;
  /* Fade edges for a soft floating feel */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.photo-reel {
  overflow: hidden;
  width: 100%;
}

.photo-reel-inner {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: reelScroll 40s linear infinite;
  will-change: transform;
}

.photo-reel-wrap:hover .photo-reel-inner {
  animation-play-state: paused;
}

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

.photo-reel-item {
  flex-shrink: 0;
  width: clamp(220px, 28vw, 380px);
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  filter:
    drop-shadow(0 20px 50px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 30px rgba(255, 227, 71, 0.12));
}

.photo-reel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transition: filter 0.5s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  filter: brightness(0.9) saturate(0.88);
}

.photo-reel-item:hover .photo-reel-img {
  filter: brightness(1.02) saturate(1.05);
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .photo-reel-item {
    width: clamp(160px, 60vw, 260px);
  }

  .photo-reel-inner {
    gap: 1rem;
    /* Slightly faster on mobile so it feels alive at smaller size */
    animation-duration: 28s;
  }
}

/* Floating shapes */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.float-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.03;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: 10%;
  right: -10%;
  animation: floatShape 15s ease-in-out infinite;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: var(--white);
  bottom: 20%;
  left: -5%;
  animation: floatShape 12s ease-in-out infinite reverse;
}

.shape-3 {
  width: 180px;
  height: 180px;
  background: var(--accent);
  top: 50%;
  left: 40%;
  animation: floatShape 18s ease-in-out infinite;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -30px); }
  50% { transform: translate(-15px, 15px); }
  75% { transform: translate(10px, 20px); }
}

/* ---- Contact Section ---- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.72fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}

.contact-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.contact-heading em {
  color: var(--accent);
  font-style: italic;
  text-shadow: 0 0 40px var(--accent-glow);
}

.info-block {
  margin-bottom: 2.5rem;
}

.info-block h4 {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.info-block p {
  color: var(--white-dim);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ---- Onestar UI Text ---- */
.nav-link,
.section-label,
.about-description,
.service-number,
.service-desc,
.service-price,
.book-btn,
.info-block h4,
.info-block p,
.footer-brand,
.footer-copy {
  font-family: 'Onestar1 Regular', 'Inter', sans-serif;
}

.nav-link {
  font-size: 0.82rem;
}

.about-description {
  font-size: 1.18rem;
}

.service-desc {
  font-size: 0.95rem;
}

.service-price {
  font-size: 1.28rem;
}

.book-btn {
  font-size: 0.88rem;
}

.info-block p {
  font-size: 1.02rem;
}

.footer-copy {
  font-size: 0.82rem;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--white-ghost);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
}

.footer-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.6;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--white-dim);
}

/* ---- Reviews Section ---- */
.reviews-widget {
  margin-top: 3rem;
}

/* Elfsight widget overrides — make it feel native */
.reviews-widget .elfsight-app-widget {
  background: transparent !important;
}

.reviews-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 3rem;
  border: 1px solid var(--white-ghost);
  border-radius: 4px;
  max-width: 480px;
}

.reviews-placeholder-stars {
  color: var(--accent);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  text-shadow: 0 0 12px var(--accent-glow);
}

.reviews-placeholder-text {
  color: var(--white-dim);
  font-size: 1rem;
}

.reviews-cta {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 227, 71, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.reviews-cta:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav,
  .nav.scrolled {
    padding: 0.9rem 1rem;
  }

  .nav-name {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
  }

  .mobile-link {
    font-size: 1.5rem;
    letter-spacing: 0.06em;
  }

  .section {
    padding: 4.5rem 0;
  }

  .section-container {
    padding: 0 1rem;
  }

  .section-label {
    gap: 0.65rem;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    margin-bottom: 1.5rem;
  }

  .section-heading,
  .contact-heading {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.15;
  }

  .hero {
    padding: 5.2rem 1rem 0.5rem;
  }

  .hero-barber {
    bottom: 3.5rem;
    font-size: clamp(2.2rem, 14vw, 4.6rem);
    letter-spacing: 0.18em;
  }

  .scroll-sun {
    width: clamp(220px, 52vw, 360px);
    height: clamp(220px, 52vw, 360px);
  }

  .about {
    padding-top: 1rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services .section-heading,
  .services .section-label,
  .services-list {
    width: 100%;
    margin-left: 0;
  }

  .about-text,
  .contact-main,
  .contact-info {
    text-align: center;
  }

  .about-visual {
    order: -1;
  }

  .about-aura {
    width: min(240px, 70vw);
  }

  .about-description,
  .info-block p {
    font-size: 1rem;
    line-height: 1.7;
    max-width: none;
  }

  .services-list {
    margin-top: 2rem;
  }

  .service-item {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 0.75rem;
    padding: 1.35rem 0;
  }

  .service-number {
    display: none;
  }

  .service-name {
    font-size: 1.2rem;
  }

  .service-desc {
    font-size: 0.92rem;
  }

  .service-price {
    font-size: 1.05rem;
    justify-self: end;
  }

  .marquee-text {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .book-btn {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cursor,
  .cursor-trail {
    display: none;
  }

  body {
    cursor: auto;
  }

  a,
  button {
    cursor: pointer;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 0;
  }

  .nav-name {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .hero {
    padding-top: 4.8rem;
  }

  .scroll-sun {
    width: clamp(180px, 58vw, 280px);
    height: clamp(180px, 58vw, 280px);
  }

  .about-aura {
    width: min(200px, 72vw);
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .service-price {
    justify-self: start;
  }
}

/* ---- Stop grain animation on mobile (large element, not worth the GPU) ---- */
@media (max-width: 768px) {
  #cosmicCanvas {
    display: none;
  }

  .grain-overlay {
    animation: none;
  }

  /* Floating shapes are invisible on mobile (opacity 0.03) but still composited layers */
  .floating-shapes {
    display: none;
  }

  /* Aura rings: stop spinning, just show static circles */
  .about-aura-ring-1,
  .about-aura-ring-2 {
    animation: none;
  }

  /* Stop all remaining GPU-heavy animations */
  .scroll-sun::before {
    animation: none;
    filter: blur(16px);
  }

  .scroll-sun-image {
    animation: none;
    filter: drop-shadow(0 0 20px rgba(255, 227, 71, 0.4));
  }

  .nav-logo-img {
    animation: none;
  }

  .marquee-star {
    animation: none;
  }

  /* Drop-shadows on 10 reel items force compositing layers — remove on mobile */
  .photo-reel-item {
    filter: none;
  }
}

/* ---- Respect reduced-motion preference ---- */
@media (prefers-reduced-motion: reduce) {
  .grain-overlay,
  .about-aura-ring-1,
  .about-aura-ring-2,
  .scroll-sun-image,
  .marquee-inner,
  .photo-reel-inner,
  .float-shape,
  .marquee-star,
  .nav-logo-img {
    animation: none !important;
  }

  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .photo-reel-item,
  .nav-link,
  .service-item,
  .reviews-cta {
    transition: none !important;
  }
}
