@font-face {
  font-family: "BentonSansCond";
  src: url("fonts/BentonSansCond-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "BentonSansCond";
  src: url("fonts/BentonSansCond-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "BentonSansCond";
  src: url("fonts/BentonSansCond-Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

:root {
  --pink: #bd3992;
  --bg: #f1f1f1;
  --text: #1a1a1a;
  --text-muted: #666;
  --on-pink: #f1f1f1;
  --surface-border: rgba(0, 0, 0, 0.1);
  --surface-shadow: rgba(0, 0, 0, 0.1);
  --font: "BentonSansCond", "Oswald", "Arial Narrow", sans-serif;
  --sidebar-width: 300px;
}

[data-theme="dark"] {
  --bg: #141414;
  --text: #f1f1f1;
  --text-muted: #999;
  --surface-border: rgba(255, 255, 255, 0.15);
  --surface-shadow: rgba(0, 0, 0, 0.4);
}

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

html, body {
  height: 100%;
  background-color: var(--bg);
  font-family: var(--font);
  font-weight: 500;
  overflow-x: hidden;
  cursor: default;
  transition: background-color 0.3s ease;
}

.nav-link-d {
  position: relative;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: navGlitch 4s ease-out infinite;
  color: var(--text);
  font-size: 19px;
  align-self: flex-start;
}

.side-nav .nav-link-d:nth-child(2) { animation-delay: 0.3s; }
.side-nav .nav-link-d:nth-child(3) { animation-delay: 0.9s; }
.side-nav .nav-link-d:nth-child(4) { animation-delay: 1.5s; }

@keyframes navGlitch {
  0%, 100% { transform: translate(0, 0); letter-spacing: 0.5px; }
  4% { transform: translate(-1.5px, 0.5px); letter-spacing: 1.5px; }
  5% { transform: translate(1px, -0.5px); letter-spacing: 0.5px; }
  6% { transform: translate(0, 0); }
  47% { transform: translate(0, 0); }
  48% { transform: translate(1.5px, 0); letter-spacing: 1px; }
  49% { transform: translate(-1px, 0.5px); }
  50% { transform: translate(0, 0); letter-spacing: 0.5px; }
}

.nav-link-d::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -4px;
  top: -4px;
  background-color: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s steps(4, end);
  z-index: -1;
}

.nav-link-d:hover {
  color: var(--on-pink);
  animation-play-state: paused;
  letter-spacing: 2px;
}

.nav-link-d:hover::before {
  transform: scaleX(1);
}

.nav-link-d.active {
  animation: none;
  color: var(--pink);
}

.nav-link-d.active::before {
  transform: scaleX(0) !important;
}

.nav-link-d.active:hover {
  color: var(--pink);
  letter-spacing: 0.5px;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding: 0 24px;
  text-align: center;
}

.roles {
  position: absolute;
  top: calc(50% + 90px);
  left: 24px;
  right: 24px;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-link-home {
  position: absolute;
  top: calc(50% - 100px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--pink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.about-link-home::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background-color: var(--pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.about-link-home:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.logo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 140px);
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
  background-image: url("imgs/textura.jpg");
  background-size: 250% auto;
  background-position: 30% 45%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 50;
  background: none;
  border: none;
  color: var(--pink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3px;
  cursor: pointer;
  padding: 4px 6px;
}

.role {
  position: relative;
  display: inline-block;
  color: var(--pink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.3px;
  cursor: pointer;
  padding: 4px 2px;
}

.role::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.role:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.role:hover {
  letter-spacing: 1px;
}

.preview-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  width: 100%;
  height: 320px;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.preview-strip-top {
  bottom: auto;
  top: 20px;
}

.preview-track {
  display: flex;
  align-items: center;
  gap: 16px;
}

.preview-track img {
  height: 250px;
  width: auto;
  object-fit: cover;
  filter: grayscale(30%);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.preview-track img.show {
  opacity: 1;
  transform: translateY(0);
}

.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 48px 0 40px 24px;
  z-index: 10;
}

.side-logo {
  position: fixed;
  left: 24px;
  bottom: 32px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-decoration: none;
  background-image: linear-gradient(115deg, var(--pink) 35%, #eba9d3 50%, var(--pink) 65%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logoShimmer 7s ease-in-out infinite;
}

@keyframes logoShimmer {
  0%, 100% { background-position: 130% 0; }
  50% { background-position: -30% 0; }
}

.content {
  margin-left: var(--sidebar-width);
  width: calc(100vw - var(--sidebar-width));
  padding: 48px 60px 80px;
}

.entry {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 96px;
  gap: 32px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-text-block {
  max-width: 660px;
}

.entry:nth-child(odd) .entry-text-block {
  align-self: flex-end;
  text-align: right;
}

.entry:nth-child(odd) .entry-images,
.entry:nth-child(odd) .entry-media-block {
  align-self: flex-end;
}

.entry:nth-child(even) .entry-text-block {
  align-self: flex-start;
  text-align: left;
}

.entry:nth-child(even) .entry-images,
.entry:nth-child(even) .entry-media-block {
  align-self: flex-start;
}

.entry-media-block {
  max-width: 1000px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}

.entry-category {
  color: var(--pink);
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 16px;
}

.entry-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 14px;
}

.entry-subtitle {
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.entry-selection {
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

.entry-credit {
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-muted);
  margin: 12px 0 20px;
}

.subtitle-glitch {
  position: relative;
  display: inline-block;
  color: var(--pink);
  text-decoration: none;
  cursor: pointer;
  font-style: normal;
}

.subtitle-glitch::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: var(--pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.subtitle-glitch:hover::after,
.subtitle-glitch.tapped::after {
  transform: scaleX(1);
  transform-origin: left;
}

.entry {
  position: relative;
}

.entry-hover-slot {
  position: absolute;
  top: 0;
  height: 100%;
  width: 640px;
  max-width: 55%;
  display: flex;
  align-items: center;
  gap: 20px;
  pointer-events: none;
}

.entry:nth-child(odd) .entry-hover-slot {
  left: 0;
  justify-content: flex-start;
}

.entry:nth-child(even) .entry-hover-slot {
  right: 0;
  justify-content: flex-end;
}

.entry-hover-slot img {
  height: 260px;
  width: auto;
  min-width: 160px;
  max-width: 100%;
  flex-shrink: 0;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.entry-hover-slot img.show {
  opacity: 1;
  transform: translateY(0);
}

.entry-images {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.entry-images img {
  width: 500px;
  max-width: 100%;
  height: auto;
  display: block;
}

.entry-text {
  max-width: 660px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  text-align: justify;
  color: var(--text);
}

.entry-text + .entry-text {
  margin-top: 20px;
}

@media (max-width: 900px) {
  :root {
    --sidebar-width: 220px;
  }

  .content {
    padding: 40px 24px 80px;
  }

  .entry-images img {
    width: 100%;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 50px;
  flex-shrink: 0;
}

.about-bio-block {
  flex: 1 1 0;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-bio-block .entry-category {
  margin-bottom: 0;
}

.about-bio {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  text-align: justify;
  color: var(--text);
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-bio-block .about-block {
  margin-top: 12px;
}

.cv-preview {
  display: block;
  width: 320px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 12px 28px var(--surface-shadow);
}

.cv-preview img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.3s ease;
}

.cv-preview:hover img {
  filter: grayscale(0%);
}

.about-link {
  position: relative;
  display: inline-block;
  width: fit-content;
  color: var(--pink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.about-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: var(--pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.about-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.more-link {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-top: 40px;
  text-align: center;
}

.obra-media {
  flex: 1 1 300px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.obra-media video {
  width: 100%;
  height: auto;
  display: block;
}

.obra-caption {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.caption-glitch {
  display: inline-block;
  text-decoration: none;
  color: var(--pink);
  font-weight: 500;
}

@media (max-width: 640px) {
  .roles {
    flex-direction: column;
    gap: 12px;
  }

  .preview-strip {
    height: 120px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 20px;
  }

  .preview-track img {
    height: 90px;
    flex-shrink: 0;
  }
}

@media (max-width: 700px) {
  .theme-toggle {
    top: auto;
    bottom: 16px;
    right: 16px;
  }

  .side-nav {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    padding: 24px 20px;
  }

  .nav-link-d {
    font-size: 13px;
  }

  .side-logo {
    position: static;
    display: block;
    width: 100%;
    text-align: center;
    font-size: 20px;
    padding: 30px 20px 40px;
    margin-top: 20px;
  }

  .content {
    margin-left: 0;
    width: 100%;
    padding: 24px 20px 60px;
  }

  .entry {
    gap: 20px;
    margin-bottom: 60px;
  }

  .entry-text-block,
  .entry-images,
  .entry-media-block {
    align-self: flex-start !important;
    text-align: left !important;
    max-width: 100%;
  }

  .entry-category {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .entry-title {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .entry-subtitle,
  .entry-text {
    font-size: 15px;
  }

  .entry-images img {
    width: 100%;
  }

  .entry-media-block {
    flex-direction: column;
  }

  .obra-media {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .entry-hover-slot {
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    margin-top: 4px;
  }

  .entry-hover-slot img {
    height: 140px;
  }

  .about-top {
    flex-direction: column;
    gap: 30px;
  }

  .about-side {
    width: 100%;
    gap: 40px;
  }

  .about-bio-block {
    min-width: 0;
    width: 100%;
  }

  .cv-preview {
    width: 200px;
    max-width: 60%;
  }
}