/* =============================================
   RESET & BASE
   ============================================= */

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

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

video {
  clip-path: inset(2px);
}

/* Smooth media loading — fade in when ready */
#view-project img,
#view-project video,
#view-about img {
  opacity: 0;
  transition: opacity 0.6s ease;
}

#view-project img.loaded,
#view-project video.loaded,
#view-about img.loaded {
  opacity: 1;
}


body {
  font-family: "neue-haas-unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fff;
  color: #000;
  overflow: hidden;
}

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

/* =============================================
   NAVIGATION
   ============================================= */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  padding: 1.5rem 2rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

#nav.visible {
  opacity: 1;
  pointer-events: all;
}


.nav-link {
  font-family: "neue-haas-unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #000;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 1;
}

/* =============================================
   VIEWS
   ============================================= */

.view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

/* Fade transition (home ↔ other) */
.view.fade-in {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.view.fade-out {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Slide-up transition (click nav between work/about/project) */
.view.slide-ready {
  transform: translateY(100%);
  opacity: 1;
  visibility: visible;
}

.view.slide-in {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.view.slide-out-down {
  transform: translateY(100%);
  opacity: 1;
  visibility: visible;
  transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.view.slide-out-up {
  transform: translateY(-100%);
  opacity: 1;
  visibility: visible;
  transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.view.slide-down-ready {
  transform: translateY(-100%);
  opacity: 1;
  visibility: visible;
}

.view.slide-down-in {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Active state (static, no transition) */
.view.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
}

/* =============================================
   HOME / VIDEO HERO
   ============================================= */

#view-home {
  z-index: 1;
  background: #fff;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-title {
  font-family: "neue-haas-unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  color: #fff;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 0.5px #fff;
  text-align: center;
  user-select: none;
}

/* =============================================
   WORK / PROJECT LIST
   ============================================= */

#view-work {
  z-index: 5;
}

.work-top-sentinel {
  height: 1px;
  pointer-events: none;
}

.work-container {
  padding: 6rem 2rem 0;
  min-height: 100vh;
}

.project-list {
  display: flex;
  flex-direction: column;
}

.project-item {
  font-family: "neue-haas-unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #000;
  padding: 0.3rem 0;
  transition: opacity 0.3s ease;
  display: block;
}

.project-item:hover {
  opacity: 1;
}

/* Bottom sentinel for scroll-back */
.page-end-sentinel {
  height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   PROJECT DETAIL (2050+ Layout)
   ============================================= */

#view-project {
  z-index: 10;
}

.project-detail-container {
  padding: 12px;
  padding-top: 130px;
  padding-bottom: 120px;
}

.project-title {
  font-family: "neue-haas-unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: pre-line;
  margin-bottom: 48px;
}

/* 12-column grid for project blocks */
.project-blocks {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 12px;
}

.project-blocks > * {
  grid-column: 1 / -1;
}

/* Description line */
.block-description {
  grid-column: 2 / -1;
  font-family: "adobe-jenson-pro-caption", "Georgia", serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 24px;
}

@media (min-width: 62.5em) {
  .block-description {
    font-size: 14px;
  }
}

/* Media block */
.media-block {
  grid-column: 1 / -1;
  margin: 48px 0;
}

.media-block:first-of-type {
  margin-top: 24px;
}

.media-block.align-center {
  grid-column: 4 / -1;
}

.media-block.align-right {
  grid-column: 7 / -1;
}

/* Single media (image or video) */
.single-media {
  width: 100%;
}

.single-media img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  object-position: left;
  display: block;
}

.single-media video {
  width: auto;
  max-width: 100%;
  max-height: 85vh;
  display: block;
  margin: 0;
}

/* Gallery: all items visible, same height, no scrolling */
.gallery-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.gallery-scroll .gallery-item {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  line-height: 0;
}

.gallery-scroll .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-scroll .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Two images side by side */
.media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.media-pair img,
.media-pair video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-pair {
  align-items: stretch;
}

/* Paragraph block — matches 2050+ default: indented at column 4 */
.block-paragraph {
  grid-column: 4 / -1;
  font-family: "adobe-jenson-pro-caption", "Georgia", serif;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

.block-paragraph.align-center {
  grid-column: 4 / -1;
}

.block-paragraph.align-left {
  grid-column: 1 / span 8;
}

@media (min-width: 62.5em) {
  .block-paragraph {
    font-size: 14px;
  }
}

/* Paragraph placeholder */
.block-paragraph-placeholder {
  grid-column: 4 / span 6;
  max-width: 700px;
  background: #f0f0f0;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1rem;
  font-family: "neue-haas-unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #bbb;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Section heading divider */
.block-heading {
  grid-column: 1 / -1;
  font-family: "neue-haas-unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #000;
  margin: 48px 0 24px;
}

@media (min-width: 62.5em) {
  .block-heading {
    font-size: 14px;
  }
}

/* Credits */
.block-credits {
  grid-column: 1 / -1;
  margin-top: 110px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 12px;
  font-family: "adobe-jenson-pro-caption", "Georgia", serif;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #000;
  margin-bottom: 48px;
}

@media (min-width: 62.5em) {
  .block-credits {
    font-size: 14px;
  }
}

/* Press section */
.block-press {
  grid-column: 1 / -1;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.press-heading {
  font-family: "neue-haas-unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  margin-bottom: 1.5em;
}

.press-list {
  margin-left: 2em;
}

.press-item {
  font-family: "adobe-jenson-pro-caption", "Georgia", serif;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: -0.02em;
}

.press-item a {
  color: #000;
  text-decoration: none;
}

/* End-of-project spacer (matches work list item gap) */
.project-end-spacer {
  grid-column: 1 / -1;
  height: 33px;
}

/* Media caption */
.block-caption {
  margin-top: 8px;
  font-family: "adobe-jenson-pro-caption", "Georgia", serif;
  font-size: 10px;
  line-height: 1.2;
  color: #000;
}

@media (min-width: 62.5em) {
  .block-caption {
    font-size: 12px;
  }
}

/* Placeholder grey rectangles */
.media-placeholder {
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "neue-haas-unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Single media placeholders */
.single-media .media-placeholder {
  width: 100%;
}

.single-media .media-placeholder.landscape {
  aspect-ratio: 16 / 9;
}

.single-media .media-placeholder.portrait {
  aspect-ratio: 3 / 4;
}

/* Gallery placeholders */
.gallery-scroll .gallery-item .media-placeholder {
  height: auto;
  min-height: 200px;
}

.gallery-scroll .gallery-item .media-placeholder.portrait {
  aspect-ratio: 2 / 3;
}

.gallery-scroll .gallery-item .media-placeholder.landscape {
  aspect-ratio: 3 / 2;
}

.gallery-scroll .gallery-item .media-placeholder.mixed {
  aspect-ratio: 3 / 2;
}

/* Pair placeholders */
.media-pair .media-placeholder {
  width: 100%;
}

.media-pair .media-placeholder.portrait {
  aspect-ratio: 3 / 4;
}

.media-pair .media-placeholder.landscape {
  aspect-ratio: 16 / 9;
}

/* =============================================
   ABOUT
   ============================================= */

#view-about {
  z-index: 5;
}

/* =============================================
   STUDIO PAGE
   ============================================= */

.studio-container {
  padding: 6rem 2rem 0;
}

.studio-text {
  font-family: "adobe-jenson-pro-caption", "Georgia", serif;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  max-width: 800px;
  text-align: left;
}

.studio-text h1,
.studio-text h2,
.studio-text h3,
.studio-text h4,
.studio-text h5,
.studio-text h6 {
  font-family: "neue-haas-unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1.5em 0 0.5em;
  text-align: left;
}

.studio-text h1 { font-size: 18px; }
.studio-text h2 { font-size: 15px; }
.studio-text h3 { font-size: 13px; }

.studio-text p {
  margin: 0 0 0.8em;
}

.studio-text ul,
.studio-text ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.studio-text li {
  margin-bottom: 0.5em;
}

.studio-text ul ul,
.studio-text ol ol,
.studio-text ul ol,
.studio-text ol ul {
  margin-top: 0.3em;
}

.studio-text a {
  color: #000;
  text-decoration: none;
}

.studio-text p:first-child {
  margin-bottom: 1.5em;
}

.studio-text p:first-child a {
  font-family: "neue-haas-unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.studio-text p:nth-child(n+2) {
  margin-left: 2em;
}

.studio-text p:nth-child(2) a {
  font-family: "adobe-jenson-pro-caption", "Georgia", serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* =============================================
   ABOUT PAGE
   ============================================= */

.about-container {
  padding: 6rem 2rem 0;
}

/* Top section: image left, bio right */
.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
  align-items: start;
}

.about-image {
  position: sticky;
  top: 6rem;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-bio {
  font-family: "adobe-jenson-pro-caption", "Georgia", serif;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-bio p {
  margin-bottom: 1.5rem;
}

/* Bottom section: text left, contact right */
.about-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 4rem;
  align-items: start;
}

.about-bottom-image {
  grid-column: 2 / -1;
  margin-top: 2rem;
}

.about-bottom-image img {
  width: 65%;
  height: auto;
  display: block;
}

.about-heading {
  font-family: "neue-haas-unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.about-bottom-left {
  font-family: "adobe-jenson-pro-caption", "Georgia", serif;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-bottom-right {
  font-family: "adobe-jenson-pro-caption", "Georgia", serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.about-bottom-right a {
  transition: opacity 0.3s ease;
}

.about-bottom-right a:hover {
  opacity: 1;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  #nav {
    padding: 1.2rem 1.5rem;
    gap: 1.5rem;
  }

  .work-container {
    padding: 5rem 1.5rem 0;
  }

  .project-item {
    font-size: 22px;
    line-height: 0.9;
  }

  .about-container {
    padding: 5rem 1.5rem 0;
  }

  .about-top {
    grid-template-columns: 1fr;
  }

  .about-image {
    position: static;
    max-width: 100%;
  }

  .about-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-bottom-image img {
    width: 100%;
  }

  .project-detail-container {
    padding: 8px;
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .project-blocks {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    column-gap: 8px;
  }

  .media-block.align-center {
    grid-column: 1 / -1;
  }

  .block-paragraph {
    grid-column: 1 / -1;
    max-width: none;
  }

  .block-description {
    grid-column: 1 / -1;
  }

  .block-paragraph-placeholder {
    grid-column: 1 / -1;
  }

  .media-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.3rem;
    letter-spacing: 0.1em;
  }

  .project-item {
    font-size: 0.9rem;
  }

  .nav-link {
    font-size: 15px;
  }

}
