/* ============================================
   BUDDY HAIR SALON — Design F: CINEMATIC SCROLL
   ============================================ */

:root {
  --color-bg: #0A0A0A;
  --color-text: #F0ECE4;
  --color-accent: #C8A87C;
  --color-dim: #5A554D;
  --color-black: #000000;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Zen Kaku Gothic New', sans-serif;
  --font-ui: 'Space Mono', monospace;

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 60px;
  --letterbox-h: 0px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.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;
}

/* ---- Scroll Progress Bar ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 9999;
  background: transparent;
}

.scroll-progress__bar {
  width: 0%;
  height: 100%;
  background: var(--color-accent);
  will-change: width;
}

/* ---- Letterbox Bars ---- */
.letterbox {
  position: fixed;
  left: 0;
  width: 100%;
  height: var(--letterbox-h);
  background: var(--color-black);
  z-index: 100;
  pointer-events: none;
  will-change: height;
}

.letterbox--top {
  top: 0;
}

.letterbox--bottom {
  bottom: 0;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: var(--header-h);
  display: flex;
  align-items: center;
  mix-blend-mode: difference;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--color-text);
  transition: opacity var(--duration-normal) ease;
}

.header__scene-counter {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.scene-counter__current {
  color: var(--color-accent);
}

.scene-counter__sep {
  margin: 0 0.15em;
  opacity: 0.4;
}

/* ---- Hamburger ---- */
.header__menu-btn {
  width: 32px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 300;
}

.menu-btn__line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-fast) ease;
  transform-origin: center;
}

.header__menu-btn[aria-expanded="true"] .menu-btn__line:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] .menu-btn__line:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ---- Nav Overlay ---- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease,
              visibility var(--duration-normal) ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay__list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-overlay__link {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--color-dim);
  transition: color var(--duration-normal) ease;
}

.nav-overlay__link:hover,
.nav-overlay__link:focus-visible {
  color: var(--color-accent);
}

.nav-overlay__tel {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--color-dim);
}

/* ============================================
   SCENE 01 — OPENING
   ============================================ */
.scene--01 {
  height: 300vh;
  position: relative;
}

.scene-01__content {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-black);
}

.scene-01__text-layer {
  position: absolute;
  z-index: 10;
  text-align: center;
  will-change: opacity;
}

.scene-01__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 10rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--color-text);
}

.scene-01__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  margin-top: 1.5rem;
  color: var(--color-accent);
  opacity: 1;
  will-change: opacity;
}

.scene-01__image-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.scene-01__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  opacity: 0.18;
  will-change: transform, opacity;
}

/* ============================================
   SCENE 02 — PHILOSOPHY
   ============================================ */
.scene--02 {
  height: 250vh;
  position: relative;
}

.scene-02__content {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  overflow: hidden;
}

.scene-02__lines {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
}

.scene-02__line {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 3rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.1em;
  opacity: 0;
  will-change: opacity, transform;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(30px);
  white-space: nowrap;
}

.scene-02__image-wrap {
  position: absolute;
  right: -10%;
  top: 0;
  width: 45%;
  height: 100%;
  opacity: 0;
  will-change: opacity;
  z-index: 2;
}

.scene-02__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

/* ============================================
   SCENE 03 — THE STYLIST
   ============================================ */
.scene--03 {
  height: 250vh;
  position: relative;
}

.scene-03__content {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  background: var(--color-black);
  overflow: hidden;
  padding: 0 clamp(2rem, 6vw, 8rem);
  gap: clamp(2rem, 5vw, 6rem);
}

.scene-03__image-wrap {
  flex: 0 0 40%;
  height: 70vh;
  overflow: hidden;
  opacity: 0;
  transform: translateX(60px);
  will-change: opacity, transform;
}

.scene-03__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-03__text {
  flex: 1;
  opacity: 0;
  will-change: opacity;
}

.scene-03__name {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.scene-03__role {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

.scene-03__bio {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 2.2;
  color: var(--color-dim);
  margin-bottom: 2.5rem;
}

.scene-03__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  line-height: 1.8;
  color: var(--color-text);
  padding-left: 1.5rem;
  border-left: 1px solid var(--color-accent);
  opacity: 0;
  will-change: opacity;
}

/* ============================================
   SCENE 04 — STYLES (Horizontal Gallery)
   ============================================ */
.scene--04 {
  height: 400vh;
  position: relative;
}

.scene-04__content {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 40;
  overflow: hidden;
  background: var(--color-bg);
}

.scene-04__title {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 18rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-text);
  opacity: 0.06;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
  will-change: transform, opacity, font-size;
}

.scene-04__track {
  display: flex;
  gap: clamp(2rem, 4vw, 4rem);
  height: 100%;
  align-items: center;
  padding: 0 8vw;
  will-change: transform;
  position: relative;
  z-index: 5;
}

.style-card {
  flex: 0 0 auto;
  width: clamp(280px, 30vw, 420px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.style-card__image-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.style-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.style-card:hover .style-card__image {
  transform: scale(1.04);
}

.style-card__info {
  position: relative;
  padding-left: 2.5rem;
}

.style-card__number {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  position: absolute;
  left: 0;
  top: 0.3rem;
}

.style-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.style-card__desc {
  font-size: 0.8rem;
  color: var(--color-dim);
  line-height: 1.8;
}

.scene-04__dots {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-dim);
  transition: background var(--duration-normal) ease,
              transform var(--duration-normal) ease;
}

.dot.active {
  background: var(--color-accent);
  transform: scale(1.4);
}

/* ============================================
   SCENE 05 — SPACE
   ============================================ */
.scene--05 {
  height: 300vh;
  position: relative;
}

.scene-05__content {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 50;
  overflow: hidden;
  background: var(--color-black);
}

.scene-05__images {
  position: absolute;
  inset: 0;
}

.scene-05__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity, transform;
}

.scene-05__image:first-child {
  opacity: 1;
}

.scene-05__caption-wrap {
  position: absolute;
  bottom: clamp(3rem, 6vh, 5rem);
  left: clamp(2rem, 6vw, 5rem);
  z-index: 10;
}

.scene-05__caption {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0.9;
}

/* ============================================
   SCENE 06 — EPILOGUE
   ============================================ */
.scene--06 {
  position: relative;
  background: var(--color-bg);
}

.scene-06__content {
  padding: clamp(6rem, 12vh, 12rem) clamp(1.5rem, 6vw, 8rem);
  max-width: 1200px;
  margin: 0 auto;
}

.scene-06__closing-text {
  text-align: center;
  margin-bottom: clamp(5rem, 10vh, 10rem);
  padding: clamp(3rem, 8vh, 8rem) 0;
}

.scene-06__closing-line {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.scene-06__section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: clamp(2rem, 4vh, 4rem);
  color: var(--color-text);
}

/* ---- Menu ---- */
.scene-06__menu {
  margin-bottom: clamp(5rem, 10vh, 10rem);
  padding-top: clamp(3rem, 6vh, 6rem);
  border-top: 1px solid rgba(240, 236, 228, 0.08);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.menu-group__title {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.2rem;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(240, 236, 228, 0.05);
}

.menu-item dt {
  color: var(--color-text);
}

.menu-item dd {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--color-dim);
  letter-spacing: 0.05em;
}

/* ---- Access ---- */
.scene-06__access {
  margin-bottom: clamp(5rem, 10vh, 10rem);
  padding-top: clamp(3rem, 6vh, 6rem);
  border-top: 1px solid rgba(240, 236, 228, 0.08);
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.access-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.access-item {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
}

.access-item dt {
  flex: 0 0 5em;
  color: var(--color-dim);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding-top: 0.15em;
}

.access-item dd a {
  color: var(--color-accent);
  transition: opacity var(--duration-fast) ease;
}

.access-item dd a:hover {
  opacity: 0.7;
}

.access-map {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(1) invert(1) brightness(0.6) contrast(1.2);
}

/* ---- CTA ---- */
.scene-06__cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  padding: clamp(3rem, 6vh, 5rem) 0;
  border-top: 1px solid rgba(240, 236, 228, 0.08);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  transition: background var(--duration-normal) ease,
              color var(--duration-normal) ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background: var(--color-accent);
  color: var(--color-bg);
}

.cta-btn--line {
  background: var(--color-accent);
  color: var(--color-bg);
}

.cta-btn--line:hover,
.cta-btn--line:focus-visible {
  background: transparent;
  color: var(--color-accent);
}

.cta-btn__icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ---- Footer ---- */
.footer {
  padding: clamp(3rem, 6vh, 5rem) clamp(1.5rem, 6vw, 8rem);
  border-top: 1px solid rgba(240, 236, 228, 0.05);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.3em;
  font-weight: 300;
}

.footer__copy {
  font-size: 0.65rem;
  color: var(--color-dim);
  letter-spacing: 0.1em;
}

/* ============================================
   Fade-to-black transition overlay
   ============================================ */
.scene-transition {
  position: fixed;
  inset: 0;
  background: var(--color-black);
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

/* ============================================
   RESPONSIVE — TABLET (768px)
   ============================================ */
@media (max-width: 768px) {
  .scene-03__content {
    flex-direction: column;
    padding: 5vh 6vw;
    gap: 2rem;
    justify-content: center;
  }

  .scene-03__image-wrap {
    flex: 0 0 auto;
    width: 70%;
    height: 40vh;
  }

  .scene-03__text {
    text-align: center;
  }

  .scene-03__quote {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--color-accent);
    padding-top: 1.5rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }

  .scene-02__image-wrap {
    width: 100%;
    right: 0;
    opacity: 0.15 !important;
  }

  .scene-04__track {
    padding: 0 5vw;
  }

  .style-card {
    width: 260px;
  }

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

/* ============================================
   RESPONSIVE — MOBILE (480px)
   ============================================ */
@media (max-width: 480px) {
  :root {
    --header-h: 50px;
  }

  .scene-01__title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .scene-02__line {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
  }

  .scene-03__image-wrap {
    width: 90%;
    height: 35vh;
  }

  .scene-03__bio {
    font-size: 0.8rem;
  }

  .style-card {
    width: 240px;
  }

  .scene-06__cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    justify-content: center;
  }

  .access-item {
    flex-direction: column;
    gap: 0.3rem;
  }

  .access-item dt {
    flex: none;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress__bar,
  .letterbox,
  .scene-01__image,
  .scene-01__subtitle,
  .scene-01__text-layer,
  .scene-02__line,
  .scene-02__image-wrap,
  .scene-03__image-wrap,
  .scene-03__text,
  .scene-03__quote,
  .scene-05__image,
  .scene-06__closing-line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .scene--01,
  .scene--02,
  .scene--03,
  .scene--04,
  .scene--05 {
    height: auto !important;
  }

  .scene-01__content,
  .scene-02__content,
  .scene-03__content,
  .scene-04__content,
  .scene-05__content {
    height: auto !important;
    min-height: 100vh;
  }

  .scene-02__line {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: block;
    margin-bottom: 0.5em;
  }
}
