/* ============================================
   BUDDY HAIR SALON — Design J: EDITORIAL NOIR
   Split-screen hero, horizontal gallery,
   light/dark contrast, oversized typography
   ============================================ */

:root {
  --dark: #0C0C0C;
  --dark2: #141414;
  --light: #F8F6F2;
  --light2: #EDE9E3;
  --gold: #B89B6A;
  --gold-light: #D4BA8A;
  --muted: #7A756D;

  --ff-serif: 'Playfair Display', serif;
  --ff-sans: 'Space Grotesk', sans-serif;
  --ff-jp: 'Zen Kaku Gothic New', sans-serif;
  --ff-mincho: 'Zen Old Mincho', serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--ff-jp);
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; cursor: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { border: none; background: none; cursor: none; color: inherit; font: inherit; }

/* Cursor */
.cur { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cur__dot {
  width: 10px; height: 10px; background: #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s var(--ease);
}
body.is-hover .cur__dot { transform: translate(-50%, -50%) scale(4); background: var(--gold); }
@media (pointer: coarse) { .cur { display: none; } body, a, button { cursor: auto; } }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark);
}
.loader__counter {
  font-family: var(--ff-serif); font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400; color: var(--gold); letter-spacing: 0.05em;
}
.loader.is-done { pointer-events: none; }

/* Header */
.hdr {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  mix-blend-mode: difference;
  transform: translateY(-100%);
}
.hdr__logo {
  font-family: var(--ff-serif); font-size: 1rem;
  letter-spacing: 0.25em; color: #fff;
}
.hdr__menu {
  width: 32px; height: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hdr__menu span {
  display: block; width: 100%; height: 1px; background: #fff;
  transition: transform 0.4s var(--ease), opacity 0.3s;
  transform-origin: center;
}
.hdr__menu.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hdr__menu.is-open span:nth-child(2) { opacity: 0; }
.hdr__menu.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* Nav */
.nav {
  position: fixed; inset: 0; z-index: 190;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: var(--dark); opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.nav.is-open { opacity: 1; pointer-events: all; }
.nav__link {
  display: block; font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: 0.08em;
  margin: 0.3em 0; opacity: 0; transform: translateY(30px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.nav__link span {
  font-family: var(--ff-sans); font-size: 0.6em;
  color: var(--gold); margin-right: 0.5em;
}
.nav.is-open .nav__link { opacity: 1; transform: none; }
.nav.is-open .nav__link:nth-child(1) { transition-delay: 0.1s; }
.nav.is-open .nav__link:nth-child(2) { transition-delay: 0.15s; }
.nav.is-open .nav__link:nth-child(3) { transition-delay: 0.2s; }
.nav.is-open .nav__link:nth-child(4) { transition-delay: 0.25s; }
.nav.is-open .nav__link:nth-child(5) { transition-delay: 0.3s; }
.nav.is-open .nav__link:nth-child(6) { transition-delay: 0.35s; }
.nav__footer {
  position: absolute; bottom: 2rem; font-family: var(--ff-sans);
  font-size: 0.75rem; color: var(--muted); text-align: center;
  letter-spacing: 0.08em;
}

/* ===== HERO ===== */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; overflow: hidden;
}
.hero__split {
  width: 50%; height: 100%; position: relative; overflow: hidden;
}
.hero__split--left { background: var(--dark); }
.hero__split--right {
  background: var(--light); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
}
.hero__img-wrap {
  position: absolute; inset: 0;
  transform: scale(1.1);
}
.hero__text { padding: clamp(2rem, 5vw, 4rem); }
.hero__title {
  font-family: var(--ff-serif); font-weight: 700;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero__line { display: block; overflow: hidden; }
.hero__word {
  display: block; transform: translateY(110%);
  will-change: transform;
}
.hero__tag {
  font-family: var(--ff-mincho); font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  letter-spacing: 0.2em; color: var(--muted);
  opacity: 0; transform: translateY(20px);
}
.hero__loc {
  font-family: var(--ff-sans); font-size: 0.7rem;
  letter-spacing: 0.2em; color: var(--gold);
  margin-top: 0.8rem; opacity: 0; transform: translateY(15px);
}
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); display: flex;
  flex-direction: column; align-items: center; gap: 0.5rem;
  z-index: 3; mix-blend-mode: difference; opacity: 0;
}
.hero__scroll span {
  font-family: var(--ff-sans); font-size: 0.6rem;
  letter-spacing: 0.25em; color: #fff;
}
.hero__scroll-line {
  width: 1px; height: 50px; background: var(--gold);
  transform-origin: top;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scaleY(0); opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 768px) {
  .hero { flex-direction: column; }
  .hero__split { width: 100%; height: 50%; }
  .hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }
}

/* ===== MARQUEE ===== */
.marquee {
  padding: 1.5rem 0; background: var(--gold);
  overflow: hidden; white-space: nowrap;
}
.marquee__track {
  display: flex; gap: 3rem;
  animation: marqueeScroll 20s linear infinite;
  font-family: var(--ff-serif); font-size: 1rem;
  letter-spacing: 0.2em; color: var(--dark);
  text-transform: uppercase;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTIONS COMMON ===== */
.sec-label {
  display: block; font-family: var(--ff-sans);
  font-size: 0.65rem; letter-spacing: 0.25em;
  color: var(--gold); margin-bottom: 2rem;
  text-transform: uppercase;
}
.split-line { display: block; overflow: hidden; }
.split-inner { display: block; transform: translateY(105%); will-change: transform; }
.reveal { opacity: 0; transform: translateY(25px); }
.img-reveal { overflow: hidden; }
.img-reveal img { transform: scale(1.2) translateY(15%); opacity: 0; will-change: transform, opacity; }

/* ===== CONCEPT ===== */
.concept {
  padding: clamp(8rem, 15vw, 14rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--light); color: var(--dark);
}
.concept__grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 6vw, 6rem); max-width: 1200px; margin: 0 auto;
  align-items: center;
}
.concept__h {
  font-family: var(--ff-mincho); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 2; letter-spacing: 0.06em;
  margin-bottom: 2rem;
}
.concept__body {
  font-size: 0.9rem; line-height: 2.2;
  color: var(--muted); letter-spacing: 0.02em;
}
.concept__right .img-reveal { aspect-ratio: 3/4; border-radius: 2px; }

@media (max-width: 768px) {
  .concept__grid { grid-template-columns: 1fr; }
  .concept__right { order: -1; }
}

/* ===== STYLIST ===== */
.stylist {
  position: relative;
  padding: clamp(8rem, 15vw, 14rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--dark); overflow: hidden;
}
.stylist__bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-serif); font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 700; color: rgba(255,255,255,0.03);
  letter-spacing: 0.05em; white-space: nowrap;
  pointer-events: none;
}
.stylist__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem); max-width: 1100px; margin: 0 auto;
  align-items: center; position: relative; z-index: 1;
}
.stylist__portrait .img-reveal { aspect-ratio: 3/4; border-radius: 2px; }
.stylist__name {
  font-family: var(--ff-mincho); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.1em; margin-bottom: 0.5rem;
}
.stylist__en {
  font-family: var(--ff-serif); font-style: italic;
  font-size: 0.9rem; color: var(--muted);
  letter-spacing: 0.12em;
}
.stylist__role {
  font-family: var(--ff-sans); font-size: 0.7rem;
  color: var(--gold); letter-spacing: 0.2em;
  margin-bottom: 2rem;
}
.stylist__msg {
  font-size: 0.9rem; line-height: 2.2; color: var(--muted);
}

@media (max-width: 768px) {
  .stylist__grid { grid-template-columns: 1fr; }
}

/* ===== STYLE (Horizontal Scroll) ===== */
.style {
  height: 350vh; position: relative;
}
.style__pin {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; overflow: hidden;
  background: var(--light2); color: var(--dark);
}
.style__header {
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 2rem;
}
.style__title {
  font-family: var(--ff-serif); font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.08em;
}
.style__track {
  display: flex; gap: 2rem;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  will-change: transform;
}
.style__card {
  flex: 0 0 auto; width: clamp(260px, 30vw, 380px);
  position: relative; border-radius: 4px; overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.style__card:hover { transform: translateY(-8px); }
.style__card img { aspect-ratio: 4/5; }
.style__card-label {
  position: absolute; bottom: 1rem; left: 1rem;
  font-family: var(--ff-sans); font-size: 0.7rem;
  letter-spacing: 0.12em; color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* ===== MENU ===== */
.menu {
  padding: clamp(8rem, 15vw, 14rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--dark);
}
.menu__inner { max-width: 750px; margin: 0 auto; }
.menu__h {
  font-family: var(--ff-mincho); font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.08em; margin-bottom: 3rem;
}
.menu__row {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding-left 0.4s var(--ease);
}
.menu__row:hover { padding-left: 0.8rem; }
.menu__name {
  font-family: var(--ff-jp); font-size: 1rem;
  letter-spacing: 0.06em; white-space: nowrap;
}
.menu__dots {
  flex: 1; height: 1px;
  background: repeating-linear-gradient(90deg, var(--muted) 0, var(--muted) 2px, transparent 2px, transparent 7px);
  opacity: 0.25;
}
.menu__price {
  font-family: var(--ff-sans); font-size: 0.95rem;
  color: var(--gold-light); white-space: nowrap;
}
.menu__note {
  margin-top: 1.5rem; font-size: 0.75rem;
  color: var(--muted); letter-spacing: 0.04em;
}

/* ===== SPACE ===== */
.space {
  padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--light); color: var(--dark); position: relative;
}
.space__grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.space__col--big .img-reveal { aspect-ratio: 4/3; border-radius: 2px; }
.space__col--stack { display: flex; flex-direction: column; gap: 1.5rem; }
.space__col--stack .img-reveal { aspect-ratio: 1/1; border-radius: 2px; }
.space__label { position: absolute; top: 3rem; left: clamp(1.5rem, 4vw, 3rem); }

@media (max-width: 768px) {
  .space__grid { grid-template-columns: 1fr; }
}

/* ===== ACCESS ===== */
.access {
  padding: clamp(8rem, 15vw, 14rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--dark2);
}
.access__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem); max-width: 1100px; margin: 0 auto;
  align-items: start;
}
.access__h {
  font-family: var(--ff-mincho); font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.08em; margin-bottom: 3rem;
}
.access__dl { display: flex; flex-direction: column; gap: 1.5rem; }
.access__pair {
  display: grid; grid-template-columns: 5rem 1fr;
  gap: 1rem; font-size: 0.9rem; line-height: 1.8;
}
.access__pair dt {
  font-family: var(--ff-sans); font-size: 0.65rem;
  letter-spacing: 0.12em; color: var(--muted); padding-top: 0.3em;
}
.access__pair a { color: var(--gold-light); }
.access__img .img-reveal { aspect-ratio: 4/3; border-radius: 2px; }

@media (max-width: 768px) {
  .access__inner { grid-template-columns: 1fr; }
}

/* ===== CTA ===== */
.cta {
  padding: clamp(6rem, 10vw, 10rem) 2rem;
  text-align: center; background: var(--dark);
}
.cta__text {
  font-family: var(--ff-jp); font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.12em; margin-bottom: 2.5rem;
}
.cta__btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1.3rem 3rem; border: 1px solid var(--gold);
  border-radius: 50px;
  transition: background 0.5s var(--ease), color 0.3s;
}
.cta__btn:hover { background: var(--gold); color: var(--dark); }
.cta__btn span {
  font-family: var(--ff-sans); font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.1em;
}
.cta__btn small { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.08em; }
.cta__btn:hover small { color: var(--dark); }

/* ===== FOOTER ===== */
.ftr {
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.ftr__top {
  display: flex; align-items: baseline; gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.ftr__logo {
  font-family: var(--ff-serif); font-size: 1.1rem;
  letter-spacing: 0.2em;
}
.ftr__sub { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; }
.ftr__bottom {
  display: flex; justify-content: space-between;
  font-size: 0.6rem; color: var(--muted); letter-spacing: 0.05em;
  padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.04);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .loader { display: none; }
  .hdr { transform: none; }
  .hero__word, .hero__tag, .hero__loc { transform: none; opacity: 1; }
  .hero__scroll { opacity: 1; }
  .split-inner { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .img-reveal img { transform: none; opacity: 1; }
}
