::-webkit-scrollbar {
    display: none;
}

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

@font-face {
  font-family: InstrumentSerif-Regular;
  src: url('Fonts/Instrument_Serif/InstrumentSerif-Regular.ttf');

}

@font-face {
  font-family: InstrumentSerif-Italic;
  src: url('Fonts/Instrument_Serif/InstrumentSerif-Italic.ttf');
}

@font-face {
  font-family: Instrumentans-Regular;
  src: url('Fonts/Instrument_Sans/InstrumentSans-VariableFont_wdth,wght.ttf');
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  font-family: "InstrumentSerif-Regular", serif;
  font-weight: 700;
  font-size: 58px;
  color:  rgb(0, 0, 255);
}

p, a {
  text-decoration: none;
  text-transform: uppercase;
  font-family: "InstrumentSerif-Regular", serif;
  font-size: 15px;
  font-weight: 500;
  color: #00ff22;
  transition: color 0.3s;

}

x, b {
  text-decoration: none;
  font-family: "InstrumentSans-Regular", sans-serif;
  font-size: 15px;
  line-height: 0.7em;
  font-weight: 500;
  color: rgb(0, 0, 255);
  transition: color 0.3s;
}

.hi {
  position: fixed;
  top: 80px;
  left: 40%;
  transform: translateX(-50%);
  background-color: white;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  color: #000000;
  line-height: 1.2em;
  z-index: 10;
  cursor: pointer;
}

/* show small preview image on hover */
.hi::after {
  content: "";
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(0) scale(0.96);
  width: 220px;
  height: 140px;
  background-image: url('Material/profilbld2.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.hi:hover { color: #00ff22; }
.hi:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(8px) scale(1);
}


nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  /*mix-blend-mode: difference;*/
  z-index: 10050; /* keep nav above other fixed elements so links stay clickable */
  pointer-events: auto;
}

.nav-items {
  position: fixed;
  
  left: 40%;
  display: flex;
  gap: 20px;
}

nav a, 
.nav-items a {
  text-transform: none;
}

.whitespace.w-1 {
  width: 100vw;
  height: 50vh;
}


.whitespace.w-2 {
  width: 100vw;
  height: 45vh;
}

.gallery {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20em;
}

.look {
  position: absolute;
  top: 200px;
  left: 60%;
  transform: translateX(-50%);
  background-color: white;
  font-family: "Roboto", serif;
  font-weight: 200;
  font-size: 28px;
  color: rgb(0, 0, 255);
  line-height: 1.2em;
  z-index: 10;
  text-align: right;
}


.project {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
}

.index {
  flex: 1;
  padding-left: 20px;
  height: 0;
}

.images {
  flex: 6;
  display: flex;
  flex-direction: column;
  gap: 1em;
  height: 100vh;
}

.img {
  flex: 1;
  width: 200px;
  background-color: lightgray;
  overflow: hidden;
}

.img img {
  opacity: 0.9;
}

.index .mask {
  position: absolute;
  top: 0;
  left: 2em;
  height: 70px;
  overflow: hidden;
  will-change: transform;
}

.index .mask h1 {
  position: relative;
  will-change: transform;
}

.index .mask h1 span {
  position: relative;
  display: inline-block;
  will-change: transform;
}

.digit-wrapper, 
.digit-wrapper span {
  display: inline-block;
  position: relative;
  will-change: transform;
}

.project-names {
  position: fixed;
  width: 200px;
  top: 50vh;
  left: 40%;
  transform: translateX(0%);
}

.indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}

.symbol {
  width: 70px;
  height: 70px;
  background-image: url('Material/stern2.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.name {
  height: 18px;
}

.name p{
  color: grey;
}

.name.active p {
  color: black;
}

.preview-img {
  position: fixed;
  bottom: 2em;
  right: 2em;
  max-width: 40vw;
  height: calc(50vh - 2em);
  opacity: 0.9;
}

/* stacked preview image + short description */
.preview-img {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.preview-img img {
  width: 100%;
  max-height: calc(100% - 3.2em);
  object-fit: cover;
}
.preview-desc {
  height: 3.2em;
  overflow: hidden;
}
.preview-desc .preview-text {
  font-family: "InstrumentSerif-Regular", serif;
  font-size: 13px;
  color: #222;
  line-height: 1.2em;
}

.contact-info {
  position: fixed;
  bottom: 50vh;
  left: 30vw;
  font-family: "Roboto", serif;
  font-size: 13px;
  color: #000000;
  line-height: 1.3em;
  z-index: 10;
  cursor: pointer;
}

.contact-info h2 {
  text-decoration: none;
  color: #000000;
  line-height: 1em ;
}

.contact-info p {
  text-decoration: none;
  color: #000000;
  line-height: 2em;
}

.progress-bar {
  position: fixed;
  top: 0;
  right: 0;
  width: 8px;
  height: 100vh;
  background-color: #000;
  transform-origin: top;
  transform: scaleY();
}

.footer p {
  position: fixed;
  bottom: 2em;
  left: 40%;
  text-transform: none;
  padding-right: 10px;
}

@media (max-width: 1000px) {
  /*.nav-items,*/
  .footer p {
    left: 60%;
  };

  .index {
    flex: 1.5;
  }

  .project-names {
    left: 60%;
  }

  .preview-img {
    top: 6em;
    width: calc(45% - 4em);
    height: calc(50vh - 8em);
  }

  .preview-img img {
    height: calc(100% - 3.2em);
  }
}

/* Custom cursor styles (JS-enabled) */
body.use-custom-cursor {
  cursor: none;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #00ff22;
  background: rgba(0, 0, 0, 0);
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  transition: transform 0.12s ease, background-color 0.18s ease, opacity 0.18s;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor.cursor--hover {
  transform: translate(-50%, -50%) scale(4.2);
  background: rgb(0, 0, 255);
  border: #000;
  mix-blend-mode: difference;
  box-shadow: #00ff22 0 0 8px 2px;
}

.cursor.cursor--active {
  transform: translate(-50%, -50%) scale(0.85);
}

/* Hide custom cursor on touch / small screens */
@media (hover: none), (max-width: 800px) {
  body.use-custom-cursor { cursor: auto; }
  .cursor { display: none; }
}