/* ============================================
   REEL — Cinematic Hair Studio
   Film / Cinema Design System
   ============================================ */

:root {
  --bg: #111111;
  --bg-deep: #0A0A0A;
  --cream: #F2EDE7;
  --cream-dim: #A39E96;
  --red: #C1272D;
  --red-dim: #8B1E22;
  --gray: #555;
  --gray-dark: #2A2A2A;
  --border: #1E1E1E;

  --font-mono: 'Space Mono', monospace;
  --font-display: 'Playfair Display', serif;
  --font-jp: 'Zen Old Mincho', serif;

  --ease-cine: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);

  --letterbox-h: 5vh;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: var(--font-mono);
  background: var(--bg-deep);
  color: var(--cream);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================
   FILM GRAIN
   ============================================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.10;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.08' numOctaves='2' stitchTiles='stitch' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 0.95  0 0 0 0 0.88  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 320px 320px;
  animation: grainShift 1.6s linear infinite;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
}

/* ============================================
   LETTERBOX BARS
   ============================================ */
.letterbox {
  position: fixed;
  left: 0;
  right: 0;
  height: var(--letterbox-h);
  background: #000;
  z-index: 8000;
  pointer-events: none;
}

.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }

/* ============================================
   LOADER
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__reel {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader__tc {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.loader__bar {
  width: 200px;
  height: 2px;
  background: var(--gray-dark);
  overflow: hidden;
}

.loader__fill {
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.1s linear;
}

.loader__status {
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.loader.is-done {
  animation: fadeBlack 0.8s var(--ease-cine) 0.3s forwards;
}

@keyframes fadeBlack {
  to { opacity: 0; pointer-events: none; }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: var(--letterbox-h);
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  transition: transform 0.5s var(--ease-smooth);
}

.header.is-hidden { transform: translateY(-120%); }

.header__logo {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cream);
}

.header__tc {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header__nav {
  display: none;
  gap: 32px;
}

.header__nav a {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.3s;
}

.header__nav a:hover { color: var(--red); }

.header__menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__menu span {
  width: 20px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.4s var(--ease-smooth), opacity 0.3s;
}

.header__menu.is-active span:first-child { transform: translateY(3.25px) rotate(45deg); }
.header__menu.is-active span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ============================================
   MOBILE NAV
   ============================================ */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.mnav.is-open { opacity: 1; pointer-events: auto; }

.mnav__link {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.3s;
}

.mnav__link:hover { color: var(--red); }

/* ============================================
   SCENES — COMMON
   ============================================ */
.scene__meta {
  position: absolute;
  top: calc(var(--letterbox-h) + 16px);
  left: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
}

.scene__meta--inline {
  position: relative;
  top: auto;
  left: auto;
  padding: 0 24px;
  margin-bottom: 40px;
  max-width: 1200px;
}

.scene__num {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
}

.scene__tc {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   SCENE 01 — HERO
   ============================================ */
.scene--hero {
  height: 100svh;
  position: relative;
  overflow: hidden;
}

.scene__visual {
  position: absolute;
  inset: 0;
}

.scene__img--cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
}

.scene__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.6) 60%, rgba(10,10,10,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--letterbox-h) + 24px) 24px calc(var(--letterbox-h) + 48px);
}

.scene__titles {
  margin-top: auto;
}

.scene__title-line {
  display: block;
  font-family: var(--font-jp);
  font-size: clamp(2rem, 1rem + 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--cream);
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

.scene__subtitle {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  margin-top: 16px;
  opacity: 0;
  will-change: opacity;
}

.scene__action {
  position: absolute;
  top: calc(var(--letterbox-h) + 20px);
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scene__action-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
}

.scene__action-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: recBlink 1.5s ease-in-out infinite;
}

@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ============================================
   SCENE 02 — INTRO
   ============================================ */
.scene--intro {
  padding: clamp(100px, 12vw, 200px) 24px;
  background: var(--bg-deep);
  position: relative;
}

.intro__content {
  max-width: 700px;
  margin: 0 auto;
}

.intro__text {
  margin-bottom: 32px;
}

.intro__line {
  display: block;
  font-family: var(--font-jp);
  font-size: clamp(1rem, 0.8rem + 1vw, 1.375rem);
  font-weight: 400;
  line-height: 2.2;
  color: var(--cream-dim);
  opacity: 0.2;
  transition: opacity 0.6s var(--ease-smooth), color 0.6s;
}

.intro__line.is-active {
  opacity: 1;
  color: var(--cream);
}

/* ============================================
   SCENE 03 — WORKS
   ============================================ */
.scene--works {
  padding: clamp(80px, 10vw, 160px) 24px;
  background: var(--bg);
  position: relative;
}

.works__header {
  max-width: 1200px;
  margin: 0 auto 64px;
  padding: 0;
}

.works__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.works__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1rem + 5vw, 5rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--cream);
}

.works__reel {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 64px;
}

.works__frame {
  display: grid;
  gap: 24px;
}

.works__frame-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
}

.works__frame-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}

.works__frame:hover .works__frame-visual img {
  transform: scale(1.04);
}

/* Cinematic bars on images */
.works__frame-bars,
.fullframe__bars,
.director__photo-bars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.works__frame-bar,
.fullframe__bar {
  height: 12%;
  background: var(--bg-deep);
}

.works__frame-num {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}

.works__frame-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.03em;
  color: var(--cream);
  margin-bottom: 8px;
}

.works__frame-desc {
  font-family: var(--font-jp);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--cream-dim);
  margin-bottom: 12px;
}

.works__frame-tag {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid var(--gray-dark);
  padding: 4px 10px;
  display: inline-block;
}

/* ============================================
   SCENE 04 — FULL FRAME
   ============================================ */
.scene--fullframe {
  position: relative;
}

.fullframe__visual {
  width: 100%;
  height: 70vh;
  overflow: hidden;
  position: relative;
}

.fullframe__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fullframe__caption {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.fullframe__num {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
}

.fullframe__tc {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.fullframe__note {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
  text-transform: uppercase;
}

/* ============================================
   SCENE 05 — STUDIO
   ============================================ */
.scene--studio {
  padding: clamp(80px, 10vw, 160px) 24px;
  background: var(--bg);
  position: relative;
}

.studio__content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 64px;
}

.studio__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 16px;
}

.studio__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1rem + 5vw, 5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 32px;
}

.studio__body {
  font-family: var(--font-jp);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 2.2;
  color: var(--cream-dim);
  margin-bottom: 20px;
}

.studio__specs {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.studio__spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.studio__spec-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.15em;
  color: var(--gray);
}

.studio__spec-val {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--cream);
}

/* ============================================
   SCENE 06 — DIRECTOR
   ============================================ */
.scene--director {
  padding: clamp(80px, 10vw, 160px) 24px;
  background: var(--bg-deep);
  position: relative;
}

.director__content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 48px;
}

.director__photo-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 500px;
}

.director__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}

.director__photo-wrap:hover .director__photo {
  transform: scale(1.03);
}

.director__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 12px;
}

.director__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1rem + 3vw, 3.5rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 24px;
}

.director__bio {
  font-family: var(--font-jp);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 2.2;
  color: var(--cream-dim);
  margin-bottom: 16px;
  max-width: 460px;
}

.director__stats {
  display: flex;
  gap: 48px;
  margin-top: 32px;
}

.director__stat-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

.director__stat-unit {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ============================================
   SCENE 07 — MENU
   ============================================ */
.scene--menu {
  padding: clamp(80px, 10vw, 160px) 24px;
  background: var(--bg);
  position: relative;
}

.menu__content {
  max-width: 800px;
  margin: 0 auto;
}

.menu__header {
  margin-bottom: 48px;
}

.menu__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 12px;
}

.menu__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1rem + 5vw, 5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
}

.menu__list {
  display: flex;
  flex-direction: column;
}

.menu__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}

.menu__item:hover { color: var(--red); }

.menu__scene-tag {
  font-family: var(--font-mono);
  font-size: 0.4375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--bg-deep);
  background: var(--gray);
  padding: 2px 6px;
  flex-shrink: 0;
}

.menu__item--featured .menu__scene-tag {
  background: var(--red);
  color: var(--cream);
}

.menu__name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.menu__dots {
  flex: 1;
  height: 1px;
  border-bottom: 1px dotted var(--gray-dark);
  min-width: 20px;
}

.menu__price {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ============================================
   ACCESS
   ============================================ */
.scene--access {
  padding: clamp(64px, 8vw, 120px) 24px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  position: relative;
}

.access__content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.access__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 12px;
}

.access__text {
  font-family: var(--font-jp);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 2;
  color: var(--cream-dim);
  margin-bottom: 8px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: clamp(80px, 10vw, 160px) 24px;
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta__inner {
  max-width: 800px;
  margin: 0 auto;
}

.cta__tagline {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  color: var(--gray);
  margin-bottom: 24px;
}

.cta__big {
  margin-bottom: 40px;
}

.cta__line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 1rem + 7vw, 8rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.cta__line--accent {
  color: var(--red);
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cream);
  background: var(--red);
  padding: 16px 40px;
  border: none;
  transition: background 0.3s;
}

.cta__btn:hover {
  background: var(--red-dim);
}

.cta__btn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream);
  animation: recBlink 1.5s ease-in-out infinite;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 24px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.footer__logo {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.footer__copy {
  font-size: 0.5rem;
  color: var(--gray);
  letter-spacing: 0.05em;
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__links a {
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--gray);
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer__links a:hover { color: var(--red); }

/* ============================================
   DESKTOP
   ============================================ */
@media (min-width: 768px) {
  .header { padding: 16px 48px; }
  .header__nav { display: flex; }
  .header__menu { display: none; }

  .scene__meta--inline {
    padding: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .works__frame {
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: center;
  }

  .works__frame:nth-child(even) {
    grid-template-columns: 1fr 1.5fr;
  }

  .works__frame:nth-child(even) .works__frame-visual {
    order: 2;
  }

  .studio__content {
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .studio__left {
    position: sticky;
    top: 120px;
  }

  .director__content {
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
  }

  .director__photo-wrap { max-height: none; }

  .access__content {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }

  .fullframe__visual { height: 80vh; }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 767px) {
  :root { --letterbox-h: 3vh; }

  .header__tc { display: none; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .scene__title-line {
    opacity: 1 !important;
    transform: none !important;
  }

  .scene__img--cover {
    transform: none !important;
  }

  .grain { display: none; }
}
