/* =========================================================
   MIKAMIHO — Concept 6: Cinematic Story
   Dark narrative scroll experience
   ========================================================= */

/* ---------- CSS VARIABLES ---------- */
:root {
  --black: #0a0a0a;
  --dark: #141416;
  --gold: #c4a35a;
  --gold-dim: rgba(196, 163, 90, 0.3);
  --cream: #e8e0d0;
  --grey: #6b6b6b;
  --white: #f5f2ed;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--cream);
  background: var(--black);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--cream);
  text-decoration: none;
  transition: color 0.4s var(--ease-out);
}

a:hover { color: var(--gold); }

ul { list-style: none; }

/* ---------- FILM GRAIN OVERLAY ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}


/* ==========================================================
   NAVIGATION
   ========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  transition: background 0.6s var(--ease-out), padding 0.6s var(--ease-out);
}

.nav--scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 40px;
}

.nav__logo img {
  height: 30px;
  filter: invert(1) brightness(1.1);
  transition: opacity 0.4s;
}

.nav__logo:hover img { opacity: 0.7; }

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: lowercase;
  color: var(--cream);
  position: relative;
  transition: color 0.4s var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out), left 0.4s var(--ease-out);
}

.nav__link:hover { color: var(--gold); }
.nav__link:hover::after {
  width: 100%;
  left: 0;
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.nav__burger--active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__burger--active span:nth-child(2) {
  opacity: 0;
}
.nav__burger--active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 1px;
  transition: color 0.4s;
}

.mobile-menu__link:hover { color: var(--gold); }


/* ==========================================================
   HERO — OPENING SCENE
   ========================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.05);
  transition: transform 8s var(--ease-out);
}

.hero--loaded .hero__bg {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.1) 0%,
    rgba(10, 10, 10, 0.3) 40%,
    rgba(10, 10, 10, 0.8) 100%
  );
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 40px 80px;
  width: 100%;
  max-width: 1200px;
}

.hero__location {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(60px, 10vw, 140px);
  line-height: 1;
  color: var(--white);
  margin-bottom: 32px;
  font-optical-sizing: auto;
}

.hero__word {
  display: inline-block;
}

.hero__line {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px 0;
  transition: width 1.2s var(--ease-out);
}

.hero__line--animated {
  width: 120px;
}

.hero__services {
  font-size: 14px;
  font-weight: 400;
  color: var(--grey);
  letter-spacing: 1px;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}


/* ==========================================================
   SCENE — GENERIC
   ========================================================== */
.scene {
  position: relative;
  padding: 120px 40px;
}

.scene__content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.scene__content--narrow {
  max-width: 700px;
}

.scene__content--center {
  text-align: center;
  max-width: 800px;
}

/* Chapter numbers */
.scene__chapter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 200px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-dim);
  position: absolute;
  top: 60px;
  right: 40px;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

.scene__chapter--light {
  -webkit-text-stroke-color: rgba(196, 163, 90, 0.15);
  position: relative;
  top: auto;
  right: auto;
  font-size: 140px;
  margin-bottom: -30px;
}

.scene__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 16px;
}

.scene__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 32px;
}

.scene__heading em {
  font-style: italic;
  font-weight: 300;
}

.scene__heading--large {
  font-size: clamp(40px, 6vw, 72px);
}

.scene__subheading {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--grey);
  margin-bottom: 60px;
}

.scene__text {
  font-size: 17px;
  color: var(--cream);
  line-height: 1.8;
  margin-bottom: 28px;
}

.scene__text--center { text-align: center; }


/* ==========================================================
   SCENE I — STORY
   ========================================================== */
.scene--story {
  background: var(--black);
  padding-top: 140px;
  padding-bottom: 140px;
}

.scene__photo {
  margin-top: 60px;
  border: 1px solid var(--gold-dim);
  overflow: hidden;
  max-width: 900px;
}

.scene__photo img {
  width: 100%;
  display: block;
  transition: transform 1.2s var(--ease-out);
}

.scene__photo:hover img {
  transform: scale(1.03);
}


/* ==========================================================
   SCENE II — GARDENS (with bg image)
   ========================================================== */
.scene--gardens {
  position: relative;
  padding: 160px 40px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene--gardens__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.scene--gardens__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
}

.scene--gardens .scene__content {
  position: relative;
  z-index: 2;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-top: 48px;
}

.services-grid__item {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  padding: 12px 0;
  border-bottom: 1px solid var(--gold-dim);
  transition: border-color 0.4s, color 0.4s;
  min-width: 160px;
  text-align: center;
}

.services-grid__item:hover {
  border-color: var(--gold);
  color: var(--gold);
}


/* ==========================================================
   INTERLUDE — FULL BLEED QUOTE
   ========================================================== */
.interlude {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.interlude__bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.interlude__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.7) 100%
  );
}

.interlude__quote {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 300;
  color: var(--gold);
  text-align: center;
  max-width: 800px;
  padding: 0 40px;
  line-height: 1.4;
}


/* ==========================================================
   SCENE III — CONSTRUCTION
   ========================================================== */
.scene--construction {
  background: var(--dark);
  padding: 140px 40px;
}

.construction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 20px;
  align-items: start;
}

.construction__photo {
  border: 1px solid var(--gold-dim);
  overflow: hidden;
}

.construction__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.construction__photo:hover img {
  transform: scale(1.03);
}

.construction__info {
  padding-top: 20px;
}

.construction__list {
  margin-top: 40px;
}

.construction__item {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--cream);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.4s;
}

.construction__item:hover { color: var(--gold); }

.construction__num {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--gold);
  min-width: 24px;
}

.construction__dash {
  color: var(--gold-dim);
}


/* ==========================================================
   SCENE IV — PROJECTS
   ========================================================== */
.scene--projects {
  background: var(--black);
  padding: 140px 40px 100px;
}

.project {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.project--right {
  grid-template-columns: 2fr 3fr;
}

.project--right .project__image {
  order: 2;
}

.project--right .project__info {
  order: 1;
  text-align: right;
}

.project__image {
  border: 1px solid var(--gold-dim);
  overflow: hidden;
}

.project__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.project__image:hover img {
  transform: scale(1.04);
}

.project__tag {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 12px;
}

.project__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.project__desc {
  font-size: 14px;
  color: var(--grey);
  letter-spacing: 0.5px;
}


/* ==========================================================
   FILMSTRIP GALLERY
   ========================================================== */
.filmstrip {
  background: var(--dark);
  padding: 100px 0 120px;
  overflow: hidden;
}

.filmstrip .scene__content {
  padding: 0 40px;
  margin-bottom: 60px;
}

.filmstrip__viewport {
  width: 100%;
  overflow: hidden;
}

.filmstrip__track {
  display: flex;
  gap: 20px;
  animation: filmScroll 60s linear infinite;
  width: max-content;
}

.filmstrip__track:hover {
  animation-play-state: paused;
}

@keyframes filmScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.filmstrip__frame {
  flex-shrink: 0;
  width: 320px;
  border: 1px solid var(--gold-dim);
  padding: 8px;
  background: var(--black);
  transition: border-color 0.4s;
}

.filmstrip__frame:hover {
  border-color: var(--gold);
}

.filmstrip__frame img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.filmstrip__caption {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 1px;
  text-align: center;
  margin-top: 10px;
  padding-bottom: 4px;
}


/* ==========================================================
   CONTACT — FINAL SCENE
   ========================================================== */
.scene--contact {
  background: var(--dark);
  padding: 140px 40px 120px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 20px;
}

.contact__block {
  margin-bottom: 32px;
}

.contact__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact__block p {
  font-size: 16px;
  color: var(--cream);
  line-height: 1.7;
}

.contact__block a {
  color: var(--cream);
  border-bottom: 1px solid var(--gold-dim);
  transition: color 0.4s, border-color 0.4s;
}

.contact__block a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Form */
.form__group {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.4s var(--ease-out), background 0.4s;
  -webkit-appearance: none;
}

.form__input:focus {
  border-color: var(--gold);
  background: rgba(196, 163, 90, 0.04);
}

.form__select {
  cursor: pointer;
}

.form__select option {
  background: var(--dark);
  color: var(--cream);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 16px 40px;
  cursor: pointer;
  transition: background 0.4s var(--ease-out), color 0.4s;
}

.form__submit:hover {
  background: var(--gold);
  color: var(--black);
}


/* ==========================================================
   FOOTER — CREDITS
   ========================================================== */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 80px 40px;
  text-align: center;
}

.footer__content {
  max-width: 600px;
  margin: 0 auto;
}

.footer__logo {
  filter: invert(1) brightness(1.1);
  margin: 0 auto 24px;
  opacity: 0.6;
}

.footer__copy {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 4px;
  letter-spacing: 2px;
}

.footer__names {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 24px;
  opacity: 0.6;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer__nav a {
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 1px;
  transition: color 0.4s;
}

.footer__nav a:hover { color: var(--gold); }

.footer__location {
  font-size: 12px;
  color: var(--grey);
  opacity: 0.5;
  letter-spacing: 1px;
}


/* ==========================================================
   SCROLL ANIMATIONS
   ========================================================== */
[data-anim="reveal"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

[data-anim="reveal"].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-anim="line"] {
  width: 0;
  transition: width 1.2s var(--ease-out) 0.4s;
}

[data-anim="line"].visible {
  width: 120px;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .scene__chapter {
    font-size: 140px;
    right: 20px;
    top: 40px;
  }

  .construction {
    gap: 40px;
  }

  .project {
    gap: 30px;
  }

  .contact {
    gap: 60px;
  }
}

@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 18px 24px; }
  .nav--scrolled { padding: 14px 24px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  /* Hero */
  .hero__content { padding: 0 24px 60px; }
  .hero__bg,
  .scene--gardens__bg,
  .interlude__bg {
    background-attachment: scroll;
  }
  .hero__title {
    font-size: clamp(42px, 12vw, 80px);
  }

  /* Scenes */
  .scene { padding: 80px 24px; }
  .scene--story { padding-top: 100px; padding-bottom: 100px; }
  .scene--construction { padding: 100px 24px; }
  .scene--gardens { padding: 120px 24px; }
  .scene--projects { padding: 100px 24px 60px; }
  .scene--contact { padding: 100px 24px 80px; }

  .scene__chapter {
    font-size: 100px;
    right: 16px;
    top: 30px;
  }

  .scene__chapter--light {
    font-size: 80px;
    margin-bottom: -10px;
  }

  /* Construction */
  .construction {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .construction__photo img {
    aspect-ratio: 4 / 3;
  }

  /* Projects */
  .project {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 60px;
  }

  .project--right .project__image { order: 0; }
  .project--right .project__info {
    order: 0;
    text-align: left;
  }

  /* Contact */
  .contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Services grid */
  .services-grid {
    gap: 8px 24px;
  }

  .services-grid__item {
    min-width: 140px;
  }

  /* Filmstrip */
  .filmstrip__frame {
    width: 260px;
  }

  .filmstrip__frame img {
    height: 180px;
  }

  /* Interlude */
  .interlude { height: 60vh; min-height: 400px; }

  /* Footer */
  .footer { padding: 60px 24px; }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(36px, 14vw, 60px);
  }

  .scene__heading {
    font-size: clamp(28px, 7vw, 40px);
  }

  .scene__heading--large {
    font-size: clamp(32px, 9vw, 52px);
  }

  .scene__chapter {
    font-size: 70px;
    right: 12px;
  }

  .scene__chapter--light {
    font-size: 60px;
  }

  .services-grid {
    flex-direction: column;
    align-items: center;
  }

  .filmstrip__frame {
    width: 220px;
  }

  .filmstrip__frame img {
    height: 150px;
  }

  .form__submit {
    width: 100%;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 16px;
  }
}


/* ==========================================================
   FORM SUCCESS STATE
   ========================================================== */
.form--success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.form__success-msg {
  text-align: center;
}

.form__success-msg h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 8px;
}

.form__success-msg p {
  font-size: 15px;
  color: var(--grey);
}


/* ==========================================================
   SELECTION & SCROLLBAR
   ========================================================== */
::selection {
  background: var(--gold);
  color: var(--black);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}
