/* dilemma.studio - Design Language Stylesheet */
/* Palette: #000000, #0D0D0D, #2B2B2B, #4D4D4D, #8C8C8C, #B3B3B3, #E6E6E6, #F5F5F5, #FFFFFF */
/* Fonts: Bebas Neue (display), Barlow Condensed (body), IBM Plex Mono (accent) */

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

html {
  overflow: hidden;
  height: 100%;
}

body {
  height: 100%;
  overflow: hidden;
  background: #000000;
  font-family: 'Barlow Condensed', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ======== HORIZONTAL SCROLL CONTAINER ======== */
.horizontal-scroll {
  display: flex;
  height: 100vh;
  width: 700vw;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

/* ======== SPREAD (base panel) ======== */
.spread {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ======== GRID SVG OVERLAY ======== */
.grid-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ======== SPREAD 1: THE THRESHOLD ======== */
.spread-threshold {
  background: #000000;
}

.threshold-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #000000;
  z-index: 2;
}

.threshold-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #F5F5F5;
  z-index: 2;
}

.threshold-divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: #8C8C8C;
  z-index: 5;
  transform: translateX(-0.5px);
}

.threshold-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wordmark {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(6rem, 15vw, 14rem);
  letter-spacing: 0.08em;
  line-height: 0.9;
  font-weight: 400;
  display: flex;
  align-items: baseline;
}

.wordmark-left {
  color: #FFFFFF;
  text-shadow: none;
}

.wordmark-right {
  color: #000000;
  text-shadow: none;
}

.threshold-line {
  width: 0;
  height: 1px;
  background: #8C8C8C;
  margin: 1.5rem 0;
  transition: width 1.2s cubic-bezier(0.25, 0, 0.1, 1);
}

.threshold-line.active {
  width: 60vw;
}

.studio-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: #8C8C8C;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s;
}

.studio-label.active {
  opacity: 1;
  transform: translateY(0);
}

/* ======== DARK SPREADS ======== */
.spread-dark {
  background: #0D0D0D;
}

/* ======== LIGHT SPREADS ======== */
.spread-light {
  background: #F5F5F5;
}

/* ======== PANEL NUMBERS ======== */
.panel-number {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  z-index: 10;
}

.panel-number-fork {
  left: 2.5rem;
  right: auto;
}

/* ======== MONO LABEL ======== */
.mono-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4D4D4D;
}

.mono-label-dark {
  color: #B3B3B3;
}

/* ======== SPREAD CONTENT / GRID ======== */
.spread-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1.5rem;
  padding: 4rem 3rem;
  align-content: center;
}

.content-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-start-2 { grid-column-start: 2; }
.col-start-6 { grid-column-start: 6; }
.col-start-7 { grid-column-start: 7; }

/* ======== SECTION HEADERS ======== */
.section-header {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3rem, 6vw, 7rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: #FFFFFF;
  font-weight: 400;
}

.section-header-dark {
  color: #000000;
}

/* ======== BODY TEXT ======== */
.body-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: #8C8C8C;
  margin-bottom: 1.2rem;
}

.body-text-dark {
  color: #4D4D4D;
}

.caption-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: #B3B3B3;
  font-style: italic;
}

/* ======== WORK ITEMS ======== */
.work-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #2B2B2B;
}

.work-item:last-child {
  border-bottom: none;
}

.work-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #E6E6E6;
  margin: 0.5rem 0;
}

/* ======== METHOD ITEMS ======== */
.method-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #E6E6E6;
}

.method-item:last-child {
  border-bottom: none;
}

/* ======== ILLUSTRATIONS ======== */
.illustration {
  position: absolute;
  z-index: 3;
  opacity: 0.15;
  pointer-events: none;
}

.forking-path {
  right: 3%;
  bottom: 5%;
  width: 18vw;
  height: 45vh;
}

.balance-svg {
  left: 5%;
  bottom: 8%;
  width: 22vw;
  height: 35vh;
}

.impossible-triangle {
  right: 4%;
  bottom: 10%;
  width: 16vw;
  height: 35vh;
}

.labyrinth-svg {
  right: 3%;
  bottom: 5%;
  width: 20vw;
  height: 40vh;
}

.draw-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 0, 0.1, 1);
}

.draw-line.drawn {
  stroke-dashoffset: 0;
}

/* ======== SPREAD 6: THE FORK ======== */
.spread-fork {
  background: #000000;
}

.fork-container {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  height: 100%;
}

.fork-left {
  width: 50%;
  height: 100%;
  background: #000000;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2B2B2B #000000;
}

.fork-right {
  width: 50%;
  height: 100%;
  background: #F5F5F5;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #E6E6E6 #F5F5F5;
}

.fork-left::-webkit-scrollbar,
.fork-right::-webkit-scrollbar {
  width: 4px;
}

.fork-left::-webkit-scrollbar-track {
  background: #000000;
}

.fork-left::-webkit-scrollbar-thumb {
  background: #2B2B2B;
}

.fork-right::-webkit-scrollbar-track {
  background: #F5F5F5;
}

.fork-right::-webkit-scrollbar-thumb {
  background: #E6E6E6;
}

.fork-divider {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: #4D4D4D;
  z-index: 20;
  transform: translateX(-0.5px);
}

.fork-inner {
  padding: 5rem 3rem;
}

.fork-header {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.5rem, 4vw, 4rem);
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.fork-header-dark {
  color: #000000;
}

.fork-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #2B2B2B;
}

.fork-right .fork-item {
  border-bottom-color: #E6E6E6;
}

.fork-item:last-child {
  border-bottom: none;
}

.fork-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #E6E6E6;
  margin: 0.5rem 0;
}

.fork-title-dark {
  color: #2B2B2B;
}

.fork-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(0.8rem, 0.95vw, 0.95rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.fork-text-light {
  color: #8C8C8C;
}

.fork-text-dark {
  color: #4D4D4D;
}

/* ======== SPREAD 7: RESOLUTION ======== */
.spread-resolution {
  background: #0D0D0D;
}

.resolution-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.resolution-line {
  width: 0;
  height: 1px;
  background: #4D4D4D;
  margin-bottom: 2rem;
  transition: width 1s cubic-bezier(0.25, 0, 0.1, 1);
}

.resolution-line.active {
  width: 30vw;
}

.resolution-text {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0.08em;
  color: #FFFFFF;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.resolution-contact {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(0.9rem, 1.1vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #8C8C8C;
  margin-bottom: 1.5rem;
}

.resolution-label {
  display: block;
  margin-top: 0.5rem;
}

/* ======== PROGRESS BAR ======== */
.progress-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2B2B2B;
  z-index: 100;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #FFFFFF;
  transition: width 0.15s linear;
}

/* ======== BOUNCE-ENTER ANIMATION ======== */
@keyframes bounceEnter {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.bounce-enter {
  animation: bounceEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ======== PANEL CONTENT FADE ======== */
.spread .spread-content,
.spread .threshold-content,
.spread .fork-container,
.spread .resolution-content {
  transition: opacity 0.4s ease-out;
}

.spread.faded .spread-content,
.spread.faded .threshold-content,
.spread.faded .fork-container,
.spread.faded .resolution-content {
  opacity: 0.3;
}

/* ======== GRID INTERSECTION MARKERS ======== */
.grid-marker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.5rem;
  fill: #4D4D4D;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-marker.visible {
  opacity: 1;
}

/* ======== GRID LINES (SVG) ======== */
.grid-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.6s ease;
}

.grid-line.drawn {
  stroke-dashoffset: 0;
}
