/* ═══════════════════════════════════════════════════════════════
   RODNEY DESIGN — thumbnails.css
   Thumbnails Gallery — Dark identity, lime accent, zero FA icons
   Mobile-first: 375px → desktop
   ═══════════════════════════════════════════════════════════════ */

/* ─── HERO ─────────────────────────────────────────────────── */
.th-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h-mobile);
  overflow: hidden;
}

/* Large decorative BG text */
.th-hero__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(130px, 24vw, 300px);
  color: rgba(255,255,255,0.018);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
  line-height: 1;
}

.th-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem 7rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* ─ Text block ─ */
.th-hero__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 1.25rem;
}

.th-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--color-text);
}

.th-hero__title em {
  font-style: italic;
  color: var(--color-accent);
}

.th-hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--color-muted);
  max-width: 500px;
  line-height: 1.72;
}

/* Stats row */
.th-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--color-border);
}

.th-hero__stat { display: flex; flex-direction: column; gap: 0.3rem; }

.th-hero__stat-val {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
}

.th-hero__stat-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* CTAs */
.th-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.th-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--color-accent);
  color: #000;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.th-btn-primary:hover { background: var(--color-accent-dim); transform: translateY(-1px); }

.th-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.th-btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ─ 3D Thumbnail Stack ─ */
.th-hero__stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 270px;
  margin: 0 auto;
  flex-shrink: 0;
}

.th-hero__card {
  position: absolute;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.75);
}
.th-hero__card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.th-hero__card--back {
  width: 70%; height: 70%;
  bottom: 0; left: 50%;
  transform: translateX(-50%) rotate(-7deg) scale(0.9);
  opacity: 0.45; z-index: 1;
}
.th-hero__card--mid {
  width: 76%; height: 76%;
  bottom: 10px; left: 50%;
  transform: translateX(-50%) rotate(-2.5deg) scale(0.95);
  opacity: 0.75; z-index: 2;
}
.th-hero__card--front {
  width: 82%;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* Fake YouTube progress bar on front card */
.th-hero__yt-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
}
.th-hero__yt-bar {
  height: 100%;
  background: #FF0000;
  width: 60%;
  animation: yt-bar-anim 4s ease-in-out infinite alternate;
}
@keyframes yt-bar-anim {
  from { width: 35%; }
  to   { width: 78%; }
}

/* Scroll nudge */
.th-hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2.5rem;
}
.th-hero__scroll::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--color-muted);
  animation: scroll-nudge 2.2s ease infinite;
}
@keyframes scroll-nudge {
  0%,100% { width: 28px; opacity: 0.4; }
  50%      { width: 52px; opacity: 1; }
}

/* Desktop layout */
@media (min-width: 768px) {
  .th-hero {
    padding-top: var(--nav-h-desk);
  }
  .th-hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem 5rem;
    gap: 4rem;
    min-height: 100svh;
  }
  .th-hero__text { flex: 1; max-width: 560px; }
  .th-hero__stack { margin: 0; width: 440px; height: 310px; }
}
@media (min-width: 1200px) {
  .th-hero__stack { width: 520px; height: 380px; }
  .th-hero__inner { padding-left: 5rem; padding-right: 5rem; }
}

/* Entrance animations */
.th-hero__label,
.th-hero__title,
.th-hero__sub,
.th-hero__stats,
.th-hero__ctas,
.th-hero__scroll,
.th-hero__stack {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.th-hero__label.visible,
.th-hero__title.visible,
.th-hero__sub.visible,
.th-hero__stats.visible,
.th-hero__ctas.visible,
.th-hero__scroll.visible,
.th-hero__stack.visible { opacity: 1; transform: none; }

/* ─── GALLERY SECTION ──────────────────────────────────────── */
.th-gallery {
  padding: 5rem 0 0;
}

.th-gallery__header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.th-gallery__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.th-gallery__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  letter-spacing: -0.025em;
  color: var(--color-text);
  line-height: 1.08;
}

.th-gallery__sub {
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 460px;
  line-height: 1.65;
}

/* Grid */
.th-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border-top: 1px solid var(--color-border);
}
@media (min-width: 640px) {
  .th-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .th-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card */
.th-card {
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.th-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.th-card--featured {
  grid-column: 1;
}
@media (min-width: 1024px) {
  .th-card--featured { grid-column: span 2; }
}

/* Image wrapper */
.th-card__player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.th-card__player img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}
.th-card:hover .th-card__player img { transform: scale(1.05); }

/* Hover overlay */
.th-card__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.th-card:hover .th-card__overlay { background: rgba(0,0,0,0.38); }

.th-card__play {
  opacity: 0;
  transform: scale(0.72);
  transition: opacity var(--transition), transform var(--transition);
}
.th-card:hover .th-card__play { opacity: 1; transform: scale(1); }

/* Badge on hover */
.th-card__badge {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--color-accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.th-card:hover .th-card__badge { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Timestamp */
.th-card__time {
  position: absolute;
  bottom: 0.45rem; right: 0.45rem;
  background: rgba(0,0,0,0.88);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 7px;
  pointer-events: none;
  z-index: 2;
}

/* Red progress bar (YouTube style) */
.th-card__progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
}
.th-card__progress-fill {
  height: 100%;
  background: #FF0000;
}

/* Card info bar */
.th-card__info {
  padding: 0.875rem 1.125rem 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1;
}
.th-card__info h3 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition);
  line-height: 1.35;
}
.th-card:hover .th-card__info h3 { color: var(--color-accent); }

.th-card__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition);
}
.th-card:hover .th-card__tag { border-color: var(--color-accent); color: var(--color-accent); }

/* External link icon */
.th-card__ext {
  display: flex; align-items: center;
  color: var(--color-muted);
  flex-shrink: 0;
  transition: color var(--transition);
  padding: 0.25rem;
}
.th-card:hover .th-card__ext { color: var(--color-accent); }

/* ─── PROJECT SHEET OVERLAY ────────────────────────────────── */
.th-sheet {
  position: fixed; inset: 0;
  z-index: 9990;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.th-sheet.is-open { pointer-events: auto; }

.th-sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}
.th-sheet.is-open .th-sheet__backdrop {
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
}

.th-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-height: 90svh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.th-sheet.is-open .th-sheet__panel { transform: translateY(0); }

/* Drag handle */
.th-sheet__handle {
  width: 36px; height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.th-sheet__close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  z-index: 2;
}
.th-sheet__close:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Sheet hero image */
.th-sheet__hero {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-top: 0.5rem;
}
.th-sheet__hero img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.th-sheet__yt-bar-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
}
.th-sheet__yt-bar {
  height: 100%;
  background: #FF0000;
  width: 0;
  transition: width 0.8s ease;
}

/* Sheet body */
.th-sheet__body { padding: 2rem 1.5rem 1.5rem; }

.th-sheet__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.625rem;
}
.th-sheet__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.022em;
  color: var(--color-text);
  margin-bottom: 0.625rem;
}
.th-sheet__desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* Meta grid */
.th-sheet__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
.th-sheet__meta-item {
  background: var(--color-bg);
  padding: 0.875rem 1rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.th-sheet__meta-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.th-sheet__meta-val {
  font-size: 0.875rem;
  color: var(--color-text);
  font-weight: 600;
}

/* Feed mockup */
.th-sheet__feed {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.th-sheet__feed-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.125rem;
}
.th-sheet__feed-mock {
  display: flex; gap: 0.875rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.th-sheet__feed-mock::-webkit-scrollbar { display: none; }

.th-sheet__feed-card { flex-shrink: 0; width: 150px; }
.th-sheet__feed-card--active {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.th-sheet__feed-img,
.th-sheet__feed-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.th-sheet__feed-placeholder {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.th-sheet__feed-text {
  padding: 0.45rem 0;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.th-sheet__feed-line {
  height: 8px;
  background: var(--color-surface);
  border-radius: 2px;
}
.th-sheet__feed-line--title  { width: 90%; height: 10px; }
.th-sheet__feed-line--channel{ width: 65%; }
.th-sheet__feed-line--views  { width: 50%; }

/* ─── PROCESS STRIP ────────────────────────────────────────── */
.th-process {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 1.5rem;
}
.th-process__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.th-process__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2rem;
  display: block;
}
.th-process__steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .th-process__steps {
    flex-direction: row;
    gap: 0;
    align-items: stretch;
  }
}
.th-process__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 2rem 0 0;
  border-right: 0;
  position: relative;
}
@media (min-width: 640px) {
  .th-process__step {
    padding: 0 2.5rem;
    border-right: 1px solid var(--color-border);
  }
  .th-process__step:first-child { padding-left: 0; }
  .th-process__step:last-child  { border-right: none; }
}
.th-process__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}
.th-process__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}
.th-process__desc {
  font-size: 0.825rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ─── PRICING SECTION ──────────────────────────────────────── */
.th-pricing {
  padding: 5rem 1.5rem 6rem;
}
.th-pricing__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.th-pricing__header { margin-bottom: 3rem; }

.th-pricing__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.75rem;
}
.th-pricing__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.025em;
  color: var(--color-text);
  line-height: 1.08;
}
.th-pricing__sub {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  max-width: 480px;
  line-height: 1.65;
}

/* Pkg grid */
.th-pkg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .th-pkg-grid { grid-template-columns: repeat(3, 1fr); }
}

.th-pkg-card {
  position: relative;
  background: var(--color-surface);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: background var(--transition);
}
.th-pkg-card:hover { background: #161616; }

/* Featured (lime) */
.th-pkg-card--featured {
  background: var(--color-accent);
}
.th-pkg-card--featured:hover { background: #d4f540; }
.th-pkg-card--featured .th-pkg-ribbon,
.th-pkg-card--featured .th-pkg-name,
.th-pkg-card--featured .th-pkg-freq,
.th-pkg-card--featured .th-pkg-feature {
  color: #000;
}
.th-pkg-card--featured .th-pkg-price { color: #000; }
.th-pkg-card--featured .th-pkg-price em { color: rgba(0,0,0,0.55); }
.th-pkg-card--featured .th-pkg-feature {
  border-bottom-color: rgba(0,0,0,0.12);
}
.th-pkg-card--featured .th-pkg-feature svg { stroke: #000; }
.th-pkg-card--featured .th-btn-pkg {
  background: #000;
  color: var(--color-accent);
  border-color: #000;
}
.th-pkg-card--featured .th-btn-pkg:hover { background: #1a1a1a; }

/* Ribbon label */
.th-pkg-ribbon {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  display: block;
}

.th-pkg-name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  color: var(--color-text);
  margin-bottom: 0.3rem;
  line-height: 1.1;
}
.th-pkg-freq {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
}
.th-pkg-price {
  font-family: var(--font-mono);
  font-size: 2.85rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 2.25rem;
}
.th-pkg-price em {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 400;
}

/* Feature list */
.th-pkg-features {
  list-style: none; padding: 0; margin: 0 0 2rem;
  flex: 1;
  display: flex; flex-direction: column;
}
.th-pkg-feature {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.45;
}
.th-pkg-feature svg {
  flex-shrink: 0;
  width: 13px; height: 13px;
  stroke: var(--color-accent);
  margin-top: 2px;
}

/* CTA button */
.th-btn-pkg {
  display: block;
  text-align: center;
  padding: 0.875rem 1.5rem;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.th-btn-pkg:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ─── REVEAL (shared) ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
.reveal.visible { opacity: 1; transform: none; }
