@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto+Mono:wght@100;200;300;400;500;600;700&display=swap');


html {
  font-size: clamp(14px, 0.85vw, 20px);
}

body {
  margin: 0;
  background: #d8d8d8;
  font-family: 'Roboto Mono', monospace;
  cursor: auto;
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

.vertical-line {
  position: fixed;
  top: 0;
  width: 0.5px; /* 0.5px */
  height: 100vh;
  background: #212121;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1001;
}

.vertical-line.left {
  left: 5vw;
}

.vertical-line.right {
  right: 5vw;
}

.horizontal-lines-wrapper,
.horizontal-lines-wrapper-bottom {
  position: fixed;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  background-color: #d8d8d8;
  box-sizing: border-box;
  z-index: 1000;
}

.horizontal-lines-wrapper {
  top: 5rem; /* 80px */
  padding-top: 0;
}

.horizontal-lines-wrapper-bottom {
  bottom: 0;
  padding-bottom: 2.5rem; /* 40px */
}

.horizontal-line {
  width: 100%;
  height: 0.5px;
  background: #212121;
  opacity: 0.3;
  margin: 0;
}

.selected-work-row {
  width: 100%;
  min-height: 0.75rem; /* 12px */
  margin: 0.25rem 0; /* 4px 0 */
  padding: 0 5vw;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-work-text {
  padding: 0 0.3125rem; /* 5px */
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  letter-spacing: -0.03125rem; /* -0.5px */
  color: #212121;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5rem; /* 80px */
  padding: 0.625rem 5vw 0; /* 10px 5vw 0 */
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 1.25rem; /* 20px */
  z-index: 1000;
  background-color: #d8d8d8;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.header .left {
  width: auto;
  height: 4.375rem; /* 70px */
  padding-left: 0.3125rem; /* 5px */
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.brand-logo {
  display: block;
  height: 3rem; /* 40px */
  width: auto;
}

.header .center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  font-size: 0.875rem; /* 14px */
  font-family: 'Inter', sans-serif;
  line-height: 1.1;
  cursor: default;
}

.header .title {
  font-weight: 600;
  color: #212121;
  letter-spacing: -0.03125rem; /* -0.5px */
}

.header .subtitle {
  font-weight: 300;
  color: #757575;
  letter-spacing: -0.03125rem; /* -0.5px */
}

.header .right {
  position: relative;
  display: flex;
  align-items: center;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.hamburger-btn {
  display: none;
}

.header .nav-btn {
  position: relative;
  width: 3.75rem; /* 60px */
  height: 1.5625rem; /* 25px */
  margin-right: 0.3125rem; /* 5px */
  margin-left: 0.625rem; /* 10px */
  padding-left: 1.25rem; /* 20px */
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border: none;
  color: #757575;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem; /* 12px */
  font-weight: 300;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.03125rem; /* 0.5px */
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header .nav-btn::before {
  content: '';
  position: absolute;
  left: 0.4375rem; /* 7px */
  top: 50%;
  width: 0.375rem; /* 6px */
  height: 0.375rem; /* 6px */
  background-color: #000000;
  transform: translateY(-50%) scale(0);
  transform-origin: center center;
  opacity: 0;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

.header .nav-btn:hover,
.header .nav-btn:focus-visible {
  color: #212121;
}

.header .nav-btn:hover::before,
.header .nav-btn:focus-visible::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

.scroll-mask-wrapper {
  position: fixed;
  top: 5rem; /* 80px */
  bottom: 2.5rem; /* 40px */
  left: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-container {
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem; /* 48px */
}

.film-project-container {
  width: 85dvw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8%;
  flex-shrink: 0;
}

.film-card {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 2dvw;
}

.film-card img {
  height: clamp(33.0625rem, 67dvh, 47.5rem); /* 529px, 760px */
  aspect-ratio: 353 / 529;
  width: auto;
  object-fit: cover;
  border-radius: 0.3125rem; /* 5px */
}

.film-desc {
  max-width: clamp(37.5rem, 45dvw, 50rem); /* 600px, 800px */
  min-width: 0;
  height: 33.0625rem; /* 529px */
  max-height: 33.0625rem; /* 529px */
  padding-left: 2%;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  word-break: break-word;
}

.film-desc-main,
.about-accordion {
  width: clamp(37.5rem, 45dvw, 50rem); /* 600px, 800px */
}

.film-desc-main {
  margin: 0 0 2rem 0; /* 32px */
  display: flex;
  flex-direction: column;
  gap: 0.625rem; /* 10px */
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.125rem; /* 18px */
  color: #212121;
  line-height: 1.5;
  text-align: left;
  max-width: 100%;
}

.about-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.375rem 0.75rem; /* 6px 12px */
  background-color: #212121;
  color: #d8d8d8;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem; /* 12px */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.125rem; /* 2px */
  border-radius: 0;
}

.typewriter-wrapper {
  width: 100%;
  max-width: 100%;
  min-height: 3.75rem; /* 60px */
  padding-top: 7dvh;
  white-space: normal;
  overflow: hidden;
}

.typewriter-text {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 2.5rem; /* 40px */
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  word-spacing: -0.125rem; /* -2px */
}

.typewriter-text::after {
  content: none;
}

.word-block {
  position: relative;
  display: inline-block;
  padding-right: 0.375rem; /* 6px */
}

.word-inner {
  display: inline-block;
  color: transparent;
}

.word-overlay {
  position: absolute;
  inset: 0;
  background: #212121;
  display: none;
}

.typewriter-author {
  margin-top: 0.5rem; /* 8px */
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem; /* 12px */
  text-transform: uppercase;
  letter-spacing: 0.03125rem; /* 0.5px */
  color: #757575;
}

.about-accordion {
  width: 100%;
  margin-top: auto;
}

.about-accordion-header,
.about-accordion-label,
.about-accordion-icon {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem; /* 12px */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03125rem; /* 0.5px */
  color: #212121;
}

.about-accordion-item {
  border-top: 0.0625rem solid #212121; /* 1px */
  padding-top: 0.625rem; /* 10px */
  padding-bottom: 0.625rem; /* 10px */
}

.about-accordion-item:last-child {
  border-bottom: 0.0625rem solid #212121; /* 1px */
}

.about-accordion-header {
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}

.about-accordion-content {
  margin-top: 0.25rem; /* 4px */
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.125rem; /* 18px */
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.about-accordion-content span,
.about-accordion-content a {
  margin-top: 0.625rem; /* 10px */
  margin-bottom: 0.3125rem; /* 5px */
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem; /* 12px */
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.03125rem; /* 0.5px */
  color: #757575;
  text-decoration: none;
  white-space: nowrap;
}

.press-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 0.9375rem; /* 15px */
}

.press-link::before {
  content: '';
  position: absolute;
  left: 0.0625rem; /* 1px */
  top: 50%;
  width: 0.375rem; /* 6px */
  height: 0.375rem; /* 6px */
  background-color: #000000;
  transform: translateY(-50%) scale(0);
  transform-origin: center center;
  opacity: 0;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

.press-link:hover,
.press-link:focus-visible {
  color: #212121;
}

.press-link:hover::before,
.press-link:focus-visible::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}


@media (max-width: 900px) {
  body {
    cursor: auto;
    overflow-x: hidden;
  }

  .scroll-mask-wrapper {
    top: 0;
    bottom: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .content-container {
    justify-content: flex-start;
    gap: 0px;
    padding-top: 0dvh;
    padding-bottom: 0px;
  }

  .film-project-container {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .film-card {
    order: 1;
    width: 90dvw;
    height: auto;
    padding: 0;
    flex-shrink: 0;
    overflow: hidden;
  }

  .film-card img {
    width: 100%;
    height: 75dvh;
    object-fit: cover;
    border-radius: 0px;
    display: block;
  }

  .film-desc {
    order: 2;
    width: 85vw;
    max-width: 85vw;
    padding-left: 0;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    min-height: 520px;
  }

  .film-desc-main {
    font-size: 20px;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .typewriter-text {
    font-size: 35px;
    width: 100%;
  }

  .typewriter-wrapper {
    padding-top: 4dvh;
    min-height: 280px;
    height: 280px;
    flex: 0 0 280px;
    width: 100%;
  }

  .typewriter-author {
    margin-top: 8px;
    flex: 0 0 auto;
  }

  .about-accordion {
    width: 100%;
    margin-bottom: 50px;
    height: auto;
    min-height: 120px;
  }

  .about-accordion-header,
  .about-accordion-label,
  .about-accordion-icon {
    font-size: 15px;
  }

  .about-accordion-content span,
  .about-accordion-content a {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  #cursor-ball {
    display: none !important;
  }

  .selected-work-text {
    padding: 0 5px;
    font-size: 12px;
    letter-spacing: -0.5px;
  }

  .header {
    height: 70px;
    padding: 5px 5vw 0;
    column-gap: 20px;
  }

  .header .left {
    height: 60px;
    display: flex;
    align-items: center;
  }

  .brand-logo {
    height: 40px;
    width: auto;
  }

  .header .center.desktop-only {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .horizontal-lines-wrapper {
    top: 70px;
    padding-top: 0;
  }

  .scroll-mask-wrapper {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .content-container {
    width: 100%;
    gap: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 110px;
    padding-bottom: 0px;
  }

  .hamburger-btn {
    position: relative;
    width: 30px;
    height: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .hamburger-btn span {
    width: 100%;
    height: 2px;
    background: #212121;
    border-radius: 10px;
    transform-origin: center;
    transition: all 0.3s ease-in-out;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .header {
    background-color: transparent;
    z-index: 1003;
  }

  body.menu-open .hamburger-btn span {
    background: #ffffff;
  }

  body.menu-open .hamburger-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  body.menu-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .hamburger-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  body.menu-open .vertical-line {
    z-index: 1001;
  }

  body.menu-open .brand-logo {
    filter: invert(1) brightness(2);
    transition: filter 0.3s ease;
  }

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 110px 5vw 20px 5vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: #212121;
    z-index: 1002;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu-overlay.active {
    visibility: visible;
    pointer-events: auto;
  }

  .menu-top,
  .menu-bottom {
    flex-shrink: 0;
  }

  .mobile-menu-overlay .center.mobile-only {
    padding: 0;
  }

  .mobile-menu-overlay .center.mobile-only .title {
    color: white;
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    font-weight: 700;
  }

  .mobile-menu-overlay .center.mobile-only .subtitle {
    margin-top: 0;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 300;
    opacity: 0.6;
  }

  .menu-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5vh;
  }

  .mobile-nav-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 0;
  }

  .mobile-menu-overlay .nav-btn {
    width: 100%;
    height: auto;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    text-align: left;
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    color: white;
    text-decoration: none;
    text-transform: none;
  }

  .horizontal-lines-wrapper-bottom {
    padding-bottom: 2vh;
  }

  .horizontal-lines-wrapper-bottom .selected-work-row {
    flex-direction: row;
    justify-content: space-between;
  }
}
