.abstract-wrapper {
  overflow-y: auto;
}

.abstract-page {
  flex-grow: 1;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 0.9fr) minmax(300px, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: center;
  padding: 18px 60px 12px;
}

.abstract-intro {
  max-width: 350px;
}

.eyebrow {
  margin-bottom: 10px;
  color: #00e5ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.abstract-intro h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  background: linear-gradient(to bottom, #fff, #b9b9b9);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.short-text {
  max-width: 330px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.55;
}

.abstract-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.abstract-actions button,
.back-link {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(188, 19, 254, 0.36);
  color: #fff;
  background: rgba(29, 0, 58, 0.72);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.abstract-actions button:hover,
.back-link:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 0 22px rgba(188, 19, 254, 0.28);
}

.final-artwork,
.process-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.final-artwork figure {
  width: min(360px, 100%);
  margin: 0;
}

.final-artwork img {
  width: 100%;
  display: block;
  border-radius: 24px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(188, 19, 254, 0.12);
}

.final-artwork figcaption,
.stage-label {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.process-stage {
  flex-direction: column;
}

.sketch-holder {
  width: min(420px, 100%);
  aspect-ratio: 3 / 2;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 32px rgba(0, 229, 255, 0.1);
}

.sketch-holder canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.code-panel {
  grid-column: 1 / -1;
  align-self: stretch;
}

.code-panel details {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 0, 10, 0.45);
  overflow: hidden;
}

.code-panel summary {
  padding: 15px 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  list-style-position: inside;
}

.code-panel pre {
  max-height: 210px;
  overflow: auto;
  margin: 0;
  padding: 0 20px 20px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.75rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

@media (max-width: 1100px) {
  .abstract-page {
    grid-template-columns: 1fr 1fr;
    padding: 24px 42px;
  }

  .abstract-intro {
    grid-column: 1 / -1;
    max-width: 560px;
    justify-self: center;
    text-align: center;
  }

  .short-text {
    max-width: 560px;
  }

  .abstract-actions {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .abstract-page {
    grid-template-columns: 1fr;
    padding: 24px 28px;
  }

  .final-artwork figure,
  .sketch-holder {
    width: min(520px, 100%);
  }
}

@media (max-width: 600px) {
  .abstract-page {
    padding: 20px;
  }

  .abstract-actions {
    flex-direction: column;
  }

  .abstract-actions button,
  .back-link {
    width: 100%;
  }
}
