/* ---------- base ---------- */
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0D0D0D; }
::-webkit-scrollbar-thumb { background: #242421; border: 2px solid #0D0D0D; }
::-webkit-scrollbar-thumb:hover { background: #D4A373; }

/* ---------- grain overlay ---------- */
.grain-overlay {
  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='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.9 0 0 0 0 0.82 0 0 0 0.22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.35;
  pointer-events: none;
}

/* ---------- nav ---------- */
.nav-shell {
  background: transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.nav-shell.is-scrolled {
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(239, 230, 210, 0.08);
}
.nav-link {
  position: relative;
  color: #EFE6D2;
  transition: color 0.25s ease;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: #D4A373;
  transition: width 0.35s cubic-bezier(0.6, 0.01, 0.05, 1);
}
.nav-link:hover { color: #D4A373; }
.nav-link:hover::before { width: 100%; }

/* ---------- barber pole stripe ---------- */
.pole-stripe {
  height: 4px;
  width: 100%;
  background: repeating-linear-gradient(
    135deg,
    #8F2E1F 0,
    #8F2E1F 14px,
    #EFE6D2 14px,
    #EFE6D2 28px,
    #0D0D0D 28px,
    #0D0D0D 42px
  );
  background-size: 60px 100%;
  animation: pole 6s linear infinite;
}
@keyframes pole {
  from { background-position: 0 0; }
  to   { background-position: 60px 0; }
}

/* ---------- burger ---------- */
.burger-lines {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 10px;
}
.burger-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s ease, top 0.25s ease;
}
.burger-lines span:first-child { top: 2px; }
.burger-lines span:last-child  { top: 7px; }
.menu-open .burger-lines span:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-open .burger-lines span:last-child  { top: 4.5px; transform: rotate(-45deg); }
.menu-open #mobile-menu { display: block; animation: fade-in 0.3s ease; }
.menu-open { overflow: hidden; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.mobile-link {
  padding-bottom: 6px;
  padding-top: 4px;
  border-bottom: 1px solid rgba(239, 230, 210, 0.12);
}
.mobile-link:active { color: #D4A373; }

/* ---------- hero title (clamp for true mobile-first) ---------- */
.hero-title {
  font-size: clamp(3.5rem, 18vw, 16rem);
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .hero-title { font-size: clamp(6rem, 13vw, 18rem); letter-spacing: 0.01em; }
}
.outline-text {
  -webkit-text-stroke: 1px #EFE6D2;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* reveal wipe (left → right mask) */
.reveal-wipe {
  overflow: hidden;
  position: relative;
}
.reveal-wipe::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0D0D0D;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1.1s cubic-bezier(0.7, 0, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.loaded .reveal-wipe::after { transform: scaleX(0); transform-origin: left; }

/* reveal up (scroll) */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.is-visible.reveal-up { opacity: 1; transform: translateY(0); }

/* ---------- chapter label ---------- */
.chapter {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #D4A373;
}
.chapter::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: #D4A373;
}

/* ---------- stats strip ---------- */
.stat-cell {
  padding: 1rem 1.25rem;
}
@media (min-width: 768px) { .stat-cell { padding: 1.5rem 2rem; } }
.stat-label {
  margin-top: 0.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #6B6860;
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex;
  gap: 2rem;
  align-items: center;
  padding-right: 2rem;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.marquee .sep { color: #8F2E1F; font-size: 0.8em; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- about frame ---------- */
.about-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(239, 230, 210, 0.15);
}
.about-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(212, 163, 115, 0.3);
  pointer-events: none;
}
.about-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.1);
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.about-frame:hover img { transform: scale(1.04); }

/* ---------- service grid (bordered cells) ---------- */
.service-card {
  position: relative;
  border-right: 1px solid rgba(239, 230, 210, 0.1);
  border-bottom: 1px solid rgba(239, 230, 210, 0.1);
  background: #171717;
  transition: background-color 0.35s ease;
}
.service-card:hover { background: #1c1c1c; }
.service-card--feat { background: #1a1410; }
.service-card--feat:hover { background: #201813; }

.service-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgba(239, 230, 210, 0.08);
}
.service-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.08) brightness(0.85);
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
}
.service-card:hover .service-media img {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.1) brightness(0.95);
}

.service-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; min-height: 220px; }
@media (min-width: 768px) { .service-body { padding: 2rem; min-height: 260px; } }
.service-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #D4A373;
}
.service-dur {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #6B6860;
}
.service-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.service-note {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: rgba(239, 230, 210, 0.55);
}
.service-foot {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px dashed rgba(239, 230, 210, 0.18);
}
.service-foot .price {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.4rem;
  color: #EFE6D2;
}
.service-foot .arrow {
  font-family: "JetBrains Mono", monospace;
  color: #D4A373;
  transition: transform 0.35s ease;
}
.service-card:hover .arrow { transform: translateX(6px); }

/* ---------- team ---------- */
.barber-card { position: relative; }
.barber-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #171717;
}
.barber-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
}
.barber-card:hover img { transform: scale(1.05); filter: grayscale(0) contrast(1.08); }
.barber-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: #EFE6D2;
  color: #0D0D0D;
}
.barber-info { margin-top: 1rem; padding-right: 0.5rem; }

/* ---------- process steps ---------- */
.step-cell {
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(239, 230, 210, 0.1);
  border-bottom: 1px solid rgba(239, 230, 210, 0.1);
  position: relative;
}
@media (min-width: 768px) { .step-cell { padding: 2.5rem 2rem; min-height: 260px; } }
.step-num {
  font-family: "Archivo Black", sans-serif;
  font-size: 3rem;
  color: rgba(212, 163, 115, 0.35);
  line-height: 1;
}
.step-title {
  margin-top: 2rem;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.step-body {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(239, 230, 210, 0.65);
  line-height: 1.55;
}

/* ---------- gallery ---------- */
.gallery-strip {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip.dragging { cursor: grabbing; }
.gallery-track {
  display: inline-flex;
  gap: 1rem;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .gallery-track { gap: 1.5rem; padding: 0 2.5rem; } }
.gallery-track figure {
  position: relative;
  flex: 0 0 auto;
  width: 78vw;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  scroll-snap-align: center;
  background: #171717;
}
@media (min-width: 768px) {
  .gallery-track figure:nth-child(2n) { aspect-ratio: 5 / 6; margin-top: 3rem; }
  .gallery-track figure:nth-child(3n) { aspect-ratio: 3 / 4; }
}
.gallery-track img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
}
.gallery-track figure:hover img { transform: scale(1.05); filter: grayscale(0); }
.gallery-track figcaption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  background: #EFE6D2;
  color: #0D0D0D;
}

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field > span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #6B6860;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(239, 230, 210, 0.25);
  background: transparent;
  padding: 0.5rem 0 0.75rem;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: #EFE6D2;
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.field textarea {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: #D4A373;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(239, 230, 210, 0.25);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23D4A373' fill='none' stroke-width='1.2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 10px;
}
.field select option { background: #171717; color: #EFE6D2; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-bottom-color: #C44536;
}
.field-error {
  min-height: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.05em;
  color: #C44536;
  transition: opacity 0.2s ease;
}
.field-error:empty { opacity: 0; }

#booking-status.is-success { color: #D4A373; }
#booking-status.is-error   { color: #C44536; }

/* ---------- footer ---------- */
.footer-head {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #6B6860;
}

/* ---------- magnetic ---------- */
[data-magnetic] {
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal-wipe::after, .reveal-up { opacity: 1 !important; transform: none !important; }
  .reveal-wipe::after { display: none; }
}
