/* Base */
/* Local Fonts */
@font-face {
  font-family: "Neue Haas Grotesk Display Text";
  src: url("../../../src/fonts/NHaasGroteskTXPro-65Md.woff2") format("woff2"), url("../../../src/fonts/NHaasGroteskTXPro-65Md.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* Google Fonts - Uncomment to use */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Font variables */
:root {
  --font-primary: "Neue Haas Grotesk Display Text", Roboto, Helvetica, Arial,
    sans-serif;
  --font-secondary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  /* Uncomment to use Google Fonts */
  /* --font-primary: 'Open Sans', sans-serif; */
}

body {
  font-family: var(--font-primary);
  line-height: 1.5;
  color: black;
  font-size: 16px;
}

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

/* Components */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  position: fixed;
  bottom: calc(50% - 1.4rem);
  box-sizing: border-box;
  font-size: 2.2rem;
  letter-spacing: -0.05em;
  line-height: 2.4rem;
  transition: bottom 1.1s cubic-bezier(0.42, 0, 0.03, 1);
  z-index: 100;
}
.header--bottom {
  bottom: 0;
}
.header__inner {
  width: 50%;
}
.header__menu {
  width: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__menu__title {
  min-height: 2.2rem;
  white-space: nowrap;
  overflow: hidden;
}
.header__menu__links {
  position: relative;
  overflow: hidden;
  height: 2.4rem;
}
.header__menu__button {
  color: #d0d0d0;
  font-size: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transform: translateY(2.5rem);
  transition: transform 0.5s cubic-bezier(0.42, 0, 0.03, 1), opacity 0.3s cubic-bezier(0.42, 0, 0.03, 1);
  padding: 0 0.1rem 0 0;
}
.header__menu__button--selected {
  color: black;
}
.header__menu__button:hover {
  opacity: 0.5;
}
.header__numbers {
  display: flex;
}
.header__numbers-number--first {
  width: 6.2rem;
}
@media (max-width: 768px) {
  .header {
    font-size: 1.1rem;
    line-height: 1.15rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    bottom: auto;
    top: 0;
    padding: 1rem;
    pointer-events: none;
  }
  .header__inner {
    width: auto;
    order: 2;
    position: fixed;
    top: 50%;
    left: 0.7rem;
    transform: translateY(-50%);
    transition: top 1.1s cubic-bezier(0.42, 0, 0.03, 1), transform 1.1s cubic-bezier(0.42, 0, 0.03, 1);
  }
  .header__menu {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    order: 1;
  }
  .header__menu__title {
    position: fixed;
    top: 0.7rem;
    left: 0.7rem;
    min-height: 1.15rem;
    width: calc(100% - 2rem);
    margin-bottom: 0;
    order: 1;
    transition: top 1.1s cubic-bezier(0.42, 0, 0.03, 1);
  }
  .header__menu__links {
    width: auto;
    display: flex;
    justify-content: flex-end;
    height: 1.15rem;
    order: 3;
    position: fixed;
    bottom: 0.7rem;
    right: 0.7rem;
    transform: translateY(150%);
    transition: transform 0.6s cubic-bezier(0.42, 0, 0.03, 1);
  }
  .header__menu__button {
    font-size: 1.1rem;
    line-height: 1.15rem;
    pointer-events: auto;
  }
  .header__menu__button:hover {
    opacity: 1;
  }
  .header__numbers-number--first {
    width: 3rem;
  }
  .header--animate-step3 .header__menu__title {
    top: calc(100vh - 3rem);
  }
  .header--animate-step3 .header__inner {
    top: calc(100vh - 1.75rem);
    transform: translateY(0);
  }
  .header--animate-step4 .header__menu__links {
    transform: translateY(0);
  }
}

.header--animate-complete .header__numbers-number {
  color: black;
}
.header--animate-step3 {
  bottom: 0;
}
.header--animate-step4 .header__menu__button {
  transform: translateY(0);
}
.header--animate-step4 .header__menu__button:nth-child(2) {
  transition-delay: 0.1s;
}

.footer {
  border-top: 1px solid #eee;
  margin-top: 4rem;
  padding: 2rem 0;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer__copyright {
  font-size: 0.875rem;
  color: #666;
}

.project {
  margin-bottom: 4rem;
}
.project__description {
  margin: 2rem 0;
}
.project__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project__gallery-item {
  margin: 0;
}
.project__gallery-caption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #666;
}

body {
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body ::-moz-selection {
  background-color: #000;
  color: #fff;
}
body ::selection {
  background-color: #000;
  color: #fff;
}
body ::-moz-selection {
  background-color: #000;
  color: #fff;
}

.clock {
  position: relative;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  border: 1px solid;
}
.clock__hand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center bottom;
  background: #000;
}
.clock__hand--hour {
  width: 0.05rem;
  height: 3.8rem;
  margin-left: -0.1rem;
  bottom: 50%;
  top: auto;
}
.clock__hand--minute {
  width: 0.05rem;
  height: 5.4rem;
  margin-left: -0.075rem;
  bottom: 50%;
  top: auto;
}
.clock__hand--second {
  width: 0.05rem;
  height: 5.4rem;
  margin-left: -0.05rem;
  bottom: 50%;
  top: auto;
  opacity: 0.2;
}
.clock__center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.375rem;
  height: 0.375rem;
  margin: -0.1875rem 0 0 -0.1875rem;
  background: #000;
  border-radius: 50%;
  z-index: 2;
}
.clock__marker {
  position: absolute;
  width: 0.06rem;
  height: 0.35rem;
  background: #000;
  top: 0.15rem;
  left: 50%;
  margin-left: -0.04rem;
  transform-origin: 50% 5.8rem;
}
.clock__title {
  text-align: center;
  font-weight: bold;
  margin-bottom: 5px;
}
.clock__time {
  text-align: center;
  font-family: monospace;
  margin-top: 5px;
}

.home__about-clock {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .clock {
    width: 6.5rem;
    height: 6.5rem;
  }
  .clock__hand--hour {
    height: 2rem;
  }
  .clock__hand--minute {
    height: 2.9rem;
  }
  .clock__hand--second {
    height: 2.9rem;
  }
  .clock__center {
    width: 0.2rem;
    height: 0.2rem;
    margin: -0.1rem 0 0 -0.1rem;
  }
  .clock__marker {
    height: 0.2rem;
    top: 0.08rem;
    transform-origin: 50% 3.17rem;
  }
}
/* Layout */
/* Pages */
.home {
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.home__section--projects {
  position: relative;
  transition: all 0.5s ease-in-out;
  height: calc(100dvh - 2rem);
}
.home__section--projects.project-open .home__section__cover {
  transform: translateX(calc(50vw - 1rem));
  width: calc(50vw - 1rem);
  z-index: 2;
  /* Height will be adjusted by JavaScript based on the image's aspect ratio */
}
.home__about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.home__about-introduction {
  width: 100%;
}
.home__about-introduction p {
  font-size: 2.2rem;
  letter-spacing: -0.05em;
  line-height: 2.1rem;
}
.home__about-clock {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
.home__about-contact {
  width: 100%;
  display: flex;
  font-size: 2.2rem;
  letter-spacing: -0.05em;
  line-height: 2.1rem;
  margin: 1rem 0 0 0;
}
.home__about-contact-left {
  width: 50%;
}
.home__about-contact-right {
  width: 50%;
}
.home__about-contact a:hover {
  color: #d0d0d0;
}
.home__section__table {
  width: 100%;
  letter-spacing: -0.03em;
  line-height: 1.3rem;
}
.home__section__table-row {
  display: flex;
}
.home__section__table-row:hover {
  color: #d0d0d0;
  cursor: pointer;
}
.home__section__table-row--first {
  color: #d0d0d0;
  margin: -0.2rem 0 0.15rem 0;
}
.home__section__table-cell {
  width: 25%;
}
.home__section__cover {
  width: 63vh;
  height: calc(100dvh - 6.8rem);
  margin-top: 1.7rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
  transform: translateX(calc(50vw - 50%));
  transition: opacity 0.3s ease-in-out;
  opacity: 0; /* Hidden by default */
}
.home__section__cover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: 100%;
  transition: width 0.7s cubic-bezier(0.42, 0, 0, 0.9);
}
.home__section__cover-nav {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 10;
  display: none;
  cursor: none;
}
.home__section__cover-nav:hover::before {
  opacity: 0.8;
}
.home__section__cover-nav--prev {
  left: 0;
  cursor: w-resize;
}
.home__section__cover-nav--next {
  right: 0;
  cursor: e-resize;
}
.home__section__project-details {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: calc(100dvh - 5.3rem);
  padding: 1.7rem 1rem 0 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.home__section__project-details.active {
  opacity: 1;
  pointer-events: auto;
}
.home__section__project-description {
  font-size: 2.2rem;
  letter-spacing: -0.05em;
  line-height: 2.1rem;
  max-height: calc(100% - 3rem);
  overflow-y: auto;
}
.home__section__project-description p {
  margin-bottom: 1.9rem;
}
.home__section__back-button {
  background: none;
  border: none;
  color: inherit;
  font-size: 2.2rem;
  letter-spacing: -0.05em;
  line-height: 2.1rem;
  padding: 0.5rem 0 0 0;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  color: #d0d0d0;
  transition: all 0.3s ease;
}
.home__section__back-button:hover {
  color: rgb(0, 0, 0);
}

@media (max-width: 768px) {
  .home {
    padding: 0.7rem;
  }
  .home__section--projects {
    height: calc(100dvh - 4.8rem);
  }
  .home__section--projects.project-open .home__section__table {
    display: none;
  }
  .home__section--projects.project-open .home__section__cover {
    transform: none;
    width: 100vw;
    height: 50dvh;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    transition: opacity 0.3s ease-in-out;
    overflow: hidden;
  }
  .home__section--projects.project-open .home__section__cover-image {
    width: 100%;
    height: 100%;
    max-height: 50dvh;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
  }
  .home__section--projects.project-open .home__section__cover img {
    width: 100%;
    height: 100%;
    max-height: 50dvh;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
  }
  .home__section--projects.project-open .home__section__project-details {
    z-index: 2;
  }
  .home__about-introduction p {
    font-size: 1.1rem;
    line-height: 1.15rem;
  }
  .home__about-contact {
    flex-direction: column;
    font-size: 1.1rem;
    line-height: 1.15rem;
  }
  .home__about-contact-left, .home__about-contact-right {
    width: 100%;
    margin-bottom: 1rem;
  }
  .home__section__table {
    font-size: 0.6rem;
    line-height: 0.6rem;
  }
  .home__section__table-row {
    margin: 0 0 0.2rem 0;
  }
  .home__section__table-row--first {
    margin: -0.15rem 0 0.8rem 0;
  }
  .home__section__table-cell {
    width: 25%;
  }
  .home__section__table-cell:nth-child(1) {
    width: 15%;
  }
  .home__section__table-cell:nth-child(2) {
    width: 30%;
  }
  .home__section__table-cell:nth-child(3) {
    width: 30%;
  }
  .home__section__table-cell:nth-child(4) {
    width: 25%;
  }
  .home__section__cover {
    width: calc(100vw - 2rem);
    height: calc(100dvh - 8.6rem);
    margin-top: 3.8rem;
    transition: opacity 0.3s ease-in-out;
  }
  .home__section__cover-image {
    width: auto;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
  }
  .home__section__project-details {
    width: 100vw;
    position: fixed;
    top: 50dvh;
    left: 0;
    height: 50dvh;
    padding: 1rem 0.7rem 4rem 0.7rem;
    overflow: hidden;
    background: white;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
  }
  .home__section__project-details.active {
    opacity: 1;
    pointer-events: auto;
  }
  .home__section__project-description {
    font-size: 1.1rem;
    line-height: 1.15rem;
    position: relative;
    z-index: 0;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    flex: 1;
    min-height: 0;
  }
  .home__section__project-description p {
    margin-bottom: 1rem;
  }
  .home__section__project-description::after {
    content: "";
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 3rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    display: block;
    margin-top: -3rem;
  }
  .home__section__project-description.scrolled-to-bottom::after {
    opacity: 0;
  }
  .home__section__back-button {
    font-size: 1.1rem;
    line-height: 1.15rem;
    position: relative;
    padding: 0;
    z-index: 2;
    background: white;
    flex-shrink: 0;
    text-align: left;
  }
}

/*# sourceMappingURL=styles.css.map*/