/**
 * Miyoa Vertical & Horizontal Scroll Cards - High-End Blueprint Architectural Stylesheet
 * Author: Aiman Erraissi (https://erraissiaiman.com)
 * Blueprint Paper Architecture: White Background + Black Technical Grid + Zero Border-Radius
 * Typography: Sora, Space Grotesk, Space Mono
 */

/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
  --miyoa-font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --miyoa-font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --miyoa-font-mono: 'Space Mono', monospace;
  --miyoa-title-size: clamp(2.35rem, 3.4vw, 3.6rem);
  --miyoa-title-transform: uppercase;
  --miyoa-ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --miyoa-ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --miyoa-nav-height: 0px;

  /* Blueprint Drafting Paper Grid Tokens */
  --miyoa-blueprint-bg: #ffffff;
  --miyoa-blueprint-grid-major: rgba(0, 0, 0, 0.12);
  --miyoa-blueprint-grid-minor: rgba(0, 0, 0, 0.04);
  --miyoa-blueprint-line: #111111;
}

/* ==========================================================================
   Base Wrapper & Container
   ========================================================================== */
.miyoa-vsc-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 60px 4vw 80px;
  box-sizing: border-box;
  font-family: var(--miyoa-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate; /* Isolates card z-indices so they NEVER leak into subsequent sections */
  z-index: 1;
  clear: both;
}

/* Sibling protection: Guarantees following sections and footers render cleanly in normal flow without intersection */
.miyoa-vsc-wrapper + * {
  position: relative;
  z-index: 2;
  clear: both;
}

/* Theme: Obsidian Dark Page Environment */
.miyoa-vsc-wrapper.miyoa-theme-dark {
  --miyoa-bg-page: #0d0e0e;
  --miyoa-page-heading: #ffffff;
  --miyoa-page-eyebrow-bg: rgba(255, 255, 255, 0.06);
  --miyoa-page-eyebrow-color: #d4d4d8;
  --miyoa-page-eyebrow-border: rgba(255, 255, 255, 0.12);
  --miyoa-shell-bg: #ffffff;
  --miyoa-shell-border: #111111;
  --miyoa-shell-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px #111111;
  --miyoa-core-border: #111111;
  --miyoa-title-color: #09090b;
  --miyoa-desc-color: #3f3f46;
  --miyoa-bullet-color: #18181b;
  --miyoa-bullet-icon-bg: #ffffff;
  --miyoa-bullet-icon-border: #111111;
  --miyoa-bullet-icon-color: #111111;
  --miyoa-counter-bg: #111111;
  --miyoa-counter-color: #ffffff;
  --miyoa-tag-bg: #ffffff;
  --miyoa-tag-color: #111111;
  --miyoa-tag-border: #111111;
  --miyoa-btn-bg: #111111;
  --miyoa-btn-color: #ffffff;
  --miyoa-btn-hover-bg: #27272a;
  --miyoa-btn-icon-bg: rgba(255, 255, 255, 0.18);
  --miyoa-media-bg: #090a0a;
  --miyoa-media-border: #111111;
  --miyoa-hud-bg: #111111;
  --miyoa-hud-color: #ffffff;
  --miyoa-hud-border: rgba(255, 255, 255, 0.25);
  --miyoa-marquee-bg: #ffffff;
  --miyoa-marquee-border: #111111;
  --miyoa-marquee-color: #111111;
  --miyoa-marquee-tag-bg: #111111;
  --miyoa-marquee-tag-color: #ffffff;
}

/* Theme: Miyoa Warm Stone Light Page Environment */
.miyoa-vsc-wrapper.miyoa-theme-light {
  --miyoa-bg-page: #f1ede6;
  --miyoa-page-heading: #141515;
  --miyoa-page-eyebrow-bg: #ffffff;
  --miyoa-page-eyebrow-color: #27272a;
  --miyoa-page-eyebrow-border: rgba(0, 0, 0, 0.12);
  --miyoa-shell-bg: #ffffff;
  --miyoa-shell-border: #111111;
  --miyoa-shell-shadow: 0 25px 50px -15px rgba(20, 21, 21, 0.18), 0 0 0 1px #111111;
  --miyoa-core-border: #111111;
  --miyoa-title-color: #09090b;
  --miyoa-desc-color: #3f3f46;
  --miyoa-bullet-color: #18181b;
  --miyoa-bullet-icon-bg: #ffffff;
  --miyoa-bullet-icon-border: #111111;
  --miyoa-bullet-icon-color: #111111;
  --miyoa-counter-bg: #111111;
  --miyoa-counter-color: #ffffff;
  --miyoa-tag-bg: #ffffff;
  --miyoa-tag-color: #111111;
  --miyoa-tag-border: #111111;
  --miyoa-btn-bg: #111111;
  --miyoa-btn-color: #ffffff;
  --miyoa-btn-hover-bg: #27272a;
  --miyoa-btn-icon-bg: rgba(255, 255, 255, 0.2);
  --miyoa-media-bg: #090a0a;
  --miyoa-media-border: #111111;
  --miyoa-hud-bg: #111111;
  --miyoa-hud-color: #ffffff;
  --miyoa-hud-border: rgba(255, 255, 255, 0.25);
  --miyoa-marquee-bg: #ffffff;
  --miyoa-marquee-border: #111111;
  --miyoa-marquee-color: #111111;
  --miyoa-marquee-tag-bg: #111111;
  --miyoa-marquee-tag-color: #ffffff;
}

/* ==========================================================================
   Section Header Block (Vertical Stack Mode)
   ========================================================================== */
.miyoa-vsc-header-block {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 5;
}

.miyoa-vsc-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--miyoa-page-eyebrow-bg);
  border: 1px solid var(--miyoa-page-eyebrow-border);
  border-radius: 0;
  margin-bottom: 16px;
}

.miyoa-pill-dot {
  width: 5px;
  height: 5px;
  background-color: var(--miyoa-accent-color, #10b981);
  border-radius: 0;
  box-shadow: 0 0 6px var(--miyoa-accent-color, #10b981);
}

.miyoa-pill-text {
  font-family: var(--miyoa-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--miyoa-page-eyebrow-color);
}

.miyoa-vsc-main-heading {
  font-family: var(--miyoa-font-heading);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--miyoa-page-heading);
  margin: 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   1. Vertical Stacking Mode
   ========================================================================== */
.miyoa-vsc-wrapper.miyoa-scroll-vertical {
  overflow: visible;
  position: relative;
  isolation: isolate;
  z-index: 1;
  clear: both;
}

.miyoa-vsc-wrapper.miyoa-scroll-vertical .miyoa-cards-track {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-bottom: 80px; /* Clean exit runway so last card never touches following section */
}

.miyoa-vsc-wrapper.miyoa-scroll-vertical .miyoa-card-stage {
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  width: 100%;
  will-change: transform, opacity;
  transform-origin: center top;
  transition: transform 0.4s var(--miyoa-ease-out), opacity 0.4s var(--miyoa-ease-out);
}

/* ==========================================================================
   2. Horizontal Pinned Scrubbing Mode (Viewport-Optimized & Content-Visible)
   ========================================================================== */
.miyoa-vsc-wrapper.miyoa-scroll-horizontal {
  overflow: hidden;
  position: relative;
  isolation: isolate;
  z-index: 1;
  clear: both;
  height: calc(100vh - var(--miyoa-nav-height, 0px));
  height: calc(100dvh - var(--miyoa-nav-height, 0px));
  max-height: calc(100vh - var(--miyoa-nav-height, 0px));
  min-height: calc(100vh - var(--miyoa-nav-height, 0px));
  padding: clamp(10px, 1.6vh, 20px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* Compact, sleek architectural header bar in horizontal mode */
.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-vsc-header-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  margin-bottom: clamp(8px, 1.4vh, 16px);
  text-align: left;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-vsc-eyebrow-pill {
  margin-bottom: 0;
  order: 2;
  padding: 4px 10px;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-vsc-main-heading {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.15;
  margin: 0;
  order: 1;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-cards-track.miyoa-horizontal-runway {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 36px;
  width: max-content;
  will-change: transform;
  padding: 0 4vw;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-card-stage {
  width: 88vw;
  max-width: 1360px;
  height: 100%;
  max-height: calc(100vh - var(--miyoa-nav-height, 0px) - 86px);
  max-height: calc(100dvh - var(--miyoa-nav-height, 0px) - 86px);
  flex-shrink: 0;
  position: relative;
  top: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-card-shell {
  height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-radius: 0;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-card-core {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0;
}

/* Horizontal Left Column Spacing Optimization to Ensure Content Visibility */
.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-card-col.miyoa-card-left {
  padding: clamp(18px, 2.4vh, 28px) clamp(22px, 2.6vw, 38px) clamp(14px, 1.8vh, 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  scrollbar-width: thin;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-card-left-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-card-meta-bar {
  margin-bottom: clamp(8px, 1.2vh, 14px);
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-counter-badge,
.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-tag-badge {
  font-size: clamp(11px, 0.82vw, 12px);
  padding: 4px 10px;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-service-title {
  font-size: clamp(1.45rem, 2.1vw, 2.25rem);
  line-height: 1.12;
  margin: 0 0 clamp(8px, 1.2vh, 12px);
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-service-desc {
  font-size: clamp(13.5px, 0.95vw, 15px);
  line-height: 1.5;
  margin: 0 0 clamp(10px, 1.4vh, 16px);
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-bullets-list {
  margin: 0 0 clamp(10px, 1.4vh, 18px);
  gap: clamp(6px, 1vh, 11px);
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-bullet-item {
  font-size: clamp(13px, 0.9vw, 14.5px);
  line-height: 1.38;
  gap: 10px;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-bullet-icon {
  width: 19px;
  height: 19px;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-bullet-icon svg {
  width: 12px;
  height: 12px;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-cta-container {
  margin-top: auto;
  margin-bottom: clamp(8px, 1.2vh, 14px);
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-cta-button {
  padding: 8px 12px 8px 20px;
  font-size: 12px;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-btn-icon-wrapper {
  width: 28px;
  height: 28px;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-btn-icon-wrapper svg {
  width: 12px;
  height: 12px;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-deliverables-marquee-bar {
  margin-top: clamp(8px, 1vh, 12px);
  padding: 8px 14px;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-marquee-tag {
  font-size: 10px;
  padding: 4px 8px;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-marquee-content {
  font-size: 11px;
}

.miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-media-viewport {
  min-height: 0;
  height: 100%;
}

/* ==========================================================================
   Architectural Blueprint Card Framing (Zero Border Radius)
   ========================================================================== */
.miyoa-card-shell {
  background-color: var(--miyoa-shell-bg);
  border: 1px solid var(--miyoa-shell-border);
  border-radius: 0 !important;
  padding: 8px;
  box-shadow: var(--miyoa-shell-shadow);
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

/* Blueprint Paper Core: White Background + Black Drafting Grid */
.miyoa-card-core {
  background-color: var(--miyoa-blueprint-bg) !important;
  background-image: 
    linear-gradient(to right, var(--miyoa-blueprint-grid-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--miyoa-blueprint-grid-major) 1px, transparent 1px),
    linear-gradient(to right, var(--miyoa-blueprint-grid-minor) 1px, transparent 1px),
    linear-gradient(to bottom, var(--miyoa-blueprint-grid-minor) 1px, transparent 1px) !important;
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px !important;
  background-position: -1px -1px !important;
  border: 1px solid var(--miyoa-core-border);
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  min-height: 540px;
  box-sizing: border-box;
  height: 100%;
  position: relative;
}

/* Technical Corner Markings on Blueprint Paper */
.miyoa-card-core::before,
.miyoa-card-core::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 4;
}

.miyoa-card-core::before {
  top: 4px;
  left: 4px;
  border-top: 1.5px solid #111111;
  border-left: 1.5px solid #111111;
}

.miyoa-card-core::after {
  bottom: 4px;
  right: 4px;
  border-bottom: 1.5px solid #111111;
  border-right: 1.5px solid #111111;
}

/* ==========================================================================
   Left Column: Service Information & Deliverables Marquee
   ========================================================================== */
.miyoa-card-col.miyoa-card-left {
  flex: 1 1 54%;
  width: 54%;
  padding: clamp(38px, 4.2vh, 52px) clamp(38px, 4vw, 54px) clamp(24px, 3vh, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  z-index: 2;
  border-radius: 0 !important;
}

.miyoa-card-left-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

/* Meta Bar (Eyebrow & Delivery Tag) */
.miyoa-card-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(18px, 2.2vh, 26px);
}

.miyoa-counter-badge {
  font-family: var(--miyoa-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-color: var(--miyoa-counter-bg);
  color: var(--miyoa-counter-color);
  padding: 5px 12px;
  border-radius: 0 !important;
  line-height: 1;
  border: 1px solid #111111;
}

.miyoa-tag-badge {
  font-family: var(--miyoa-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-color: var(--miyoa-tag-bg);
  color: var(--miyoa-tag-color);
  border: 1px solid var(--miyoa-tag-border);
  padding: 5px 12px;
  border-radius: 0 !important;
  line-height: 1;
}

/* Service Title - Expanded Scale to Eliminate Empty Space */
.miyoa-service-title {
  font-family: var(--miyoa-font-heading);
  font-size: var(--miyoa-title-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: var(--miyoa-title-transform);
  color: var(--miyoa-title-color);
  margin: 0 0 clamp(16px, 2vh, 24px);
}

/* Paragraph Summary - Scaled for Better Legibility */
.miyoa-service-desc {
  font-family: var(--miyoa-font-body);
  font-size: clamp(16px, 1.2vw, 18.5px);
  line-height: 1.65;
  color: var(--miyoa-desc-color);
  margin: 0 0 clamp(24px, 3vh, 34px);
  max-width: 680px;
  font-weight: 450;
}

/* Bullet Deliverables List - Generous Spacing */
.miyoa-bullets-list {
  list-style: none;
  margin: 0 0 clamp(24px, 3vh, 36px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vh, 16px);
}

/* 2-Column Grid Layout for Content-Heavy Cards (e.g. 6+ deliverables) */
.miyoa-bullets-list.miyoa-bullets-2col,
.miyoa-bullets-list:has(> li:nth-child(6)) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: clamp(18px, 2.2vw, 32px);
  row-gap: clamp(8px, 1.2vh, 13px);
  width: 100%;
}

.miyoa-bullets-list.miyoa-bullets-2col .miyoa-bullet-item,
.miyoa-bullets-list:has(> li:nth-child(6)) .miyoa-bullet-item {
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.35;
  gap: 10px;
  break-inside: avoid;
}

.miyoa-bullets-list.miyoa-bullets-2col .miyoa-bullet-icon,
.miyoa-bullets-list:has(> li:nth-child(6)) .miyoa-bullet-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
}

.miyoa-bullets-list.miyoa-bullets-2col .miyoa-bullet-icon svg,
.miyoa-bullets-list:has(> li:nth-child(6)) .miyoa-bullet-icon svg {
  width: 11px;
  height: 11px;
}

.miyoa-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--miyoa-font-body);
  font-size: clamp(15.5px, 1.1vw, 17.5px);
  font-weight: 500;
  line-height: 1.48;
  color: var(--miyoa-bullet-color);
}

.miyoa-bullet-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 0 !important;
  background-color: var(--miyoa-bullet-icon-bg);
  border: 1.5px solid var(--miyoa-bullet-icon-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--miyoa-bullet-icon-color);
  margin-top: 2px;
}

.miyoa-bullet-icon svg {
  width: 14px;
  height: 14px;
}

/* Blueprint Button Architecture (Sharp Edges) */
.miyoa-cta-container {
  margin-top: auto;
  margin-bottom: clamp(18px, 2.4vh, 26px);
}

.miyoa-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background-color: var(--miyoa-btn-bg);
  color: var(--miyoa-btn-color) !important;
  text-decoration: none !important;
  font-family: var(--miyoa-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 12px 10px 24px;
  border-radius: 0 !important;
  border: 1px solid #111111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: transform 0.25s var(--miyoa-ease-spring), background-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.miyoa-cta-button:hover {
  background-color: var(--miyoa-btn-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
}

.miyoa-cta-button:active {
  transform: scale(0.98);
}

.miyoa-btn-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 0 !important;
  background-color: var(--miyoa-btn-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--miyoa-ease-spring);
}

.miyoa-btn-icon-wrapper svg {
  width: 14px;
  height: 14px;
}

.miyoa-cta-button:hover .miyoa-btn-icon-wrapper {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   DELIVERABLES MARQUEE TICKER (Sharp Blueprint Styling)
   ========================================================================== */
.miyoa-deliverables-marquee-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--miyoa-marquee-bg);
  border: 1px solid var(--miyoa-marquee-border);
  border-radius: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 10px;
  width: 100%;
}

.miyoa-marquee-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 0 !important;
  background: var(--miyoa-marquee-tag-bg);
  color: var(--miyoa-marquee-tag-color);
  font-family: var(--miyoa-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.miyoa-marquee-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 0 !important;
  background: var(--miyoa-accent-color, #10b981);
}

.miyoa-marquee-scroller {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
  mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
}

.miyoa-marquee-track {
  display: inline-flex;
  width: max-content;
  animation: miyoaMarqueeScroll 24s linear infinite;
  will-change: transform;
}

/* Continuous sliding ticker - cursor hover does NOT pause sliding */
.miyoa-marquee-track {
  animation-play-state: running !important;
}

.miyoa-marquee-content {
  font-family: var(--miyoa-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--miyoa-marquee-color);
  padding-right: 18px;
}

@keyframes miyoaMarqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-33.3333%, 0, 0);
  }
}

/* ==========================================================================
   Right Column: Media Display Viewport & Multi-Media Showcase
   ========================================================================== */
.miyoa-card-col.miyoa-card-right {
  flex: 1 1 46%;
  width: 46%;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  border-radius: 0 !important;
}

.miyoa-media-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: 0 !important;
  overflow: hidden;
  background-color: var(--miyoa-media-bg);
  border: 1px solid var(--miyoa-media-border);
  box-sizing: border-box;
  user-select: none;
}

.miyoa-media-slides-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.miyoa-media-image,
.miyoa-media-video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 0 !important;
  background-color: transparent;
}

/* Blur Shade Effect (Active until video is ready) */
.miyoa-video-blur-shade {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2 !important;
  background: radial-gradient(circle at 50% 45%, rgba(26, 29, 36, 0.9) 0%, rgba(10, 11, 14, 0.98) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
  pointer-events: none;
  overflow: hidden;
  will-change: opacity;
}

.miyoa-video-blur-shade::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 70%);
  animation: miyoaBlurShadePulse 3.2s ease-in-out infinite alternate;
}

.miyoa-video-blur-shade::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 240%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  animation: miyoaBlurShadeSweep 2.8s infinite linear;
}

@keyframes miyoaBlurShadePulse {
  0% { opacity: 0.35; transform: scale(0.95); }
  100% { opacity: 0.85; transform: scale(1.05); }
}

@keyframes miyoaBlurShadeSweep {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}

.miyoa-vsc-wrapper.miyoa-theme-light .miyoa-video-blur-shade {
  background: radial-gradient(circle at 50% 45%, rgba(228, 224, 218, 0.9) 0%, rgba(212, 206, 198, 0.98) 100%);
}

.miyoa-vsc-wrapper.miyoa-theme-light .miyoa-video-blur-shade::before {
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.01) 40%, transparent 70%);
}

.miyoa-vsc-wrapper.miyoa-theme-light .miyoa-video-blur-shade::after {
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.04) 50%, transparent 100%);
}

.miyoa-media-video {
  z-index: 1;
  opacity: 1;
  transition: opacity 0.45s ease, transform 0.6s var(--miyoa-ease-out);
}

.miyoa-media-video.is-video-pending {
  opacity: 0 !important;
}

.miyoa-media-video.is-video-ready {
  opacity: 1 !important;
}

.miyoa-video-wrap.is-video-ready .miyoa-video-blur-shade,
.miyoa-media-video.is-video-ready ~ .miyoa-video-blur-shade,
.miyoa-video-wrap:has(.miyoa-media-video.is-video-ready) .miyoa-video-blur-shade {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  animation: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.miyoa-card-stage:hover .miyoa-media-image,
.miyoa-card-stage:hover .miyoa-media-video {
  transform: scale(1.02);
}

.miyoa-media-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.4) 100%);
}

.miyoa-media-hud-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--miyoa-hud-bg);
  color: var(--miyoa-hud-color);
  border: 1px solid var(--miyoa-hud-border);
  padding: 5px 10px;
  border-radius: 0 !important;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.miyoa-hud-dot {
  width: 5px;
  height: 5px;
  background-color: var(--miyoa-accent-color, #10b981);
  border-radius: 0 !important;
}

.miyoa-hud-text {
  font-family: var(--miyoa-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.miyoa-hud-slide-counter {
  font-family: var(--miyoa-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 5px;
  border-radius: 0 !important;
  margin-left: 4px;
}

/* Video Live Indicator (Permanently Removed per user request) */
.miyoa-video-status-indicator,
.miyoa-video-live-dot {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Multi-Media Showcase Interactive Navigation & Pagination (Sharp Edges)
   ========================================================================== */
.miyoa-media-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 0 !important;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  z-index: 50 !important;
  pointer-events: auto !important;
  opacity: 0.9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  padding: 0;
  outline: none;
}

.miyoa-media-nav-arrow.miyoa-nav-prev {
  left: 12px;
}

.miyoa-media-nav-arrow.miyoa-nav-next {
  right: 12px;
}

.miyoa-media-nav-arrow:hover {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #ffffff !important;
  transform: translateY(-50%) scale(1.08) !important;
  opacity: 1 !important;
}

.miyoa-media-nav-arrow:active {
  transform: translateY(-50%) scale(0.95) !important;
}

/* Pagination Indicator Pill Bar (Bottom Left) */
.miyoa-media-pagination-bar {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 35;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.miyoa-media-dot {
  width: 12px;
  height: 3px;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.25s var(--miyoa-ease-spring);
  border: none;
  padding: 0;
  outline: none;
}

.miyoa-media-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.miyoa-media-dot.is-active {
  width: 24px;
  background: var(--miyoa-accent-color, #10b981);
}

/* ==========================================================================
   Mobile Service Cards Navigation (Desktop Default: Hidden)
   ========================================================================== */
.miyoa-mobile-cards-nav,
.miyoa-mobile-floating-arrow {
  display: none !important;
}

/* ==========================================================================
   Responsive Adaptations & Mobile View Optimization
   ========================================================================== */

/* Tablet Optimization (769px to 991px) */
@media screen and (max-width: 991px) and (min-width: 769px) {
  .miyoa-card-core {
    flex-direction: column !important;
    min-height: auto;
  }

  .miyoa-card-col.miyoa-card-left {
    width: 100%;
    padding: 32px 28px 24px;
  }

  .miyoa-card-col.miyoa-card-right {
    width: 100%;
    padding: 0 10px 10px;
  }

  .miyoa-media-viewport {
    min-height: 320px;
    height: 320px;
  }

  .miyoa-vsc-wrapper.miyoa-scroll-vertical .miyoa-card-stage {
    top: 70px;
  }
}

/* ==========================================================================
   Mobile Optimization (<= 768px):
   Completely Disable Scroll Effect -> 100% Regular Natural Document Scroll
   ========================================================================== */
@media screen and (max-width: 768px) {
  /* Wrapper Spacing & Layout */
  .miyoa-vsc-wrapper {
    padding: 36px 16px 48px;
    isolation: auto;
  }

  /* Section Header */
  .miyoa-vsc-header-block {
    margin-bottom: 28px;
  }

  .miyoa-vsc-main-heading {
    font-size: clamp(1.65rem, 6.2vw, 2.3rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .miyoa-vsc-eyebrow-pill {
    margin-bottom: 12px;
    padding: 4px 10px;
  }

  .miyoa-pill-text {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  /* -------------------------------------------------------------------------
     MOBILE VIEW (<= 768px): STRICT VERTICAL SCROLL FOR BOTH MODES
     All cards scroll vertically down the page. No horizontal scroll or peek.
     Navigation arrows and swiper bar are completely removed.
     On mobile, only 1 card content is visible at a time (100% card width).
     ------------------------------------------------------------------------- */
  .miyoa-vsc-wrapper,
  .miyoa-vsc-wrapper.miyoa-scroll-vertical,
  .miyoa-vsc-wrapper.miyoa-scroll-horizontal {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-x: hidden !important;
    padding: 36px 16px 48px !important;
    isolation: auto;
  }

  .miyoa-vsc-wrapper .miyoa-vsc-header-block,
  .miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-vsc-header-block,
  .miyoa-vsc-wrapper.miyoa-scroll-vertical .miyoa-vsc-header-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
    text-align: left !important;
  }

  /* Navigation Arrows & Swiper Bar: Completely Removed on Mobile */
  .miyoa-mobile-cards-nav,
  .miyoa-mobile-floating-arrow {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }

  /* Runway Track: Strictly Vertical Column Flow */
  .miyoa-vsc-wrapper .miyoa-cards-track,
  .miyoa-vsc-wrapper.miyoa-scroll-vertical .miyoa-cards-track,
  .miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-cards-track,
  .miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-cards-track.miyoa-horizontal-runway {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    scroll-snap-type: none !important;
    -webkit-overflow-scrolling: auto !important;
    gap: 24px !important;
    padding: 0 0 20px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    scrollbar-width: auto;
  }

  .miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-cards-track.miyoa-horizontal-runway::-webkit-scrollbar {
    display: none;
  }

  /* Card Stage: 100% Width so Only 1 Card Content is Visible at a Time */
  .miyoa-vsc-wrapper .miyoa-card-stage,
  .miyoa-vsc-wrapper.miyoa-scroll-vertical .miyoa-card-stage,
  .miyoa-vsc-wrapper.miyoa-scroll-horizontal .miyoa-card-stage {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    transform: none !important;
    opacity: 1 !important;
    will-change: auto !important;
    transition: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    scroll-snap-align: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .miyoa-card-shell {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    flex: 0 0 auto !important;
    padding: 6px;
    border-radius: 0 !important;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45), 0 0 0 1px #111111;
    box-sizing: border-box !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .miyoa-card-core {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    flex: 0 0 auto !important;
    padding: 18px 16px 16px !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    background-size: 40px 40px, 40px 40px, 12px 12px, 12px 12px !important;
  }

  /* Unfold Left Column so its items flow directly in .miyoa-card-core */
  .miyoa-card-col.miyoa-card-left,
  .miyoa-card-left-inner {
    display: contents !important;
  }

  /* 1. Meta Bar at the very top */
  .miyoa-card-meta-bar {
    order: 1 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
  }

  .miyoa-counter-badge,
  .miyoa-tag-badge {
    font-size: 11px;
    padding: 4px 8px;
    letter-spacing: 0.1em;
  }

  /* 2. Main Title of the card */
  .miyoa-service-title {
    order: 2 !important;
    font-size: clamp(1.4rem, 5.2vw, 1.85rem) !important;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0 0 14px;
    word-break: break-word;
    width: 100%;
  }

  /* 3. MEDIA (IMAGE OR VIDEO) APPEARS DIRECTLY UNDER MAIN TITLE */
  .miyoa-card-col.miyoa-card-right {
    order: 3 !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    box-sizing: border-box !important;
  }

  /* Uniform media viewport height across all cards and media (images/videos) */
  .miyoa-media-showcase-container {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    position: relative !important;
  }

  .miyoa-media-viewport {
    position: relative !important;
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background-color: var(--miyoa-media-bg);
    border: 1px solid var(--miyoa-media-border);
    box-sizing: border-box !important;
  }

  .miyoa-media-slides-container,
  .miyoa-media-slide,
  .miyoa-media-wrapper {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  .miyoa-media-image,
  .miyoa-media-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  /* 4. Description follows under media */
  .miyoa-service-desc {
    order: 4 !important;
    font-size: 14px !important;
    line-height: 1.55;
    margin: 0 0 16px;
    max-width: 100%;
    width: 100%;
  }

  /* 5. Bullet Deliverables List */
  .miyoa-bullets-list {
    order: 5 !important;
    margin: 0 0 18px;
    gap: 10px !important;
    width: 100%;
  }

  .miyoa-bullets-list.miyoa-bullets-2col,
  .miyoa-bullets-list:has(> li:nth-child(6)) {
    column-gap: 16px !important;
    row-gap: 8px !important;
  }

  @media screen and (max-width: 520px) {
    .miyoa-bullets-list.miyoa-bullets-2col,
    .miyoa-bullets-list:has(> li:nth-child(6)) {
      grid-template-columns: 1fr !important;
      row-gap: 8px !important;
    }
  }

  .miyoa-bullet-item {
    font-size: 13.5px !important;
    line-height: 1.45;
    gap: 10px;
  }

  .miyoa-bullet-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin-top: 1px;
  }

  .miyoa-bullet-icon svg {
    width: 12px;
    height: 12px;
  }

  /* 6. Action CTA: Docked to bottom with auto margin */
  .miyoa-cta-container {
    order: 6 !important;
    margin-top: auto !important;
    margin-bottom: 12px !important;
    width: 100%;
  }

  .miyoa-cta-button {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px 12px 18px;
    font-size: 12.5px;
    letter-spacing: 0.1em;
    min-height: 48px;
    box-sizing: border-box;
  }

  .miyoa-btn-icon-wrapper {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .miyoa-btn-icon-wrapper svg {
    width: 12px;
    height: 12px;
  }

  /* 7. Deliverables Marquee Ticker: Docked at bottom with improved legibility */
  .miyoa-deliverables-marquee-bar {
    order: 7 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: var(--miyoa-marquee-bg);
    border: 1px solid var(--miyoa-marquee-border);
    border-radius: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  }

  .miyoa-marquee-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 3px 6px;
    border-radius: 0 !important;
    background: var(--miyoa-marquee-tag-bg);
    color: var(--miyoa-marquee-tag-color);
    font-family: var(--miyoa-font-mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
  }

  .miyoa-marquee-pulse-dot {
    width: 4px;
    height: 4px;
    background: var(--miyoa-accent-color, #10b981);
    box-shadow: 0 0 6px var(--miyoa-accent-color, #10b981);
    border-radius: 0 !important;
  }

  .miyoa-marquee-scroller {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 6px, black calc(100% - 6px), transparent);
    mask-image: linear-gradient(to right, transparent, black 6px, black calc(100% - 6px), transparent);
  }

  .miyoa-marquee-track {
    display: inline-flex;
    width: max-content;
    animation: miyoaMarqueeScroll 26s linear infinite;
    will-change: transform;
  }

  /* Always sliding on mobile - active/touch does NOT pause */
  .miyoa-marquee-track {
    animation-play-state: running !important;
  }

  .miyoa-marquee-content {
    font-family: var(--miyoa-font-sans, 'Space Grotesk', -apple-system, sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--miyoa-marquee-color);
    padding-right: 14px;
  }

  .miyoa-media-hud-tag {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
  }

  .miyoa-hud-text {
    font-size: 9px;
  }

  .miyoa-hud-dot {
    width: 4px;
    height: 4px;
  }
}

/* Extra Small Mobile Screens (<= 480px) Fine Tuning */
@media screen and (max-width: 480px) {
  .miyoa-vsc-wrapper {
    padding: 24px 10px 36px;
  }

  .miyoa-vsc-wrapper .miyoa-cards-track {
    gap: 18px !important;
  }

  .miyoa-card-col.miyoa-card-left {
    padding: 16px 12px 12px !important;
  }

  .miyoa-service-title {
    font-size: 1.35rem !important;
    margin-bottom: 10px;
  }

  .miyoa-service-desc {
    font-size: 13.5px !important;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .miyoa-bullets-list {
    margin-bottom: 16px;
    gap: 8px !important;
  }

  .miyoa-bullet-item {
    font-size: 12.5px !important;
  }

  .miyoa-media-showcase-container {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
  }

  .miyoa-media-viewport {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    aspect-ratio: auto !important;
  }

  .miyoa-media-slides-container {
    min-height: 200px !important;
    max-height: 200px !important;
  }
}
