/* ============================================
   VICTORIA WILKE — Portfolio
   Layout: edelinego.com
   ============================================ */

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: url('../fonts/NeueHaasDisplayLight.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: url('../fonts/NeueHaasDisplayRoman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: url('../fonts/NeueHaasDisplayMediu.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Haas Grotesk';
  src: url('../fonts/NeueHaasDisplayBold.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  color: #000000;
  font-family: 'Neue Haas Grotesk', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

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

/* ── Cursor ──────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease, background 0.18s ease;
}

.cursor.on-link {
  width: 8px;
  height: 8px;
  background: #fff;
  border: 1px solid #000;
}

/* ── Page wrapper ────────────────────────── */
.page {
  padding: 18px 18px 24px 18px;
  position: relative;
  z-index: 2;
}

/* ── Intro header ────────────────────────── */
.intro {
  display: grid;
  grid-template-columns: 130px 1fr;
  margin-bottom: calc(100vh - 498px);
}

.intro-name {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 1.55;
  letter-spacing: 0;
}

.intro-bio {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 1.55;
  max-width: 460px;
  letter-spacing: 0;
}

/* ── Selected Work ───────────────────────── */
.work-label {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin-bottom: 20px;
  letter-spacing: 0;
}

.work-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.work-item {
  font-size: clamp(35px, 4.2vw, 61px);
  font-weight: 400;
  color: #C6C6C6;
  line-height: 1.1;
  text-decoration: none;
  transition: color 0.1s ease;
  display: inline-block;
  letter-spacing: -0.02em;
}

.work-item:hover {
  color: #000;
}

/* ── Hover preview ───────────────────────── */
.preview {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.2s ease;
}

.preview.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.preview img {
  display: block;
  max-width: clamp(300px, 38vw, 600px);
  max-height: 72vh;
  width: auto;
  height: auto;
}

#portraitPreview {
  width: 160px;
  aspect-ratio: 811 / 2157;
}

/* ── Folder preview ──────────────────────── */
.folder-preview {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.2s ease;
}

.folder-preview.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.folder-icon-img {
  width: 160px;
  height: 160px;
  display: block;
}

/* ── Footer ──────────────────────────────── */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 14px 18px;
  background: #fff;
  z-index: 90;
}

.footer-right {
  display: flex;
  align-items: center;
}

.horse-gif {
  position: fixed;
  right: 100px;
  bottom: 70px;
  width: 237px;
  height: auto;
  pointer-events: auto;
  z-index: 91;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-copy {
  font-size: 16px;
  color: #888;
}

.archive-link {
  font-size: 16px;
  color: #888;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.12s, text-decoration-color 0.12s;
  text-decoration-color: #888;
}

.archive-link:hover {
  color: #000;
  text-decoration-color: transparent;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 16px;
  font-weight: 400;
  color: #ABABAB;
  transition: color 0.12s;
}

.footer-links a:hover {
  color: #000;
}

/* ── Project page ────────────────────────── */
.project-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  padding: 14px 18px;
  border-bottom: 1px solid #E8E8E8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-name-heading {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 1.4;
}

.project-desc-text {
  font-size: 16px;
  font-weight: 400;
  color: #888;
  max-width: 560px;
  line-height: 1.5;
}

.project-tags-text {
  font-size: 16px;
  color: #888;
}

.project-back {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  white-space: nowrap;
  transition: opacity 0.12s;
}

.project-back:hover {
  opacity: 0.45;
}


.project-content {
  padding: 0 18px 80px;
}

.project-img-single {
  width: 75%;
  margin: 0 auto 8px;
  overflow: hidden;
  background: #E8E6E1;
}

.project-img-single img {
  width: 100%;
  height: auto;
  display: block;
}

.project-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 75%;
  margin: 0 auto 8px;
}

.project-img-grid img {
  width: 100%;
  height: auto;
  display: block;
  background: #E8E6E1;
}

/* ── Mobile ──────────────────────────────── */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor { display: none; }

  .intro {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 60px;
  }

  .work-item {
    font-size: clamp(36px, 10vw, 56px);
  }

  .preview,
  .decoration { display: none; }

  .footer {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
}
