.brush-reveal {
  background: var(--charcoal);
  overflow: hidden;
}

/* Two-column: heading/instruction/ring in a left rail, photo + slim slider
   on the right -- sharing one row's height instead of stacking, so the
   whole section stays compact. */
.brush-reveal__inner {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: 38fr 62fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .brush-reveal__inner {
    grid-template-columns: 1fr;
  }
}

.brush-reveal__rail {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.brush-reveal .eyebrow { color: var(--sage); }
.brush-reveal h2 { color: var(--bg-soft); margin-bottom: 12px; }
.brush-reveal .section-copy { color: var(--bg-soft); margin-bottom: 20px; }

/* ---------- looping drag hint: icon + text, beside the copy, never over
   the photo ---------- */

.brush-reveal__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--body);
  font-size: 13px;
  font-style: italic;
  color: var(--sage);
}

.brush-reveal__hint-icon {
  display: inline-flex;
  width: 30px;
  height: 20px;
  flex-shrink: 0;
}

.brush-reveal__hint-icon svg {
  width: 100%;
  height: 100%;
  animation: hintSwipe 2.4s ease-in-out infinite;
}

@keyframes hintSwipe {
  0%, 100% { transform: translateX(-4px); opacity: 0.7; }
  50% { transform: translateX(4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .brush-reveal__hint-icon svg { animation: none; }
}

/* ---------- live "% revealed" ring ---------- */

.brush-reveal__ring-wrap {
  position: relative;
  width: clamp(120px, 14vw, 152px);
  height: clamp(120px, 14vw, 152px);
  margin-bottom: 24px;
}

.brush-reveal__ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.brush-reveal__ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 6;
}

.brush-reveal__ring-fill {
  fill: none;
  stroke: var(--sage);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 150ms linear;
}

.brush-reveal__ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}

.brush-reveal__ring-number {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1;
  color: var(--bg-soft);
}

.brush-reveal__ring-pct {
  font-size: 0.5em;
  vertical-align: super;
}

.brush-reveal__ring-caption {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage);
}

.brush-reveal__ring-wrap.is-complete .brush-reveal__ring-caption {
  color: var(--bg-soft);
}

/* ---------- photo + slim slider column ---------- */

.brush-reveal__media-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}

.brush-reveal__media {
  position: relative;
  align-self: center;
  width: auto;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  height: min(70vh, 640px);
}

@media (max-width: 900px) {
  .brush-reveal__media-col { max-width: 480px; margin-block: 24px 0; }
  .brush-reveal__media { height: auto; width: 100%; }
}

.brush-reveal__clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.brush-reveal__after,
.brush-reveal__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brush-reveal__after { object-fit: contain; }
.brush-reveal__canvas { touch-action: none; cursor: none; }

.brush-reveal__cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  margin-top: -32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(43, 38, 33, 0.5);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--heading);
  font-size: 16px;
}

.brush-reveal__cursor::before { content: '↔'; text-shadow: 0 1px 3px rgba(43, 38, 33, 0.6); }
.brush-reveal__cursor.is-visible { opacity: 1; }

.brush-reveal__note {
  margin: 16px 0 0;
  font-family: var(--body);
  font-style: italic;
  font-size: 13px;
  color: var(--sage);
}

/* slim slider directly under the photo, full width, with a small text
   "Reset" button at its right -- replaces the old boxed controls panel */
.brush-reveal__slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brush-reveal__reset {
  flex-shrink: 0;
  color: var(--sage);
}

.brush-reveal__reset:hover { color: var(--bg-soft); }

.slider--slim {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.slider--slim::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sage);
  cursor: pointer;
  border: none;
  transition: transform var(--dur-fast) var(--ease-ui);
}

.slider--slim::-webkit-slider-thumb:hover { transform: scale(1.15); }

.slider--slim::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sage);
  cursor: pointer;
  border: none;
  transition: transform var(--dur-fast) var(--ease-ui);
}

.slider--slim::-moz-range-thumb:hover { transform: scale(1.15); }

.slider--slim::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}
