html {
  scroll-behavior: smooth;
}

details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  margin-bottom: 0;
}

video {
  object-position: center center;
}

/* Gallery thumbnails */
.gallery-thumb,
.concept-thumb {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb:hover,
.concept-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(15, 26, 18, 0.15);
}

/* Section gallery — hero + horizontal carousel (Vision + Wild) */
.section-gallery-hero {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  margin-bottom: 1rem;
}

.section-gallery-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
  margin-top: 0.5rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(1rem, calc(50vw - 36rem));
  padding-right: max(1rem, calc(50vw - 36rem));
  padding-bottom: 0.25rem;
}

.section-gallery-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.section-gallery-carousel.is-auto-scrolling {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.section-gallery-carousel::-webkit-scrollbar {
  height: 0;
}

.section-gallery-carousel-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
}

.section-gallery-carousel-slide {
  flex: 0 0 auto;
  width: clamp(9.5rem, 22vw, 14rem);
  scroll-snap-align: start;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-gallery-carousel-slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 26, 18, 0.12);
}

.section-gallery-carousel-slide img {
  width: 100%;
  height: clamp(7rem, 16vw, 10rem);
  object-fit: cover;
  display: block;
  border-radius: 1rem;
}

/* Lightbox — single fullscreen image */
#lightbox {
  transition: opacity 0.2s ease;
}

#lightbox.hidden {
  pointer-events: none;
  opacity: 0;
}

.lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 3rem;
}

#lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-nav {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* 3D model viewer */
model-viewer {
  --poster-color: transparent;
}

.model-ar-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: #1a2e20;
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.model-ar-btn:active {
  transform: scale(0.97);
}


/* Tour form — type picker */
.tour-type-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .tour-type-picker {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.tour-type-option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.tour-type-hint {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(26, 46, 32, 0.45);
  margin-bottom: 0.45rem;
  min-height: 1.1rem;
}

.tour-type-btn {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 2px solid transparent;
}

.tour-type-btn:hover {
  transform: translateY(-1px);
}

.tour-type-btn.is-active {
  box-shadow: 0 6px 20px rgba(15, 26, 18, 0.15);
}

.tour-type-btn--in-person {
  background: #1a2e20;
  color: #fff;
  border-color: #1a2e20;
}

.tour-type-btn--in-person:hover,
.tour-type-btn--in-person.is-active {
  background: #243d2b;
}

.tour-type-btn--virtual {
  background: #fff;
  color: #1a2e20;
  border-color: #1a2e20;
}

.tour-type-btn--virtual:hover,
.tour-type-btn--virtual.is-active {
  background: #f4f7f4;
}

.tour-type-btn--inquire {
  background: #f4f7f4;
  color: #1a2e20;
  border-color: #c5d4c5;
}

.tour-type-btn--inquire:hover,
.tour-type-btn--inquire.is-active {
  background: #e8efe8;
  border-color: #1a2e20;
}

.tour-form-extended.hidden {
  display: none;
}

#tour-type-picker {
  margin-top: 1.5rem;
}

/* Pricing — dual cards */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid #e4ebe4;
  padding: 2rem 1.75rem;
  box-shadow: 0 8px 32px rgba(15, 26, 18, 0.06);
}

.pricing-card--stock {
  border-color: #1a2e20;
  box-shadow: 0 12px 40px rgba(15, 26, 18, 0.1);
}

.pricing-card-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26, 46, 32, 0.55);
}

.pricing-card-badge {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #1a2e20;
  color: #fff;
}

.pricing-card-badge--muted {
  background: #f4f7f4;
  color: #1a2e20;
  border: 1px solid #e4ebe4;
}

.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-card-check {
  color: #2d4a35;
  font-weight: 700;
  margin-right: 0.35rem;
}

.pricing-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pricing-card-btn:hover {
  transform: translateY(-1px);
}

.pricing-card-btn--primary {
  background: #1a2e20;
  color: #fff;
}

.pricing-card-btn--primary:hover {
  background: #243d2b;
}

.pricing-card-btn--secondary {
  background: #fff;
  color: #1a2e20;
  border: 2px solid #1a2e20;
}

.pricing-card-btn--secondary:hover {
  background: #f4f7f4;
}

.tour-submit-btn--in-person {
  background: #1a2e20;
  color: #fff;
}

.tour-submit-btn--in-person:hover {
  background: #243d2b;
}

.tour-submit-btn--virtual {
  background: #fff;
  color: #1a2e20;
  border: 2px solid #1a2e20;
}

.tour-submit-btn--virtual:hover {
  background: #f4f7f4;
}

.tour-submit-btn--inquire {
  background: #f4f7f4;
  color: #1a2e20;
  border: 2px solid #c5d4c5;
}

.tour-submit-btn--inquire:hover {
  background: #e8efe8;
  border-color: #1a2e20;
}

.tour-inquiry-options {
  display: grid;
  gap: 0.65rem;
}

.tour-inquiry-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1.5px solid #e4ebe4;
  background: #f4f7f4;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 0.9rem;
  color: #1a2e20;
}

.tour-inquiry-option:hover {
  border-color: #c5d4c5;
}

.tour-inquiry-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tour-inquiry-option-box {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.3rem;
  border: 2px solid #c5d4c5;
  background: #fff;
  position: relative;
}

.tour-inquiry-checkbox:checked + .tour-inquiry-option-box {
  background: #1a2e20;
  border-color: #1a2e20;
}

.tour-inquiry-checkbox:checked + .tour-inquiry-option-box::after {
  content: '';
  position: absolute;
  left: 0.28rem;
  top: 0.1rem;
  width: 0.3rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tour-inquiry-checkbox:checked ~ span:last-child {
  font-weight: 600;
}

.tour-inquiry-intent--error .tour-inquiry-options {
  outline: 2px solid #c45c5c;
  outline-offset: 4px;
  border-radius: 0.85rem;
}

.tour-inquiry-intent-error {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #b44;
}


/* Floating action cluster — share + assistant */
.fab-cluster {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  display: flex;
  align-items: stretch;
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(15, 26, 18, 0.35);
  transition: box-shadow 0.2s, transform 0.2s;
}

.fab-cluster:hover {
  box-shadow: 0 12px 40px rgba(15, 26, 18, 0.4);
  transform: translateY(-2px);
}

.fab-share-btn {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 2.85rem;
  padding: 0.75rem 0.85rem;
  overflow: hidden;
  white-space: nowrap;
  background: #1a2e20;
  color: #fff;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px 0 0 9999px;
  cursor: pointer;
  transition: max-width 0.28s ease, padding 0.28s ease, gap 0.28s ease;
}

.fab-share-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.fab-share-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 600;
  transition: max-width 0.28s ease, opacity 0.2s ease, margin 0.28s ease;
  margin-left: 0;
}

@media (hover: hover) {
  .fab-share-btn:hover {
    max-width: 11rem;
    padding-right: 1rem;
    gap: 0.45rem;
  }

  .fab-share-btn:hover .fab-share-label {
    max-width: 8rem;
    opacity: 1;
    margin-left: 0.1rem;
  }
}

/* AI Assistant */
.assistant-fab {
  position: relative;
  bottom: auto;
  right: auto;
  z-index: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a2e20;
  color: white;
  border: none;
  border-radius: 0 9999px 9999px 0;
  padding: 0.75rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s;
}

.assistant-fab:hover {
  transform: none;
  box-shadow: none;
}

.fab-cluster .assistant-fab:hover {
  filter: brightness(1.06);
}

.assistant-fab-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.assistant-panel {
  position: fixed;
  bottom: 5rem;
  right: 1.25rem;
  z-index: 95;
  width: min(calc(100vw - 2rem), 380px);
  height: min(70vh, 520px);
  background: white;
  border-radius: 1.25rem;
  border: 1px solid #e4ebe4;
  box-shadow: 0 24px 64px rgba(15, 26, 18, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.2s;
}

.assistant-panel.hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
}

.assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid #e4ebe4;
  shrink: 0;
}

.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.assistant-msg {
  max-width: 88%;
  padding: 0.65rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.assistant-msg.bot {
  align-self: flex-start;
  background: #f4f7f4;
  color: #1a2e20;
  border-bottom-left-radius: 0.25rem;
}

.assistant-msg.user {
  align-self: flex-end;
  background: #1a2e20;
  color: white;
  border-bottom-right-radius: 0.25rem;
}

.assistant-msg a {
  color: inherit;
  text-decoration: underline;
}

.assistant-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid #e4ebe4;
  shrink: 0;
}

.assistant-form input {
  flex: 1;
  border: 1px solid #e4ebe4;
  border-radius: 9999px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  outline: none;
}

.assistant-form input:focus {
  border-color: #2d4a35;
}

.assistant-form button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #1a2e20;
  color: white;
  border: none;
  font-size: 1.54rem;
  cursor: pointer;
  shrink: 0;
}

.assistant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.assistant-chip {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid #e4ebe4;
  background: white;
  color: #2d4a35;
  cursor: pointer;
}

.assistant-chip:hover {
  background: #f4f7f4;
}

@media (max-width: 640px) {
  .assistant-fab-label {
    display: none;
  }

  .assistant-panel {
    right: 1rem;
    left: 1rem;
    width: auto;
  }

  .lightbox-stage {
    padding: 0.25rem 2.5rem;
  }
}

/* Video carousel */
.video-carousel-wrap {
  position: relative;
  padding-inline: 3.25rem;
  isolation: isolate;
}

@media (max-width: 639px) {
  .video-carousel-wrap {
    padding-inline: 0;
  }
}

.video-carousel-viewport {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 6vw;
  touch-action: pan-x;
  cursor: grab;
}

.video-carousel-viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.video-carousel-viewport::-webkit-scrollbar {
  height: 8px;
}

.video-carousel-viewport::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.video-carousel-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.video-carousel-track {
  display: flex;
  gap: 1.25rem;
  padding: 0 6vw 1rem;
  width: max-content;
}

.video-slide {
  flex: 0 0 min(84vw, 52rem);
  scroll-snap-align: center;
}

.video-slide-inner {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #0f1a12;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 48px rgba(15, 26, 18, 0.2);
}

.video-slide-inner .video-placeholder.hidden {
  display: none;
}

.video-slide-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-slide-inner .media-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-slide-inner .media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Media loading spinner (videos / transform / reels) */
.media-spinner {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(15, 26, 18, 0.18);
}

.is-media-loading > .media-spinner,
.media-frame.is-media-loading > .media-spinner,
.reel-slide-media.is-media-loading > .media-spinner {
  display: flex;
}

.media-spinner-ring {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: media-spin 0.75s linear infinite;
}

.transform-media-wrap > .media-spinner .media-spinner-ring {
  border-color: rgba(26, 46, 32, 0.2);
  border-top-color: #1a2e20;
}

@keyframes media-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Quality picker (replaces download affordance) */
.quality-menu {
  position: absolute;
  right: 0.65rem;
  bottom: 2.75rem;
  z-index: 6;
  font-family: inherit;
}

.quality-menu-toggle {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: rgba(15, 26, 18, 0.72);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  backdrop-filter: blur(6px);
}

.quality-menu-toggle:hover {
  background: rgba(15, 26, 18, 0.9);
}

.quality-menu-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.35rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 5.5rem;
  background: rgba(15, 26, 18, 0.92);
  border-radius: 0.55rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.quality-menu-list.hidden {
  display: none;
}

.quality-menu-list li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.35rem;
  cursor: pointer;
}

.quality-menu-list li:hover,
.quality-menu-list li.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

video::-webkit-media-controls-download-button,
video::-internal-media-controls-download-button {
  display: none !important;
}

.video-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-slide-link:hover {
  transform: scale(1.01);
  box-shadow: 0 28px 56px rgba(15, 26, 18, 0.28);
}

.video-slide-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.video-slide-link-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a2e20;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(15, 26, 18, 0.15);
  transition: background 0.2s ease;
}

.video-slide-link:hover .video-slide-link-hint {
  background: #fff;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 2rem;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 18, 0.85), rgba(15, 26, 18, 0.4));
}

.video-placeholder > * {
  position: relative;
  z-index: 1;
}

.video-carousel-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 30;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(15, 26, 18, 0.72);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, transform 0.2s;
  pointer-events: auto;
}

.video-carousel-btn:hover {
  background: rgba(15, 26, 18, 0.88);
  transform: translateY(-50%) scale(1.05);
}

.video-carousel-btn.prev {
  left: 0.35rem;
}

.video-carousel-btn.next {
  right: 0.35rem;
}

.video-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.video-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.video-carousel-dot.active {
  background: white;
  transform: scale(1.2);
}

/* Transform section */
.transform-media-wrap {
  position: relative;
  max-width: 48rem;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #1a2e20;
  box-shadow: 0 16px 48px rgba(15, 26, 18, 0.12);
  aspect-ratio: 16 / 9;
}

.transform-media-wrap .transform-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.transform-media-wrap .transform-video.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.transform-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.transform-step {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 2px solid #e4ebe4;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font: inherit;
  color: inherit;
}

.transform-step:hover {
  border-color: #c5d4de;
  transform: translateY(-1px);
}

.transform-step.active {
  border-color: #1a2e20;
  background: #f4f7f4;
  box-shadow: 0 8px 24px rgba(15, 26, 18, 0.08);
}

.transform-step.active .transform-step-num {
  background: #1a2e20;
  color: white;
}

.transform-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: #e4ebe4;
  color: #2d4a35;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Specs list — label | divider | value */
.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 36%) 1fr;
  column-gap: 0.95rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(26, 46, 32, 0.1);
}

.spec-row dt {
  color: rgba(26, 46, 32, 0.62);
  font-size: 0.92rem;
  line-height: 1.35;
  padding-right: 0.15rem;
}

.spec-row dd {
  margin: 0;
  font-weight: 600;
  color: #1a2e20;
  font-size: 0.95rem;
  line-height: 1.4;
  padding-left: 0.95rem;
  border-left: 1px solid rgba(26, 46, 32, 0.22);
}

@media (min-width: 640px) {
  .spec-row {
    grid-template-columns: minmax(9rem, 34%) 1fr;
    column-gap: 1.15rem;
  }

  .spec-row dd {
    padding-left: 1.15rem;
  }
}

/* Plan canvas — Freeform-style pan & zoom (gated until “View plan”) */
.plan-canvas-shell {
  padding: 1.5rem 14%;
  background: #f4f7f4;
  border-radius: 1.25rem;
  border: 1px solid #e4ebe4;
}

.plan-canvas-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 26, 18, 0.08);
}

.plan-canvas-viewport {
  position: relative;
  height: min(70vh, 640px);
  min-height: 320px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e4ebe4;
  background: #ffffff;
  cursor: default;
  touch-action: pan-y;
  user-select: none;
}

.plan-canvas-wrap.is-active .plan-canvas-viewport {
  cursor: grab;
  touch-action: none;
}

@media (max-width: 640px) {
  .plan-canvas-viewport {
    height: min(78vh, 720px);
    min-height: 380px;
  }
}

.plan-canvas-viewport.is-grabbing {
  cursor: grabbing;
}

.plan-canvas-stage {
  transform-origin: 0 0;
  will-change: transform;
}

.plan-canvas-stage img {
  display: block;
  max-width: none;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.plan-canvas-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  gap: 0.35rem;
}

.plan-canvas-controls[hidden] {
  display: none;
}

.plan-canvas-btn {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid #e4ebe4;
  background: rgba(255, 255, 255, 0.95);
  color: #1a2e20;
  font-size: 1.54rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 26, 18, 0.08);
  transition: background 0.15s ease;
}

.plan-canvas-btn:hover {
  background: #ffffff;
}

.plan-canvas-btn-reset,
.plan-canvas-btn-done {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0 0.65rem;
}

.plan-canvas-btn-done {
  background: #1a2e20;
  color: #fff;
  border-color: #1a2e20;
}

.plan-canvas-btn-done:hover {
  background: #243828;
}

.plan-canvas-gate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 1rem;
  background: linear-gradient(
    to top,
    rgba(244, 247, 244, 0.72) 0%,
    rgba(244, 247, 244, 0.28) 42%,
    rgba(244, 247, 244, 0.12) 100%
  );
  backdrop-filter: blur(1px);
}

.plan-canvas-wrap.is-active .plan-canvas-gate {
  display: none;
}

.plan-canvas-activate {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: #1a2e20;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(15, 26, 18, 0.22);
  transition: background 0.15s ease, transform 0.15s ease;
}

.plan-canvas-activate:hover {
  background: #243828;
}

.plan-canvas-activate:active {
  transform: scale(0.98);
}

.plan-canvas-gate-note {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(26, 46, 32, 0.65);
  letter-spacing: 0.02em;
}

.plan-canvas-hint {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(26, 46, 32, 0.45);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .plan-canvas-shell {
    padding: 1rem 6%;
  }
}

.compare-table th,
.compare-table td {
  vertical-align: top;
}

.calc-season-btn {
  color: rgba(45, 74, 53, 0.65);
}

.calc-season-btn:hover {
  color: #1a2e20;
}

.calc-season-btn.is-active {
  background: white;
  color: #1a2e20;
  box-shadow: 0 1px 3px rgba(15, 26, 18, 0.08);
}

.footer-tour-ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  max-width: 22rem;
  margin: 0 auto 2rem;
}

@media (min-width: 640px) {
  .footer-tour-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 42rem;
  }

  .footer-tour-btn {
    flex: 1 1 auto;
    min-width: 11rem;
  }
}

.footer-tour-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.footer-tour-btn:hover {
  transform: translateY(-1px);
}

.footer-tour-btn--primary {
  background: white;
  color: #0f1a12;
}

.footer-tour-btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.footer-tour-btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
}

.footer-tour-btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

input[type='range'] {
  height: 6px;
  border-radius: 3px;
}

/* Scroll-scrub video (Apple-style) */
.scroll-video-section {
  position: relative;
  height: calc(100vh + 100vh);
  margin: 0;
  padding: 2.5rem 0 0;
}

.scroll-video-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

.scroll-video-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 0 0.5rem;
}

.scroll-video-media video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.scroll-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 1rem;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.75), transparent 20%);
  pointer-events: none;
}

.scroll-tour-peek {
  flex: 0 0 auto;
  background: #ffffff;
  padding: 0.85rem 1.5rem 1.25rem;
  border-top: 1px solid #e4ebe4;
  text-align: center;
}

.scroll-tour-peek-hint {
  color: rgba(26, 46, 32, 0.35);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-video-hint {
  color: rgba(26, 46, 32, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

.scroll-video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #1a2e20;
  transition: width 0.05s linear;
}

.scroll-video-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(15, 26, 18, 0.85);
  font-size: 0.875rem;
  padding: 2rem;
  text-align: center;
}

.scroll-video-error.hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  header video {
    display: none;
  }

  .scroll-video-section {
    height: auto;
  }

  .scroll-video-sticky {
    position: relative;
    height: auto;
    min-height: 50vh;
  }

  .scroll-video-overlay {
    display: none;
  }
}

/* --- Vlog Reels — Cover Flow (matches mockup) --- */
.coverflow-stage {
  max-width: 100%;
  margin: 0 auto;
}

.coverflow-scene {
  position: relative;
  z-index: 0;
  isolation: isolate; /* keep card z-index inside scene — don't float over nav / fullscreen */
  height: 560px;
  margin: 0 auto;
  max-width: 1540px;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
  overflow: visible;
}

.coverflow-scene.is-dragging {
  cursor: grabbing;
}

.coverflow-scene.is-dragging .coverflow-item {
  transition: none !important;
}

.coverflow-scene.is-viewer-open .coverflow-center-wrap {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.coverflow-track {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
}

.coverflow-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 207px;
  height: 399px;
  margin-left: -104px;
  margin-top: -200px;
  transform-origin: center center;
  will-change: transform, opacity;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.coverflow-card {
  width: 100%;
  height: 100%;
  border-radius: 0.95rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 26, 18, 0.18);
  background: #1a2e20;
}

.coverflow-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.coverflow-reflect {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 147px;
  overflow: hidden;
  border-radius: 0 0 0.75rem 0.75rem;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.38) 0%, transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.38) 0%, transparent 72%);
}

.coverflow-reflect img {
  width: 100%;
  height: 399px;
  object-fit: cover;
  transform: scaleY(-1);
  transform-origin: top;
  display: block;
}

/* Center floating reel */
.coverflow-center-wrap {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 30;
  pointer-events: none;
}

.reel-center-frame {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 16;
  border-radius: 0.95rem;
  overflow: hidden;
  background: #0f1a12;
  box-shadow: 0 16px 40px rgba(15, 26, 18, 0.22);
  pointer-events: auto;
}

.reel-center-open {
  position: absolute;
  inset: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1;
}

.reel-center-media {
  position: absolute;
  inset: 0;
}

.reel-center-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0f1a12;
}

.reel-center-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.15) 40%, transparent 58%);
  pointer-events: none;
  z-index: 1;
}

.reel-center-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.reel-center-play-icon {
  width: 3.65rem;
  height: 3.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a2e20;
  font-size: 0.72rem;
  padding-left: 0.17rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.reel-center-top {
  position: absolute;
  top: 0.65rem;
  left: 0.55rem;
  right: 3.85rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}

.reel-center-avatar {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.reel-center-user {
  color: #fff;
  font-size: 0.87rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.reel-center-caption-wrap {
  position: absolute;
  bottom: 0.55rem;
  left: 0.55rem;
  right: 3.35rem;
  z-index: 3;
  pointer-events: none;
}

.reel-center-caption {
  color: #fff;
  font-size: 0.81rem;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel-center-tags {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.73rem;
  margin: 0.2rem 0 0;
}

.reel-center-actions {
  position: absolute;
  right: 0.35rem;
  bottom: 3.1rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.reel-center-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.1rem;
  text-decoration: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}

.reel-center-action-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.reel-center-action-icon.heart.liked {
  color: #ff3b5c;
}

.reel-center-like-count {
  font-size: 0.7rem;
  font-weight: 600;
}

.reel-center-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.reel-center-floating-heart {
  position: absolute;
  bottom: 3rem;
  font-size: 1.54rem;
  color: #ff3b5c;
  animation: reel-heart-float 1s ease-out forwards;
  pointer-events: none;
}

/* Scrubber — pill slider from mockup */
.coverflow-scrubber {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 420px;
  margin: -5.5rem auto 0.75rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: #e4ebe4;
  position: relative;
  z-index: 20;
}

.coverflow-scrub-btn {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(26, 46, 32, 0.1);
  border-radius: 50%;
  background: transparent;
  color: #1a2e20;
  font-size: 1.54rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverflow-scrub-btn:hover {
  background: rgba(255, 255, 255, 0.55);
}

.coverflow-range {
  flex: 1;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(26, 46, 32, 0.16);
  border-radius: 999px;
  outline: none;
}

.coverflow-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1a2e20;
  cursor: grab;
  border: none;
}

.coverflow-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1a2e20;
  border: none;
  cursor: grab;
}

.coverflow-meta {
  text-align: center;
  font-size: 1.12rem;
  color: rgba(26, 46, 32, 0.55);
  max-width: 39rem;
  margin: 0 auto;
  line-height: 1.5;
  padding: 0 1rem;
  min-height: 3.5rem;
}

@media (min-width: 768px) {
  .coverflow-scene {
    height: 620px;
  }

  .coverflow-item {
    width: 235px;
    height: 448px;
    margin-left: -118px;
    margin-top: -224px;
  }

  .coverflow-reflect {
    height: 165px;
  }

  .coverflow-reflect img {
    height: 448px;
  }

  .reel-center-frame {
    width: 308px;
  }

  .reel-center-user {
    font-size: 0.98rem;
  }

  .reel-center-caption {
    font-size: 0.91rem;
  }

  .reel-center-tags {
    font-size: 0.81rem;
  }
}

@media (max-width: 600px) {
  .coverflow-scene {
    height: 500px;
    margin: 0 -0.5rem;
  }

  .coverflow-item {
    width: 165px;
    height: 319px;
    margin-left: -83px;
    margin-top: -160px;
  }

  .coverflow-reflect {
    height: 115px;
  }

  .coverflow-reflect img {
    height: 319px;
  }

  .reel-center-frame {
    width: 245px;
  }

  .coverflow-scrubber {
    max-width: 364px;
    margin-top: -4.25rem;
  }
}


.reel-share-svg {
  width: 1.35em;
  height: 1.35em;
  display: block;
}

.reel-center-action-icon.reel-share-svg {
  width: 1.5em;
  height: 1.5em;
}

.share-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  z-index: 1100;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: rgba(26, 46, 32, 0.92);
  color: #fff;
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 1120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.share-sheet.hidden {
  display: none;
}

.share-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 26, 18, 0.45);
  cursor: pointer;
}

.share-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 26, 18, 0.22);
}

.share-sheet-heading {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2e20;
}

.share-sheet-preview {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(26, 46, 32, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-sheet-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #e4ebe4;
  border-radius: 0.85rem;
  background: #f4f7f4;
  color: #1a2e20;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.share-sheet-btn:hover {
  background: #e4ebe4;
}

.share-sheet-btn--cancel {
  background: #fff;
  color: rgba(26, 46, 32, 0.65);
  font-weight: 500;
}

@media (min-width: 640px) {
  .share-sheet {
    align-items: center;
  }
}


/* Fullscreen reel viewer */
.reel-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #f4f7f4;
}

.reel-viewer.hidden {
  display: none;
}

.reel-viewer-close {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1010;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e4ebe4;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a2e20;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 26, 18, 0.1);
  transition: background 0.2s;
}

.reel-viewer-close:hover {
  background: #ffffff;
}

.reel-mute-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1010;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e4ebe4;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a2e20;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(15, 26, 18, 0.1);
  transition: background 0.2s;
}

.reel-mute-btn:hover {
  background: #ffffff;
}

.reel-mute-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.reel-mute-icon.hidden {
  display: none;
}

.reel-viewer-scroll {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  background: #f4f7f4;
}

.reel-viewer-scroll::-webkit-scrollbar {
  display: none;
}

.reel-slide {
  position: relative;
  height: 85dvh;
  min-height: 85dvh;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f7f4;
  padding: 0.35rem 0;
}

.reel-slide-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  width: min(calc(85dvh * 9 / 16), 100vw);
  height: min(85dvh, calc(100vw * 16 / 9));
  max-height: 85dvh;
  border-radius: 1rem;
  overflow: hidden;
  background: #0f1a12;
  box-shadow: 0 16px 48px rgba(15, 26, 18, 0.18);
}

.reel-slide-media {
  position: absolute;
  inset: 0;
}

.reel-slide-media img,
.reel-slide-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.reel-slide-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.2) 35%,
    transparent 55%
  );
  pointer-events: none;
}

.reel-slide-top {
  position: absolute;
  top: 3.5rem;
  left: 1rem;
  right: 4.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reel-slide-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
}

.reel-slide-user {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.reel-slide-caption-wrap {
  position: absolute;
  bottom: 2.5rem;
  left: 1rem;
  right: 4.5rem;
  z-index: 2;
}

.reel-slide-caption {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.45;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.reel-slide-tags {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.reel-actions {
  position: absolute;
  right: 0.75rem;
  bottom: 5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.reel-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.25rem;
  text-decoration: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.15s ease;
}

.reel-action-btn:hover {
  transform: scale(1.08);
}

.reel-action-btn:active {
  transform: scale(0.95);
}

.reel-action-icon {
  font-size: 1.65rem;
  line-height: 1;
}

.reel-action-btn .reel-share-svg {
  width: 1.65rem;
  height: 1.65rem;
}

.reel-action-icon.heart.liked {
  color: #ff3040;
}

.reel-action-count {
  font-size: 0.65rem;
  font-weight: 600;
}

.reel-hearts-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}

.reel-floating-heart {
  position: absolute;
  bottom: 6rem;
  right: 1.25rem;
  font-size: 1.5rem;
  animation: reel-heart-float 1.2s ease-out forwards;
  pointer-events: none;
}

@keyframes reel-heart-float {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.2) rotate(12deg);
  }
}

.reel-like-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1110;
  max-width: min(320px, 88vw);
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.97);
  color: #1a2e20;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.reel-like-popup.hidden {
  display: none;
}

.reel-like-popup-text {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.reel-like-popup-close {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: #1a2e20;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.reel-like-popup-close:hover {
  background: #2d4a35;
}

.reel-scroll-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: reel-hint-bounce 2s ease-in-out infinite;
}

@keyframes reel-hint-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}
