/* Snapshot scrub hero + split book layout */

.snapshot-layout {
  width: min(1140px, calc(100% - var(--page-pad) * 2));
  margin: 0 auto;
}

.snapshot-scrub {
  padding: 16px 0 8px;
}

.snapshot-scrub-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.snapshot-hero-head {
  text-align: center;
}

.snapshot-hero-head h1 {
  margin: 0 0 8px;
  font-family: var(--ff-display);
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.snapshot-hero-head h1 em {
  font-style: italic;
}

.snapshot-hero-head .lead {
  margin: 0 auto 12px;
  max-width: 38ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}

.snapshot-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--ink-2);
}

.snapshot-trust li {
  padding-left: 1.1em;
  position: relative;
}

.snapshot-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rust);
  font-weight: 700;
}

.snapshot-media {
  width: 100%;
}

.snapshot-stage-wrap {
  position: relative;
  width: min(100%, 480px);
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  max-height: min(36vh, 260px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(42, 26, 12, 0.14);
  box-shadow: 0 14px 40px var(--shadow);
  background: #1a1008;
}

.snapshot-stage {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: ew-resize;
}

.snapshot-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.snapshot-panel.is-active {
  z-index: 1;
}

.snapshot-panel-video,
.snapshot-style-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1008;
}

.snapshot-style-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
  background: #1a1008;
}

.snapshot-style-tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 235, 200, 0.12);
  background: #0f0a06;
}

.snapshot-style-tile video {
  flex: 1;
  min-height: 0;
  object-fit: cover;
}

.snapshot-style-tile figcaption {
  flex-shrink: 0;
  padding: 6px 4px;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 234, 213, 0.85);
  background: rgba(0, 0, 0, 0.45);
}

.snapshot-panel[data-panel="2"] {
  touch-action: pan-x;
}

.snapshot-chalk-inline {
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.04), transparent 45%),
    linear-gradient(175deg, #2a4538 0%, #1e3329 48%, #182820 100%);
}

.snapshot-chalk-inline::-webkit-scrollbar {
  display: none;
}

.snapshot-chalk-inline.grabbing {
  cursor: grabbing;
}

.snapshot-chalk-inline .chalkboard-rail {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  min-width: max-content;
  min-height: 100%;
  padding: 16px 20px;
  box-sizing: border-box;
}

.snapshot-scrub-ui {
  width: min(100%, 480px);
  margin: 6px auto 0;
}

.snapshot-scrub-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.snapshot-step {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(42, 26, 12, 0.16);
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.snapshot-step:hover {
  border-color: rgba(42, 26, 12, 0.28);
  transform: translateY(-1px);
}

.snapshot-step.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.snapshot-step-more {
  flex: 0 0 auto;
  min-width: 38px;
  padding: 8px 11px;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid rgba(178, 95, 46, 0.5);
  background: #fff;
  color: var(--rust);
  box-shadow:
    0 2px 0 rgba(42, 26, 12, 0.06),
    0 4px 14px rgba(42, 26, 12, 0.1);
}

.snapshot-sparkle {
  display: inline-block;
  font-size: 15px;
  line-height: 1;
  animation: snapshot-sparkle 2s ease-in-out infinite;
}

@keyframes snapshot-sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  35% {
    transform: scale(1.15) rotate(-12deg);
    filter: brightness(1.2);
  }
  70% {
    transform: scale(1.08) rotate(10deg);
    filter: brightness(1.1);
  }
}

.snapshot-step-more:hover .snapshot-sparkle {
  animation-duration: 0.9s;
}

.snapshot-step-more:hover {
  border-color: var(--rust);
  background: var(--highlight);
  color: var(--ink);
  box-shadow:
    0 3px 0 rgba(42, 26, 12, 0.08),
    0 6px 18px rgba(42, 26, 12, 0.14);
}

.snapshot-scrub-bar-wrap {
  padding: 0 2px;
}

.snapshot-scrub-bar {
  position: relative;
  height: 36px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.snapshot-scrub-bar:active {
  cursor: grabbing;
}

.snapshot-scrub-bar-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(42, 26, 12, 0.12);
  pointer-events: none;
}

.snapshot-scrub-bar-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 8px;
  width: 0;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tan), var(--rust));
  pointer-events: none;
}

.snapshot-scrub-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--rust);
  box-shadow: 0 2px 10px var(--shadow), 0 0 0 3px rgba(255, 216, 138, 0.35);
  pointer-events: none;
  transition: box-shadow 0.2s;
}

.snapshot-scrub-bar:active .snapshot-scrub-thumb {
  box-shadow: 0 4px 14px var(--shadow), 0 0 0 5px rgba(255, 216, 138, 0.45);
}

.snapshot-scrub-bar-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px 0 0;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.snapshot-scrub-bar-hint-icon {
  color: var(--rust);
  font-size: 14px;
  line-height: 1;
}

.snapshot-style-label {
  color: var(--rust);
  font-weight: 600;
}

.snapshot-hero-foot {
  display: flex;
  justify-content: center;
}

.snapshot-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.snapshot-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(42, 26, 12, 0.18);
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 0 rgba(42, 26, 12, 0.08);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.snapshot-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(42, 26, 12, 0.3);
}

.snapshot-pill.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.snapshot-pill.featured {
  border-color: var(--rust);
}

.snapshot-book {
  padding: 28px 0 48px;
}

.snapshot-reviews {
  margin-bottom: 24px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}

.snapshot-reviews-viewport {
  overflow: hidden;
}

.snapshot-reviews-track {
  display: flex;
  width: max-content;
  animation: snapshot-reviews-marquee 50s linear infinite;
}

.snapshot-reviews:hover .snapshot-reviews-track {
  animation-play-state: paused;
}

.snapshot-reviews-set {
  display: flex;
  gap: 14px;
  padding: 2px 8px;
}

.snapshot-book .book-grid {
  margin-top: 0;
  grid-template-columns: 1fr;
  gap: 28px;
}

.snapshot-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.snapshot-reviews .snapshot-quote {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(280px, 74vw);
  margin: 0;
  padding: 12px 14px 12px 12px;
}

.snapshot-quote-photo {
  flex-shrink: 0;
  width: 44px;
  height: 55px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(42, 26, 12, 0.18);
  transform: rotate(var(--r, 0deg));
  background: var(--ink);
}

.snapshot-quote-body {
  min-width: 0;
}

.snapshot-quote-body p {
  margin: 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 14px;
  line-height: 1.4;
}

.snapshot-quote {
  margin: 0;
  padding: 20px 22px;
  background: var(--paper);
  border-left: 3px solid var(--rust);
  border-radius: 0 10px 10px 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
}

.snapshot-quote cite,
.snapshot-quote-body cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-family: var(--ff-body);
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.3;
}

.form-addons {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(42, 26, 12, 0.1);
}

.form-addons summary {
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  list-style: none;
  margin-bottom: 12px;
}

.form-addons summary::-webkit-details-marker {
  display: none;
}

.form-addon-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-addon-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(42, 26, 12, 0.14);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
}

.form-addon-chip:has(input:checked) {
  border-color: var(--rust);
  background: #fffdf8;
}

.form-addon-chip input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--rust);
}

.form-addon-chip strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
}

.form-addon-chip span.meta {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
}

@media (min-width: 960px) {
  .snapshot-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 36px;
    align-items: start;
    padding-top: 12px;
  }

  .snapshot-scrub {
    position: sticky;
    top: 52px;
    padding: 0;
  }

  .snapshot-scrub-inner {
    gap: 16px;
  }

  .snapshot-stage-wrap,
  .snapshot-scrub-ui {
    width: 100%;
    max-width: none;
  }

  .snapshot-stage-wrap {
    aspect-ratio: 4 / 3;
    max-height: min(44vh, 380px);
  }

  .snapshot-hero-head {
    text-align: left;
  }

  .snapshot-hero-head .lead {
    margin-left: 0;
  }

  .snapshot-trust {
    justify-content: flex-start;
  }

  .snapshot-hero-foot {
    justify-content: flex-start;
  }

  .snapshot-pills {
    justify-content: flex-start;
  }

  .snapshot-book {
    padding: 0 0 64px;
    position: sticky;
    top: 52px;
  }

  .snapshot-aside {
    display: none;
  }

  .snapshot-book .book-grid {
    gap: 24px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .snapshot-stage {
    touch-action: none;
  }
}

@media (max-width: 959px) {
  .snapshot-scrub {
    padding: 12px 0 4px;
  }

  .snapshot-scrub-inner {
    gap: 10px;
  }

  .snapshot-hero-head h1 {
    font-size: clamp(26px, 7vw, 34px);
    margin-bottom: 6px;
  }

  .snapshot-hero-head .lead {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .snapshot-trust {
    gap: 6px 10px;
    font-size: 11px;
  }

  .snapshot-stage-wrap {
    aspect-ratio: 16 / 10;
    max-height: min(34vh, 220px);
    border-radius: 10px;
  }

  .snapshot-scrub-ui {
    width: 100%;
    max-width: none;
    margin-top: 4px;
  }

  .snapshot-scrub-steps {
    margin-bottom: 8px;
  }

  .snapshot-scrub-bar-hint {
    margin-top: 6px;
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .snapshot-scrub {
    padding-top: 8px;
  }

  .snapshot-scrub-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 6px;
  }

  .snapshot-step-more {
    min-width: 34px;
    padding: 8px 9px;
  }

  .snapshot-sparkle {
    font-size: 14px;
  }

  .snapshot-pills {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 6px;
  }

  .snapshot-pill {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 9px 8px;
    font-size: 11px;
  }

  .snapshot-pill.featured {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snapshot-stage {
    cursor: default;
  }

  .snapshot-scrub-bar-fill,
  .snapshot-scrub-thumb {
    transition: none;
  }

  .snapshot-reviews {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .snapshot-reviews-viewport {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .snapshot-reviews-viewport::-webkit-scrollbar {
    display: none;
  }

  .snapshot-reviews-track {
    animation: none;
  }

  .snapshot-sparkle {
    animation: none;
  }
}

@keyframes snapshot-reviews-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Full-site modal (+ button) */
body.snapshot-modal-open {
  overflow: hidden;
}

.snapshot-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
}

.snapshot-modal.is-open {
  pointer-events: auto;
}

.snapshot-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 16, 8, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.snapshot-modal.is-open .snapshot-modal-backdrop {
  opacity: 1;
}

.snapshot-modal-panel {
  position: relative;
  width: min(400px, 100%);
  padding: 28px 24px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(165deg, #fffdf8 0%, #f4ead5 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  text-align: center;
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.snapshot-modal.is-open .snapshot-modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.snapshot-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(42, 26, 12, 0.08);
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.snapshot-modal-fan {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.snapshot-modal-fan img {
  width: 52px;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(42, 26, 12, 0.2);
  transform: rotate(var(--r, 0deg));
}

.snapshot-modal-eyebrow {
  margin: 0 0 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}

.snapshot-modal-panel h2 {
  margin: 0 0 10px;
  font-family: var(--ff-display);
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 500;
  line-height: 1.1;
}

.snapshot-modal-panel h2 em {
  font-style: italic;
}

.snapshot-modal-lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.snapshot-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.snapshot-modal-actions .btn {
  width: 100%;
}

.snapshot-modal-actions .btn.ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: rgba(42, 26, 12, 0.2);
}

/* Chalk strips inside hero panel */
.chalk-strip {
  flex: 0 0 auto;
  width: clamp(92px, 24vw, 118px);
  margin: 0;
  transform: rotate(var(--r, 0deg));
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chalk-strip--wide {
  width: clamp(148px, 38vw, 200px);
}

.chalk-strip img,
.chalk-strip-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 168px;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.chalk-strip--wide img,
.chalk-strip--wide .chalk-strip-video {
  max-height: 108px;
}

.chalk-strip figcaption {
  margin-top: 5px;
  text-align: center;
  font-family: var(--ff-script);
  font-size: 13px;
  line-height: 1.1;
  color: rgba(244, 234, 213, 0.88);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chalk-strip-empty {
  margin: 0;
  padding: 0 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: rgba(244, 234, 213, 0.65);
}
