* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow-x: hidden;

  /* perfect centering */
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-background {
  position: fixed;
  inset: 0;
  z-index: -10;
}

.video-background video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  filter: blur(12px);
  transform: scale(1.12);

  opacity: 0.85;
}

/* Window */
.window {
  width: clamp(420px, 60vw, 620px);
  max-height: 85vh;
  background: #efefef;
  border-radius: 18px;
  padding: clamp(16px, 3vw, 28px);
  overflow-y: auto;
}

/* HEADER (separate font) */
h1 {
  font-family: "Zalando Sans", sans-serif;
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
  color: rgba(0,0,0,0.82);
  font-variation-settings: 'slnt' 0, 'MONO' 0.5;
  white-space: nowrap;
}

/* Your bodycopy system */
.bodycopy {
  font-size: clamp(0.65rem, 0.75vw, 1.2rem);
  font-weight: 200;
  color: rgba(0, 0, 0, 0.85);
  font-family: "Diatype Semi-Mono", monospace;
  line-height: 1.2;
  letter-spacing: 0;
  font-variation-settings: 'slnt' 0, 'MONO' 0.66;
}

.bodycopy_bold {
  font-size: clamp(0.55rem, 0.65vw, 1rem);
  font-weight: 900;
  color: rgba(0, 0, 0, 0.85);
  font-family: "Diatype Semi-Mono", monospace;
  line-height: 1.2;
  letter-spacing: 0;
  font-variation-settings: 'slnt' 0, 'MONO' 0.66;
}

.line2 {
  color: rgba(0,0,0,0.5);
}

.email {
  color: rgba(0,0,0,0.85);
}

.spacer-xl {
  height: 40px;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 8px 0;
  
}

/* Columns */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 8px;
  
}

.collapsed-cv {
  max-height: 100px;
  overflow: hidden;

  transition: max-height 0.5s ease;
}

.collapsed-cv.expanded {
  max-height: 5000px;
}

/* Buttons */
button {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  font-size: clamp(0.55rem, 0.65vw, 1rem);
  font-weight: 200;
  color: rgba(0, 0, 0, 0.5);
  font-family: "Diatype Semi-Mono", monospace;
  line-height: 1.2;
  letter-spacing: 0;
  font-variation-settings: 'slnt' 0, 'MONO' 0.66;
}

button.active {
  border-color: black;
}

.expand-btn {
  text-align: center;
  cursor: pointer;

  padding: 20px;
  font-size: 32px;

  color: rgba(0,0,0,0.5);

  user-select: none;
}

.expand-btn:hover {
  opacity: 0.6;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  font-size: 48px;
  color: white;

  cursor: pointer;
  user-select: none;

  padding: 20px;
}

.left {
  left: 20px;
}

.right {
  right: 20px;
}

/* Project header */
.project-head {
  display: grid;
  grid-template-columns: 2fr 1fr;
  margin: 10px 0;
}

.project {
  opacity: 1;
  transition: opacity 1s ease;
}

.project.hidden {
  opacity: 0;
  pointer-events: none;
}

.project.collapsed {
  display: none;
}

.project-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.muted {
  color: rgba(0,0,0,0.6);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;

  cursor: pointer;

  display: block;
}



/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}