/* ==========================================================================
   BLACKHOOD AI — DECODED Section Styles
   Sticky video sidebar layout + step timeline + prompt card
   Inherits design tokens from style.css
   ========================================================================== */

/* ==========================================================================
   DECODED — Page Header
   ========================================================================== */
.decoded-header {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.decoded-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 170, 0, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.decoded-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.decoded-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
}

.decoded-episode {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.decoded-header h1 {
  margin-bottom: 20px;
}

.decoded-header .lede {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* ==========================================================================
   DECODED — Main Two-Column Layout
   ========================================================================== */
.decoded-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
  padding: 80px 0 120px;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   DECODED — Sticky Video Column (Left)
   ========================================================================== */
.decoded-video-col {
  position: sticky;
  top: 96px; /* clears the 72px fixed nav + 24px breathing room */
  display: flex;
  flex-direction: column;
  gap: 20px;
  contain: layout style;
}

.decoded-video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  /* Enforce 9:16 aspect ratio */
  aspect-ratio: 9 / 16;
}

.decoded-video-wrap:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 60px rgba(255, 170, 0, 0.1);
}

.decoded-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 6px;
}

.video-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* --- Media View Switcher (Top of Video) --- */
.video-view-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: rgba(14, 14, 16, 0.95);
  border: 1px solid var(--border);
  border-radius: 30px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.switcher-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.switcher-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.switcher-btn.is-active {
  background: var(--accent);
  color: var(--black);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(255, 170, 0, 0.35);
}

/* --- Interactive Viral Thumbnail Cover on top of video --- */
.video-cover-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.video-cover-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.video-cover-overlay .cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-cover-overlay:hover .cover-img {
  transform: scale(1.025);
}

.cover-play-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.65) 100%);
  text-align: center;
  padding: 20px;
  transition: background 0.3s ease;
}

.video-cover-overlay:hover .cover-play-cta {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.cover-play-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 170, 0, 0.65);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.cover-play-icon svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  fill: currentColor;
}

.video-cover-overlay:hover .cover-play-icon {
  transform: scale(1.12);
  box-shadow: 0 0 45px rgba(255, 170, 0, 0.85);
}

.cover-play-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  margin-top: 4px;
}

.cover-play-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.cover-top-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 8, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 170, 0, 0.35);
  padding: 5px 10px;
  border-radius: 6px;
}

.cover-top-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* --- Video Meta Card --- */
.decoded-video-meta {
  background: var(--dark-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.decoded-video-meta-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.decoded-video-meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.decoded-video-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.decoded-video-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meta-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

.meta-val.accent-val {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ==========================================================================
   DECODED — Right Content Column
   ========================================================================== */
.decoded-content-col {
  min-width: 0; /* prevents grid overflow */
}

/* ==========================================================================
   DECODED — Prompt Section
   ========================================================================== */
.decoded-prompt-section {
  margin-bottom: 80px;
}

.decoded-section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.decoded-section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  flex-shrink: 0;
}

.decoded-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
}

.decoded-section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* --- Prompt Card --- */
.prompt-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 170, 0, 0.04) 0%,
    rgba(22, 22, 22, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.prompt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 170, 0, 0.4), transparent);
}

.prompt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.prompt-card-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.prompt-card-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.prompt-card-label-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.prompt-card-lang {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* --- Prompt Text Scroll Container --- */
.prompt-scroll-wrap {
  position: relative;
  max-height: 380px;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.prompt-scroll-wrap::-webkit-scrollbar {
  width: 4px;
}

.prompt-scroll-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.prompt-scroll-wrap::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 2px;
}

/* Fade gradient at bottom when overflowing */
.prompt-scroll-wrap::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: block;
  background: linear-gradient(to bottom, transparent, rgba(22, 22, 22, 0.95));
  pointer-events: none;
  margin-top: -60px;
}

.prompt-text {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* --- Copy Button --- */
.prompt-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prompt-chars {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--accent);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.copy-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.copy-btn:hover::before {
  background: rgba(255, 255, 255, 0.1);
}

.copy-btn.is-copied {
  background: var(--signal);
  color: var(--black);
  transform: scale(0.98);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.copy-btn.is-copied .icon-copy { display: none; }
.copy-btn:not(.is-copied) .icon-check { display: none; }

/* ==========================================================================
   DECODED — Steps Timeline
   ========================================================================== */
.decoded-steps-section {
  position: relative;
}

.decoded-steps-intro {
  margin-bottom: 60px;
}

.steps-timeline {
  position: relative;
}

/* --- Vertical amber timeline line --- */
.steps-timeline::before {
  content: '';
  position: absolute;
  left: 27px; /* aligns with step number center */
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    rgba(255, 170, 0, 0.3) 60%,
    transparent 100%
  );
}

/* --- Individual Step Card --- */
.step-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  margin-bottom: 40px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  contain: content;
}

.js-reveal .step-card:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

.step-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Step Number Badge --- */
.step-number-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dark-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-faint);
  transition: all 0.5s ease;
  flex-shrink: 0;
}

.step-card.is-visible .step-number {
  color: var(--accent);
  border-color: var(--border-accent);
  box-shadow: 0 0 24px rgba(255, 170, 0, 0.15);
}

/* --- Step Body Card --- */
.step-body {
  background: var(--dark-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card.is-visible .step-body {
  border-color: rgba(255, 170, 0, 0.08);
}

.step-card.is-visible .step-body::before {
  opacity: 1;
}

.step-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  opacity: 0.7;
}

.step-title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.step-description {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 0;
}

/* --- Pro Tip Callout --- */
.step-tip {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-tip-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.step-tip-text {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.step-tip-text strong {
  color: var(--accent);
  font-weight: 600;
}

/* --- Code Snippet inside step --- */
.step-code {
  margin-top: 20px;
  background: var(--dark-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.6;
}

/* --- Step image / visual --- */
.step-visual {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.step-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   DECODED — CTA Section
   ========================================================================== */
.decoded-cta-section {
  margin-top: 80px;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.decoded-cta-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
}

.decoded-cta-section .lede {
  margin: 0 auto 40px;
  max-width: 480px;
}

.decoded-cta-section .btn {
  margin: 0 auto;
}

/* ==========================================================================
   DECODED LISTING PAGE — decoded.html
   ========================================================================== */
.decoded-listing-header {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.decoded-listing-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 170, 0, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.decoded-listing-header h1 {
  margin-bottom: 20px;
}

/* --- Count Badge --- */
.decoded-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 24px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.decoded-count::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

/* --- Listing Grid --- */
.decoded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  padding: 80px 0;
}

/* --- Listing Card --- */
.decoded-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-surface);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  color: inherit;
  text-decoration: none;
}

.decoded-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(255, 170, 0, 0.08);
}

.decoded-card-thumb {
  aspect-ratio: 9 / 14; /* taller crop to show the vertical video poster */
  overflow: hidden;
  position: relative;
  background: var(--dark-raised);
}

.decoded-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.decoded-card:hover .decoded-card-thumb img {
  transform: scale(1.04);
}

/* Gradient overlay on card image */
.decoded-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(5, 5, 5, 0.9) 100%
  );
}

.decoded-card-ep {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

.decoded-card-body {
  padding: 24px;
}

.decoded-card-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.decoded-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.decoded-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.decoded-card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.decoded-card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.decoded-card:hover .decoded-card-arrow {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: rotate(45deg);
}

/* --- Empty state when more episodes coming --- */
.decoded-coming-soon {
  aspect-ratio: 9 / 14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--dark-raised);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  gap: 16px;
  color: var(--text-faint);
}

.decoded-coming-soon-icon {
  width: 48px;
  height: 48px;
  border: 1px dashed var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-faint);
}

.decoded-coming-soon-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ==========================================================================
   RESPONSIVE — Mobile First
   ========================================================================== */

/* Tablet: 768px - 1023px */
@media (max-width: 1023px) {
  .decoded-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .decoded-video-col {
    position: static; /* unstick on tablet/mobile */
    top: auto;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Mobile: <768px */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    z-index: 102;
    padding: 0;
    transition: all 0.2s ease;
  }
  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    border-color: var(--accent);
  }
  .nav-toggle[aria-expanded="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .nav-toggle[aria-expanded="true"] .icon-menu {
    display: none !important;
  }
  .nav-toggle[aria-expanded="true"] .icon-close {
    display: block !important;
  }
  .nav-toggle:not([aria-expanded="true"]) .icon-close {
    display: none !important;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(8, 8, 9, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    z-index: 99;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  }
  .nav-links.is-open {
    display: flex !important;
  }
  .nav-links .nav-cta {
    align-self: stretch;
    text-align: center;
  }

  .decoded-header {
    padding: 120px 0 60px;
  }

  .decoded-layout {
    gap: 40px;
    padding: 60px 0 80px;
  }

  .decoded-video-col {
    max-width: 100%;
  }

  .decoded-video-wrap {
    border-radius: var(--radius);
    /* On mobile, cap height so it doesn't take full screen */
    max-height: 70vh;
    aspect-ratio: unset;
  }

  .decoded-video-wrap video {
    max-height: 70vh;
    width: 100%;
    object-fit: contain;
    background: var(--black);
  }

  .step-card {
    grid-template-columns: 44px 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .step-number {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .steps-timeline::before {
    left: 21px;
  }

  .step-body {
    padding: 20px;
  }

  .prompt-scroll-wrap {
    max-height: 280px;
    padding: 16px;
  }

  .prompt-text {
    font-size: 12px;
  }

  .prompt-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .copy-btn {
    justify-content: center;
    width: 100%;
  }

  .decoded-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 60px 0;
  }

  .decoded-cta-section {
    padding: 60px 0;
  }

  .decoded-cta-section h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* Very small phones */
@media (max-width: 400px) {
  .decoded-video-wrap {
    max-height: 60vh;
  }

  .step-card {
    grid-template-columns: 1fr;
  }

  .step-number-wrap {
    display: none; /* step numbers hidden on tiny screens, inline label shows instead */
  }

  .steps-timeline::before {
    display: none;
  }

  .step-label {
    opacity: 1;
  }
}

/* ==========================================================================
   ANIMATIONS — Reveal
   ========================================================================== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero entrance animations */
.decoded-header .eyebrow,
.decoded-header h1,
.decoded-header .lede,
.decoded-header .decoded-header-meta {
  animation: fadeSlideUp 0.8s ease forwards;
}

.decoded-header .decoded-header-meta { animation-delay: 0s; }
.decoded-header .eyebrow           { animation-delay: 0.1s; }
.decoded-header h1                 { animation-delay: 0.2s; opacity: 0; }
.decoded-header .lede              { animation-delay: 0.35s; opacity: 0; }

/* Listing page header */
.decoded-listing-header .eyebrow,
.decoded-listing-header h1,
.decoded-listing-header .lede,
.decoded-listing-header .decoded-count {
  animation: fadeSlideUp 0.8s ease forwards;
  opacity: 0;
}

.decoded-listing-header .eyebrow      { animation-delay: 0.05s; }
.decoded-listing-header h1            { animation-delay: 0.15s; }
.decoded-listing-header .lede         { animation-delay: 0.25s; }
.decoded-listing-header .decoded-count{ animation-delay: 0.35s; }
