/* ── Story Scene ─────────────────────────────────────────────────────────── */

.gans-story-scene {
  position: relative;
  background: var(--cloud, #ffffff);
}

.gans-story-scene__wrapper {
  position: relative;
  height: calc(var(--total, 1) * 100vh);
}

.gans-story-scene__sticky {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: 2.5rem 2rem;
}

@media (min-width: 768px) {
  .gans-story-scene__sticky {
    padding: 3rem 3rem;
  }
}

/* Header */
.gans-story-scene__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .gans-story-scene__header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.gans-story-scene__intro {
  max-width: 36rem;
}

.gans-story-scene__label {
  display: block;
  font-family: var(--font-suisse, sans-serif);
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--gold, #c8a977);
}

.gans-story-scene__heading {
  margin: 0.75rem 0 0;
  font-family: var(--font-suisse, sans-serif);
  font-weight: 300;
  font-size: clamp(1.625rem, 3.4vw, 2.625rem);
  line-height: 1.05;
  color: var(--stone, #444444);
}

.gans-story-scene__highlight {
  color: var(--iron, #7d7d7d);
}

.gans-story-scene__counter {
  font-family: var(--font-suisse, sans-serif);
  font-size: 10.5px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--iron, #7d7d7d);
}

/* Timeline */
.gans-story-scene__timeline {
  position: relative;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .gans-story-scene__timeline {
    margin-top: 2rem;
  }
}

.gans-story-scene__dots {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.gans-story-scene__dot-item {
  flex: 1;
  display: flex;
  justify-content: center;
}

.gans-story-scene__dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--stone, #444444) 30%, transparent);
  background: var(--cloud, #ffffff);
  transition: all 0.5s ease;
}

.gans-story-scene__dot-item.is-past .gans-story-scene__dot {
  border-color: var(--gold, #c8a977);
  background: var(--cloud, #ffffff);
}

.gans-story-scene__dot-item.is-active .gans-story-scene__dot {
  border-color: var(--gold, #c8a977);
  background: var(--gold, #c8a977);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold, #c8a977) 16%, transparent);
}

.gans-story-scene__track {
  position: relative;
  height: 1px;
}

.gans-story-scene__track-bg {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--stone, #444444) 10%, transparent);
}

.gans-story-scene__track-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background: var(--gold, #c8a977);
  transition: width 0.1s linear;
}

.gans-story-scene__years {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.gans-story-scene__year {
  flex: 1;
  text-align: center;
  font-family: var(--font-suisse, sans-serif);
  font-size: 11px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--iron, #7d7d7d);
  transition: color 0.3s ease;
}

.gans-story-scene__year.is-active {
  color: var(--gold, #c8a977);
}

/* Content grid */
.gans-story-scene__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex: 1;
  min-height: 0;
}

@media (min-width: 768px) {
  .gans-story-scene__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 3rem;
    margin-top: 2.5rem;
  }
}

.gans-story-scene__text-col {
  position: relative;
}

@media (min-width: 768px) {
  .gans-story-scene__text-col {
    grid-column: span 6;
  }
}

.gans-story-scene__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.gans-story-scene__panel.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.gans-story-scene__icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.gans-story-scene__year-large {
  font-family: var(--font-suisse, sans-serif);
  font-weight: 300;
  font-size: clamp(3.5rem, 7.5vw, 6rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--gold, #c8a977);
}

.gans-story-scene__title {
  margin: 1rem 0 0;
  max-width: 32rem;
  font-family: var(--font-suisse, sans-serif);
  font-weight: 300;
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  line-height: 1.1;
  color: var(--stone, #444444);
}

.gans-story-scene__body {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--iron, #7d7d7d);
}

.gans-story-scene__callout {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  align-self: flex-start;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--stone, #444444) 10%, transparent);
}

.gans-story-scene__callout-value {
  font-family: var(--font-suisse, sans-serif);
  font-weight: 300;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--stone, #444444);
}

.gans-story-scene__callout-label {
  font-family: var(--font-suisse, sans-serif);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--iron, #7d7d7d);
}

/* Image column */
.gans-story-scene__image-col {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 16rem;
}

@media (min-width: 768px) {
  .gans-story-scene__image-col {
    grid-column: span 6;
  }
}

.gans-story-scene__image-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gans-story-scene__image-panel.is-active {
  opacity: 1;
  transform: scale(1);
}

.gans-story-scene__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.65) contrast(1.05);
}

.gans-story-scene__image-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 42, 42, 0.10) 0%, rgba(42, 42, 42, 0.55) 100%);
  mix-blend-mode: multiply;
}

.gans-story-scene__image-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold, #c8a977) 14%, transparent), transparent 55%);
  mix-blend-mode: soft-light;
}

.gans-story-scene__image-footer {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--cloud, #ffffff);
}

.gans-story-scene__chapter {
  font-family: var(--font-suisse, sans-serif);
  font-size: 10px;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--gold, #c8a977);
}

.gans-story-scene__progress {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.gans-story-scene__progress-bar {
  display: block;
  height: 1px;
  width: 1rem;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.5s ease;
}

.gans-story-scene__progress-bar.is-active {
  width: 2rem;
  background: var(--gold, #c8a977);
}

/* Editor preview */
.gans-story-scene-editor {
  padding: 2rem;
  border: 1px dashed color-mix(in srgb, var(--stone, #444444) 30%, transparent);
  font-family: var(--font-suisse, sans-serif);
}

.gans-story-scene-editor__label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold, #c8a977);
  margin: 0;
}

.gans-story-scene-editor__heading {
  font-weight: 300;
  font-size: 1.75rem;
  margin: 0.5rem 0 1rem;
  color: var(--stone, #444444);
  white-space: pre-line;
}

.gans-story-scene-editor__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gans-story-scene-editor__item {
  font-size: 13px;
  color: var(--iron, #7d7d7d);
}
