/* Self-hosted fonts (no external requests). Files sourced from Fontsource. */
@font-face {
  font-family: 'Tenor Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/tenor-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-italic-400.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Tenor Sans', sans-serif;
  background: #F5F1EC;
  color: #404040;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1E1B18;
  text-decoration: none;
}

/* ---------- Page fade-in ---------- */
.page-fade {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 200;
  pointer-events: none;
  animation: pageFade 0.8s ease forwards;
}

@keyframes pageFade {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ---------- Navigation ---------- */
nav:not(.hero-nav) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #F5F1EC;
  border-bottom: 1px solid #D9D9D9;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  position: relative;
  z-index: 100;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.82rem;
  color: #1E1B18;
}

.nav-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  color: #1E1B18;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Tenor Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.82rem;
  color: #1E1B18;
  padding: 0.25rem 0;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 24, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
  z-index: 90;
}

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

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 75%;
  max-width: 320px;
  background: #F5F1EC;
  border-left: 1px solid #D9D9D9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  visibility: hidden;
  z-index: 95;
}

.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu .nav-link {
  font-size: 1rem;
}

/* ---------- Tiles dropdown ---------- */
.nav-dropdown-toggle,
.mobile-sub-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.nav-dropdown-toggle::after {
  content: ' \25BE';
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: #F5F1EC;
  border: 1px solid #D9D9D9;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 110;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

/* Mobile sub-menu within slide-in panel */
.mobile-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-sub-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
  transition: max-height 0.25s ease, margin-top 0.25s ease;
}

.mobile-sub-menu.open {
  max-height: 10rem;
  margin-top: 1rem;
}

.mobile-sub-menu .nav-link {
  font-size: 0.82rem;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .nav-inner {
    padding: 1rem 1.25rem;
  }
  .nav-right .nav-link {
    display: none;
  }
  .nav-right .nav-dropdown {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 3rem;
  font-weight: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1E1B18;
  margin-right: -0.1em;
}

.hero p {
  margin-top: 1.25rem;
  color: #404040;
}

.hero-name-img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .hero-name-img {
    height: 40px;
  }
}

/* ---------- Sections ---------- */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-heading {
  font-size: 0.82rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #1E1B18;
}

.section-subhead {
  margin-top: 0.75rem;
  color: #404040;
}

.section-intro {
  margin-top: 1.5rem;
  max-width: 620px;
  color: #404040;
}

.pricing {
  margin-top: 1.25rem;
  color: #404040;
}

.pricing p {
  margin-top: 0.2rem;
}

/* ---------- Explore ---------- */
.explore-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------- Work grids ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2.5rem;
  margin-top: 3rem;
}

.tiles-grid-6 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 3rem;
}

.tiles-grid-4 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem 1rem;
  margin-top: 3rem;
}

.tiles-grid-1014 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 3rem;
  margin-top: 3rem;
}

@media (max-width: 720px) {
  section {
    padding: 4rem 1.25rem;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .tiles-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .tiles-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .tiles-grid-1014 {
    grid-template-columns: 1fr;
  }
}

.work-image {
  background: #D9D4CC;
  width: 100%;
  display: block;
}

.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-5-7 { aspect-ratio: 5 / 7; }
.ratio-7-5 { aspect-ratio: 7 / 5; }
.ratio-16-9 { aspect-ratio: 16 / 9; }

/* ---------- Tile overlay ---------- */
.tile-wrap {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 24, 0.80);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 0.75rem;
}

.tile-wrap:hover .tile-overlay,
.tile-wrap.overlay-active .tile-overlay {
  opacity: 1;
}

.tile-overlay-title,
.tile-overlay-price,
.tile-overlay-inquire {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.4;
}

.tile-overlay-inquire {
  margin-top: 0.25rem;
  letter-spacing: 0.25em;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 2.5rem;
  margin-top: 3rem;
}

.studio-video {
  width: 100%;
  display: block;
}

.work-title {
  margin-top: 1rem;
  font-size: 1rem;
  color: #1E1B18;
}

.work-details {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #404040;
}

.work-inquire {
  display: inline-block;
  margin-top: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #1E1B18;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-portrait {
  background: #D9D4CC;
  aspect-ratio: 650 / 365;
  width: 100%;
}

.about-name {
  font-size: 0.9rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #1E1B18;
}

.about-text p {
  margin-top: 1.25rem;
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---------- Inquire ---------- */
.inquire-email {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #1E1B18;
}

.inquire-note {
  margin-top: 1.5rem;
  max-width: 560px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid #D9D9D9;
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: 0.75rem;
  color: #404040;
  letter-spacing: 0.15em;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .page-fade {
    animation: none;
    opacity: 0;
  }
}
