/* ================================================
   NAMU.QUEST — Bauhaus Exhibition Space
   Jost + IBM Plex Sans | High-Contrast Palette
   Ma-Negative-Space Layout | Progressive Disclosure
   ================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --canvas: #FFFFFF;
  --ink: #000000;
  --signal-red: #E8302A;
  --signal-blue: #1A50B0;
  --signal-yellow: #F0C808;
  --steel: #666666;
  --grid: #E0E0E0;
  --block: #1A1A1A;
  --col-width: min(520px, calc(100vw - 4rem));
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Utility: Center Column --- */
.void,
.study,
.end {
  max-width: var(--col-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Structural Lines (Grid) --- */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--grid);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

body::before {
  left: calc(50% - 260px - 1rem);
}

body::after {
  right: calc(50% - 260px - 1rem);
}

/* ================================================
   VOID SECTION (0-100vh)
   ================================================ */
.void {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
}

.void__space-top {
  height: 30vh;
  flex-shrink: 0;
}

.void__title {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

.void__line {
  width: 120px;
  height: 1px;
  background: var(--ink);
  margin: 3rem auto;
}

.void__shapes {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.void__space-bottom {
  height: 20vh;
  flex-shrink: 0;
}

/* Ambient geometric compositions */
.geo-comp {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.geo-comp--red-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--signal-red);
  opacity: 0.06;
  top: 8vh;
  right: -60px;
}

.geo-comp--blue-square {
  width: 80px;
  height: 80px;
  background: var(--signal-blue);
  opacity: 0.04;
  transform: rotate(45deg);
  bottom: 12vh;
  left: -40px;
}

/* ================================================
   STUDY SECTION (100-320vh)
   ================================================ */
.study {
  padding-top: 16vh;
  padding-bottom: 16vh;
}

.study__block {
  margin-bottom: 16vh;
}

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

.study__icon-row {
  margin-bottom: 2rem;
}

.study__icon {
  display: block;
}

/* --- Progressive Disclosure --- */
.study__details {
  border: none;
}

.study__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0;
}

.study__summary::-webkit-details-marker {
  display: none;
}

.study__summary::marker {
  display: none;
  content: '';
}

.study__heading {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
}

.study__plus {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.study__details[open] .study__plus {
  transform: rotate(45deg);
}

.study__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
  padding-top: 1.5rem;
}

.study__details[open] .study__body {
  max-height: 600px;
}

.study__label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}

.study__body p {
  margin-bottom: 1.2rem;
  color: var(--ink);
}

.study__body p:last-child {
  margin-bottom: 0;
}

/* ================================================
   SYNTHESIS SECTION (320-400vh)
   ================================================ */
.synthesis {
  background-color: var(--block);
  color: var(--canvas);
  padding: 16vh 2rem;
}

.synthesis__content {
  max-width: var(--col-width);
  margin: 0 auto;
  text-align: center;
}

.synthesis__label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}

.synthesis__heading {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--canvas);
  margin-bottom: 4rem;
}

.synthesis__tree {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.synthesis__diagram {
  display: block;
}

.synthesis__text {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--canvas);
  margin-bottom: 1.5rem;
  text-align: left;
}

.synthesis__text:last-of-type {
  margin-bottom: 3rem;
}

.synthesis__colors {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.synthesis__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.synthesis__dot--blue {
  background: var(--signal-blue);
}

.synthesis__dot--white {
  background: var(--canvas);
}

.synthesis__dot--red {
  background: var(--signal-red);
}

/* ================================================
   END SECTION (400-440vh)
   ================================================ */
.end {
  padding-top: 16vh;
  padding-bottom: 8vh;
  text-align: center;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.end__text {
  font-family: 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.end__subtext {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 3rem;
}

.end__shapes {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

.end__line {
  width: 80px;
  height: 1px;
  background: var(--ink);
  margin-bottom: 3rem;
}

.end__ma {
  height: 10vh;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 600px) {
  body::before,
  body::after {
    display: none;
  }

  .geo-comp--red-circle {
    width: 80px;
    height: 80px;
    right: -40px;
  }

  .geo-comp--blue-square {
    width: 50px;
    height: 50px;
    left: -25px;
  }

  .study__block {
    margin-bottom: 10vh;
  }

  .synthesis {
    padding: 10vh 1.5rem;
  }
}

/* ================================================
   ANIMATION: Subtle Fade-In for Study Blocks
   ================================================ */
.study__block {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.study__block.is-visible {
  opacity: 1;
  transform: translateY(0);
}
