:root {
  --showcase-bg: #fff;
  --showcase-text: #1a1a1a;
  --showcase-muted: #7f7f7f;
  --showcase-border: #00000014;
  --brand-red: #a51d1d;
  --serif-font: "Playfair Display", serif;
  --sans-font: "Inter", sans-serif;
  --ease-accordion: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-smooth: all 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}
body.work-page-content {
  font-family: var(--sans-font);
  background-color: var(--showcase-bg) !important;
  color: var(--showcase-text) !important;
}
body.work-page-content .page-wrapper {
  box-shadow: none;
  background-color: var(--showcase-bg) !important;
}
.work-showcase {
  box-sizing: border-box;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}
.bookshelf-intro {
  box-sizing: border-box;
  grid-template-columns: 1.2fr 1fr;
  align-items: flex-end;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto 90px;
  padding: 0 40px;
  display: grid;
}
.intro-left {
  flex-direction: column;
  gap: 16px;
  display: flex;
}
.bookshelf-headline {
  font-family: var(--sans-font), sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--showcase-text);
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 700;
  line-height: 0.95;
}
.intro-right {
  flex-direction: column;
  gap: 32px;
  padding-bottom: 12px;
  display: flex;
}
.intro-paragraph {
  font-family: var(--sans-font);
  color: var(--showcase-muted);
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
}
.intro-scrolldown {
  font-family: var(--sans-font);
  letter-spacing: 0.15em;
  color: var(--showcase-text);
  font-size: 11px;
  font-weight: 700;
}
.bookshelf-container {
  box-sizing: border-box;
  border-bottom: 1px solid var(--showcase-border);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}
.bookshelf-item {
  border-top: 1px solid var(--showcase-border);
  width: 100%;
  height: 110px;
  transition:
    height 0.65s var(--ease-accordion),
    background-color 0.5s ease,
    opacity 0.5s ease;
  will-change: height, background-color, opacity;
  background-color: #0000;
  position: relative;
  overflow: hidden;
}
.bookshelf-link {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  color: inherit;
  z-index: 5;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  padding: 0 40px;
  text-decoration: none;
  display: grid;
  position: relative;
  opacity: 1 !important;
}
.bookshelf-number {
  font-family: var(--sans-font);
  color: var(--showcase-text);
  letter-spacing: 0.02em;
  transition: transform 0.65s var(--ease-accordion);
  will-change: transform;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  transform: translateY(0);
}
.bookshelf-content-texto {
  transition: transform 0.65s var(--ease-accordion);
  will-change: transform;
  flex-direction: column;
  gap: 8px;
  display: flex;
  transform: translateY(0);
}
.bookshelf-title {
  font-family: var(--sans-font);
  color: var(--showcase-text);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  word-break: break-word;
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 1;
  transition: color 0.4s;
}
.bookshelf-hover-reveal {
  opacity: 0;
  pointer-events: none;
  width: auto;
  height: auto;
  transition:
    transform 0.7s var(--ease-accordion),
    opacity 0.6s var(--ease-accordion);
  will-change: transform, opacity;
  z-index: 10;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  display: flex;
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%) translateY(10px) scale(0.94) rotate(1.5deg);
}
.hover-character {
  transition: transform 0.8s var(--ease-accordion);
  will-change: transform;
  filter: grayscale() contrast(120%) drop-shadow(1px 1px #0000001a);
  mix-blend-mode: luminosity;
  opacity: 0.85;
  font-size: 2.5rem;
  line-height: 1;
  transform: scale(0.8) rotate(-10deg);
}
.hover-text {
  font-family: var(--serif-font);
  color: var(--showcase-text);
  margin: 0;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.4;
}
.bookshelf-item:hover {
  background-color: #00000004;
  height: 120px;
}
.bookshelf-item:hover .bookshelf-number,
.bookshelf-item:hover .bookshelf-content-texto,
.bookshelf-item:hover .bookshelf-desc {
  transform: translateY(-2px);
}
.bookshelf-item:hover .bookshelf-title {
  color: #000;
}
.bookshelf-item:hover .bookshelf-hover-reveal {
  opacity: 1;
  transform: translateY(-50%) translateY(0) scale(1) rotate(-2deg);
}
.bookshelf-item:hover .hover-character {
  transform: scale(1) rotate(5deg);
}
.bookshelf-container:hover .bookshelf-item:not(:hover) {
  opacity: 0.35;
}
@media (width<=1100px) {
  .bookshelf-intro {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
  }
  .bookshelf-link {
    grid-template-columns: 80px 1fr auto;
  }
  .bookshelf-hover-reveal {
    width: 100px;
    padding: 0;
    right: 20px;
  }
  .bookshelf-item:hover {
    height: 140px;
  }
  .bookshelf-item:hover .bookshelf-number,
  .bookshelf-item:hover .bookshelf-content-texto {
    transform: translateY(-2px);
  }
}
@media (width<=768px) {
  .work-showcase {
    padding: 130px 0 60px;
  }
  .bookshelf-intro {
    margin-bottom: 40px;
    padding: 0 24px;
  }
  .bookshelf-headline {
    word-break: break-word;
    font-size: clamp(3rem, 12vw, 4rem);
  }
  .bookshelf-container {
    padding: 0 24px;
  }
  .bookshelf-item {
    height: auto;
    min-height: 100px;
    padding: 24px 0;
    transition: background-color 0.4s;
  }
  .bookshelf-item:hover {
    background-color: #0000;
    height: auto;
  }
  .bookshelf-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 20px;
    display: flex;
  }
  .bookshelf-number {
    font-size: 2rem;
  }
  .bookshelf-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  .bookshelf-hover-reveal {
    pointer-events: auto;
    text-align: left;
    box-sizing: border-box;
    flex-direction: row;
    width: 100%;
    height: auto;
    margin-top: 20px;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    opacity: 1 !important;
    transform: none !important;
  }
  .hover-character {
    font-size: 2.5rem;
    transform: scale(1) !important;
  }
  .bookshelf-item:hover .bookshelf-number,
  .bookshelf-item:hover .bookshelf-content-texto {
    transform: none !important;
  }
  .bookshelf-container:hover .bookshelf-item:not(:hover) {
    opacity: 1;
  }
}
#book-transition-overlay {
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  perspective: 1400px;
  perspective-origin: 50%;
  background: #fff;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}
#book-transition-overlay.is-active {
  pointer-events: all;
  opacity: 1;
}
.book-scene {
  width: min(480px, 80vw);
  height: min(340px, 60vw);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  position: relative;
}
.book-body {
  transform-style: preserve-3d;
  will-change: transform;
  position: absolute;
  inset: 0;
}
.book-spine {
  transform-origin: 0;
  z-index: 1;
  will-change: transform;
  background: #111;
  width: 28px;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(-90deg) translateZ(0);
}
.book-back {
  z-index: 0;
  will-change: transform;
  background: #1a1a1a;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateZ(-4px);
}
.book-pages {
  z-index: 1;
  will-change: transform;
  background: #fff;
  justify-content: center;
  align-items: center;
  width: 98%;
  height: 98%;
  display: flex;
  position: absolute;
  top: 1%;
  left: 1%;
  overflow: hidden;
  transform: translateZ(-2px);
}
.book-pages-lines {
  display: none;
}
.book-cover {
  transform-origin: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  z-index: 10;
  will-change: transform;
  border-radius: 4px;
  transition: none;
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(0);
}
.book-cover-front {
  backface-visibility: hidden;
  background: #1a1a1a;
  border: 1px solid #ffffff1a;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
  display: flex;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.book-cover-num {
  display: none;
}
.book-cover-title {
  color: #fff;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  word-break: break-word;
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
}
.book-cover-brand {
  display: none;
}
.book-cover-inner {
  backface-visibility: hidden;
  background: #fff;
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}
.book-shine {
  display: none;
}
.book-transition-label {
  letter-spacing: 0.25em;
  color: #888;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  will-change: opacity;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  bottom: -56px;
  left: 50%;
  transform: translate(-50%);
}
.back-to-work-btn {
  z-index: 9999;
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  will-change: transform, box-shadow;
  white-space: nowrap;
  background: #1a1a1ae6;
  border: 1px solid #ffffff1a;
  border-radius: 100px;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.35s,
    transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.35s,
    border-color 0.35s;
  display: flex;
  position: fixed;
  top: 24px;
  left: 24px;
  box-shadow: 0 8px 32px #00000040;
}
.back-to-work-btn:hover {
  background: #1a1a1afa;
  border-color: #fff3;
  transform: translate(-3px);
  box-shadow: 0 12px 40px #0000004d;
}
.back-to-work-btn:active {
  transform: translate(-1px) scale(0.98);
}
.back-arrow {
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
}
.back-to-work-btn:hover .back-arrow {
  transform: translate(-3px);
}
.back-arrow svg {
  stroke: currentColor;
  stroke-width: 2.5px;
  width: 16px;
  height: 16px;
}
#page-entrance-cover {
  z-index: 99998;
  pointer-events: none;
  will-change: transform, opacity;
  background: #1a1a1a;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}
.entrance-cover-inner {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  display: flex;
}
.entrance-logo {
  opacity: 0.4;
  width: 120px;
}
.entrance-progress {
  background: #ffffff1f;
  border-radius: 2px;
  width: 120px;
  height: 1px;
  position: relative;
  overflow: hidden;
}
.entrance-progress-bar {
  will-change: width;
  background: #a51d1d;
  border-radius: 2px;
  width: 0%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
@media (width<=768px) {
  .back-to-work-btn {
    padding: 10px 16px;
    font-size: 11px;
    top: 16px;
    left: 16px;
  }
  .book-scene {
    width: 85vw;
    height: 56vw;
  }
}
