/* ============================================================
   DS VideoArt: Showcase ("choose a tier, watch it get built live")
   Lives on top of style.css. This page gets its own energetic
   identity instead of the main site's cinema-red: a "blueprint /
   construction" system, vivid electric-orange on near-black, since
   this page is a skills demo, not a video-brand page.
   Adds:
   1) the tier-picker screen
   2) the live build sequence (blueprint -> materialized section)
   3) the demo stage, whose skin is swapped live via [data-style] on
      .demo-stage: every component below reads --sx-* variables only.
   ============================================================ */

:root {
  --accent: #ff5b2e;
  --accent-soft: rgba(255, 91, 46, 0.16);
  --accent-border: rgba(255, 91, 46, 0.5);
  --shadow-accent: 0 3px 16px rgba(255, 91, 46, 0.32);
}

.rec-tag,
.logo-mark,
.rec-dot {
  background: var(--accent);
}

/* ---------- blueprint background (replaces the red/magenta/teal light-leaks) ---------- */

.sx-blueprint-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 91, 46, 0.07) 0px, rgba(255, 91, 46, 0.07) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(90deg, rgba(255, 91, 46, 0.07) 0px, rgba(255, 91, 46, 0.07) 1px, transparent 1px, transparent 64px);
}

.sx-blueprint-bg span {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 560px;
  max-height: 560px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.22;
  background: var(--accent);
  animation: sx-drift 24s ease-in-out infinite alternate;
}

.sx-blueprint-bg span:nth-child(1) {
  top: -12%;
  inset-inline-start: -10%;
}

.sx-blueprint-bg span:nth-child(2) {
  bottom: -18%;
  inset-inline-end: -12%;
  animation-delay: 8s;
  animation-duration: 30s;
}

@keyframes sx-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 7%) scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .sx-blueprint-bg span {
    animation: none;
  }
}

/* ---------- picker screen ---------- */

.picker {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 80px;
}

.picker-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.picker-head h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin-bottom: 18px;
}

.picker-head p {
  color: var(--text-muted);
  font-size: clamp(15px, 1.6vw, 18px);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.tier-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-6px);
  box-shadow: var(--shadow-accent);
}

.tier-card h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.tier-price {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 10px;
}

.tier-tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.tier-includes {
  list-style: none;
  margin-bottom: 12px;
  flex-grow: 1;
}

.tier-includes li {
  font-size: 14px;
  color: var(--text-muted);
  padding-inline-start: 20px;
  position: relative;
  margin-bottom: 10px;
}

.tier-includes li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.tier-not-includes {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-bottom: 22px;
}

.tier-card .btn {
  width: 100%;
}

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

/* ---------- live build console ---------- */

.build-console {
  position: fixed;
  top: var(--nav-height);
  inset-inline: 0;
  z-index: 800;
  background: rgba(8, 8, 10, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--accent-border);
  padding: 14px 0;
}

.build-console-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.build-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.build-console-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.build-skip {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
}

.build-skip:hover {
  color: var(--text-primary);
}

.build-progress {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.build-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.35s var(--ease-out);
}

.build-log {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--text-muted);
  max-height: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}

.build-log-line {
  opacity: 0;
  transform: translateY(6px);
  animation: sx-log-in 0.35s var(--ease-out) forwards;
}

.build-log-line.done {
  color: var(--text-primary);
}

.build-log-line .chk {
  color: var(--accent);
  margin-inline-start: 6px;
}

@keyframes sx-log-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- section build-state (blueprint -> materialized) ---------- */

.demo-stage section.sx-building-outline {
  outline: 2px dashed var(--sx-accent);
  outline-offset: -10px;
}

.sx-materialize-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--sx-accent-soft) 45%, transparent 55%);
  transform: translateY(-100%);
  z-index: 5;
}

/* ---------- pricing breakdown ---------- */

.sx-pricing {
  max-width: 640px;
  margin: 0 auto;
}

.sx-pricing-head {
  text-align: center;
  margin-bottom: 28px;
}

.sx-pricing-head .price {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--sx-accent);
  display: block;
  margin-bottom: 14px;
}

.sx-pricing-rows {
  border-top: 1px solid var(--sx-border);
}

.sx-pricing-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--sx-border);
  font-size: 15px;
}

.sx-pricing-row .amt {
  font-family: "JetBrains Mono", monospace;
  color: var(--sx-text);
  font-weight: 700;
  white-space: nowrap;
}

.sx-pricing-note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--sx-text-muted);
}

/* ---------- demo stage shell ---------- */

.demo-stage {
  padding-top: var(--nav-height);
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out);
}

.demo-stage section {
  background: var(--sx-bg);
  color: var(--sx-text);
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out);
}

.demo-stage .sx-alt {
  background: var(--sx-bg-elevated);
}

.demo-shift-tag {
  position: fixed;
  bottom: 100px;
  inset-inline: 0;
  margin: 0 auto;
  width: max-content;
  max-width: 90vw;
  background: var(--sx-card);
  border: 1px solid var(--sx-border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sx-text);
  box-shadow: var(--sx-shadow);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  transform: translateY(8px);
}

.demo-shift-tag.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- skins: minimal / bold / organic ---------- */

.demo-stage[data-style="minimal"] {
  --sx-bg: #faf9f7;
  --sx-bg-elevated: #f1efe9;
  --sx-card: #ffffff;
  --sx-text: #1c1c1c;
  --sx-text-muted: rgba(28, 28, 28, 0.6);
  --sx-accent: #2b3a55;
  --sx-accent-soft: rgba(43, 58, 85, 0.1);
  --sx-border: rgba(28, 28, 28, 0.12);
  --sx-radius: 8px;
  --sx-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
  --sx-heading-weight: 700;
  --sx-letter-spacing: 0;
}

.demo-stage[data-style="bold"] {
  --sx-bg: var(--bg);
  --sx-bg-elevated: var(--bg-elevated);
  --sx-card: var(--bg-card);
  --sx-text: var(--text-primary);
  --sx-text-muted: var(--text-muted);
  --sx-accent: var(--accent);
  --sx-accent-soft: var(--accent-soft);
  --sx-border: var(--border);
  --sx-radius: 10px;
  --sx-shadow: var(--shadow-tight);
  --sx-heading-weight: 900;
  --sx-letter-spacing: -0.03em;
}

.demo-stage[data-style="organic"] {
  --sx-bg: #fbf3ea;
  --sx-bg-elevated: #f6e8d8;
  --sx-card: #fffaf3;
  --sx-text: #3a2b1d;
  --sx-text-muted: rgba(58, 43, 29, 0.62);
  --sx-accent: #d97b4f;
  --sx-accent-soft: rgba(217, 123, 79, 0.14);
  --sx-border: rgba(58, 43, 29, 0.14);
  --sx-radius: 16px;
  --sx-shadow: 0 6px 20px rgba(217, 123, 79, 0.16);
  --sx-heading-weight: 700;
  --sx-letter-spacing: 0;
}

.style-note {
  text-align: center;
  font-size: 13px;
  color: var(--sx-text-muted);
  max-width: 480px;
  margin: -20px auto 0;
  padding-bottom: 20px;
}

/* ---------- demo components (all read --sx-*) ---------- */

.sx-hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.sx-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px;
}

.sx-hero h2 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: var(--sx-heading-weight);
  letter-spacing: var(--sx-letter-spacing);
  line-height: 1.1;
  margin-bottom: 22px;
}

.sx-hero p {
  color: var(--sx-text-muted);
  font-size: clamp(15px, 1.8vw, 19px);
  max-width: 560px;
  margin: 0 auto 32px;
}

.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  background: var(--sx-accent);
  color: #fff;
  transition: transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

.sx-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.sx-hero-video {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.sx-hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.sx-hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.sx-hero-video .sx-hero-inner {
  position: relative;
  z-index: 1;
}

.sx-hero-video h2,
.sx-hero-video p {
  color: #f2f1ee;
}

.sx-cta-strip {
  padding: 64px 0;
  text-align: center;
}

.sx-cta-strip h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: var(--sx-heading-weight);
  margin-bottom: 24px;
}

.sx-section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.sx-section-head h3 {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: var(--sx-heading-weight);
  letter-spacing: var(--sx-letter-spacing);
  margin-bottom: 12px;
}

.sx-section-head p {
  color: var(--sx-text-muted);
  font-size: 15px;
}

.sx-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.sx-service-card {
  background: var(--sx-card);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  padding: 28px 24px;
}

.sx-service-card h4 {
  font-size: 17px;
  font-weight: var(--sx-heading-weight);
  margin-bottom: 8px;
}

.sx-service-card p {
  font-size: 14px;
  color: var(--sx-text-muted);
}

.sx-about {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.sx-about h3 {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: var(--sx-heading-weight);
  margin-bottom: 16px;
}

.sx-about p {
  color: var(--sx-text-muted);
  font-size: 16px;
}

.sx-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.sx-gallery-tile {
  aspect-ratio: 4/3;
  border-radius: var(--sx-radius);
  background: var(--sx-accent-soft);
  border: 1px solid var(--sx-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--sx-accent);
}

.sx-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.sx-quote {
  background: var(--sx-card);
  border: 1px solid var(--sx-border);
  border-radius: var(--sx-radius);
  padding: 28px;
}

.sx-quote p.q {
  font-size: 15.5px;
  margin-bottom: 18px;
}

.sx-quote .author {
  font-size: 13px;
  color: var(--sx-text-muted);
  font-weight: 700;
}

.sx-embed-strip {
  display: flex;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
}

.sx-embed-tile {
  flex-shrink: 0;
  width: 220px;
  aspect-ratio: 4/3;
  border-radius: var(--sx-radius);
  background: var(--sx-card);
  border: 1px solid var(--sx-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--sx-text-muted);
}

.sx-video-banner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.sx-video-banner h3 {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: var(--sx-heading-weight);
  margin-bottom: 16px;
}

.sx-video-banner p {
  color: var(--sx-text-muted);
  font-size: 16px;
  margin-bottom: 26px;
}

.sx-contact-mini {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.sx-contact-mini h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: var(--sx-heading-weight);
  margin-bottom: 10px;
}

.sx-contact-mini p {
  color: var(--sx-text-muted);
  font-size: 15px;
  margin-bottom: 26px;
}

@media (max-width: 1024px) {
  .sx-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sx-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sx-testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .sx-services-grid,
  .sx-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- floating dock ---------- */

.showcase-dock {
  position: fixed;
  z-index: 950;
  bottom: 24px;
  inset-inline: 0;
  margin: 0 auto;
  width: max-content;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 20, 22, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: var(--shadow-tight);
}

.dock-tiers {
  display: flex;
  gap: 6px;
}

.dock-tier-btn {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.dock-tier-btn.active {
  background: var(--accent);
  color: #fff;
}

.dock-divider {
  width: 1px;
  height: 22px;
  background: var(--border-strong);
}

.dock-styles {
  display: flex;
  gap: 8px;
}

.dock-style-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.dock-style-dot[data-style="minimal"] { background: #faf9f7; }
.dock-style-dot[data-style="bold"] { background: #0c0c0d; }
.dock-style-dot[data-style="organic"] { background: #d97b4f; }

.dock-style-dot.active {
  border-color: var(--text-primary);
  transform: scale(1.15);
}

.dock-back {
  color: var(--text-muted);
  font-size: 18px;
  padding: 6px 10px;
}

.dock-back:hover {
  color: var(--text-primary);
}

.dock-quote-btn {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .showcase-dock {
    flex-wrap: wrap;
    justify-content: center;
    bottom: 12px;
    padding: 10px;
    max-width: calc(100vw - 16px);
  }
  .dock-quote-btn {
    order: 10;
    width: 100%;
    text-align: center;
  }
}
